Files
archie/ui/astryx-reference/theme.ts
T
sam a0d14090ef feat: add astryx design reference prototype
- scaffold a React/Vite reference app under ui/astryx-reference with shell, composer, runs, and area pages
- wire @astryxdesign packages, a neutral-derived theme, and reference dev/build scripts
- document the astryx workflow in ui/AGENTS.md
2026-11-19 17:36:22 +11:00

40 lines
1.5 KiB
TypeScript

import { defineTheme } from "@astryxdesign/core/theme";
import "@fontsource-variable/ibm-plex-sans";
import { defaultThemeSlug, themes } from "../src/astryx-themes";
export const theme = defineTheme({
name: "archie-reference",
extends: themes[defaultThemeSlug],
tokens: {
"--font-family-body": '"IBM Plex Sans Variable", system-ui, sans-serif',
"--font-family-heading": "var(--font-family-body)",
"--color-background-body": ["#f5f4f1", "#16171a"],
"--color-background-surface": ["#ffffff", "#1c1d21"],
"--color-background-card": "var(--color-background-surface)",
"--color-background-popover": ["#ffffff", "#202226"],
"--color-background-muted": ["#ecebe7", "#26282c"],
"--color-border": ["#dcdad4", "#313338"],
"--color-border-emphasized": ["#c7c4bd", "#3c3f45"],
"--color-text-primary": ["#1f1f1d", "#e8e6e1"],
"--color-text-secondary": ["#5c5a55", "#a6a39b"],
"--color-accent": "#2e795a",
"--color-text-accent": ["#0c6f4d", "#51a580"],
"--text-heading-1-size": "0.9375rem",
"--text-heading-2-size": "0.9375rem",
"--radius-element": "0.25rem",
"--radius-inner": "0.25rem",
"--radius-container": "0.375rem",
"--radius-page": "0.5rem",
"--color-text-warning": ["#8a5a12", "#d9a45b"],
},
components: {
badge: {
base: { borderRadius: "var(--radius-element)" },
"variant:warning": {
backgroundColor: "color-mix(in srgb, var(--color-text-warning) 10%, transparent)",
color: "var(--color-text-warning)",
},
},
},
});