mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 23:40:39 +01:00
fix(module): stop using tailwind's shorthand arbitrary variable syntax (#2366)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ export default (options: Required<ModuleOptions>) => ({
|
||||
slots: {
|
||||
root: 'flex items-center align-center text-center',
|
||||
border: '',
|
||||
container: 'font-medium text-[--ui-text] flex',
|
||||
container: 'font-medium text-[var(--ui-text)] flex',
|
||||
icon: 'shrink-0 size-5',
|
||||
avatar: 'shrink-0',
|
||||
avatarSize: '2xs',
|
||||
@@ -12,8 +12,8 @@ export default (options: Required<ModuleOptions>) => ({
|
||||
},
|
||||
variants: {
|
||||
color: {
|
||||
...Object.fromEntries((options.theme.colors || []).map((color: string) => [color, { border: `border-[--ui-${color}]` }])),
|
||||
neutral: { border: 'border-[--ui-border]' }
|
||||
...Object.fromEntries((options.theme.colors || []).map((color: string) => [color, { border: `border-[var(--ui-${color})]` }])),
|
||||
neutral: { border: 'border-[var(--ui-border)]' }
|
||||
},
|
||||
orientation: {
|
||||
horizontal: {
|
||||
|
||||
Reference in New Issue
Block a user