// Opencode — 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/opencode.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 opencodeTheme = defineTheme({ name: 'opencode-measured', color: {accent: '#3D50F5', neutralStyle: 'warm'}, typography: { scale: {base: 14, ratio: 1.23}, body: {family: 'Arial', fallbacks: '-apple-system, BlinkMacSystemFont, sans-serif'}, heading: {family: 'Arial', fallbacks: '-apple-system, BlinkMacSystemFont, sans-serif', weight: 500}, }, radius: {base: 4, multiplier: 1}, motion: {fast: 200, medium: 400, easing: 'cubic-bezier(0.25, 0.46, 0.45, 0.94)'}, tokens: { // measured page colors, pinned explicitly (scale-generated values drift on // near-neutral accents — SPIKE finding); single-scheme brands keep one value. '--color-accent': '#3D50F5', '--color-background-body': ['#FDFCFC', '#131010'], '--color-background-surface': '#F3F2F2', '--color-text-primary': ['#646262', '#B8B2B2'], '--text-heading-1-size': '26px', '--text-heading-1-weight': '500', '--text-heading-2-size': '22px', '--text-heading-2-weight': '500', '--text-heading-3-size': '18px', '--text-heading-3-weight': '500', }, components: { button: { base: {borderRadius: '4px', fontWeight: '400'}, }, }, });