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

@@ -12,35 +12,30 @@ export default (config: { colors: string[] }) => ({
variants: {
color: Object.fromEntries(config.colors.map((color: string) => [color, `focus-visible:outline-${color}-500 dark:focus-visible:outline-${color}-400`])),
size: {
'2xs': {
xs: {
base: 'size-3',
container: 'h-4',
wrapper: 'text-xs'
},
'xs': {
sm: {
base: 'size-3.5',
container: 'h-4',
wrapper: 'text-xs'
},
'sm': {
md: {
base: 'size-4',
container: 'h-5',
wrapper: 'text-sm'
},
'md': {
base: 'size-[18px]',
lg: {
base: 'size-4.5',
container: 'h-5',
wrapper: 'text-sm'
},
'lg': {
xl: {
base: 'size-5',
container: 'h-6',
wrapper: 'text-base'
},
'xl': {
base: 'size-[22px]',
container: 'h-6',
wrapper: 'text-base'
}
},
required: {
@@ -73,7 +68,7 @@ export default (config: { colors: string[] }) => ({
}
])),
defaultVariants: {
size: 'sm',
size: 'md',
color: 'primary'
}
})