feat: uniformize components sizes (#68)

This commit is contained in:
Benjamin Canac
2024-04-16 12:26:29 +02:00
committed by GitHub
parent 78e45600de
commit f302a15972
96 changed files with 1854 additions and 1720 deletions

View File

@@ -27,12 +27,11 @@ export default (config: { colors: string[] }) => ({
}
},
size: {
'2xs': '',
'xs': '',
'sm': '',
'md': '',
'lg': '',
'xl': ''
xs: '',
sm: '',
md: '',
lg: '',
xl: ''
},
type: {
solid: {
@@ -48,56 +47,48 @@ export default (config: { colors: string[] }) => ({
},
compoundVariants: [{
orientation: 'horizontal',
size: '2xs',
size: 'xs',
class: { border: 'border-t' }
}, {
orientation: 'horizontal',
size: 'xs',
size: 'sm',
class: { border: 'border-t-[2px]' }
}, {
orientation: 'horizontal',
size: 'sm',
size: 'md',
class: { border: 'border-t-[3px]' }
}, {
orientation: 'horizontal',
size: 'md',
size: 'lg',
class: { border: 'border-t-[4px]' }
}, {
orientation: 'horizontal',
size: 'lg',
class: { border: 'border-t-[5px]' }
}, {
orientation: 'horizontal',
size: 'xl',
class: { border: 'border-t-[6px]' }
}, {
orientation: 'vertical',
size: '2xs',
class: { border: 'border-s' }
class: { border: 'border-t-[5px]' }
}, {
orientation: 'vertical',
size: 'xs',
class: { border: 'border-s-[2px]' }
class: { border: 'border-s' }
}, {
orientation: 'vertical',
size: 'sm',
class: { border: 'border-s-[3px]' }
class: { border: 'border-s-[2px]' }
}, {
orientation: 'vertical',
size: 'md',
class: { border: 'border-s-[4px]' }
class: { border: 'border-s-[3px]' }
}, {
orientation: 'vertical',
size: 'lg',
class: { border: 'border-s-[5px]' }
class: { border: 'border-s-[4px]' }
}, {
orientation: 'vertical',
size: 'xl',
class: { border: 'border-s-[6px]' }
class: { border: 'border-s-[5px]' }
}],
defaultVariants: {
color: 'gray',
size: '2xs',
size: 'xs',
type: 'solid'
}
})