mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-19 22:41:42 +01:00
feat: uniformize components sizes (#68)
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user