shadcn base
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { clsx, type ClassValue } from 'clsx';
|
||||
import { extendTailwindMerge } from 'tailwind-merge';
|
||||
|
||||
// Teach tailwind-merge the custom font-size and shadow scales, so `text-sm` vs
|
||||
// `text-fg-muted` and `shadow-focus` vs `shadow-xs` resolve as intended.
|
||||
const twMerge = extendTailwindMerge({
|
||||
extend: {
|
||||
theme: {
|
||||
text: ['2xs', 'md', 'display', 'hero'],
|
||||
shadow: ['popover', 'menu', 'dropdown', 'dialog', 'toast', 'seg', 'bevel', 'nav-active', 'focus', 'side', 'primary', 'primary-flat'],
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs));
|
||||
}
|
||||
Reference in New Issue
Block a user