Skip to content

Commit

Permalink
feat(watch): add new badge color for docs resources (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdarchen authored Jul 22, 2024
1 parent 1b7cc57 commit 986ecd8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/watch/watchResource.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ const VariantMapping = {
color: 'blue',
emoji: '📙',
},
Docs: {
color: 'fuchsia',
emoji: '📚',
},
} as const

type Props = {
Expand Down
10 changes: 10 additions & 0 deletions src/components/badge/Badge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type BadgeVariant =
| 'red'
| 'yellow'
| 'white'
| 'purple'

type Props = PropsWithChildren<{
variant?: BadgeVariant
Expand All @@ -24,6 +25,15 @@ const badge = tv({
teal: 'bg-teal-100 text-teal-800 dark:bg-teal-800/30 dark:text-teal-500',
blue: 'bg-blue-100 text-blue-800 dark:bg-blue-800/30 dark:text-blue-500',
red: 'bg-red-100 text-red-800 dark:bg-red-800/30 dark:text-red-500',
green:
'bg-green-100 text-green-800 dark:bg-green-800/30 dark:text-green-500',
orange:
'bg-orange-100 text-orange-800 dark:bg-orange-800/30 dark:text-orange-500',
fuchsia:
'bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-800/30 dark:text-fuchsia-500',
pink: 'bg-pink-100 text-pink-800 dark:bg-pink-800/30 dark:text-pink-500',
purple:
'bg-purple-100 text-purple-800 dark:bg-purple-800/30 dark:text-purple-500',
yellow:
'bg-yellow-100 text-yellow-800 dark:bg-yellow-800/30 dark:text-yellow-500',
white: 'bg-white/10 text-white',
Expand Down

0 comments on commit 986ecd8

Please sign in to comment.