diff --git a/package.json b/package.json index b2c0e583..e18cfea5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "photon-lemmy", - "version": "1.0.2", + "version": "1.0.3", "private": true, "scripts": { "dev": "vite dev", diff --git a/src/lib/settings.ts b/src/lib/settings.ts index 707f34b5..8628fae3 100644 --- a/src/lib/settings.ts +++ b/src/lib/settings.ts @@ -51,6 +51,7 @@ interface Settings { randomPlaceholders: boolean modlogCardView: boolean | undefined debugInfo: boolean + systemUI: boolean } export const defaultSettings: Settings = { @@ -89,6 +90,7 @@ export const defaultSettings: Settings = { randomPlaceholders: toBool(env.PUBLIC_RANDOM_PLACEHOLDERS) ?? true, modlogCardView: toBool(env.PUBLIC_MODLOG_CARD_VIEW) ?? undefined, debugInfo: false, + systemUI: true, } export const userSettings = writable(defaultSettings) diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index b01dee4a..b7f8ef76 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -12,6 +12,7 @@ import { pwaInfo } from 'virtual:pwa-info' import PwaReload from '$lib/PwaReload.svelte' import { inDarkTheme } from '$lib/ui/colors.js' + import { userSettings } from '$lib/settings.js' nProgress.configure({ minimum: 0.4, @@ -42,11 +43,19 @@ {@html webManifest} -
- +
+
+ +
-
+
Other + + Font + What font Photon should use. + + Debug Info diff --git a/src/style/app.css b/src/style/app.css index 1d76d3c2..058955ea 100644 --- a/src/style/app.css +++ b/src/style/app.css @@ -6,7 +6,7 @@ body { @apply bg-slate-50 text-slate-900 dark:bg-zinc-950 dark:text-zinc-100 accent-slate-950 dark:accent-zinc-50; } -.dark > body { +.dark { color-scheme: dark; } diff --git a/tailwind.config.js b/tailwind.config.js index 7b7c8c9e..ae9fff65 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -4,6 +4,8 @@ export default { darkMode: 'class', theme: { fontFamily: { + 'sans': ['sans-serif'], + 'system': ['system-ui'], 'serif': ['serif'] }, extend: { @@ -17,7 +19,8 @@ export default { }, colors: { 'zinc': { - 800: '#1f1f25', + 700: '#313139', + 800: '#1f1f24', 900: '#121215' } }