Repository navigation
UI Design System
github-actions[bot] edited this page Nov 7, 2026
·
3 revisions
UIKit-inspired design system for GraceChords.
- Source of truth:
packages/tokens/tokens.css(the@gracechords/tokenspackage), imported into the web app viaapps/web/src/styles/index.css. - Light and dark palettes share the Signal Blue accent (
--gc-primary:#1F84C9light /#4EA6E6dark). - Spacing, radii, typography, and motion are tokenized.
- Use
--gc-*tokens in CSS instead of hardcoded hex values.
Reusable primitives live in apps/web/src/components/ui/layout-kit/ and are styled by layout-kit.css.
- PageHeader: title, optional subtitle, optional actions.
- Card / InsetCard: surface blocks with consistent padding and separators.
- Toolbar: consistent padding; optional sticky behavior.
- SegmentedControl: accessible segmented buttons.
- Chip: filter and tag variants.
- Field: label, control, help, and error text.
- IconButton: 36px minimum hit targets on desktop, 44px on narrow (≤640px) screens.
Legacy classes are kept stable and mapped to tokens in apps/web/src/styles/base.css.
-
.btnand.btn.primaryfollow the kit styling. -
.cardmatches the Card surface. -
.iconbtnmatches IconButton. -
.containerpreserves existing layout spacing.
- Prefer layout kit components for new UI and high-visibility changes.
- Keep styling token-driven and consistent across pages.
- Respect
data-theme="dark"and the shared focus ring styles.
Related pages: Contributing Project-Structure
-
User Guide
-
Editing & Admin
-
Developer Guide
-
Infrastructure
-
Mobile