Skip to content

Commit

Permalink
feat(ButtonAction): redesign config
Browse files Browse the repository at this point in the history
  • Loading branch information
driss-chelouati committed Dec 5, 2023
1 parent 14eface commit 8ca4e38
Showing 1 changed file with 179 additions and 0 deletions.
179 changes: 179 additions & 0 deletions src/plugins/components/button-action/button-action.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,184 @@
export const key = 'buttonAction' as const

export const config = {
rounded: {
none: 'none',
sm: 'sm',
md: 'md',
lg: 'lg',
full: 'full',
},
text: {
font: {
family: 'sans',
weight: 'normal',
size: 'sm',
},
},
color: {
default: {
font: {
color: {
light: 'muted-700',
dark: 'muted-100',
},
},
background: {
base: {
light: 'white',
dark: 'muted-700',
},
hover: {
light: 'muted-50',
dark: 'muted-600',
},
active: {
light: 'muted-100',
dark: 'muted-700',
},
},
border: {
light: 'muted-300',
dark: 'muted-600',
},
},
muted: {
font: {
color: {
light: 'muted-500',
dark: 'muted-100',
},
},
background: {
base: {
light: 'muted-200',
dark: 'muted-700/40',
},
hover: {
light: 'muted-100',
dark: 'muted-700/60',
},
active: {
light: 'muted-200/50',
dark: 'muted-800',
},
},
border: {
light: 'muted-200',
dark: 'muted-700/40',
},
},
info: {
font: {
color: {
light: 'white',
dark: 'white',
},
},
background: {
base: {
light: 'info-500',
dark: 'info-500',
},
hover: {
light: 'info-400',
dark: 'info-400',
},
active: {
light: 'info-500',
dark: 'info-500',
},
},
border: {
light: 'info-500',
dark: 'info-500',
},
},
success: {
font: {
color: {
light: 'white',
dark: 'white',
},
},
background: {
base: {
light: 'success-500',
dark: 'success-500',
},
hover: {
light: 'success-400',
dark: 'success-400',
},
active: {
light: 'success-500',
dark: 'success-500',
},
},
border: {
light: 'success-500',
dark: 'success-500',
},
},
warning: {
font: {
color: {
light: 'white',
dark: 'white',
},
},
background: {
base: {
light: 'warning-500',
dark: 'warning-500',
},
hover: {
light: 'warning-400',
dark: 'warning-400',
},
active: {
light: 'warning-500',
dark: 'warning-500',
},
},
border: {
light: 'warning-500',
dark: 'warning-500',
},
},
danger: {
font: {
color: {
light: 'white',
dark: 'white',
},
},
background: {
base: {
light: 'danger-500',
dark: 'danger-500',
},
hover: {
light: 'danger-400',
dark: 'danger-400',
},
active: {
light: 'danger-500',
dark: 'danger-500',
},
},
border: {
light: 'danger-500',
dark: 'danger-500',
},
},
},
transition: {
property: 'all',
duration: '300',
},
}

export const defaultConfig = {
font: 'normal',
text: 'sm',
Expand Down

0 comments on commit 8ca4e38

Please sign in to comment.