// Tradingview — 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/tradingview.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 tradingviewTheme = defineTheme({ name: 'tradingview-measured', color: {accent: '#2E2E2E', neutralStyle: 'cool'}, typography: { scale: {base: 16, ratio: 1.3}, body: {family: '-apple-system', fallbacks: '-apple-system, BlinkMacSystemFont, sans-serif'}, heading: {family: 'EuclidCircularSemibold', fallbacks: 'Newsreader, sans-serif', url: 'https://fonts.googleapis.com/css2?family=Newsreader:wght@300..800&display=swap', weight: 600}, }, radius: {base: 20, multiplier: 1}, motion: {fast: 300, medium: 500, easing: 'cubic-bezier(0.45, 1.45, 0.8, 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': '#2E2E2E', '--color-background-body': '#0A0A0B', '--color-background-surface': '#171718', '--color-text-primary': '#EDEDEE', '--text-heading-1-size': '64px', '--text-heading-1-weight': '600', '--text-heading-2-size': '36px', '--text-heading-2-weight': '600', '--text-heading-3-size': '28px', '--text-heading-3-weight': '600', }, components: { button: { base: {borderRadius: '20px', fontWeight: '400'}, }, }, });