Skip to content

Commit

Permalink
refactor(themes): reorder color groups
Browse files Browse the repository at this point in the history
  • Loading branch information
kripod committed Jul 13, 2024
1 parent 837526b commit 1319d41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ function oklchCoords(color: string) {
}

type ColorGroup =
| "accent"
| "neutral"
| "accent"
| "info"
| "danger"
| "success"
Expand Down Expand Up @@ -45,17 +45,17 @@ function colorFamily<T extends ColorGroup>(
interface Theme extends ColorFamily<ColorGroup> {}

export const lightTheme = {
...colorFamily("accent", colors.indigo),
...colorFamily("neutral", colors.zinc),
...colorFamily("accent", colors.indigo),
...colorFamily("info", colors.blue),
...colorFamily("danger", colors.red),
...colorFamily("success", colors.emerald),
...colorFamily("warning", colors.yellow),
} as const satisfies Theme;

export const darkTheme = {
...colorFamily("accent", colors.indigo, { invert: true }),
...colorFamily("neutral", colors.zinc, { invert: true }),
...colorFamily("accent", colors.indigo, { invert: true }),
...colorFamily("info", colors.blue, { invert: true }),
...colorFamily("danger", colors.red, { invert: true }),
...colorFamily("success", colors.emerald, { invert: true }),
Expand Down

0 comments on commit 1319d41

Please sign in to comment.