import { Palette, Type, Layers } from 'lucide-react' // Server component that fetches from studio.blackroad.io/brand async function getBrandData() { try { const resp = await fetch('https://studio.blackroad.io/brand', { next: { revalidate: 3600 } }) if (resp.ok) return (await resp.json()).brand } catch {} return null } export default async function StudioPage() { const brand = await getBrandData() const colors = [ { name: 'Black', hex: '#000000', cls: 'bg-black' }, { name: 'White', hex: '#FFFFFF', cls: 'bg-white border' }, { name: 'Amber', hex: '#F5A623', cls: 'bg-amber-400' }, { name: 'Hot Pink', hex: '#FF1D6C', cls: 'bg-pink-500' }, { name: 'Electric Blue', hex: '#2979FF', cls: 'bg-blue-500' }, { name: 'Violet', hex: '#9C27B0', cls: 'bg-purple-600' }, ] const spacings = [ { name: 'xs', value: '8px', ratio: '1' }, { name: 'sm', value: '13px', ratio: 'φ¹' }, { name: 'md', value: '21px', ratio: 'φ²' }, { name: 'lg', value: '34px', ratio: 'φ³' }, { name: 'xl', value: '55px', ratio: 'φ⁴' }, ] return (

Studio

BlackRoad OS Design System — Brand guidelines & components

{/* Brand Gradient */}
{/* Colors */}

Brand Colors

{colors.map((c) => (
{c.name}
{c.hex}
))}
{/* Spacing */}

Spacing — Golden Ratio (φ = 1.618)

{spacings.map((s) => (
{s.name}
{s.value} {s.ratio}
))}
{/* Typography */}

Typography

{( [ ['3xl', '2rem', 'Display'], ['2xl', '1.618rem', 'Heading'], ['xl', '1.25rem', 'Subheading'], ['base', '1rem', 'Body'], ['sm', '0.875rem', 'Caption'], ] as [string, string, string][] ).map(([size, val, label]) => (
{size} / {val} {label} — BlackRoad OS
))}
{/* CSS Variables */}

CSS Variables

{`@import url('https://studio.blackroad.io/css-vars');

/* Then use: */
color: var(--hot-pink);
background: var(--gradient-brand);
padding: var(--space-md);`}
) }