franken-ui
Version:
Franken UI is an HTML-first, open-source library of UI components based on the utility-first Tailwind CSS with UIkit 3 compatibility. The design is based on shadcn/ui ported to be framework-agnostic.
44 lines (43 loc) • 1.93 kB
JavaScript
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))',
input: 'hsl(var(--input))',
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))',
'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)]
};
}