82 lines
5.8 KiB
Markdown
82 lines
5.8 KiB
Markdown
# PlotDirector house application theme
|
||
|
||
Baseline: `ccdae5d`. Development only.
|
||
|
||
Uses the existing `ApplicationAppearance` registry, `data-app-theme` semantic CSS tokens, normal authenticated appearance POST, Dapper repository and `UserAppearance_SaveTheme`. The selector now has seven themes; existing six keys/names/palettes remain intact. Forward-only migration 207 adds the new key to SQL validation and does not update user rows.
|
||
|
||
## Palette
|
||
|
||
| Token | Value |
|
||
| --- | --- |
|
||
| `--pd-workspace` | `#f8f1e6` |
|
||
| `--pd-surface` | `#fffaf2` |
|
||
| `--pd-surface-2` | `#f1e8da` |
|
||
| `--pd-elevated` | `#fffcf7` |
|
||
| `--pd-chrome` | `#eee3d3` |
|
||
| `--pd-chrome-secondary` | `#f8f1e6` |
|
||
| `--pd-border` | `#9a897a` |
|
||
| `--pd-border-subtle` | `#ddd0bf` |
|
||
| `--pd-text` | `#332b29` |
|
||
| `--pd-muted` | `#6c6059` |
|
||
| `--pd-heading` | `#48243c` |
|
||
| `--pd-accent` | `#59243f` |
|
||
| `--pd-accent-hover` | `#40192e` |
|
||
| `--pd-selected` | `#eadce5` |
|
||
| `--pd-hover` | `#f0e6e9` |
|
||
| `--pd-focus` | `#75445f` |
|
||
| `--pd-on-accent` | `#fffaf2` |
|
||
| `--pd-danger` | `#a33040` |
|
||
| `--pd-warning` | `#805d19` |
|
||
| `--pd-success` | `#4e6844` |
|
||
| `--pd-info` | `#326a87` |
|
||
| `--pd-icon-books` | `#356b9b` |
|
||
| `--pd-icon-planning` | `#386f6a` |
|
||
| `--pd-icon-calendar` | `#965537` |
|
||
| `--pd-icon-characters` | `#735594` |
|
||
| `--pd-icon-locations` | `#4e7046` |
|
||
| `--pd-icon-relationships` | `#99466d` |
|
||
| `--pd-icon-review` | `#805d19` |
|
||
| `--pd-data-1` | `#59243f` |
|
||
| `--pd-data-2` | `#356b9b` |
|
||
| `--pd-data-3` | `#4e7046` |
|
||
| `--pd-data-4` | `#966020` |
|
||
| `--pd-data-5` | `#735594` |
|
||
| `--pd-data-6` | `#287b7d` |
|
||
| `--pd-data-7` | `#a63d50` |
|
||
| `--pd-data-8` | `#596579` |
|
||
| `--pd-data-9` | `#955735` |
|
||
| `--pd-data-10` | `#876b25` |
|
||
| `--pd-data-11` | `#7c4279` |
|
||
| `--pd-shadow` | `0 3px 12px rgb(61 36 29 / 6%)` |
|
||
|
||
The standard canvas/section/nested/card/control/chip/event and disabled-text aliases inherit the new palette through the existing bridge. Bootstrap primitives receive house-scoped tokens/styles for panels, modals/confirmation, menus, fields, tables, alerts/toasts, badges, tabs, buttons/groups, hover, focus and disabled states. Existing ribbon/navigation/context menu, resizable relationship panes, scene editor and plot map already use semantic tokens. No workspace layout was changed.
|
||
|
||
## Typography and visualisation
|
||
|
||
Typography remains structurally unchanged: dense UI uses the existing application sans-serif; existing low-density editorial headings retain their styling. No new serif overrides were introduced. UI fonts remain Segoe UI/system sans-serif. The 11 `pd-data-*` colours form the coordinated analytical palette. Story Health/Timeline metric charts consume those tokens, including on live theme changes; axis and chapter labels now use theme text/grid tokens rather than fixed low-contrast literals. Legends/toggles retain named metrics, point markers, and visibility controls. Existing author-chosen plot-line/entity colours are preserved so visual identity and meaning do not change on switching themes. The house theme does not recolour manuscript data.
|
||
|
||
## Preference and public isolation
|
||
|
||
New/no-preference accounts use `plotdirector`, persisted by the existing OnlyIfUnset workflow. Explicit stored choices always win. Legacy explicit light/dark device preferences still migrate to warm-light/warm-dark; no bulk user update, renamed theme, or forced switch occurs. Anonymous installed login recognises the new key, retaining the cached choice. Ordinary public pages and ordinary web login continue using `data-site-theme=public`, independent of application selection; only installed authentication may adopt application tokens.
|
||
|
||
Select the theme: sign into Development, open the account/name menu at the top right, then under **Theme** choose **PlotDirector**. It saves automatically. The same preference applies in the installed PWA.
|
||
|
||
## Verification
|
||
|
||
- Build passed (two existing nullable warnings); full executable harness: 392 PASS.
|
||
- Existing toolbar persistence/keyboard/mobile tests passed.
|
||
- Focus/Weave narrative map tests passed with the house theme added.
|
||
- Relationship workspace test passed with the house theme added (75 characters/300 scenes, selection, drag/drop, search, responsive and PWA).
|
||
- Actual installed PWA suite passed: 20 Razor pages, all seven themes at 2560/1440/900, first-paint layout stability, one ribbon row, context menus and keyboard behaviour.
|
||
- PWA metadata/service-worker tests passed including the house chrome colour.
|
||
- Metric browser geometry/interaction suite passed after token-based series and label changes.
|
||
- House palette tests passed on dashboard, Timeline and Relationships at 390/768/1440.
|
||
|
||
Contrast: primary text 10.45–13.51:1 and muted text 4.59–5.94:1 on six principal surfaces; primary button 11.55:1 (hover 14.47:1); control boundary 3.24:1; focus indicator 5.77–7.35:1; status badges >=5.69:1; all 11 chart series >=4.09:1 against surface, nested and workspace backgrounds. Soft decorative separators are intentionally lighter; colour is not the only state cue. Disabled text is a darker mix of muted/body tokens and retained at full opacity in the house controls.
|
||
|
||
## Bounded legacy audit
|
||
|
||
Corrected the metric-chart hard-coded chapter/axis label styling, fixed per-series palette, analytical/filter panels using literal white, and native range accent as part of this theme. Existing authored plot-line colours and relationship type/state colours remain intentional data encodings, not brand overrides. Older illustration/import/review surfaces retain some page-level decorative colours and gradients in plotline-theme.css/site.css; this task does not rewrite those large legacy stylesheets. Their shared controls now consume house primitives. A future audit may standardise those decorative treatments; do not blanket-recolour user-authored data or replace all historical literals.
|
||
|
||
Deployment and real Development verification are recorded in Deployment.md.
|