-
Notifications
You must be signed in to change notification settings - Fork 615
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(colors): hard-code colors as tailwindcss/colors is different
- Loading branch information
1 parent
541bcf6
commit f67fdb7
Showing
1 changed file
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,21 @@ | ||
import colors from 'tailwindcss/colors.js' | ||
import { without, kebabCase } from 'lodash-es' | ||
|
||
export const safeColors = without(Object.keys(colors).map(kebabCase), 'inherit', 'current', 'transparent', 'black', 'white', 'gray') | ||
export const safeColors = [ | ||
'rose', | ||
'pink', | ||
'fuchsia', | ||
'purple', | ||
'violet', | ||
'indigo', | ||
'blue', | ||
'sky', | ||
'cyan', | ||
'teal', | ||
'emerald', | ||
'green', | ||
'lime', | ||
'yellow', | ||
'amber', | ||
'orange', | ||
'red' | ||
] | ||
|
||
export const safeColorsAsRegex = safeColors.join('|') |
f67fdb7
There was a problem hiding this comment.
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: