Muted, minimal aesthetic with Figtree typography. Uses Lucide icons.
npm install @astryxdesign/theme-neutralWrap your app with Theme and pass the theme:
import {Theme} from '@astryxdesign/core/theme';
import {neutralTheme} from '@astryxdesign/theme-neutral/built';
function App() {
return <Theme theme={neutralTheme}>{/* your app */}</Theme>;
}| Path | Use case |
|---|---|
@astryxdesign/theme-neutral |
Source build (StyleX compilation via @astryxdesign/build) |
@astryxdesign/theme-neutral/built |
Pre-built dist (Tailwind, plain CSS, or no build step) |
@astryxdesign/theme-neutral/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.
The repository keeps Neutral's generation request in palette.config.json, the
exact astryx-oklch-v1 output in src/neutralPalettes.generated.ts, and its
generation receipt beside that file. src/neutralPalettes.ts provides the stable
theme-local import. Neutral currently uses 21 numbered stops in each light and
dark ramp, but that layout is a Neutral decision rather than a requirement for
other themes.
Exact solid endpoints use the same stable palette namespace as the tonal
families: neutralPalettes.black and neutralPalettes.white. Theme definitions
can assign those values directly to semantic tokens without treating a neutral
ramp endpoint as the named color.
import {neutralPalettes} from '@astryxdesign/theme-neutral';
const tokens = {
'--color-background-inverted': [neutralPalettes.black, neutralPalettes.white],
};Neutral opts into a muted dark edge for chromatic families. Stops 5 through 25 use 50% of their realized chroma, then recover smoothly to the standard dark recipe at stop 60. Yellow uses a gentler 65% edge multiplier. Light ramps, neutral ramps, and stops 60 through 100 remain unchanged.
Neutral is the reference implementation for palette-aware theme templates. Templates may follow its ownership, review, and alignment workflow without copying its colors or stop layout.
Use semantic theme tokens in components. Neutral's theme source maps those roles to named palette stops, while the prebuilt theme and CSS contain their resolved values. Changing the generated palette must include the regenerated receipt, token diff, tests, and visual review.
The committed request and receipt preserve the generation inputs and provenance. CLI regeneration is not yet a supported release workflow; until that tooling ships, treat the generated module and receipt as reviewed artifacts rather than editing them by hand.
Add the theme CSS to your stylesheet:
@import '@astryxdesign/theme-neutral/theme.css';This is required for component-level theme overrides (colors, radii, typography) to take effect.
This theme uses a custom typeface:
| Role | Font |
|---|---|
| Body | Figtree |
| Heading | Figtree |
| Code | System monospace (built in) |
Load it with the theme's font stylesheet. It loads Figtree from font files shipped in this package (in fonts/, with its license), each with font-display: fallback, so a page never waits on a network; served from the same machine or a fast connection, the text first draws in the theme's fonts (a face that takes more than about 3 s leaves that page in the fallback font) (an offline machine, a sandbox, CI):
@import '@astryxdesign/theme-neutral/fonts.css';To use Google Fonts' CDN instead, add its stylesheet to your page in place of the import: <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap" />.
Without it, the theme falls back to system fonts, a supported choice: the system stack is designed to hold up on its own.
| Package | Description |
|---|---|
@astryxdesign/core |
Core components and theme system |
@astryxdesign/build |
Build plugins for StyleX source builds |
@astryxdesign/cli |
CLI tooling including astryx docs theme |