style(frontend): apply Foot palette across the site
Build and publish Docker image / build-and-publish (push) Successful in 14s
Build and publish Docker image / build-and-publish (push) Successful in 14s
This commit is contained in:
1 parent
6e68400cd0
commit
9ee9983ee2
16 files changed
+125
-100
No files matched your search
@@ -74,26 +74,25 @@ Maintain the product principles of purpose, agency, familiarity, flexibility, si
|
||||
|
||||
### Canonical palette
|
||||
|
||||
`src/theme/colors.js` is the named JS palette. `tailwind.config.js` mirrors it and adds `dash` semantic colors. Keep both aligned if changing a token.
|
||||
`~/.config/foot/foot.ini` `[colors]` is the palette authority for this site. `colors.ini` records the allowed values for the repository, `src/theme/colors.js` provides named JS tokens, and `tailwind.config.js` mirrors them for utilities. Keep all three aligned. The site must use only these Foot colors; alpha variants of those colors are allowed for non-navigation state and scrims. Navigation menus and menu headers must remain fully opaque.
|
||||
|
||||
| Token | Value | Usage |
|
||||
| Foot color | Value | Common role |
|
||||
| --- | --- | --- |
|
||||
| `background` | `#151515` | Main page background. |
|
||||
| `panel` / `backgroundSecondary` | `#181818` | Header, dialogs, and panel fill. |
|
||||
| `surface` | `#202020` | Raised content surface. |
|
||||
| `hover` | `#282828` | Hover surface. |
|
||||
| `border` / `brightBlack` | `#2F2F2F` | Strong outline and hard-shadow ink. |
|
||||
| `focus` | `#454545` | Focus-adjacent neutral boundary. |
|
||||
| `foreground` | `#D0D0D0` | Body copy. |
|
||||
| `muted` | `#898989` | Secondary copy and labels, with enough contrast for small text on the dark surfaces. |
|
||||
| `dim` | `#505050` | Decorative or disabled content only. |
|
||||
| `brightWhite` | `#F5F5F5` | Headings and key values. |
|
||||
| `primary` / `brightBlue` | `#6C99BB` | Primary actions and keyboard focus. |
|
||||
| `accent_secondary` / `blue` | `#6C99BB` | Accent and link color, checked for readable contrast on panel surfaces. |
|
||||
| `yellow` / `brightYellow` | `#D3A04D` | Warning state and selective emphasis. |
|
||||
| semantic green / red / cyan | `#7B9246` / `#A53C23` / `#5EA8A2` | Success, danger, and supporting status roles where required by existing UI. Keep labels/icons with color so meaning never depends on color alone. |
|
||||
| `background` / `regular0` | `#151515` | Page, menu, and dialog base. |
|
||||
| `foreground` / `regular7` | `#D0D0D0` | Body copy and standard controls. |
|
||||
| `selection-foreground` / `bright7` | `#F5F5F5` | Headings and selected text. |
|
||||
| `bright0` | `#505050` | Borders, disabled decoration, and hard-shadow ink. |
|
||||
| `regular1` | `#A53C23` | Danger and destructive actions. |
|
||||
| `regular2` | `#7B9246` | Success state. |
|
||||
| `regular3` | `#D3A04D` | Warning and selective emphasis. |
|
||||
| `regular4` | `#6C99BB` | Primary actions, links, and focus. |
|
||||
| `regular5` | `#9F4E85` | Secondary status distinction. |
|
||||
| `regular6` | `#5EA8A2` | Supporting status distinction. |
|
||||
| `bright4` | `#547C99` | Secondary blue, hover, and focus boundary. |
|
||||
|
||||
Dashboard semantic Tailwind tokens are `dash.surface`, `dash.surfaceElevated`, `dash.border`, `dash.text`, `dash.textMuted`, `dash.accent`, `dash.danger`, `dash.success`, and `dash.warning`. `dashboardTokens.js` exports matching JS values and `dashLayout` class strings: `viewShell` is a squared, bordered panel, `headerBar` is a responsive header strip, and `bodyPadding` establishes section spacing. Prefer semantic tokens such as `text-dash-text` over repeated hex values or arbitrary colors. `colors.ini` is the palette source of truth; `src/theme/colors.js`, the `dash` tokens, and `tailwind.config.js` must stay aligned with it.
|
||||
Use the base background with visible borders to create structure; do not invent extra graphite shades. Pair colored status text with a label or icon so color never carries meaning alone.
|
||||
|
||||
Dashboard semantic Tailwind tokens are `dash.surface`, `dash.surfaceElevated`, `dash.border`, `dash.text`, `dash.textMuted`, `dash.accent`, `dash.danger`, `dash.success`, and `dash.warning`. `dashboardTokens.js` exports matching JS values and `dashLayout` class strings: `viewShell` is a squared, bordered panel, `headerBar` is a responsive header strip, and `bodyPadding` establishes section spacing. Prefer semantic tokens such as `text-dash-text` over repeated hex values or arbitrary colors. `colors.ini`, `src/theme/colors.js`, the dashboard tokens, and `tailwind.config.js` must remain within the Foot palette.
|
||||
|
||||
### Typography, spacing, and responsive behavior
|
||||
|
||||
|
||||
Reference in new issue
Block a user