@lchase/kiln 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/serve.css +993 -310
- package/assets/serve.js +485 -60
- package/dist/config.js +3 -1
- package/dist/icons.js +41 -0
- package/dist/schemas.js +19 -0
- package/dist/serve-page.js +121 -45
- package/dist/serve.js +19 -18
- package/dist/settings.js +7 -0
- package/dist/theme.js +35 -0
- package/package.json +1 -1
package/dist/theme.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Board color themes. Each id matches a `theme:<id>` block in `assets/serve.css`.
|
|
3
|
+
* Missing or unknown values resolve to `kiln`.
|
|
4
|
+
*/
|
|
5
|
+
export const BOARD_THEME_IDS = [
|
|
6
|
+
"kiln",
|
|
7
|
+
"nord",
|
|
8
|
+
"gruvbox-dark",
|
|
9
|
+
"gruvbox-light",
|
|
10
|
+
"catppuccin-mocha",
|
|
11
|
+
"catppuccin-macchiato",
|
|
12
|
+
"catppuccin-frappe",
|
|
13
|
+
"catppuccin-latte",
|
|
14
|
+
"monospace-dark",
|
|
15
|
+
"monospace-light",
|
|
16
|
+
];
|
|
17
|
+
export const DEFAULT_BOARD_THEME = "kiln";
|
|
18
|
+
export const BOARD_THEME_CHOICES = [
|
|
19
|
+
{ id: "kiln", label: "Kiln" },
|
|
20
|
+
{ id: "nord", label: "Nord" },
|
|
21
|
+
{ id: "gruvbox-dark", label: "Gruvbox Dark" },
|
|
22
|
+
{ id: "gruvbox-light", label: "Gruvbox Light" },
|
|
23
|
+
{ id: "catppuccin-mocha", label: "Catppuccin Mocha" },
|
|
24
|
+
{ id: "catppuccin-macchiato", label: "Catppuccin Macchiato" },
|
|
25
|
+
{ id: "catppuccin-frappe", label: "Catppuccin Frappé" },
|
|
26
|
+
{ id: "catppuccin-latte", label: "Catppuccin Latte" },
|
|
27
|
+
{ id: "monospace-dark", label: "Monospace Dark" },
|
|
28
|
+
{ id: "monospace-light", label: "Monospace Light" },
|
|
29
|
+
];
|
|
30
|
+
export function resolveBoardTheme(value) {
|
|
31
|
+
if (typeof value === "string" && BOARD_THEME_IDS.includes(value)) {
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
return DEFAULT_BOARD_THEME;
|
|
35
|
+
}
|