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

@@ -5,23 +5,20 @@ export default (config: { colors: string[] }) => ({
},
variants: {
size: {
'2xs': {
xs: {
base: 'text-xs gap-x-1 px-2 py-1'
},
'xs': {
sm: {
base: 'text-sm gap-x-1.5 px-2.5 py-1'
},
'sm': {
md: {
base: 'text-sm gap-x-1.5 px-2.5 py-1.5'
},
'md': {
lg: {
base: 'text-sm gap-x-1.5 px-3 py-2'
},
'lg': {
xl: {
base: 'text-sm gap-x-2.5 px-3.5 py-2.5'
},
'xl': {
base: 'text-base gap-x-2.5 px-3.5 py-2.5'
}
},
variant: {
@@ -50,7 +47,7 @@ export default (config: { colors: string[] }) => ({
}
],
defaultVariants: {
size: 'sm',
size: 'md',
color: 'white',
variant: 'outline'
}