[Docs] Define design tokens (color, type, spacing, radius, motion) with light/dark themes
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start with docs/src/styles/tailwind.css and docs/src/styles/custom.css, then inspect TextNumber.astro and GroupName.astro for scattered styles. The issue proposes a token system, light and dark themes, locally loaded fonts, and a /design/tokens page; first map the existing styles and how the docs site loads them. Done means the listed acceptance criteria pass, including AA contrast in both themes.
Written by the indexing model from the issue text.
Description
Summary
Colours are scattered across tailwind.css (--primary, --muted...), custom.css (--sl-color-* overrides with hex values) and components (text-blue-400, #001f3f, #3fa9f5). Fonts Inter and JetBrains Mono are named but never loaded. There is no single token source to build a design system on.
Location
docs/src/styles/tailwind.css:3-60docs/src/styles/custom.css:3-45docs/src/components/TextNumber.astro:31-32docs/src/components/GroupName.astro:8-14
Evidence
tailwind.css:37 --font-sans: 'Inter', ... (no @font-face / font import anywhere)
ControlsTable.astro:114 font-family: 'JetBrains Mono', 'Fira Code', monospace; (not loaded)
TextNumber.astro:31 .textnumber-list.dark {--bg: #001f3f; --border: #003366; color: #ddd; }
custom.css:17 --sl-color-text-accent: hsl(217.2, 91.2%, 59.8%) -> 3.97:1 on code bg (axe)
Expected
One token file (CSS custom properties exposed through Tailwind 4 @theme) with semantic names, documented, contrast-checked in both themes.
Proposed fix
src/styles/tokens.css: primitives (palette in OKLCH, type scale, space scale, radii, shadows, durations/easings) and semantic tokens (--color-bg,--color-fg,--color-muted,--color-accent,--color-code-bg,--color-border, math/theorem block colours, graph node colours per category).- Themes via
[data-theme=light|dark]+prefers-color-schemedefault;prefers-reduced-motiontokens. - Self-host fonts (woff2,
font-display: swap) via Fontsource orastro:assetsfonts. - A
/design/tokenspage rendering swatches and a contrast table (all text/background pairs >= 4.5:1).
Acceptance criteria
- No hard-coded colours remain in components (stylelint
color-no-hexoutside tokens.css) - Contrast table shows AA for every text token pair in both themes
- Fonts load from the site origin
Repository audit, November 2026 · Phase 7 · Docs platform · evidence: reproduced · ref platform-022
Generated by Claude Code
- Dominant language
- C++
- Stars
- 2
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ibra-kdbra/Math-Problems
-
area: security-algorithms priority: P1 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
ibra-kdbra/Math-Problems#417 ·
-
area: math-chaos priority: P3 size: S type: enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ibra-kdbra/Math-Problems#397 ·
-
area: docs-site good first issue priority: P3 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
ibra-kdbra/Math-Problems#379 ·
-
area: docs-site good first issue priority: P3 size: XS type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
ibra-kdbra/Math-Problems#378 ·
-
area: docs-site good first issue priority: P2 size: XS type: chore
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ibra-kdbra/Math-Problems#367 ·
All issues in ibra-kdbra/Math-Problems
Similar issues
-
TransformInteract: a circle drag through the centre sets Scale to its minimum, which can't grow backOpendifficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NatronGitHub/openfx-supportext#311 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CachyOS/packageinstaller#211 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
OpenEmu-Silicon/OpenEmu-Silicon#920 · 1 comment ·
Maintainers usually reply within 1 day
-
Good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 65/100