All files / shared/themes/default tokens.ts

0% Statements 0/1
100% Branches 0/0
100% Functions 0/0
0% Lines 0/1

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41                                                                                 
import type { ThemeDefinition } from '../src/types';
 
export const defaultTheme: ThemeDefinition = {
  name: 'default',
  version: 1,
  radix: { appearance: 'light', accentColor: 'blue', grayColor: 'slate', radius: 'large' },
  cssVars: {
    '--bt-color-accent-9': '#1d4ed8',
    '--bt-color-border': 'var(--gray-6)',
    '--bt-text': 'var(--gray-12)',
    '--bt-bg': 'white',
    '--bt-scroll-thumb': 'rgba(0,0,0,0.25)',
    '--bt-scroll-track': 'transparent',
    '--bt-panel-bg': 'var(--gray-1)',
    '--bt-focus-ring': '2px solid #3b82f6',
  },
  typography: {
    base: "Inter, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif",
    heading: 'inherit',
    sizes: { '1': '12px', '2': '14px', '3': '16px', '4': '18px' },
    lineHeights: { '1': '16px', '2': '20px', '3': '22px', '4': '24px' },
    weights: { regular: 400, medium: 500, bold: 700 },
  },
  spacing: { '1': '4px', '2': '8px', '3': '12px', '4': '16px', '5': '20px' },
  radii: { sm: '6px', md: '10px', lg: '14px', rounded: '999px' },
  borders: { widths: { '1': '1px', '2': '2px' }, color: 'var(--gray-6)', focusRing: '0 0 0 2px var(--bt-color-accent-9)' },
  density: 'comfortable',
  controls: {
    heights: { sm: '28px', md: '34px', lg: '40px' },
    gaps: { sm: '6px', md: '8px', lg: '10px' },
    icon: { sm: '14px', md: '16px', lg: '20px' },
  },
  motion: {
    durations: { fast: '120ms', normal: '180ms' },
    easings: { standard: 'cubic-bezier(0.2, 0, 0, 1)' },
  },
  icons: { pack: 'lucide' },
};