Skip to content

Commit

Permalink
fix(colors): move primary to safeColors
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Feb 18, 2022
1 parent 6fc9466 commit 3ab0698
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/runtime/presets/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const button = {
acc[color] = `shadow-sm border border-transparent text-white bg-${color}-600 hover:bg-${color}-700 disabled:bg-${color}-600 focus:ring-2 focus:ring-offset-2 focus:ring-${color}-500`
return acc
}, {}),
primary: 'shadow-sm border border-transparent text-white bg-primary-600 hover:bg-primary-700 disabled:bg-primary-600 focus:ring-2 focus:ring-offset-2 focus:ring-primary-500',
secondary: 'border border-transparent text-primary-700 bg-primary-100 hover:bg-primary-200 disabled:bg-primary-100 focus:ring-2 focus:ring-offset-2 focus:ring-primary-500',
white: 'shadow-sm border u-border-gray-300 u-text-gray-700 u-bg-white hover:u-bg-gray-50 disabled:u-bg-white focus:ring-2 focus:ring-offset-2 focus:ring-primary-500',
transparent: 'border border-transparent u-text-gray-500 hover:u-text-gray-700 focus:u-text-gray-700 disabled:hover:u-text-gray-500',
Expand Down
1 change: 1 addition & 0 deletions src/runtime/utils/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export const safeColors = [
'primary',
'rose',
'pink',
'fuchsia',
Expand Down

0 comments on commit 3ab0698

Please sign in to comment.