diff --git a/apps/iris/src/components/settings/appearance-pane.tsx b/apps/iris/src/components/settings/appearance-pane.tsx
index ba749050..2d19a11b 100644
--- a/apps/iris/src/components/settings/appearance-pane.tsx
+++ b/apps/iris/src/components/settings/appearance-pane.tsx
@@ -19,7 +19,11 @@ import {
ToggleGroup,
ToggleGroupItem,
} from '@filcdev/ui/components/toggle-group';
-import { applyColorScheme } from '@filcdev/ui/lib/color-scheme';
+import {
+ applyColorScheme,
+ DEFAULT_COLOR_SCHEME,
+} from '@filcdev/ui/lib/color-scheme';
+import { DEFAULT_SITE_THEME } from '@filcdev/ui/lib/site-theme';
import { cn } from '@filcdev/ui/lib/utils';
import { LayoutGrid, Table2 } from 'lucide-react';
import { useTheme } from 'next-themes';
@@ -51,7 +55,7 @@ export function AppearancePane({
onClose: () => void;
}) {
const { t } = useTranslation();
- const { setTheme: applyTheme } = useTheme();
+ const { resolvedTheme, setTheme: applyTheme } = useTheme();
const settingsQuery = useNotificationSettings(active);
const { setView, view } = useTimetableView(settingsQuery.data?.timetableView);
const [theme, setTheme] = useState('system');
@@ -132,12 +136,7 @@ export function AppearancePane({
{t(`preferences.colorSchemeId.${id}`)}
-
-
-
-
-
-
+
))}
@@ -212,3 +211,32 @@ export function AppearancePane({
);
}
+
+/**
+ * One palette's four dots. `default` has no block in `schemes.css`, so without
+ * `data-site-theme="default"` its swatch would inherit the active seasonal skin
+ * from `` instead of showing the everyday palette. The `dark` class keeps
+ * that preview on the visitor's own side of the palette.
+ */
+function SchemeSwatch({
+ dark,
+ scheme,
+}: {
+ dark: boolean;
+ scheme: ColorScheme;
+}) {
+ const isDefault = scheme === DEFAULT_COLOR_SCHEME;
+
+ return (
+
+
+
+
+
+
+ );
+}
diff --git a/docs/theming.md b/docs/theming.md
index 679ee8bb..ef999f2f 100644
--- a/docs/theming.md
+++ b/docs/theming.md
@@ -60,7 +60,10 @@ the backdrop and the class colours are all data-driven from the id list.
The settings picker iterates the ids and renders each swatch with the palette
itself (`data-color-scheme` on the swatch), so no colours are copied into TS.
Use the palette's published values rather than derived shades — that is the
-point of naming it after a known theme.
+point of naming it after a known theme. The `default` id has no block, so its
+swatch also carries `data-site-theme="default"`: that pins the preview to the
+everyday palette instead of letting it inherit the active seasonal skin from
+``.
## Subject colours come along for free