feat: fix icons on PopupMain and convert to tailwind (#108)
* feat: fix icons on PopupMain * fix: use text-white * fix: move TestColors * fix: convert to tailwind * fix: finish moving TestColors out * chore: add path alias * chore: lint PR * feat: create storybook.ts and move tailwindColorways there --------- Co-authored-by: doprz <52579214+doprz@users.noreply.github.com>
This commit is contained in:
9
src/shared/util/storybook.ts
Normal file
9
src/shared/util/storybook.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { theme } from 'unocss/preset-mini';
|
||||
|
||||
import { getCourseColors } from './colors';
|
||||
|
||||
export const tailwindColorways = Object.keys(theme.colors)
|
||||
// check that the color is a colorway (is an object)
|
||||
.filter(color => typeof theme.colors[color] === 'object')
|
||||
.slice(0, 17)
|
||||
.map(color => getCourseColors(color as keyof typeof theme.colors));
|
||||
Reference in New Issue
Block a user