Skip to content

Open-source status page, incident response and uptime monitoring

feat(theme-store): add gruvbox and tomorrow themes (#2599)

Patrick Schratz04a86585406c
diff --git a/packages/theme-store/src/gruvbox.ts b/packages/theme-store/src/gruvbox.ts
new file mode 100644
index 000000000..5f48489c0
--- /dev/null
+++ b/packages/theme-store/src/gruvbox.ts
@@ -0,0 +1,66 @@
+// https://github.com/morhetz/gruvbox — medium contrast, dark and light variants
+
+import type { Theme } from "./types";
+
+export const GRUVBOX_THEME = {
+ id: "gruvbox",
+ name: "Gruvbox",
+ author: { name: "@pat-s", url: "https://github.com/pat-s" },
+ light: {
+ "--radius": "0.25rem",
+
+ "--background": "oklch(95.55% 0.0555 96.15)", // #fbf1c7 light0
+ "--foreground": "oklch(34.41% 0.0066 48.52)", // #3c3836 dark1
+ "--card": "oklch(96.55% 0.0394 100.86)", // #f9f5d7 light0_hard
+ "--card-foreground": "var(--foreground)",
+ "--popover": "var(--card)",
+ "--popover-foreground": "var(--foreground)",
+ "--border": "oklch(82.55% 0.0507 85.12)", // #d5c4a1 light2
+ "--input": "oklch(75.64% 0.041 82.28)", // #bdae93 light3
+ "--ring": "var(--primary)",
+
+ "--primary": "oklch(51.26% 0.1616 39.3)", // #af3a03 neutral orange
+ "--primary-foreground": "var(--background)",
+ "--secondary": "oklch(89.41% 0.0566 89.24)", // #ebdbb2 light1
+ "--secondary-foreground": "var(--foreground)",
+ "--muted": "var(--secondary)",
+ // NOTE: the palette's muted tones are too light on light0 for body-adjacent
+ // text — light4 (#a89984) reaches 2.5:1 and dark4 (#7c6f64) 4.3:1 — so
+ // dark3 (#665c54) is used instead, at 5.7:1.
+ "--muted-foreground": "oklch(48.18% 0.0181 61.04)", // #665c54 dark3
+ "--accent": "var(--secondary)",
+ "--accent-foreground": "var(--foreground)",
+
+ "--success": "oklch(54.63% 0.1124 106.46)", // #79740e neutral green
+ "--destructive": "oklch(43.74% 0.1789 28.26)", // #9d0006 neutral red
+ "--warning": "oklch(61.76% 0.1277 70.67)", // #b57614 neutral yellow
+ "--info": "oklch(47.06% 0.0816 215.81)", // #076678 neutral blue
+ },
+ dark: {
+ "--radius": "0.25rem",
+
+ "--background": "oklch(27.68% 0 89.88)", // #282828 dark0
+ "--foreground": "oklch(89.41% 0.0566 89.24)", // #ebdbb2 light1
+ "--card": "oklch(34.41% 0.0066 48.52)", // #3c3836 dark1
+ "--card-foreground": "var(--foreground)",
+ "--popover": "var(--card)",
+ "--popover-foreground": "var(--foreground)",
+ "--border": "oklch(41.1% 0.0115 51.87)", // #504945 dark2
+ "--input": "oklch(48.18% 0.0181 61.04)", // #665c54 dark3
+ "--ring": "var(--primary)",
+
+ "--primary": "oklch(73.11% 0.182 51.69)", // #fe8019 bright orange
+ "--primary-foreground": "var(--background)",
+ "--secondary": "oklch(41.1% 0.0115 51.87)", // #504945 dark2
+ "--secondary-foreground": "var(--foreground)",
+ "--muted": "var(--secondary)",
+ "--muted-foreground": "oklch(75.64% 0.041 82.28)", // #bdae93 light3
+ "--accent": "var(--secondary)",
+ "--accent-foreground": "var(--foreground)",
+
+ "--success": "oklch(76.52% 0.1581 110.83)", // #b8bb26 bright green
+ "--destructive": "oklch(65.97% 0.2175 30.39)", // #fb4934 bright red
+ "--warning": "oklch(83.25% 0.1595 82.99)", // #fabd2f bright yellow
+ "--info": "oklch(69.27% 0.042 169.77)", // #83a598 bright blue
+ },
+} as const satisfies Theme;
diff --git a/packages/theme-store/src/index.ts b/packages/theme-store/src/index.ts
index a3663f5d0..4262f2f48 100644
--- a/packages/theme-store/src/index.ts
+++ b/packages/theme-store/src/index.ts
@@ -7,9 +7,11 @@ import {
} from "./custom-theme";
import { DRACULA_THEME } from "./dracula";
import { GITHUB_HIGH_CONTRAST_THEME } from "./github";
+import { GRUVBOX_THEME } from "./gruvbox";
import { OPENSTATUS_ROUNDED_THEME, OPENSTATUS_THEME } from "./openstatus";
import { PASSBOLT_THEME } from "./passbolt";
import { SUPABASE_THEME } from "./supabase";
+import { TOMORROW_THEME } from "./tomorrow";
import type { Theme, ThemeDefinition, ThemeMap } from "./types";
import { assertUniqueThemeIds } from "./utils";
// Please keep the themes ordered :)
@@ -20,6 +22,8 @@ const THEMES_LIST = [
GITHUB_HIGH_CONTRAST_THEME,
DRACULA_THEME,
PASSBOLT_THEME,
+ GRUVBOX_THEME,
+ TOMORROW_THEME,
] satisfies Theme[];
// NOTE: runtime validation to ensure that the theme IDs are unique
diff --git a/packages/theme-store/src/tomorrow.ts b/packages/theme-store/src/tomorrow.ts
new file mode 100644
index 000000000..6c20d6168
--- /dev/null
+++ b/packages/theme-store/src/tomorrow.ts
@@ -0,0 +1,69 @@
+// https://github.com/chriskempson/tomorrow-theme
+// Light: Tomorrow. Dark: Tomorrow Night Eighties.
+
+import type { Theme } from "./types";
+
+export const TOMORROW_THEME = {
+ id: "tomorrow",
+ name: "Tomorrow",
+ author: { name: "@pat-s", url: "https://github.com/pat-s" },
+ light: {
+ "--radius": "0.25rem",
+
+ "--background": "oklch(100% 0 89.88)", // #ffffff Background
+ "--foreground": "oklch(41.99% 0.0016 106.47)", // #4d4d4c Foreground
+ "--card": "var(--background)",
+ "--card-foreground": "var(--foreground)",
+ "--popover": "var(--background)",
+ "--popover-foreground": "var(--foreground)",
+ "--border": "oklch(87.61% 0 89.88)", // #d6d6d6 Selection
+ "--input": "var(--border)",
+ "--ring": "var(--primary)",
+
+ // NOTE: Tomorrow's orange (#f5871f) reaches only 4.3:1 on the background,
+ // so it is darkened one step for button and link text.
+ "--primary": "oklch(54.5% 0.1372 51.5)",
+ "--primary-foreground": "var(--background)",
+ "--secondary": "oklch(95.21% 0 89.88)", // #efefef Current Line
+ "--secondary-foreground": "var(--foreground)",
+ "--muted": "var(--secondary)",
+ // NOTE: Comment (#8e908c) reaches only 3.2:1 on the background, so it is
+ // darkened while keeping its hue. --muted-foreground carries body-adjacent
+ // text such as the page description.
+ "--muted-foreground": "oklch(55.05% 0.0054 128.57)", // darkened Comment
+ "--accent": "var(--secondary)",
+ "--accent-foreground": "var(--foreground)",
+
+ "--success": "oklch(59.74% 0.1452 122.21)", // #718c00 Green
+ "--destructive": "oklch(54.23% 0.1955 26.51)", // #c82829 Red
+ "--warning": "oklch(80.29% 0.1641 88.34)", // #eab700 Yellow
+ "--info": "oklch(54.37% 0.109 255.62)", // #4271ae Blue
+ },
+ dark: {
+ "--radius": "0.25rem",
+
+ "--background": "oklch(29.72% 0 89.88)", // #2d2d2d Background
+ "--foreground": "oklch(84.52% 0 89.88)", // #cccccc Foreground
+ "--card": "oklch(34.46% 0 89.88)", // #393939 Current Line
+ "--card-foreground": "var(--foreground)",
+ "--popover": "var(--card)",
+ "--popover-foreground": "var(--foreground)",
+ "--border": "oklch(43.49% 0 89.88)", // #515151 Selection
+ "--input": "var(--border)",
+ "--ring": "var(--primary)",
+
+ "--primary": "oklch(75.62% 0.1455 48.5)", // #f99157 Orange
+ "--primary-foreground": "var(--background)",
+ "--secondary": "var(--card)",
+ "--secondary-foreground": "var(--foreground)",
+ "--muted": "var(--card)",
+ "--muted-foreground": "oklch(68.3% 0 89.88)", // #999999 Comment
+ "--accent": "var(--border)",
+ "--accent-foreground": "var(--foreground)",
+
+ "--success": "oklch(79.6% 0.0889 144.68)", // #99cc99 Green
+ "--destructive": "oklch(71.26% 0.1515 20.16)", // #f2777a Red
+ "--warning": "oklch(87.07% 0.1325 82.74)", // #ffcc66 Yellow
+ "--info": "oklch(66.76% 0.0939 249.39)", // #6699cc Blue
+ },
+} as const satisfies Theme;