Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ dev
local_output
diff.txt

docs/*
docs/*
.claude
36 changes: 36 additions & 0 deletions src/common/utils/cn.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import { type ClassValue, clsx } from 'clsx'
import { extendTailwindMerge } from 'tailwind-merge'
const twMerge = extendTailwindMerge<'wg-backdrop'>({
extend: {
classGroups: {
'wg-backdrop': ['bg-glass'],

'bg-color': ['bg-widget', 'bg-content', 'bg-raised'],
'text-color': ['text-strong', 'text-content', 'text-muted', 'text-subtle'],
'border-color': ['border-content', 'border-strong'],

rounded: ['rounded-widget', 'rounded-card'],
shadow: ['elevation-sm', 'elevation', 'elevation-lg'],
transition: ['transition-ui'],
'outline-style': ['focus-ring'],
z: [
'z-base',
'z-raised',
'z-sticky',
'z-drag',
'z-nav',
'z-backdrop',
'z-sheet',
'z-modal',
'z-popover',
'z-tooltip',
'z-toast',
'z-pet',
],
},
},
})

export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
Loading