UNPKG

franken-ui

Version:

Franken UI is an HTML-first UI component library built on UIkit 3 and extended with LitElement, inspired by shadcn/ui.

44 lines (43 loc) 2 kB
import defaultTheme from 'tailwindcss/defaultTheme.js'; import ui from '../index.js'; export default function (options = {}) { return { darkMode: 'class', theme: { extend: { colors: { background: 'hsl(var(--background))', foreground: 'hsl(var(--foreground))', muted: 'hsl(var(--muted))', 'muted-foreground': 'hsl(var(--muted-foreground))', card: 'hsl(var(--card))', 'card-foreground': 'hsl(var(--card-foreground))', popover: 'hsl(var(--popover))', 'popover-foreground': 'hsl(var(--popover-foreground))', border: 'hsl(var(--border) / var(--border-alpha, 1))', input: 'hsl(var(--input) / var(--input-alpha, 1))', primary: 'hsl(var(--primary))', 'primary-foreground': 'hsl(var(--primary-foreground))', secondary: 'hsl(var(--secondary))', 'secondary-foreground': 'hsl(var(--secondary-foreground))', accent: 'hsl(var(--accent))', 'accent-foreground': 'hsl(var(--accent-foreground))', destructive: 'hsl(var(--destructive) / var(--destructive-alpha, 1))', 'destructive-foreground': 'hsl(var(--destructive-foreground))', ring: 'hsl(var(--ring))' }, fontFamily: { 'geist-sans': ['Geist Sans', ...defaultTheme.fontFamily.sans], 'geist-mono': ['Geist Mono', ...defaultTheme.fontFamily.mono] }, screens: { 'max-sm': { max: '640px' }, 'max-md': { max: '768px' }, 'max-lg': { max: '1024px' }, 'max-xl': { max: '1280px' } } } }, plugins: [ui(options)] }; }