// Recraft — measured design system as an Astryx theme. // Decoded live from the real page by Mozaika: colors by role, type scale, radius, // motion timings and real hover/press states — measured, not guessed. // Decoded with Mozaika — full system + other formats: mozaika.design/decode/recraft.ai // Usage: … (Astryx needs React 19; // import '@astryxdesign/core/astryx.css'; build for SSR: npx astryx theme build ) import {defineTheme} from '@astryxdesign/core/theme'; export const recraftTheme = defineTheme({ name: 'recraft-measured', color: {accent: '#D2FC31', neutralStyle: 'cool'}, typography: { scale: {base: 19, ratio: 1.3}, body: {family: 'Geist', fallbacks: '-apple-system, BlinkMacSystemFont, sans-serif', url: 'https://fonts.googleapis.com/css2?family=Geist:wght@300..800&display=swap'}, heading: {family: 'ABC Gravity Condensed', fallbacks: 'Newsreader, sans-serif', url: 'https://fonts.googleapis.com/css2?family=Newsreader:wght@300..800&display=swap', weight: 900}, }, radius: {base: 8, multiplier: 1}, tokens: { // measured page colors, pinned explicitly (scale-generated values drift on // near-neutral accents — SPIKE finding); single-scheme brands keep one value. '--color-accent': '#D2FC31', '--color-background-body': '#000000', '--color-background-surface': '#0E0E0E', '--color-text-primary': '#ECECEE', '--text-heading-1-size': '76px', '--text-heading-1-weight': '900', '--text-heading-2-size': '72px', '--text-heading-2-weight': '900', }, components: { button: { base: {borderRadius: '8px', fontWeight: '400'}, hover: {backgroundColor: 'rgba(210, 252, 49, 0.85)'}, // measured :hover, driven live }, }, });