// GitHub Mobile — 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/github.com // 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 githubmobileTheme = defineTheme({ name: 'github-mobile-measured', color: {accent: '#08872B', neutralStyle: 'cool'}, typography: { scale: {base: 18, ratio: 1.3}, body: {family: 'Mona Sans', fallbacks: 'Newsreader, sans-serif', url: 'https://fonts.googleapis.com/css2?family=Newsreader:wght@300..800&display=swap'}, heading: {family: 'Mona Sans', fallbacks: 'Newsreader, sans-serif', url: 'https://fonts.googleapis.com/css2?family=Newsreader:wght@300..800&display=swap', weight: 425}, }, radius: {base: 12, multiplier: 1}, motion: {fast: 200, medium: 300, easing: 'cubic-bezier(0.165, 0.84, 0.44, 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': '#08872B', '--color-background-body': '#0D1117', '--color-background-surface': '#1A1E24', '--color-text-primary': '#F0F6FC', '--text-heading-1-size': '64px', '--text-heading-1-weight': '425', '--text-heading-2-size': '40px', '--text-heading-2-weight': '460', '--text-heading-3-size': '22px', '--text-heading-3-weight': '480', }, components: { button: { base: {borderRadius: '6px', fontWeight: '400'}, hover: {backgroundColor: 'color(srgb 0.0263529 0.444706 0.141647)'}, // measured :hover, driven live }, }, });