You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rhea palette system provides workflow-specific colour schemes that automatically apply based on the current route. Each workflow (Metis, Themis, Tethys, Theia, and Rhea) has its own distinct palette.
5
+
The Rhea palette system provides workflow-specific colour schemes that automatically apply based on the current route. Each workflow (Metis, Themis, Tethys, Theia, and Rhea) has its own distinct palette with both **light and dark theme variants**.
6
+
7
+
**Features:**
8
+
- ✅ Workflow-based colour schemes
9
+
- ✅ Light and dark theme support
10
+
- ✅ System preference detection
11
+
- ✅ Persisted user preference
12
+
- ✅ Smooth theme transitions
6
13
7
14
## Architecture
8
15
@@ -11,24 +18,26 @@ The Rhea palette system provides workflow-specific colour schemes that automatic
11
18
**Location:**`src/lib/config/palettes/`
12
19
13
20
All palette data is defined in TypeScript files in this directory:
14
-
-`rheaPalette.ts` - Main application palette
15
-
-`metisPalette.ts` - Module generator palette
16
-
-`themisPalette.ts` - Course builder palette
17
-
-`tethysPalette.ts` - Arc designer palette
18
-
-`theiaPalette.ts` - Content manager palette
21
+
-`rheaPalette.ts`/ `rheaPalette.dark.ts`- Main application palette (light/dark)
**Note:** These mappings apply to both light and dark theme variants. The system automatically selects the appropriate palette based on the user's theme preference.
117
+
107
118
## How to Add or Modify a Palette
108
119
109
120
### Modifying an Existing Palette
110
121
111
-
1.**Edit the palette file** in `src/lib/config/palettes/`
122
+
1.**Edit the palette file(s)** in `src/lib/config/palettes/`
112
123
```typescript
113
-
// Example: Change Metis foreground colour
114
-
// File: src/lib/config/palettes/metisPalette.ts
115
-
124
+
// Example: Change Metis foreground colour in BOTH light and dark variants
The `.ts` files in `docs/dev/ref/palettes/` are **historical references only** and are no longer used by the application. The source of truth is now `src/lib/config/palettes/`.
@@ -230,6 +328,8 @@ The `.ts` files in `docs/dev/ref/palettes/` are **historical references only** a
230
328
3.**Consistent Mapping:** All palettes follow the same structure for predictable CSS variable generation
231
329
4.**Type Safety:** TypeScript interfaces ensure palette definitions are complete and correct
232
330
5.**Separation of Concerns:** Data (config) is separate from transformation logic (utils)
331
+
6.**Theme Consistency:** Light and dark variants maintain workflow identity while optimizing for readability
332
+
7.**Accessibility First:** All colour combinations meet WCAG contrast requirements
233
333
234
334
## Benefits of This Approach
235
335
@@ -239,6 +339,8 @@ The `.ts` files in `docs/dev/ref/palettes/` are **historical references only** a
239
339
- ✅ **Easy to modify:** Change colours in one place, see results everywhere
240
340
- ✅ **Maintainable:** Clear separation between data and logic
241
341
- ✅ **Documented:** Rich structure includes colour names and metadata
342
+
- ✅ **Dark mode ready:** Full light/dark theme support with system preference detection
343
+
- ✅ **User control:** Persisted theme preference with smooth transitions
0 commit comments