// Play — 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/play.grafana.org // 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 playTheme = defineTheme({ name: 'play-measured', color: {accent: '#F9A825', neutralStyle: 'cool'}, typography: { scale: {base: 14, ratio: 1.26}, body: {family: 'Inter', fallbacks: '-apple-system, BlinkMacSystemFont, sans-serif', url: 'https://fonts.googleapis.com/css2?family=Inter:wght@300..800&display=swap'}, heading: {family: 'Inter', fallbacks: '-apple-system, BlinkMacSystemFont, sans-serif', url: 'https://fonts.googleapis.com/css2?family=Inter:wght@300..800&display=swap', weight: 500}, }, radius: {base: 6, multiplier: 1}, motion: {fast: 200, medium: 300, easing: 'cubic-bezier(0.4, 0, 0.2, 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': '#F9A825', '--color-background-body': '#111217', '--color-background-surface': '#1C1D22', '--color-text-primary': '#CCCCDC', '--text-heading-1-size': '28px', '--text-heading-1-weight': '500', '--text-heading-2-size': '18px', '--text-heading-2-weight': '400', '--text-heading-3-size': '17px', '--text-heading-3-weight': '400', }, components: { button: { base: {borderRadius: '8px', fontWeight: '700'}, hover: {backgroundColor: '#FFCC00'}, // measured :hover, driven live }, }, });