design system token v0.6

This commit is contained in:
Juan
2026-04-16 11:30:28 -05:00
parent 64d7df1439
commit ae3d219d58
9 changed files with 185 additions and 10 deletions

View File

@@ -177,6 +177,15 @@ export const COMPONENT_CATALOG: ComponentSpec[] = [
props: 'variant?: "default" | "outline"; size?: "default" | "sm" | "lg"; pressed?: boolean',
example: '<Toggle aria-label="Bold"><BoldIcon /></Toggle>',
},
{
name: 'Code',
file: 'components/ui/code.tsx',
category: 'primitives',
exports: ['Code', 'codeVariants'],
description: 'Inline or block code snippet. Always use this instead of hand-rolling <code>/<pre> styling. Uses bg-muted + border-border so the outline stays visible in both light and dark modes. Block variant auto-wraps in <pre> for whitespace preservation and break-all for long commands.',
props: 'variant?: "inline" | "block"; language?: string (optional, for future syntax highlighting)',
example: '<p>Install with <Code>pnpm install</Code>.</p>\n\n<Code variant="block" language="bash">{`pnpm install\npnpm dev`}</Code>',
},
// ── Layout ──────────────────────────────────────────────────────────────
{
name: 'Card',