diff --git a/.changeset/eleven-bikes-approve.md b/.changeset/eleven-bikes-approve.md new file mode 100644 index 00000000..895ce886 --- /dev/null +++ b/.changeset/eleven-bikes-approve.md @@ -0,0 +1,6 @@ +--- +'@crossed/theme': patch +'@crossed/ui': patch +--- + +fix button style diff --git a/packages/theme/src/dark/theme.ts b/packages/theme/src/dark/theme.ts index cf6eed97..9622a35c 100644 --- a/packages/theme/src/dark/theme.ts +++ b/packages/theme/src/dark/theme.ts @@ -71,42 +71,47 @@ export default { border: colors.primary[60], }, focus: { - text: colors.white, - icon: colors.white, - background: colors.primary[60], - border: colors.primary[60], + text: '', + icon: '', + background: colors.primary[0], + border: colors.primary[40], }, disabled: { - text: colors.primary[80], - icon: colors.primary[80], + text: colors.neutral[80], + icon: colors.neutral[80], background: colors.primary[100], border: colors.primary[100], }, }, secondary: { default: { - text: colors.primary.primary, - icon: colors.primary.primary, - background: colors.neutral['60'], - border: colors.neutral['60'], + text: colors.primary[40], + icon: colors.primary[40], + background: colors.neutral[60], + border: colors.neutral[60], }, hover: { - text: colors.primary.primary, - icon: colors.primary.primary, - background: colors.neutral['50'], - border: colors.neutral['50'], + text: colors.primary[40], + icon: colors.primary[40], + background: colors.neutral[50], + border: colors.neutral[50], }, active: { - text: colors.primary.primary, - icon: colors.primary.primary, - background: colors.neutral['60'], - border: colors.neutral['50'], + text: colors.primary[40], + icon: colors.primary[40], + background: colors.neutral[60], + border: colors.neutral[40], + }, + focus: { + text: '', + icon: '', + background: colors.neutral[60], + border: colors.primary[40], }, - focus: { background: '', text: '', icon: '', border: '' }, disabled: { - text: colors.primary[10], - icon: colors.primary[10], - background: colors.primary[40], + text: colors.primary[40], + icon: colors.primary[40], + background: colors.neutral[60], border: colors.primary[40], }, }, @@ -120,7 +125,7 @@ export default { hover: { text: colors.primary[30], icon: colors.primary[30], - background: 'transparent', + background: colors.neutral['60'], border: 'transparent', }, active: { @@ -129,10 +134,15 @@ export default { background: 'transparent', border: 'transparent', }, - focus: { background: '', text: '', icon: '', border: '' }, + focus: { + text: '', + icon: '', + background: colors.primary['70'], + border: colors.primary[40], + }, disabled: { - text: colors.primary[80], - icon: colors.primary[80], + text: colors.neutral[80], + icon: colors.neutral[80], background: 'transparent', border: 'transparent', }, diff --git a/packages/theme/src/light/theme.ts b/packages/theme/src/light/theme.ts index 3d35ab95..49124937 100644 --- a/packages/theme/src/light/theme.ts +++ b/packages/theme/src/light/theme.ts @@ -70,7 +70,12 @@ export default { background: colors.primary[60], border: colors.primary[60], }, - focus: { background: '', text: '', icon: '', border: '' }, + focus: { + background: colors.primary[60], + text: '', + icon: '', + border: colors.primary[40], + }, disabled: { text: colors.primary[10], icon: colors.primary[10], @@ -95,9 +100,14 @@ export default { text: colors.primary.primary, icon: colors.primary.primary, background: colors.neutral['60'], - border: colors.neutral['50'], + border: colors.neutral['40'], + }, + focus: { + background: colors.neutral['60'], + text: '', + icon: '', + border: colors.primary.primary, }, - focus: { background: '', text: '', icon: '', border: '' }, disabled: { text: colors.primary[10], icon: colors.primary[10], @@ -115,7 +125,7 @@ export default { hover: { text: colors.primary[50], icon: colors.primary[50], - background: 'transparent', + background: colors.neutral[60], border: 'transparent', }, active: { @@ -124,10 +134,15 @@ export default { background: 'transparent', border: 'transparent', }, - focus: { background: '', text: '', icon: '', border: '' }, + focus: { + text: '', + icon: '', + background: colors.primary[10], + border: colors.primary[40], + }, disabled: { - text: colors.primary[10], - icon: colors.primary[10], + text: colors.neutral[80], + icon: colors.neutral[80], background: 'transparent', border: 'transparent', }, diff --git a/packages/theme/src/neutral.ts b/packages/theme/src/neutral.ts index 22301621..d24ace98 100644 --- a/packages/theme/src/neutral.ts +++ b/packages/theme/src/neutral.ts @@ -12,4 +12,5 @@ export const neutral = { 70: '#AEB6CE', 60: '#E8E6FF', 50: '#D1CDFF', + 40: '#BCB6FF', } as const; diff --git a/packages/ui/src/buttons/Button/__tests__/__snapshots__/Button.spec.tsx.snap b/packages/ui/src/buttons/Button/__tests__/__snapshots__/Button.spec.tsx.snap index 02bb4dad..b3bab312 100644 --- a/packages/ui/src/buttons/Button/__tests__/__snapshots__/Button.spec.tsx.snap +++ b/packages/ui/src/buttons/Button/__tests__/__snapshots__/Button.spec.tsx.snap @@ -3,7 +3,7 @@ exports[`Button applies the correct styles for lg size 1`] = `