FairGarden Design
A field guide printed on warm recycled paper: React components built on Base UI, styled with CSS Modules, colored by Radix scales through role variables.
The system is calm and a little playful. It uses warm paper grounds, one deep natural ink and a bold serif voice, and everything is drawn in ink on flat color, so every screen prints in black on white without losing meaning.
Start here
- Installation: the global stylesheet, the fonts,
ClientProviderand light and dark mode - Color contract: the
primaryandsecondaryprops, role variables, the hover model and the 16 ground presets (8 page grounds, thenightband and 7 fields) - Tokens: Open Props with its in-between steps, the
--fgd-tokens, and the units policy - Typography: four families, one job each, and the type roles
Components
Each component is imported from its category's path, @fairgarden/design/<category>/<name> (for example @fairgarden/design/forms/input), and documented with live demos and an API table.
- Foundations: Ground, Icon, Separator, Sticker and the pattern tiles
- Actions: Button, Link, Toggle and Toggle Group, Chip
- Navigation: Navigation Menu, Navigation Bar, Nav Drawer, Breadcrumb, Pagination, Tabs, Toolbar
- Forms: Field, Fieldset, Form, Input, Number Field, Select, Combobox, Autocomplete, Search, Checkbox and Checkbox Group, Radio and Radio Group, Switch, Slider
- Feedback: Alert, Badge, Tag, Avatar, Progress, Meter, Toast
- Overlays: Dialog, Alert Dialog, Popover, Preview Card, Menu, Context Menu, Menubar, Tooltip
- Disclosure: Accordion, Collapsible, FAQ
- Page: Hero, Footer, Section Bar, Section Divider, Section Header, CTA Block, Newsletter, Marquee, Announcement Bar
- Content: Card, Card Grid, Feature Grid, Carousel, Quote, Index Rows, Profile, Pricing, Timeline, Empty State
- Data: Table, Scroll Area, Spec Grid, Spec List, Spec Sheet, Figure, Stat, Chart, Map
Install
pnpm add @fairgarden/design @base-ui/react
# only for Map:
pnpm add maplibre-gl pmtiles @protomaps/basemaps
The stack
| Layer | Its job |
|---|---|
| Base UI | Behavior, keyboard, focus, ARIA and state data attributes; never styles |
| CSS Modules | Every style, one module per component, in cascade layers |
| CVA | Composes module classes from typed props |
Open Props and --fgd- | Every non-color value: spacing, type, strokes, radii, sizes, motion |
| Radix Colors | Every color, reached through --primaryN, --secondaryN and --role-*; light and dark swap the values by data-theme on html or the OS preference |
| Material Symbols | Icons: Rounded, FILL 0, compiled to inline SVG paths |
| Recharts | Charts: SVG, role colors, opaque fills and pattern defs |
| MapLibre GL, Protomaps and OpenStreetMap | Maps: optional peer dependencies, loaded only by Map |
The full specification is DESIGN-SYSTEM.md, with the condensed companion DESIGN-SYSTEM-GUIDE.md. Section numbers on these pages (§) point into it.