fix(module): stop using tailwind's shorthand arbitrary variable syntax (#2366)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Sandro Circi
2024-10-14 10:42:26 +02:00
committed by GitHub
parent ea07dffdd5
commit dcce571cda
131 changed files with 3724 additions and 3724 deletions

View File

@@ -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: {