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:
Dhruv
2024-02-26 16:19:21 -06:00
committed by doprz
parent 07ec5abc3e
commit 87799d8f02
4 changed files with 43 additions and 87 deletions

View 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));