feat: add opt-in design system v1 for research prototypes#15
Open
feat: add opt-in design system v1 for research prototypes#15
Conversation
Adds a shared, opt-in visual language at docs/public/design-system/v1/ — plain CSS + tokens, no build step, no framework. Existing prototypes are not retrofitted. - ITK Dev teal/cyan primary with aarhus.dk-inspired pink accent, pastel surfaces, and softer shapes to signal "same municipal family" - Tokens: colors, Inter typography, spacing, radii, shadows, transitions - Components: buttons (incl. pill + accent), badges, cards (incl. soft), form inputs, tables, modal, sidebar nav, stat cards, alerts, hero, quick-link tiles, sparklines - Line icon SVG sprite at icons.svg with 27 icons, used in place of emoji - Data viz helpers at v1/viz/: Chart.js palette theme, Leaflet theme CSS, dsMakePin / dsHeatmap / dsCluster overlay helpers — all CDN-loaded, no new npm deps - Playground with every component variant, plus two realistic example pages (citizen webpage, admin app dashboard) linked via a shared nav - VitePress docs pages: Overview, Tokens, Components, Diagrams (Mermaid), Data viz, Usage — plus top-nav entry Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/public/design-system/v1/— plain CSS + tokens, no build step, no framework. Existing prototypes are not retrofitted.What's included
Static assets (
docs/public/design-system/v1/)tokens.css,base.css,components.css,index.css— opt-in via one<link>, scoped under.dsicons.svg— 27-icon line SVG spriteplayground.html— live gallery of every component variantexamples/website.html— citizen-facing webpage with full-bleed heroexamples/app.html— admin dashboard with sidebar, charts, table with sparklinesviz/chart-theme.js— Chart.js global defaults + ITK palette pluginviz/leaflet-theme.css+viz/leaflet-overlays.js— themed map withdsMakePin,dsHeatmap,dsClusterVitePress docs (
docs/projects/design-system/)docs/.vitepress/sidebar.mtsHow to opt in
Versioned at
v1/so breaking changes can ship asv2/without disturbing pinned prototypes.Test plan
npm run docs:buildcompletes without errors<link>+.dswrapper to a throwaway HTML picks up the styles; omitting.dsdoes not leak to non-scoped elements🤖 Generated with Claude Code