Skip to content

Commit

Permalink
fix(Button): same size when no label + uniformize form elements
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jun 6, 2023
1 parent 19b1495 commit a6903df
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions src/runtime/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,32 +129,32 @@ const button = {
xs: 'text-xs',
sm: 'text-sm',
md: 'text-sm',
lg: 'text-base',
lg: 'text-sm',
xl: 'text-base'
},
gap: {
'2xs': 'gap-x-1',
xs: 'gap-x-1.5',
sm: 'gap-x-2',
sm: 'gap-x-1.5',
md: 'gap-x-2',
lg: 'gap-x-2',
xl: 'gap-x-2'
lg: 'gap-x-2.5',
xl: 'gap-x-2.5'
},
padding: {
'2xs': 'px-2 py-1',
xs: 'px-2.5 py-1.5',
sm: 'px-3 py-1.5',
sm: 'px-2.5 py-1.5',
md: 'px-3 py-2',
lg: 'px-4 py-2',
xl: 'px-4 py-3'
lg: 'px-3.5 py-2.5',
xl: 'px-3.5 py-2.5'
},
square: {
'2xs': 'p-1',
xs: 'p-1.5',
sm: 'p-1.5',
md: 'p-2',
lg: 'p-2',
xl: 'p-3'
lg: 'p-2.5',
xl: 'p-2.5'
},
color: {
white: {
Expand All @@ -181,9 +181,9 @@ const button = {
icon: {
base: 'flex-shrink-0',
size: {
'2xs': 'h-3.5 w-3.5',
'2xs': 'h-4 w-4',
xs: 'h-4 w-4',
sm: 'h-4 w-4',
sm: 'h-5 w-5',
md: 'h-5 w-5',
lg: 'h-5 w-5',
xl: 'h-6 w-6'
Expand Down Expand Up @@ -277,7 +277,7 @@ const input = {
xs: 'text-xs',
sm: 'text-sm',
md: 'text-sm',
lg: 'text-base',
lg: 'text-sm',
xl: 'text-base'
},
gap: {
Expand All @@ -291,14 +291,14 @@ const input = {
padding: {
'2xs': 'px-2 py-1',
xs: 'px-2.5 py-1.5',
sm: 'px-3 py-1.5',
sm: 'px-2.5 py-1.5',
md: 'px-3 py-2',
lg: 'px-4 py-2',
xl: 'px-4 py-3'
lg: 'px-3.5 py-2.5',
xl: 'px-3.5 py-2.5'
},
leading: {
padding: {
'2xs': 'pl-[26px]',
'2xs': 'pl-7',
xs: 'pl-8',
sm: 'pl-9',
md: 'pl-10',
Expand All @@ -308,7 +308,7 @@ const input = {
},
trailing: {
padding: {
'2xs': 'pr-[26px]',
'2xs': 'pr-7',
xs: 'pr-8',
sm: 'pr-9',
md: 'pr-10',
Expand All @@ -332,9 +332,9 @@ const input = {
base: 'flex-shrink-0 text-gray-400 dark:text-gray-500',
color: 'text-{color}-500 dark:text-{color}-400',
size: {
'2xs': 'h-3.5 w-3.5',
'2xs': 'h-4 w-4',
xs: 'h-4 w-4',
sm: 'h-4 w-4',
sm: 'h-5 w-5',
md: 'h-5 w-5',
lg: 'h-5 w-5',
xl: 'h-6 w-6'
Expand All @@ -345,10 +345,10 @@ const input = {
padding: {
'2xs': 'pl-2',
xs: 'pl-2.5',
sm: 'pl-3',
sm: 'pl-2.5',
md: 'pl-3',
lg: 'pl-4',
xl: 'pl-4'
lg: 'pl-3.5',
xl: 'pl-3.5'
}
},
trailing: {
Expand All @@ -357,10 +357,10 @@ const input = {
padding: {
'2xs': 'pr-2',
xs: 'pr-2.5',
sm: 'pr-3',
sm: 'pr-2.5',
md: 'pr-3',
lg: 'pr-4',
xl: 'pr-4'
lg: 'pr-3.5',
xl: 'pr-3.5'
}
}
},
Expand Down

1 comment on commit a6903df

@vercel
Copy link

@vercel vercel bot commented on a6903df Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ui – ./

ui-git-dev-nuxtlabs.vercel.app
ui-nuxtlabs.vercel.app
ui.nuxtlabs.com

Please sign in to comment.