An open source design system that's fully customizable and agent ready
@astryxdesign/theme-matcha
Earthy green theme with Figtree typography. Uses Lucide icons.
Install
npm install @astryxdesign/theme-matcha
Usage
Wrap your app with XDSTheme and pass the theme:
import {XDSTheme} from '@astryxdesign/core/theme';
import {matchaTheme} from '@astryxdesign/theme-matcha/built';
function App() {
return <XDSTheme theme={matchaTheme}>{/* your app */}</XDSTheme>;
}
Import paths
| Path | Use case |
|---|---|
@astryxdesign/theme-matcha |
Source build (StyleX compilation via @astryxdesign/build) |
@astryxdesign/theme-matcha/built |
Pre-built dist (Tailwind, plain CSS, or no build step) |
@astryxdesign/theme-matcha/theme.css |
Pre-built CSS file (import in your stylesheet) |
If you're using @astryxdesign/build for StyleX source compilation, import from the bare path. Otherwise, use /built.
CSS import
Add the theme CSS to your stylesheet:
@import '@astryxdesign/theme-matcha/theme.css';
Approved palette
Matcha keeps its generation request in palette.config.json, the reviewed
astryx-oklch-v1 output in src/matchaPalettes.generated.ts, and the detached
generation receipt beside it. The palette uses separate light and dark ramps;
Tea Gold is generated from an anchorless golden seed so the family stays smooth.
The runtime theme imports only the selected stops in
matchaPaletteRefs.generated.ts.
Use semantic theme tokens in components. Matcha's theme source maps the color
roles it owns to named palette stops; components never read raw palette values
directly. The full palette is a private authoring and audit artifact rather than
a package export, and the prebuilt theme and CSS contain only resolved values.
Changing the palette must include the regenerated receipt,
selected-reference module, token diff, tests, and visual review. Keep
matchaTheme.ts and the CLI template copy synchronized when changing a mapping.
The palette is not a component styling API, chart-color API, or accessibility guarantee. Components should read semantic tokens, charts should use the data-visualization color API, and every custom foreground/background pair still needs contextual contrast verification.
Fonts
This theme uses custom typefaces:
| Role | Font |
|---|---|
| Body | DM Sans |
| Heading | Playwrite US Trad |
| Code | JetBrains Mono |
These fonts must be loaded separately. The theme references them by name but does not bundle the font files.
Add this to your HTML <head>:
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=Playwrite+US+Trad:[email protected]&display=swap" />
Without this, the theme falls back to system fonts.