@bigpixelrocket/uiok 0.0.0-stage → 0.1.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/CHANGELOG.md +38 -0
- package/LICENSE +21 -0
- package/NOTICE +569 -0
- package/README.md +44 -2
- package/dist/VisuallyHidden.d.ts +13 -0
- package/dist/VisuallyHidden.js +13 -0
- package/dist/activity/ActivityBar.d.ts +29 -0
- package/dist/activity/ActivityBar.js +21 -0
- package/dist/activity/activity.css +43 -0
- package/dist/activity/index.d.ts +2 -0
- package/dist/activity/index.js +2 -0
- package/dist/button/Button.d.ts +26 -0
- package/dist/button/Button.js +14 -0
- package/dist/button/IconButton.d.ts +18 -0
- package/dist/button/IconButton.js +14 -0
- package/dist/button/button.css +95 -0
- package/dist/button/index.d.ts +3 -0
- package/dist/button/index.js +3 -0
- package/dist/charts/Drawing.d.ts +27 -0
- package/dist/charts/Drawing.js +117 -0
- package/dist/charts/Drawing.logic.d.ts +2 -0
- package/dist/charts/Drawing.logic.js +22 -0
- package/dist/charts/Line.logic.d.ts +33 -0
- package/dist/charts/Line.logic.js +72 -0
- package/dist/charts/LineChart.d.ts +34 -0
- package/dist/charts/LineChart.js +100 -0
- package/dist/charts/Pie.logic.d.ts +16 -0
- package/dist/charts/Pie.logic.js +28 -0
- package/dist/charts/PieChart.d.ts +20 -0
- package/dist/charts/PieChart.js +16 -0
- package/dist/charts/ResultChart.d.ts +47 -0
- package/dist/charts/ResultChart.js +175 -0
- package/dist/charts/ResultChart.logic.d.ts +42 -0
- package/dist/charts/ResultChart.logic.js +165 -0
- package/dist/charts/Scatter.logic.d.ts +55 -0
- package/dist/charts/Scatter.logic.js +134 -0
- package/dist/charts/ScatterChart.d.ts +36 -0
- package/dist/charts/ScatterChart.js +99 -0
- package/dist/charts/charts.css +310 -0
- package/dist/charts/index.d.ts +14 -0
- package/dist/charts/index.js +11 -0
- package/dist/charts/seriesColour.d.ts +2 -0
- package/dist/charts/seriesColour.js +8 -0
- package/dist/clock/index.d.ts +2 -0
- package/dist/clock/index.js +2 -0
- package/dist/clock/useClock.d.ts +14 -0
- package/dist/clock/useClock.js +57 -0
- package/dist/datetime/DateTimePicker.d.ts +50 -0
- package/dist/datetime/DateTimePicker.js +98 -0
- package/dist/datetime/DateTimePicker.logic.d.ts +59 -0
- package/dist/datetime/DateTimePicker.logic.js +103 -0
- package/dist/datetime/datetime.css +115 -0
- package/dist/datetime/index.d.ts +7 -0
- package/dist/datetime/index.js +7 -0
- package/dist/dialog/ConfirmDialog.d.ts +73 -0
- package/dist/dialog/ConfirmDialog.js +30 -0
- package/dist/dialog/DialogLegend.d.ts +21 -0
- package/dist/dialog/DialogLegend.js +28 -0
- package/dist/dialog/DialogLegend.logic.d.ts +145 -0
- package/dist/dialog/DialogLegend.logic.js +71 -0
- package/dist/dialog/ModalDialog.d.ts +101 -0
- package/dist/dialog/ModalDialog.js +184 -0
- package/dist/dialog/dialog.css +283 -0
- package/dist/dialog/index.d.ts +8 -0
- package/dist/dialog/index.js +8 -0
- package/dist/filter/FilterEscape.d.ts +16 -0
- package/dist/filter/FilterEscape.js +15 -0
- package/dist/filter/FilterIcon.d.ts +8 -0
- package/dist/filter/FilterIcon.js +11 -0
- package/dist/filter/filter.css +42 -0
- package/dist/filter/index.d.ts +3 -0
- package/dist/filter/index.js +3 -0
- package/dist/grid/DataGrid.d.ts +149 -0
- package/dist/grid/DataGrid.js +373 -0
- package/dist/grid/DataGrid.logic.d.ts +57 -0
- package/dist/grid/DataGrid.logic.js +121 -0
- package/dist/grid/grid.css +206 -0
- package/dist/grid/index.d.ts +7 -0
- package/dist/grid/index.js +7 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.js +32 -0
- package/dist/keyboard/BrowserKeys.d.ts +15 -0
- package/dist/keyboard/BrowserKeys.js +28 -0
- package/dist/keyboard/KeyChord.logic.d.ts +25 -0
- package/dist/keyboard/KeyChord.logic.js +50 -0
- package/dist/keyboard/Keyboard.logic.d.ts +84 -0
- package/dist/keyboard/Keyboard.logic.js +137 -0
- package/dist/keyboard/OverlayWatch.d.ts +28 -0
- package/dist/keyboard/OverlayWatch.js +119 -0
- package/dist/keyboard/PageSelectAll.d.ts +14 -0
- package/dist/keyboard/PageSelectAll.js +22 -0
- package/dist/keyboard/index.d.ts +9 -0
- package/dist/keyboard/index.js +9 -0
- package/dist/keychord/KeyChord.d.ts +16 -0
- package/dist/keychord/KeyChord.js +55 -0
- package/dist/keychord/index.d.ts +2 -0
- package/dist/keychord/index.js +2 -0
- package/dist/keychord/keychord.css +41 -0
- package/dist/labels/UiokLabels.d.ts +41 -0
- package/dist/labels/UiokLabels.js +31 -0
- package/dist/labels/UiokProvider.d.ts +44 -0
- package/dist/labels/UiokProvider.js +54 -0
- package/dist/labels/charts.d.ts +34 -0
- package/dist/labels/charts.js +15 -0
- package/dist/labels/dateTime.d.ts +32 -0
- package/dist/labels/dateTime.js +14 -0
- package/dist/labels/dialog.d.ts +18 -0
- package/dist/labels/dialog.js +6 -0
- package/dist/labels/index.d.ts +13 -0
- package/dist/labels/index.js +13 -0
- package/dist/labels/keys.d.ts +28 -0
- package/dist/labels/keys.js +53 -0
- package/dist/labels/legend.d.ts +21 -0
- package/dist/labels/legend.js +7 -0
- package/dist/labels/listing.d.ts +16 -0
- package/dist/labels/listing.js +8 -0
- package/dist/labels/pager.d.ts +32 -0
- package/dist/labels/pager.js +20 -0
- package/dist/labels/palette.d.ts +17 -0
- package/dist/labels/palette.js +6 -0
- package/dist/labels/selectAll.d.ts +15 -0
- package/dist/labels/selectAll.js +6 -0
- package/dist/labels/terminal.d.ts +25 -0
- package/dist/labels/terminal.js +9 -0
- package/dist/legend/KeyLegend.logic.d.ts +84 -0
- package/dist/legend/KeyLegend.logic.js +109 -0
- package/dist/legend/KeyLegendStrip.d.ts +36 -0
- package/dist/legend/KeyLegendStrip.js +82 -0
- package/dist/legend/index.d.ts +3 -0
- package/dist/legend/index.js +3 -0
- package/dist/legend/legend.css +148 -0
- package/dist/listing/CurrentDot.d.ts +15 -0
- package/dist/listing/CurrentDot.js +13 -0
- package/dist/listing/Listing.d.ts +230 -0
- package/dist/listing/Listing.js +265 -0
- package/dist/listing/PathParts.logic.d.ts +17 -0
- package/dist/listing/PathParts.logic.js +18 -0
- package/dist/listing/index.d.ts +10 -0
- package/dist/listing/index.js +10 -0
- package/dist/listing/listing.css +867 -0
- package/dist/menu/MenuQuery.logic.d.ts +69 -0
- package/dist/menu/MenuQuery.logic.js +75 -0
- package/dist/menu/fuzzyMatch.d.ts +31 -0
- package/dist/menu/fuzzyMatch.js +296 -0
- package/dist/menu/index.d.ts +9 -0
- package/dist/menu/index.js +9 -0
- package/dist/menu/menu.css +203 -0
- package/dist/menu/useBellBeat.d.ts +8 -0
- package/dist/menu/useBellBeat.js +26 -0
- package/dist/namecut/NameCut.d.ts +22 -0
- package/dist/namecut/NameCut.js +28 -0
- package/dist/namecut/NameCut.logic.d.ts +51 -0
- package/dist/namecut/NameCut.logic.js +120 -0
- package/dist/namecut/index.d.ts +3 -0
- package/dist/namecut/index.js +3 -0
- package/dist/namecut/namecut.css +67 -0
- package/dist/pager/Pager.d.ts +37 -0
- package/dist/pager/Pager.js +38 -0
- package/dist/pager/Pager.logic.d.ts +13 -0
- package/dist/pager/Pager.logic.js +63 -0
- package/dist/pager/index.d.ts +7 -0
- package/dist/pager/index.js +7 -0
- package/dist/pager/pager.css +62 -0
- package/dist/palette/Palette.d.ts +79 -0
- package/dist/palette/Palette.js +60 -0
- package/dist/palette/index.d.ts +6 -0
- package/dist/palette/index.js +6 -0
- package/dist/palette/palette.css +159 -0
- package/dist/pane/PaneActions.d.ts +104 -0
- package/dist/pane/PaneActions.js +62 -0
- package/dist/pane/PaneFrame.d.ts +51 -0
- package/dist/pane/PaneFrame.js +28 -0
- package/dist/pane/PaneKeys.d.ts +41 -0
- package/dist/pane/PaneKeys.js +104 -0
- package/dist/pane/PaneKeys.logic.d.ts +95 -0
- package/dist/pane/PaneKeys.logic.js +109 -0
- package/dist/pane/index.d.ts +11 -0
- package/dist/pane/index.js +11 -0
- package/dist/pane/usePaneKeys.d.ts +141 -0
- package/dist/pane/usePaneKeys.js +313 -0
- package/dist/run/RunHeader.d.ts +50 -0
- package/dist/run/RunHeader.js +31 -0
- package/dist/run/RunProgress.logic.d.ts +29 -0
- package/dist/run/RunProgress.logic.js +34 -0
- package/dist/run/index.d.ts +3 -0
- package/dist/run/index.js +3 -0
- package/dist/run/run.css +190 -0
- package/dist/segmented/SegmentedChoice.d.ts +22 -0
- package/dist/segmented/SegmentedChoice.js +31 -0
- package/dist/segmented/index.d.ts +2 -0
- package/dist/segmented/index.js +2 -0
- package/dist/segmented/segmented.css +49 -0
- package/dist/selectall/CheckRange.logic.d.ts +8 -0
- package/dist/selectall/CheckRange.logic.js +23 -0
- package/dist/selectall/SelectAllBar.d.ts +25 -0
- package/dist/selectall/SelectAllBar.js +24 -0
- package/dist/selectall/index.d.ts +7 -0
- package/dist/selectall/index.js +7 -0
- package/dist/selectall/selectall.css +31 -0
- package/dist/store/KeepUnchanged.logic.d.ts +19 -0
- package/dist/store/KeepUnchanged.logic.js +33 -0
- package/dist/store/SameProps.d.ts +15 -0
- package/dist/store/SameProps.js +46 -0
- package/dist/store/ValueStore.d.ts +17 -0
- package/dist/store/ValueStore.js +23 -0
- package/dist/store/index.d.ts +8 -0
- package/dist/store/index.js +8 -0
- package/dist/store/useStableHandlers.d.ts +13 -0
- package/dist/store/useStableHandlers.js +22 -0
- package/dist/styles.css +85 -0
- package/dist/tabs/PageTabs.d.ts +38 -0
- package/dist/tabs/PageTabs.js +33 -0
- package/dist/tabs/index.d.ts +2 -0
- package/dist/tabs/index.js +2 -0
- package/dist/tabs/tabs.css +64 -0
- package/dist/terminal/Terminal.d.ts +104 -0
- package/dist/terminal/Terminal.js +309 -0
- package/dist/terminal/Terminal.logic.d.ts +66 -0
- package/dist/terminal/Terminal.logic.js +156 -0
- package/dist/terminal/TerminalMenu.d.ts +36 -0
- package/dist/terminal/TerminalMenu.js +87 -0
- package/dist/terminal/TerminalMenu.logic.d.ts +78 -0
- package/dist/terminal/TerminalMenu.logic.js +68 -0
- package/dist/terminal/TerminalScrollback.d.ts +10 -0
- package/dist/terminal/TerminalScrollback.js +11 -0
- package/dist/terminal/ghostty/LICENSE +21 -0
- package/dist/terminal/ghostty/core.d.ts +315 -0
- package/dist/terminal/ghostty/core.js +1189 -0
- package/dist/terminal/ghostty/fallbackColors.d.ts +12 -0
- package/dist/terminal/ghostty/fallbackColors.js +23 -0
- package/dist/terminal/ghostty/fonts/LICENSE +21 -0
- package/dist/terminal/ghostty/fonts/SymbolsNerdFontMono-Regular.woff2 +0 -0
- package/dist/terminal/ghostty/keyCodes.logic.d.ts +20 -0
- package/dist/terminal/ghostty/keyCodes.logic.js +249 -0
- package/dist/terminal/ghostty/links.logic.d.ts +39 -0
- package/dist/terminal/ghostty/links.logic.js +84 -0
- package/dist/terminal/ghostty/renderer.d.ts +98 -0
- package/dist/terminal/ghostty/renderer.js +481 -0
- package/dist/terminal/ghostty/runtime.d.ts +126 -0
- package/dist/terminal/ghostty/runtime.js +346 -0
- package/dist/terminal/ghostty/spriteGlyphs.logic.d.ts +64 -0
- package/dist/terminal/ghostty/spriteGlyphs.logic.js +546 -0
- package/dist/terminal/ghostty/surface.d.ts +285 -0
- package/dist/terminal/ghostty/surface.js +1565 -0
- package/dist/terminal/ghostty/surface.logic.d.ts +181 -0
- package/dist/terminal/ghostty/surface.logic.js +392 -0
- package/dist/terminal/ghostty/vendor/LICENSE +21 -0
- package/dist/terminal/ghostty/vendor/ghostty-effects.wasm +0 -0
- package/dist/terminal/ghostty/vendor/ghostty-vt.wasm +0 -0
- package/dist/terminal/index.d.ts +12 -0
- package/dist/terminal/index.js +12 -0
- package/dist/terminal/terminal.css +169 -0
- package/dist/text/MarkedText.d.ts +14 -0
- package/dist/text/MarkedText.js +11 -0
- package/dist/text/highlightSegments.d.ts +13 -0
- package/dist/text/highlightSegments.js +29 -0
- package/dist/text/index.d.ts +3 -0
- package/dist/text/index.js +3 -0
- package/dist/text/text.css +11 -0
- package/dist/themes/attributes.d.ts +21 -0
- package/dist/themes/attributes.js +41 -0
- package/dist/themes/catalog.d.ts +125 -0
- package/dist/themes/catalog.js +940 -0
- package/dist/themes/color.d.ts +29 -0
- package/dist/themes/color.js +52 -0
- package/dist/themes/ids.d.ts +139 -0
- package/dist/themes/ids.js +59 -0
- package/dist/themes/index.d.ts +12 -0
- package/dist/themes/index.js +12 -0
- package/dist/themes/themes.generated.css +1830 -0
- package/dist/themes/tokens.d.ts +189 -0
- package/dist/themes/tokens.js +462 -0
- package/dist/tooltip/Tooltip.d.ts +21 -0
- package/dist/tooltip/Tooltip.js +105 -0
- package/dist/tooltip/Tooltip.logic.d.ts +49 -0
- package/dist/tooltip/Tooltip.logic.js +50 -0
- package/dist/tooltip/index.d.ts +3 -0
- package/dist/tooltip/index.js +3 -0
- package/dist/tooltip/tooltip.css +45 -0
- package/package.json +91 -4
|
@@ -0,0 +1,940 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The theme catalog: every theme a page can wear, as a palette of named
|
|
3
|
+
* source colours keyed by the ids `ids.ts` lists. `tokens.ts` derives the
|
|
4
|
+
* colour tokens from a palette, and `themes.test.ts` writes them into
|
|
5
|
+
* `themes.generated.css`; a host process that paints a window's ground
|
|
6
|
+
* before the stylesheet loads can read it from the same entries.
|
|
7
|
+
*
|
|
8
|
+
* Pure data with no DOM or React dependency, so a generator and a host
|
|
9
|
+
* import one copy. Components name themes through `ids.ts` and paint only
|
|
10
|
+
* with the tokens, never with these colours (`test/colorLiterals.test.ts`).
|
|
11
|
+
*/
|
|
12
|
+
import { mix } from './color.js';
|
|
13
|
+
import { DEFAULT_DARK_THEME_ID, DEFAULT_LIGHT_THEME_ID, THEME_ENTRIES } from './ids.js';
|
|
14
|
+
/** Catppuccin Latte, the default light theme. */
|
|
15
|
+
const CATPPUCCIN_LATTE = {
|
|
16
|
+
palette: {
|
|
17
|
+
rosewater: '#dc8a78',
|
|
18
|
+
flamingo: '#dd7878',
|
|
19
|
+
pink: '#ea76cb',
|
|
20
|
+
mauve: '#8839ef',
|
|
21
|
+
red: '#d20f39',
|
|
22
|
+
maroon: '#e64553',
|
|
23
|
+
peach: '#fe640b',
|
|
24
|
+
yellow: '#df8e1d',
|
|
25
|
+
green: '#40a02b',
|
|
26
|
+
teal: '#179299',
|
|
27
|
+
sky: '#04a5e5',
|
|
28
|
+
sapphire: '#209fb5',
|
|
29
|
+
blue: '#1e66f5',
|
|
30
|
+
lavender: '#7287fd',
|
|
31
|
+
text: '#4c4f69',
|
|
32
|
+
subtext1: '#5c5f77',
|
|
33
|
+
subtext0: '#6c6f85',
|
|
34
|
+
overlay2: '#7c7f93',
|
|
35
|
+
overlay1: '#8c8fa1',
|
|
36
|
+
overlay0: '#9ca0b0',
|
|
37
|
+
surface2: '#acb0be',
|
|
38
|
+
surface1: '#bcc0cc',
|
|
39
|
+
surface0: '#ccd0da',
|
|
40
|
+
base: '#eff1f5',
|
|
41
|
+
mantle: '#e6e9ef',
|
|
42
|
+
crust: '#dce0e8'
|
|
43
|
+
},
|
|
44
|
+
terminal: {
|
|
45
|
+
// Catppuccin's terminal port: subtext1, the six hues, surface2; then
|
|
46
|
+
// subtext0, each hue a step brighter, and surface1.
|
|
47
|
+
// prettier-ignore
|
|
48
|
+
ansi: [
|
|
49
|
+
'#5c5f77', '#d20f39', '#40a02b', '#df8e1d', '#1e66f5', '#ea76cb', '#179299', '#acb0be',
|
|
50
|
+
'#6c6f85', '#de293e', '#49af3d', '#eea02d', '#456eff', '#fe85d8', '#2d9fa8', '#bcc0cc'
|
|
51
|
+
],
|
|
52
|
+
cursor: '#dc8a78'
|
|
53
|
+
},
|
|
54
|
+
overrides: {
|
|
55
|
+
// Lavender a step stronger than the primary hue itself, so the fill
|
|
56
|
+
// carries white text at 4.7:1 where the hue stops at 3.2:1.
|
|
57
|
+
'--primary': '#5468e4',
|
|
58
|
+
// Indigo holds 5.1:1 on the tonal tint, where the primary itself holds
|
|
59
|
+
// only 3.6:1 and lavender 2.5:1.
|
|
60
|
+
'--on-tonal': '#3f51c7',
|
|
61
|
+
// A blue hairline a step deeper than the tint, so the tonal button reads
|
|
62
|
+
// as a button rather than as a highlighted row inside tables.
|
|
63
|
+
'--tonal-border': '#b9c8ee'
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* Catppuccin Frappé, the softest of the dark flavors, from Catppuccin's
|
|
68
|
+
* published palette (catppuccin/palette 1.8.0, `palette.json`).
|
|
69
|
+
*/
|
|
70
|
+
const CATPPUCCIN_FRAPPE = {
|
|
71
|
+
palette: {
|
|
72
|
+
rosewater: '#f2d5cf',
|
|
73
|
+
flamingo: '#eebebe',
|
|
74
|
+
pink: '#f4b8e4',
|
|
75
|
+
mauve: '#ca9ee6',
|
|
76
|
+
red: '#e78284',
|
|
77
|
+
maroon: '#ea999c',
|
|
78
|
+
peach: '#ef9f76',
|
|
79
|
+
yellow: '#e5c890',
|
|
80
|
+
green: '#a6d189',
|
|
81
|
+
teal: '#81c8be',
|
|
82
|
+
sky: '#99d1db',
|
|
83
|
+
sapphire: '#85c1dc',
|
|
84
|
+
blue: '#8caaee',
|
|
85
|
+
lavender: '#babbf1',
|
|
86
|
+
text: '#c6d0f5',
|
|
87
|
+
subtext1: '#b5bfe2',
|
|
88
|
+
subtext0: '#a5adce',
|
|
89
|
+
overlay2: '#949cbb',
|
|
90
|
+
overlay1: '#838ba7',
|
|
91
|
+
overlay0: '#737994',
|
|
92
|
+
surface2: '#626880',
|
|
93
|
+
surface1: '#51576d',
|
|
94
|
+
surface0: '#414559',
|
|
95
|
+
base: '#303446',
|
|
96
|
+
mantle: '#292c3c',
|
|
97
|
+
crust: '#232634'
|
|
98
|
+
},
|
|
99
|
+
terminal: {
|
|
100
|
+
// Catppuccin's terminal port (`ansiColors`): surface1, the six hues,
|
|
101
|
+
// subtext0; then surface2, each hue a step brighter, and subtext1.
|
|
102
|
+
// prettier-ignore
|
|
103
|
+
ansi: [
|
|
104
|
+
'#51576d', '#e78284', '#a6d189', '#e5c890', '#8caaee', '#f4b8e4', '#81c8be', '#a5adce',
|
|
105
|
+
'#626880', '#e67172', '#8ec772', '#d9ba73', '#7b9ef0', '#f2a4db', '#5abfb5', '#b5bfe2'
|
|
106
|
+
],
|
|
107
|
+
cursor: '#f2d5cf'
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Catppuccin Macchiato, between Frappé and Mocha, from Catppuccin's
|
|
112
|
+
* published palette (catppuccin/palette 1.8.0, `palette.json`).
|
|
113
|
+
*/
|
|
114
|
+
const CATPPUCCIN_MACCHIATO = {
|
|
115
|
+
palette: {
|
|
116
|
+
rosewater: '#f4dbd6',
|
|
117
|
+
flamingo: '#f0c6c6',
|
|
118
|
+
pink: '#f5bde6',
|
|
119
|
+
mauve: '#c6a0f6',
|
|
120
|
+
red: '#ed8796',
|
|
121
|
+
maroon: '#ee99a0',
|
|
122
|
+
peach: '#f5a97f',
|
|
123
|
+
yellow: '#eed49f',
|
|
124
|
+
green: '#a6da95',
|
|
125
|
+
teal: '#8bd5ca',
|
|
126
|
+
sky: '#91d7e3',
|
|
127
|
+
sapphire: '#7dc4e4',
|
|
128
|
+
blue: '#8aadf4',
|
|
129
|
+
lavender: '#b7bdf8',
|
|
130
|
+
text: '#cad3f5',
|
|
131
|
+
subtext1: '#b8c0e0',
|
|
132
|
+
subtext0: '#a5adcb',
|
|
133
|
+
overlay2: '#939ab7',
|
|
134
|
+
overlay1: '#8087a2',
|
|
135
|
+
overlay0: '#6e738d',
|
|
136
|
+
surface2: '#5b6078',
|
|
137
|
+
surface1: '#494d64',
|
|
138
|
+
surface0: '#363a4f',
|
|
139
|
+
base: '#24273a',
|
|
140
|
+
mantle: '#1e2030',
|
|
141
|
+
crust: '#181926'
|
|
142
|
+
},
|
|
143
|
+
terminal: {
|
|
144
|
+
// Catppuccin's terminal port (`ansiColors`): surface1, the six hues,
|
|
145
|
+
// subtext0; then surface2, each hue a step brighter, and subtext1.
|
|
146
|
+
// prettier-ignore
|
|
147
|
+
ansi: [
|
|
148
|
+
'#494d64', '#ed8796', '#a6da95', '#eed49f', '#8aadf4', '#f5bde6', '#8bd5ca', '#a5adcb',
|
|
149
|
+
'#5b6078', '#ec7486', '#8ccf7f', '#e1c682', '#78a1f6', '#f2a9dd', '#63cbc0', '#b8c0e0'
|
|
150
|
+
],
|
|
151
|
+
cursor: '#f4dbd6'
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
/** Catppuccin Mocha, the default dark theme. */
|
|
155
|
+
const CATPPUCCIN_MOCHA = {
|
|
156
|
+
palette: {
|
|
157
|
+
rosewater: '#f5e0dc',
|
|
158
|
+
flamingo: '#f2cdcd',
|
|
159
|
+
pink: '#f5c2e7',
|
|
160
|
+
mauve: '#cba6f7',
|
|
161
|
+
red: '#f38ba8',
|
|
162
|
+
maroon: '#eba0ac',
|
|
163
|
+
peach: '#fab387',
|
|
164
|
+
yellow: '#f9e2af',
|
|
165
|
+
green: '#a6e3a1',
|
|
166
|
+
teal: '#94e2d5',
|
|
167
|
+
sky: '#89dceb',
|
|
168
|
+
sapphire: '#74c7ec',
|
|
169
|
+
blue: '#89b4fa',
|
|
170
|
+
lavender: '#b4befe',
|
|
171
|
+
text: '#cdd6f4',
|
|
172
|
+
subtext1: '#bac2de',
|
|
173
|
+
subtext0: '#a6adc8',
|
|
174
|
+
overlay2: '#9399b2',
|
|
175
|
+
overlay1: '#7f849c',
|
|
176
|
+
overlay0: '#6c7086',
|
|
177
|
+
surface2: '#585b70',
|
|
178
|
+
surface1: '#45475a',
|
|
179
|
+
surface0: '#313244',
|
|
180
|
+
base: '#1e1e2e',
|
|
181
|
+
mantle: '#181825',
|
|
182
|
+
crust: '#11111b'
|
|
183
|
+
},
|
|
184
|
+
terminal: {
|
|
185
|
+
// Catppuccin's terminal port: surface1, the six hues, subtext0; then
|
|
186
|
+
// surface2, each hue a step brighter, and subtext1.
|
|
187
|
+
// prettier-ignore
|
|
188
|
+
ansi: [
|
|
189
|
+
'#45475a', '#f38ba8', '#a6e3a1', '#f9e2af', '#89b4fa', '#f5c2e7', '#94e2d5', '#a6adc8',
|
|
190
|
+
'#585b70', '#f37799', '#89d88b', '#ebd391', '#74a8fc', '#f2aede', '#6bd7ca', '#bac2de'
|
|
191
|
+
],
|
|
192
|
+
cursor: '#f5e0dc'
|
|
193
|
+
},
|
|
194
|
+
overrides: {
|
|
195
|
+
// Lavender saturated a step past the primary hue, so a primary button
|
|
196
|
+
// stands apart from marks drawn in that hue beside it.
|
|
197
|
+
'--primary': '#9aa5ff',
|
|
198
|
+
// A blue hairline a step lighter than the tint, so the tonal button reads
|
|
199
|
+
// as a button rather than as a highlighted row inside tables.
|
|
200
|
+
'--tonal-border': '#45507a'
|
|
201
|
+
}
|
|
202
|
+
};
|
|
203
|
+
/** Black, the far end of a dark theme's grounds and of a darkened tone. */
|
|
204
|
+
const BLACK = '#000000';
|
|
205
|
+
/**
|
|
206
|
+
* A dark theme's window ground and header bar where the theme publishes no
|
|
207
|
+
* ground darker than its panels: the panel's colour darkened by Mocha's own
|
|
208
|
+
* steps (mantle about 80% of base, crust about 58%), so every dark theme's
|
|
209
|
+
* grounds step down alike.
|
|
210
|
+
*/
|
|
211
|
+
const darkerGrounds = (base) => ({
|
|
212
|
+
mantle: mix(base, BLACK, 80),
|
|
213
|
+
crust: mix(base, BLACK, 58)
|
|
214
|
+
});
|
|
215
|
+
/**
|
|
216
|
+
* GitHub Light, from Primer's published colours (@primer/primitives 7.17.1,
|
|
217
|
+
* `dist/json/colors/light.json`): the canvas, its grey scale, and the
|
|
218
|
+
* accent, success, attention, severe, danger, done, and sponsors colours;
|
|
219
|
+
* the terminal is Primer's own `ansi` set.
|
|
220
|
+
*/
|
|
221
|
+
const GITHUB_LIGHT = {
|
|
222
|
+
palette: {
|
|
223
|
+
rosewater: '#fd8c73', // coral.3, the active tab's top border
|
|
224
|
+
flamingo: '#e85aad', // pink.4
|
|
225
|
+
pink: '#bf3989', // sponsors
|
|
226
|
+
mauve: '#8250df', // done
|
|
227
|
+
red: '#cf222e', // danger
|
|
228
|
+
maroon: '#fa4549', // red.4
|
|
229
|
+
peach: '#bc4c00', // severe
|
|
230
|
+
yellow: '#9a6700', // attention
|
|
231
|
+
green: '#1a7f37', // success
|
|
232
|
+
teal: '#1b7c83', // ansi cyan
|
|
233
|
+
sky: '#3192aa', // ansi bright cyan
|
|
234
|
+
sapphire: '#218bff', // blue.4
|
|
235
|
+
blue: '#0969da', // accent
|
|
236
|
+
lavender: '#54aeff', // blue.3, the colour of a folder in a repository's file list
|
|
237
|
+
text: '#1f2328', // fg.default
|
|
238
|
+
subtext1: '#424a53', // gray.7
|
|
239
|
+
subtext0: '#57606a', // gray.6
|
|
240
|
+
overlay2: '#656d76', // fg.muted
|
|
241
|
+
overlay1: '#6e7781', // gray.5
|
|
242
|
+
overlay0: '#8c959f', // gray.4
|
|
243
|
+
surface2: '#afb8c1', // gray.3
|
|
244
|
+
// Primer has no grey between gray.2 and gray.3; mixed halfway.
|
|
245
|
+
surface1: mix('#d0d7de', '#afb8c1', 50),
|
|
246
|
+
surface0: '#d0d7de', // border.default
|
|
247
|
+
base: '#ffffff', // canvas.default
|
|
248
|
+
mantle: '#f6f8fa', // canvas.subtle
|
|
249
|
+
crust: '#eaeef2' // gray.1
|
|
250
|
+
},
|
|
251
|
+
terminal: {
|
|
252
|
+
// prettier-ignore
|
|
253
|
+
ansi: [
|
|
254
|
+
'#24292f', '#cf222e', '#116329', '#4d2d00', '#0969da', '#8250df', '#1b7c83', '#6e7781',
|
|
255
|
+
'#57606a', '#a40e26', '#1a7f37', '#633c01', '#218bff', '#a475f9', '#3192aa', '#8c959f'
|
|
256
|
+
],
|
|
257
|
+
cursor: '#0969da'
|
|
258
|
+
},
|
|
259
|
+
overrides: {
|
|
260
|
+
// GitHub's own primary button, green with white text (4.5:1), rather
|
|
261
|
+
// than a darkened light blue that would read as the accent.
|
|
262
|
+
'--primary': '#1f883d'
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
/**
|
|
266
|
+
* GitHub Dark, from Primer's published colours (@primer/primitives 7.17.1,
|
|
267
|
+
* `dist/json/colors/dark.json`, GitHub's dark default); the terminal is
|
|
268
|
+
* Primer's own `ansi` set.
|
|
269
|
+
*/
|
|
270
|
+
const GITHUB_DARK = {
|
|
271
|
+
palette: {
|
|
272
|
+
rosewater: '#ffa28b', // coral.2
|
|
273
|
+
flamingo: '#ff9bce', // pink.2
|
|
274
|
+
pink: '#f778ba', // pink.3
|
|
275
|
+
mauve: '#bc8cff', // purple.3, ansi magenta
|
|
276
|
+
red: '#ff7b72', // red.3, ansi red
|
|
277
|
+
maroon: '#ffa198', // red.2
|
|
278
|
+
peach: '#ffa657', // orange.2
|
|
279
|
+
yellow: '#d29922', // attention.fg
|
|
280
|
+
green: '#3fb950', // success.fg
|
|
281
|
+
teal: '#39c5cf', // ansi cyan
|
|
282
|
+
sky: '#56d4dd', // ansi bright cyan
|
|
283
|
+
sapphire: '#79c0ff', // blue.2
|
|
284
|
+
blue: '#58a6ff', // blue.3
|
|
285
|
+
lavender: '#a5d6ff', // blue.1
|
|
286
|
+
text: '#e6edf3', // fg.default
|
|
287
|
+
subtext1: '#c9d1d9', // gray.1
|
|
288
|
+
subtext0: '#b1bac4', // gray.2
|
|
289
|
+
overlay2: '#8b949e', // gray.3
|
|
290
|
+
overlay1: '#848d97', // fg.muted
|
|
291
|
+
overlay0: '#6e7681', // gray.4
|
|
292
|
+
surface2: '#484f58', // gray.5
|
|
293
|
+
// Primer has no grey between gray.5 and gray.6; mixed halfway.
|
|
294
|
+
surface1: mix('#484f58', '#30363d', 50),
|
|
295
|
+
surface0: '#30363d', // border.default
|
|
296
|
+
base: '#0d1117', // canvas.default
|
|
297
|
+
// Between the canvas and the inset ground GitHub's header wears.
|
|
298
|
+
mantle: mix('#0d1117', '#010409', 50),
|
|
299
|
+
crust: '#010409' // canvas.inset
|
|
300
|
+
},
|
|
301
|
+
terminal: {
|
|
302
|
+
// prettier-ignore
|
|
303
|
+
ansi: [
|
|
304
|
+
'#484f58', '#ff7b72', '#3fb950', '#d29922', '#58a6ff', '#bc8cff', '#39c5cf', '#b1bac4',
|
|
305
|
+
'#6e7681', '#ffa198', '#56d364', '#e3b341', '#79c0ff', '#d2a8ff', '#56d4dd', '#ffffff'
|
|
306
|
+
],
|
|
307
|
+
cursor: '#2f81f7'
|
|
308
|
+
},
|
|
309
|
+
overrides: {
|
|
310
|
+
// GitHub's own selection and focus blue (accent.emphasis), which carries
|
|
311
|
+
// white text at 4.6:1, rather than the lighter link blue the rule keeps.
|
|
312
|
+
'--accent': '#1f6feb',
|
|
313
|
+
// GitHub's own primary button, green with white text (4.6:1).
|
|
314
|
+
'--primary': '#238636'
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
/** Solarized's sixteen colours, from Ethan Schoonover's README (altercation/solarized). */
|
|
318
|
+
const SOLARIZED = {
|
|
319
|
+
base03: '#002b36',
|
|
320
|
+
base02: '#073642',
|
|
321
|
+
base01: '#586e75',
|
|
322
|
+
base00: '#657b83',
|
|
323
|
+
base0: '#839496',
|
|
324
|
+
base1: '#93a1a1',
|
|
325
|
+
base2: '#eee8d5',
|
|
326
|
+
base3: '#fdf6e3',
|
|
327
|
+
yellow: '#b58900',
|
|
328
|
+
orange: '#cb4b16',
|
|
329
|
+
red: '#dc322f',
|
|
330
|
+
magenta: '#d33682',
|
|
331
|
+
violet: '#6c71c4',
|
|
332
|
+
blue: '#268bd2',
|
|
333
|
+
cyan: '#2aa198',
|
|
334
|
+
green: '#859900'
|
|
335
|
+
};
|
|
336
|
+
/**
|
|
337
|
+
* Solarized's terminal port (the README's table): base02, the six accents,
|
|
338
|
+
* base2; then base03, orange, base01, base00, base0, violet, base1, base3.
|
|
339
|
+
* Both appearances share it.
|
|
340
|
+
*/
|
|
341
|
+
// prettier-ignore
|
|
342
|
+
const SOLARIZED_ANSI = [
|
|
343
|
+
SOLARIZED.base02, SOLARIZED.red, SOLARIZED.green, SOLARIZED.yellow,
|
|
344
|
+
SOLARIZED.blue, SOLARIZED.magenta, SOLARIZED.cyan, SOLARIZED.base2,
|
|
345
|
+
SOLARIZED.base03, SOLARIZED.orange, SOLARIZED.base01, SOLARIZED.base00,
|
|
346
|
+
SOLARIZED.base0, SOLARIZED.violet, SOLARIZED.base1, SOLARIZED.base3
|
|
347
|
+
];
|
|
348
|
+
/**
|
|
349
|
+
* Solarized's accents by role. Solarized has no pink, maroon, pale pink, or
|
|
350
|
+
* second cyan, so the nearest accent stands in.
|
|
351
|
+
*/
|
|
352
|
+
const SOLARIZED_ACCENTS = {
|
|
353
|
+
rosewater: SOLARIZED.orange,
|
|
354
|
+
flamingo: SOLARIZED.magenta,
|
|
355
|
+
pink: SOLARIZED.magenta,
|
|
356
|
+
mauve: SOLARIZED.violet,
|
|
357
|
+
red: SOLARIZED.red,
|
|
358
|
+
maroon: SOLARIZED.magenta,
|
|
359
|
+
peach: SOLARIZED.orange,
|
|
360
|
+
yellow: SOLARIZED.yellow,
|
|
361
|
+
green: SOLARIZED.green,
|
|
362
|
+
teal: SOLARIZED.cyan,
|
|
363
|
+
sky: SOLARIZED.cyan,
|
|
364
|
+
sapphire: SOLARIZED.cyan,
|
|
365
|
+
blue: SOLARIZED.blue,
|
|
366
|
+
lavender: SOLARIZED.violet
|
|
367
|
+
};
|
|
368
|
+
/**
|
|
369
|
+
* Solarized Light: base3 panels on a base2 ground. Solarized has six
|
|
370
|
+
* content tones where the ramp needs nine, so the steps between are mixed;
|
|
371
|
+
* its emphasized text (base01) holds only 3.9:1 on the header, so the text
|
|
372
|
+
* is base01 moved 21% toward base02, the least that holds 4.5:1 there and
|
|
373
|
+
* on a hover fill. base01 and base00 follow as the quieter tones, but only a
|
|
374
|
+
* row's attributes, on the lighter file list, keep 4.5:1 in base01, so the
|
|
375
|
+
* quieter text on the ground and the header wears the text's own tone.
|
|
376
|
+
*/
|
|
377
|
+
const SOLARIZED_LIGHT = {
|
|
378
|
+
palette: {
|
|
379
|
+
...SOLARIZED_ACCENTS,
|
|
380
|
+
text: mix(SOLARIZED.base01, SOLARIZED.base02, 79),
|
|
381
|
+
subtext1: SOLARIZED.base01,
|
|
382
|
+
subtext0: SOLARIZED.base00,
|
|
383
|
+
overlay2: mix(SOLARIZED.base00, SOLARIZED.base0, 50),
|
|
384
|
+
overlay1: SOLARIZED.base0,
|
|
385
|
+
overlay0: SOLARIZED.base1,
|
|
386
|
+
surface2: mix(SOLARIZED.base1, SOLARIZED.base2, 55),
|
|
387
|
+
surface1: mix(SOLARIZED.base1, SOLARIZED.base2, 35),
|
|
388
|
+
surface0: mix(SOLARIZED.base1, SOLARIZED.base2, 22),
|
|
389
|
+
base: SOLARIZED.base3,
|
|
390
|
+
mantle: SOLARIZED.base2,
|
|
391
|
+
crust: mix(SOLARIZED.base2, SOLARIZED.base1, 85)
|
|
392
|
+
},
|
|
393
|
+
terminal: { ansi: SOLARIZED_ANSI, cursor: SOLARIZED.base01 }
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* Solarized Dark: base03 panels, with the grounds under them darkened from
|
|
397
|
+
* base03 (Solarized has none darker), base1 as the text and base0 as the
|
|
398
|
+
* quieter text, and the steps between base01 and base02 mixed.
|
|
399
|
+
*/
|
|
400
|
+
const SOLARIZED_DARK = {
|
|
401
|
+
palette: {
|
|
402
|
+
...SOLARIZED_ACCENTS,
|
|
403
|
+
text: SOLARIZED.base1,
|
|
404
|
+
subtext1: mix(SOLARIZED.base1, SOLARIZED.base0, 50),
|
|
405
|
+
subtext0: SOLARIZED.base0,
|
|
406
|
+
overlay2: mix(SOLARIZED.base0, SOLARIZED.base01, 60),
|
|
407
|
+
overlay1: SOLARIZED.base01,
|
|
408
|
+
overlay0: mix(SOLARIZED.base01, SOLARIZED.base02, 70),
|
|
409
|
+
surface2: mix(SOLARIZED.base01, SOLARIZED.base02, 45),
|
|
410
|
+
surface1: mix(SOLARIZED.base01, SOLARIZED.base02, 22),
|
|
411
|
+
surface0: SOLARIZED.base02,
|
|
412
|
+
base: SOLARIZED.base03,
|
|
413
|
+
...darkerGrounds(SOLARIZED.base03)
|
|
414
|
+
},
|
|
415
|
+
terminal: { ansi: SOLARIZED_ANSI, cursor: SOLARIZED.base1 }
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* One Light, from Atom's one-light-syntax (`styles/colors.less`: its mono
|
|
419
|
+
* tones, hues, and accent) and one-light-ui (the sidebar a step under the
|
|
420
|
+
* editor). Its oranges are the pair Atom shipped first (hue 41), which the
|
|
421
|
+
* VS Code port and Shiki still draw, rather than Atom's later hue 35 pair
|
|
422
|
+
* (`#b76b01`, `#cb7701`). The steps between Atom's three mono tones are
|
|
423
|
+
* mixed. Atom publishes no terminal port, so the terminal follows
|
|
424
|
+
* onedark.vim's slots (joshdick/onedark.vim) with One Light's colours.
|
|
425
|
+
*/
|
|
426
|
+
const ONE_LIGHT = {
|
|
427
|
+
palette: {
|
|
428
|
+
rosewater: '#e45649', // red 1
|
|
429
|
+
flamingo: '#ca1243', // red 2
|
|
430
|
+
pink: '#a626a4', // purple
|
|
431
|
+
mauve: '#a626a4',
|
|
432
|
+
red: '#e45649',
|
|
433
|
+
maroon: '#ca1243',
|
|
434
|
+
peach: '#986801', // orange 1
|
|
435
|
+
yellow: '#c18401', // orange 2
|
|
436
|
+
green: '#50a14f',
|
|
437
|
+
teal: '#0184bc', // cyan
|
|
438
|
+
sky: '#0184bc',
|
|
439
|
+
sapphire: '#0184bc',
|
|
440
|
+
blue: '#4078f2',
|
|
441
|
+
lavender: '#526fff', // the syntax accent: cursor, focus, and buttons
|
|
442
|
+
text: '#383a42', // mono 1
|
|
443
|
+
subtext1: mix('#383a42', '#696c77', 67),
|
|
444
|
+
subtext0: mix('#383a42', '#696c77', 33),
|
|
445
|
+
overlay2: '#696c77', // mono 2
|
|
446
|
+
overlay1: mix('#696c77', '#a0a1a7', 50),
|
|
447
|
+
overlay0: '#a0a1a7', // mono 3
|
|
448
|
+
surface2: mix('#a0a1a7', '#fafafa', 70),
|
|
449
|
+
surface1: mix('#a0a1a7', '#fafafa', 50),
|
|
450
|
+
surface0: mix('#a0a1a7', '#fafafa', 34),
|
|
451
|
+
base: '#fafafa', // the editor
|
|
452
|
+
mantle: '#eaeaeb', // the sidebar
|
|
453
|
+
crust: '#dbdbdc' // the UI border, a step under the sidebar
|
|
454
|
+
},
|
|
455
|
+
terminal: {
|
|
456
|
+
// prettier-ignore
|
|
457
|
+
ansi: [
|
|
458
|
+
'#383a42', '#e45649', '#50a14f', '#c18401', '#4078f2', '#a626a4', '#0184bc', '#a0a1a7',
|
|
459
|
+
'#696c77', '#ca1243', '#50a14f', '#986801', '#4078f2', '#a626a4', '#0184bc', '#fafafa'
|
|
460
|
+
],
|
|
461
|
+
cursor: '#526fff'
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* One Dark, from Atom's one-dark-syntax (`styles/colors.less`) and
|
|
466
|
+
* one-dark-ui (the sidebar a step under the editor), with onedark.vim's
|
|
467
|
+
* greys (joshdick/onedark.vim) for the borders. The steps between Atom's
|
|
468
|
+
* three mono tones are mixed. Atom publishes no terminal port, so the
|
|
469
|
+
* terminal is onedark.vim's.
|
|
470
|
+
*/
|
|
471
|
+
const ONE_DARK = {
|
|
472
|
+
palette: {
|
|
473
|
+
rosewater: '#e06c75', // red 1
|
|
474
|
+
flamingo: '#be5046', // red 2
|
|
475
|
+
pink: '#c678dd', // purple
|
|
476
|
+
mauve: '#c678dd',
|
|
477
|
+
red: '#e06c75',
|
|
478
|
+
maroon: '#be5046',
|
|
479
|
+
peach: '#d19a66', // orange 1
|
|
480
|
+
yellow: '#e5c07b', // orange 2
|
|
481
|
+
green: '#98c379',
|
|
482
|
+
teal: '#56b6c2', // cyan
|
|
483
|
+
sky: '#56b6c2',
|
|
484
|
+
sapphire: '#56b6c2',
|
|
485
|
+
blue: '#61afef',
|
|
486
|
+
lavender: '#528bff', // the syntax accent: cursor and focus
|
|
487
|
+
text: '#abb2bf', // mono 1
|
|
488
|
+
subtext1: mix('#abb2bf', '#828997', 67),
|
|
489
|
+
subtext0: mix('#abb2bf', '#828997', 33),
|
|
490
|
+
overlay2: '#828997', // mono 2
|
|
491
|
+
overlay1: mix('#828997', '#5c6370', 50),
|
|
492
|
+
overlay0: '#5c6370', // mono 3
|
|
493
|
+
surface2: '#4b5263', // onedark.vim gutter grey
|
|
494
|
+
surface1: mix('#4b5263', '#3e4452', 50),
|
|
495
|
+
surface0: '#3e4452', // onedark.vim visual grey
|
|
496
|
+
base: '#282c34', // the editor
|
|
497
|
+
mantle: '#21252b', // the sidebar
|
|
498
|
+
// Atom has no ground under the sidebar; darkened a step from it.
|
|
499
|
+
crust: mix('#21252b', BLACK, 85)
|
|
500
|
+
},
|
|
501
|
+
terminal: {
|
|
502
|
+
// prettier-ignore
|
|
503
|
+
ansi: [
|
|
504
|
+
'#282c34', '#e06c75', '#98c379', '#e5c07b', '#61afef', '#c678dd', '#56b6c2', '#abb2bf',
|
|
505
|
+
'#3e4452', '#be5046', '#98c379', '#d19a66', '#61afef', '#c678dd', '#56b6c2', '#5c6370'
|
|
506
|
+
],
|
|
507
|
+
cursor: '#528bff'
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* Gruvbox Light, medium contrast, from Pavel Pertsev's palette
|
|
512
|
+
* (morhetz/gruvbox, `colors/gruvbox.vim`): the light grounds and dark
|
|
513
|
+
* foregrounds, with the faded accents gruvbox draws on a light ground.
|
|
514
|
+
*/
|
|
515
|
+
const GRUVBOX_LIGHT = {
|
|
516
|
+
palette: {
|
|
517
|
+
rosewater: '#d65d0e', // neutral orange
|
|
518
|
+
flamingo: '#b16286', // neutral purple
|
|
519
|
+
pink: '#b16286',
|
|
520
|
+
mauve: '#8f3f71', // faded purple
|
|
521
|
+
red: '#9d0006', // faded red
|
|
522
|
+
maroon: '#cc241d', // neutral red
|
|
523
|
+
peach: '#af3a03', // faded orange
|
|
524
|
+
yellow: '#b57614', // faded yellow
|
|
525
|
+
green: '#79740e', // faded green
|
|
526
|
+
teal: '#427b58', // faded aqua
|
|
527
|
+
sky: '#689d6a', // neutral aqua
|
|
528
|
+
sapphire: '#458588', // neutral blue
|
|
529
|
+
blue: '#076678', // faded blue
|
|
530
|
+
lavender: '#458588',
|
|
531
|
+
text: '#3c3836', // dark1, the foreground
|
|
532
|
+
subtext1: mix('#3c3836', '#504945', 50),
|
|
533
|
+
subtext0: '#504945', // dark2
|
|
534
|
+
overlay2: '#665c54', // dark3
|
|
535
|
+
overlay1: '#7c6f64', // dark4
|
|
536
|
+
overlay0: '#928374', // gray
|
|
537
|
+
surface2: '#a89984', // light4
|
|
538
|
+
surface1: '#bdae93', // light3
|
|
539
|
+
surface0: '#d5c4a1', // light2
|
|
540
|
+
base: '#fbf1c7', // light0
|
|
541
|
+
mantle: '#f2e5bc', // light0_soft
|
|
542
|
+
crust: '#ebdbb2' // light1
|
|
543
|
+
},
|
|
544
|
+
terminal: {
|
|
545
|
+
// gruvbox's terminal port: light0, the neutral accents, dark4; then
|
|
546
|
+
// gray, the faded accents, and dark1.
|
|
547
|
+
// prettier-ignore
|
|
548
|
+
ansi: [
|
|
549
|
+
'#fbf1c7', '#cc241d', '#98971a', '#d79921', '#458588', '#b16286', '#689d6a', '#7c6f64',
|
|
550
|
+
'#928374', '#9d0006', '#79740e', '#b57614', '#076678', '#8f3f71', '#427b58', '#3c3836'
|
|
551
|
+
],
|
|
552
|
+
cursor: '#3c3836'
|
|
553
|
+
},
|
|
554
|
+
overrides: {
|
|
555
|
+
// gruvbox marks selection and the active tab in aqua, not blue.
|
|
556
|
+
'--accent': '#427b58'
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Gruvbox Dark, medium contrast, from Pavel Pertsev's palette
|
|
561
|
+
* (morhetz/gruvbox, `colors/gruvbox.vim`): the dark grounds and light
|
|
562
|
+
* foregrounds, with the bright accents gruvbox draws on a dark ground. The
|
|
563
|
+
* window's ground is mixed halfway to dark0_hard, which the header wears.
|
|
564
|
+
*/
|
|
565
|
+
const GRUVBOX_DARK = {
|
|
566
|
+
palette: {
|
|
567
|
+
rosewater: '#fe8019', // bright orange
|
|
568
|
+
flamingo: '#d3869b', // bright purple
|
|
569
|
+
pink: '#d3869b',
|
|
570
|
+
mauve: '#d3869b',
|
|
571
|
+
red: '#fb4934', // bright red
|
|
572
|
+
maroon: '#cc241d', // neutral red
|
|
573
|
+
peach: '#fe8019',
|
|
574
|
+
yellow: '#fabd2f', // bright yellow
|
|
575
|
+
green: '#b8bb26', // bright green
|
|
576
|
+
teal: '#8ec07c', // bright aqua
|
|
577
|
+
sky: '#83a598', // bright blue
|
|
578
|
+
sapphire: '#458588', // neutral blue
|
|
579
|
+
blue: '#83a598',
|
|
580
|
+
lavender: '#83a598',
|
|
581
|
+
text: '#ebdbb2', // light1, the foreground
|
|
582
|
+
subtext1: '#d5c4a1', // light2
|
|
583
|
+
subtext0: '#bdae93', // light3
|
|
584
|
+
overlay2: '#a89984', // light4
|
|
585
|
+
overlay1: '#928374', // gray
|
|
586
|
+
overlay0: '#7c6f64', // dark4
|
|
587
|
+
surface2: '#665c54', // dark3
|
|
588
|
+
surface1: '#504945', // dark2
|
|
589
|
+
surface0: '#3c3836', // dark1
|
|
590
|
+
base: '#282828', // dark0
|
|
591
|
+
mantle: mix('#282828', '#1d2021', 50),
|
|
592
|
+
crust: '#1d2021' // dark0_hard
|
|
593
|
+
},
|
|
594
|
+
terminal: {
|
|
595
|
+
// gruvbox's terminal port: dark0, the neutral accents, light4; then
|
|
596
|
+
// gray, the bright accents, and light1.
|
|
597
|
+
// prettier-ignore
|
|
598
|
+
ansi: [
|
|
599
|
+
'#282828', '#cc241d', '#98971a', '#d79921', '#458588', '#b16286', '#689d6a', '#a89984',
|
|
600
|
+
'#928374', '#fb4934', '#b8bb26', '#fabd2f', '#83a598', '#d3869b', '#8ec07c', '#ebdbb2'
|
|
601
|
+
],
|
|
602
|
+
cursor: '#ebdbb2'
|
|
603
|
+
},
|
|
604
|
+
overrides: {
|
|
605
|
+
// gruvbox marks selection and the active tab in aqua, not blue: the
|
|
606
|
+
// neutral aqua its editor ports use, quieter than the bright one.
|
|
607
|
+
'--accent': '#689d6a'
|
|
608
|
+
}
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Tokyo Night Day, from folke/tokyonight.nvim's day palette
|
|
612
|
+
* (`extras/lua/tokyonight_day.lua`) and its Ghostty port
|
|
613
|
+
* (`extras/ghostty/tokyonight_day`). Its blue foreground holds only 4.0:1
|
|
614
|
+
* on the sidebar ground the header wears, so the text is that blue moved 16%
|
|
615
|
+
* toward black, the least that holds 4.5:1 there, on a hover fill, and on
|
|
616
|
+
* the status tints, and the quieter text is fg_dark moved 21%, the least
|
|
617
|
+
* that holds 4.5:1 on the header; dark5, comment, and dark3 follow as hints.
|
|
618
|
+
*/
|
|
619
|
+
const TOKYO_NIGHT_DAY = {
|
|
620
|
+
palette: {
|
|
621
|
+
rosewater: '#c64343', // red1
|
|
622
|
+
flamingo: '#d20065', // magenta2
|
|
623
|
+
pink: '#d20065',
|
|
624
|
+
mauve: '#9854f1', // magenta
|
|
625
|
+
red: '#f52a65',
|
|
626
|
+
maroon: '#c64343',
|
|
627
|
+
peach: '#b15c00', // orange
|
|
628
|
+
yellow: '#8c6c3e',
|
|
629
|
+
green: '#587539',
|
|
630
|
+
teal: '#118c74',
|
|
631
|
+
sky: '#007197', // cyan
|
|
632
|
+
sapphire: '#07879d', // blue2
|
|
633
|
+
blue: '#2e7de9',
|
|
634
|
+
lavender: '#7890dd', // blue0
|
|
635
|
+
text: mix('#3760bf', BLACK, 84),
|
|
636
|
+
subtext1: mix('#6172b0', BLACK, 79),
|
|
637
|
+
subtext0: '#6172b0', // fg_dark
|
|
638
|
+
overlay2: '#68709a', // dark5
|
|
639
|
+
overlay1: '#848cb5', // comment
|
|
640
|
+
overlay0: '#8990b3', // dark3
|
|
641
|
+
surface2: '#a1a6c5', // terminal_black
|
|
642
|
+
surface1: '#a8aecb', // fg_gutter
|
|
643
|
+
surface0: '#c4c8da', // bg_highlight
|
|
644
|
+
base: '#e1e2e7', // bg
|
|
645
|
+
mantle: mix('#e1e2e7', '#d0d5e3', 50),
|
|
646
|
+
crust: '#d0d5e3' // bg_dark, the sidebar
|
|
647
|
+
},
|
|
648
|
+
terminal: {
|
|
649
|
+
// prettier-ignore
|
|
650
|
+
ansi: [
|
|
651
|
+
'#b4b5b9', '#f52a65', '#587539', '#8c6c3e', '#2e7de9', '#9854f1', '#007197', '#6172b0',
|
|
652
|
+
'#a1a6c5', '#ff4774', '#5c8524', '#a27629', '#358aff', '#a463ff', '#007ea8', '#3760bf'
|
|
653
|
+
],
|
|
654
|
+
cursor: '#3760bf'
|
|
655
|
+
}
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* Tokyo Night, from folke/tokyonight.nvim's night palette
|
|
659
|
+
* (`extras/lua/tokyonight_night.lua`, the colours of enkia's original
|
|
660
|
+
* theme) and its Ghostty port (`extras/ghostty/tokyonight_night`). dark5
|
|
661
|
+
* holds only 4.1:1 on the editor, so the quieter text is mixed halfway
|
|
662
|
+
* from it to fg_dark.
|
|
663
|
+
*/
|
|
664
|
+
const TOKYO_NIGHT = {
|
|
665
|
+
palette: {
|
|
666
|
+
rosewater: '#c0caf5', // fg, the cursor
|
|
667
|
+
flamingo: '#ff007c', // magenta2
|
|
668
|
+
pink: '#ff007c',
|
|
669
|
+
mauve: '#bb9af7', // magenta
|
|
670
|
+
red: '#f7768e',
|
|
671
|
+
maroon: '#db4b4b', // red1
|
|
672
|
+
peach: '#ff9e64', // orange
|
|
673
|
+
yellow: '#e0af68',
|
|
674
|
+
green: '#9ece6a',
|
|
675
|
+
teal: '#73daca', // green1
|
|
676
|
+
sky: '#7dcfff', // cyan
|
|
677
|
+
sapphire: '#2ac3de', // blue1
|
|
678
|
+
blue: '#7aa2f7',
|
|
679
|
+
lavender: '#9d7cd8', // purple
|
|
680
|
+
text: '#c0caf5', // fg
|
|
681
|
+
subtext1: '#a9b1d6', // fg_dark
|
|
682
|
+
subtext0: mix('#a9b1d6', '#737aa2', 50),
|
|
683
|
+
overlay2: '#737aa2', // dark5
|
|
684
|
+
overlay1: '#565f89', // comment
|
|
685
|
+
overlay0: '#545c7e', // dark3
|
|
686
|
+
surface2: '#414868', // terminal_black
|
|
687
|
+
surface1: '#3b4261', // fg_gutter
|
|
688
|
+
surface0: '#292e42', // bg_highlight
|
|
689
|
+
base: '#1a1b26', // bg
|
|
690
|
+
mantle: '#16161e', // bg_dark, the sidebar
|
|
691
|
+
crust: '#0c0e14' // bg_dark1
|
|
692
|
+
},
|
|
693
|
+
terminal: {
|
|
694
|
+
// prettier-ignore
|
|
695
|
+
ansi: [
|
|
696
|
+
'#15161e', '#f7768e', '#9ece6a', '#e0af68', '#7aa2f7', '#bb9af7', '#7dcfff', '#a9b1d6',
|
|
697
|
+
'#414868', '#ff899d', '#9fe044', '#faba4a', '#8db0ff', '#c7a9ff', '#a4daff', '#c0caf5'
|
|
698
|
+
],
|
|
699
|
+
cursor: '#c0caf5'
|
|
700
|
+
}
|
|
701
|
+
};
|
|
702
|
+
/**
|
|
703
|
+
* Rosé Pine Dawn, from Rosé Pine's published palette (rose-pine/palette,
|
|
704
|
+
* `palette.json`, whose dawn text the ports and Shiki still draw as
|
|
705
|
+
* `#575279`) and its Alacritty port (rose-pine/alacritty,
|
|
706
|
+
* `dist/rose-pine-dawn.toml`). Its panels are the base, on the overlay as
|
|
707
|
+
* the ground; the steps between its muted, subtle, and text tones are
|
|
708
|
+
* mixed. Rosé Pine has no orange, green, or blue but pine and foam, so gold,
|
|
709
|
+
* pine, and foam stand in by hue.
|
|
710
|
+
*/
|
|
711
|
+
const ROSE_PINE_DAWN = {
|
|
712
|
+
palette: {
|
|
713
|
+
rosewater: '#d7827e', // rose
|
|
714
|
+
flamingo: '#d7827e',
|
|
715
|
+
pink: '#d7827e',
|
|
716
|
+
mauve: '#907aa9', // iris
|
|
717
|
+
red: '#b4637a', // love
|
|
718
|
+
maroon: '#b4637a',
|
|
719
|
+
peach: '#ea9d34', // gold
|
|
720
|
+
yellow: '#ea9d34',
|
|
721
|
+
green: '#286983', // pine
|
|
722
|
+
teal: '#56949f', // foam
|
|
723
|
+
sky: '#56949f',
|
|
724
|
+
sapphire: '#56949f',
|
|
725
|
+
blue: '#286983',
|
|
726
|
+
lavender: '#907aa9',
|
|
727
|
+
text: '#575279',
|
|
728
|
+
subtext1: mix('#575279', '#797593', 60),
|
|
729
|
+
subtext0: mix('#575279', '#797593', 25),
|
|
730
|
+
overlay2: '#797593', // subtle
|
|
731
|
+
overlay1: mix('#797593', '#9893a5', 50),
|
|
732
|
+
overlay0: '#9893a5', // muted
|
|
733
|
+
surface2: '#cecacd', // highlight high
|
|
734
|
+
surface1: mix('#cecacd', '#dfdad9', 50),
|
|
735
|
+
surface0: '#dfdad9', // highlight med
|
|
736
|
+
base: '#faf4ed', // base
|
|
737
|
+
mantle: '#f2e9e1', // overlay
|
|
738
|
+
crust: mix('#f2e9e1', '#dfdad9', 50)
|
|
739
|
+
},
|
|
740
|
+
terminal: {
|
|
741
|
+
// prettier-ignore
|
|
742
|
+
ansi: [
|
|
743
|
+
'#f2e9e1', '#b4637a', '#286983', '#ea9d34', '#56949f', '#907aa9', '#d7827e', '#575279',
|
|
744
|
+
'#9893a5', '#b4637a', '#286983', '#ea9d34', '#56949f', '#907aa9', '#d7827e', '#575279'
|
|
745
|
+
],
|
|
746
|
+
cursor: '#cecacd'
|
|
747
|
+
},
|
|
748
|
+
// Pine stands in for both blue and green, so a group's blue dot wears
|
|
749
|
+
// foam, as the terminal port's blue does, apart from the green one.
|
|
750
|
+
groups: { blue: '#56949f' }
|
|
751
|
+
};
|
|
752
|
+
/**
|
|
753
|
+
* Rosé Pine, from Rosé Pine's published palette (rose-pine/palette,
|
|
754
|
+
* `palette.json`) and its Alacritty port (rose-pine/alacritty,
|
|
755
|
+
* `dist/rose-pine.toml`). Its panels are the base, with the grounds under
|
|
756
|
+
* them darkened from it (Rosé Pine has none darker); the steps between its
|
|
757
|
+
* muted, subtle, and text tones are mixed. Rosé Pine has no orange, green,
|
|
758
|
+
* or blue, so gold and foam stand in by hue; pine holds only 3.3:1 on the
|
|
759
|
+
* base, too faint for strings and file names, so it stays in the terminal.
|
|
760
|
+
*/
|
|
761
|
+
const ROSE_PINE = {
|
|
762
|
+
palette: {
|
|
763
|
+
rosewater: '#ebbcba', // rose
|
|
764
|
+
flamingo: '#ebbcba',
|
|
765
|
+
pink: '#ebbcba',
|
|
766
|
+
mauve: '#c4a7e7', // iris
|
|
767
|
+
red: '#eb6f92', // love
|
|
768
|
+
maroon: '#eb6f92',
|
|
769
|
+
peach: '#f6c177', // gold
|
|
770
|
+
yellow: '#f6c177',
|
|
771
|
+
green: '#9ccfd8', // foam
|
|
772
|
+
teal: '#9ccfd8',
|
|
773
|
+
sky: '#9ccfd8',
|
|
774
|
+
sapphire: '#9ccfd8',
|
|
775
|
+
blue: '#9ccfd8',
|
|
776
|
+
lavender: '#c4a7e7',
|
|
777
|
+
text: '#e0def4',
|
|
778
|
+
subtext1: mix('#e0def4', '#908caa', 50),
|
|
779
|
+
subtext0: '#908caa', // subtle
|
|
780
|
+
overlay2: mix('#908caa', '#6e6a86', 50),
|
|
781
|
+
overlay1: '#6e6a86', // muted
|
|
782
|
+
overlay0: mix('#6e6a86', '#524f67', 50),
|
|
783
|
+
surface2: '#524f67', // highlight high
|
|
784
|
+
surface1: '#403d52', // highlight med
|
|
785
|
+
surface0: '#26233a', // overlay
|
|
786
|
+
base: '#191724', // base
|
|
787
|
+
...darkerGrounds('#191724')
|
|
788
|
+
},
|
|
789
|
+
terminal: {
|
|
790
|
+
// prettier-ignore
|
|
791
|
+
ansi: [
|
|
792
|
+
'#26233a', '#eb6f92', '#31748f', '#f6c177', '#9ccfd8', '#c4a7e7', '#ebbcba', '#e0def4',
|
|
793
|
+
'#6e6a86', '#eb6f92', '#31748f', '#f6c177', '#9ccfd8', '#c4a7e7', '#ebbcba', '#e0def4'
|
|
794
|
+
],
|
|
795
|
+
cursor: '#524f67'
|
|
796
|
+
},
|
|
797
|
+
// Foam stands in for both blue and green, so a group's green dot wears
|
|
798
|
+
// pine, as the terminal port's green does, apart from the blue one.
|
|
799
|
+
groups: { green: '#31748f' },
|
|
800
|
+
overrides: {
|
|
801
|
+
// Rosé Pine marks links and selection in iris and fills its buttons
|
|
802
|
+
// with rose.
|
|
803
|
+
'--accent': '#c4a7e7',
|
|
804
|
+
'--primary': '#ebbcba'
|
|
805
|
+
}
|
|
806
|
+
};
|
|
807
|
+
/**
|
|
808
|
+
* Nord, from Arctic Ice Studio's palette (nord0 to nord15) and its
|
|
809
|
+
* Alacritty port (nordtheme/alacritty, `src/nord.yaml`). The grounds under
|
|
810
|
+
* the polar night panels are darkened from nord0 (Nord has none darker),
|
|
811
|
+
* and the steps between nord4 and the comment grey Nord's editor ports use
|
|
812
|
+
* (`#616e88`) are mixed.
|
|
813
|
+
*/
|
|
814
|
+
const NORD = {
|
|
815
|
+
palette: {
|
|
816
|
+
rosewater: '#d08770', // nord12
|
|
817
|
+
flamingo: '#b48ead', // nord15
|
|
818
|
+
pink: '#b48ead',
|
|
819
|
+
mauve: '#b48ead',
|
|
820
|
+
red: '#bf616a', // nord11
|
|
821
|
+
maroon: '#bf616a',
|
|
822
|
+
peach: '#d08770', // nord12
|
|
823
|
+
yellow: '#ebcb8b', // nord13
|
|
824
|
+
green: '#a3be8c', // nord14
|
|
825
|
+
teal: '#8fbcbb', // nord7
|
|
826
|
+
sky: '#88c0d0', // nord8
|
|
827
|
+
sapphire: '#81a1c1', // nord9
|
|
828
|
+
blue: '#88c0d0', // nord8, Nord's accent
|
|
829
|
+
lavender: '#81a1c1', // nord9
|
|
830
|
+
text: '#d8dee9', // nord4
|
|
831
|
+
subtext1: mix('#d8dee9', '#616e88', 82),
|
|
832
|
+
subtext0: mix('#d8dee9', '#616e88', 64),
|
|
833
|
+
overlay2: mix('#d8dee9', '#616e88', 44),
|
|
834
|
+
overlay1: mix('#d8dee9', '#616e88', 22),
|
|
835
|
+
overlay0: '#616e88',
|
|
836
|
+
surface2: '#4c566a', // nord3
|
|
837
|
+
surface1: '#434c5e', // nord2
|
|
838
|
+
surface0: '#3b4252', // nord1
|
|
839
|
+
base: '#2e3440', // nord0
|
|
840
|
+
...darkerGrounds('#2e3440')
|
|
841
|
+
},
|
|
842
|
+
terminal: {
|
|
843
|
+
// prettier-ignore
|
|
844
|
+
ansi: [
|
|
845
|
+
'#3b4252', '#bf616a', '#a3be8c', '#ebcb8b', '#81a1c1', '#b48ead', '#88c0d0', '#e5e9f0',
|
|
846
|
+
'#4c566a', '#bf616a', '#a3be8c', '#ebcb8b', '#81a1c1', '#b48ead', '#8fbcbb', '#eceff4'
|
|
847
|
+
],
|
|
848
|
+
cursor: '#d8dee9'
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
/**
|
|
852
|
+
* Dracula, from its specification (spec.draculatheme.com: the colours and
|
|
853
|
+
* the background shades) and its Alacritty port (dracula/alacritty). Dracula
|
|
854
|
+
* has no blue, so purple, its accent, takes the blue roles as its terminal
|
|
855
|
+
* port does, and pink takes the keywords' purple; the steps between the
|
|
856
|
+
* comment colour and the foreground are mixed.
|
|
857
|
+
*/
|
|
858
|
+
const DRACULA = {
|
|
859
|
+
palette: {
|
|
860
|
+
rosewater: '#ffb86c', // orange
|
|
861
|
+
flamingo: '#ff79c6', // pink
|
|
862
|
+
pink: '#ff79c6',
|
|
863
|
+
mauve: '#ff79c6',
|
|
864
|
+
red: '#ff5555',
|
|
865
|
+
maroon: '#ff6e6e', // bright red
|
|
866
|
+
peach: '#ffb86c',
|
|
867
|
+
yellow: '#f1fa8c',
|
|
868
|
+
green: '#50fa7b',
|
|
869
|
+
teal: '#8be9fd', // cyan
|
|
870
|
+
sky: '#8be9fd',
|
|
871
|
+
sapphire: '#8be9fd',
|
|
872
|
+
blue: '#bd93f9', // purple
|
|
873
|
+
lavender: '#bd93f9',
|
|
874
|
+
text: '#f8f8f2', // foreground
|
|
875
|
+
subtext1: mix('#f8f8f2', '#6272a4', 80),
|
|
876
|
+
subtext0: mix('#f8f8f2', '#6272a4', 60),
|
|
877
|
+
overlay2: mix('#f8f8f2', '#6272a4', 30),
|
|
878
|
+
overlay1: '#6272a4', // comment
|
|
879
|
+
overlay0: mix('#6272a4', '#44475a', 50),
|
|
880
|
+
surface2: '#44475a', // current line
|
|
881
|
+
surface1: '#424450', // background lighter
|
|
882
|
+
surface0: '#343746', // background light
|
|
883
|
+
base: '#282a36', // background
|
|
884
|
+
mantle: '#21222c', // background dark
|
|
885
|
+
crust: '#191a21' // background darker
|
|
886
|
+
},
|
|
887
|
+
terminal: {
|
|
888
|
+
// prettier-ignore
|
|
889
|
+
ansi: [
|
|
890
|
+
'#21222c', '#ff5555', '#50fa7b', '#f1fa8c', '#bd93f9', '#ff79c6', '#8be9fd', '#f8f8f2',
|
|
891
|
+
'#6272a4', '#ff6e6e', '#69ff94', '#ffffa5', '#d6acff', '#ff92df', '#a4ffff', '#ffffff'
|
|
892
|
+
],
|
|
893
|
+
cursor: '#f8f8f2'
|
|
894
|
+
},
|
|
895
|
+
overrides: {
|
|
896
|
+
// Dracula's pink fills the primary button, so it stands apart from
|
|
897
|
+
// the purple that marks selection and focus.
|
|
898
|
+
'--primary': '#ff79c6'
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
/** Each theme's colours by its id; a theme `ids.ts` lists without colours fails to compile. */
|
|
902
|
+
const COLOURS = {
|
|
903
|
+
'catppuccin-latte': CATPPUCCIN_LATTE,
|
|
904
|
+
'catppuccin-frappe': CATPPUCCIN_FRAPPE,
|
|
905
|
+
'catppuccin-macchiato': CATPPUCCIN_MACCHIATO,
|
|
906
|
+
'catppuccin-mocha': CATPPUCCIN_MOCHA,
|
|
907
|
+
'github-light': GITHUB_LIGHT,
|
|
908
|
+
'github-dark': GITHUB_DARK,
|
|
909
|
+
'gruvbox-light': GRUVBOX_LIGHT,
|
|
910
|
+
'gruvbox-dark': GRUVBOX_DARK,
|
|
911
|
+
'one-light': ONE_LIGHT,
|
|
912
|
+
'one-dark': ONE_DARK,
|
|
913
|
+
'rose-pine-dawn': ROSE_PINE_DAWN,
|
|
914
|
+
'rose-pine': ROSE_PINE,
|
|
915
|
+
'solarized-light': SOLARIZED_LIGHT,
|
|
916
|
+
'solarized-dark': SOLARIZED_DARK,
|
|
917
|
+
'tokyo-night-day': TOKYO_NIGHT_DAY,
|
|
918
|
+
'tokyo-night': TOKYO_NIGHT,
|
|
919
|
+
nord: NORD,
|
|
920
|
+
dracula: DRACULA
|
|
921
|
+
};
|
|
922
|
+
/**
|
|
923
|
+
* Every theme, in the order `ids.ts` lists them (light themes first, the
|
|
924
|
+
* order a theme picker lists them in).
|
|
925
|
+
*/
|
|
926
|
+
export const THEMES = THEME_ENTRIES.map((entry) => ({
|
|
927
|
+
...entry,
|
|
928
|
+
...COLOURS[entry.id]
|
|
929
|
+
}));
|
|
930
|
+
/** The theme of the catalog with `id`. */
|
|
931
|
+
export function themeById(id) {
|
|
932
|
+
const theme = THEMES.find((candidate) => candidate.id === id);
|
|
933
|
+
if (theme === undefined)
|
|
934
|
+
throw new Error(`No theme ${id} in the catalog.`);
|
|
935
|
+
return theme;
|
|
936
|
+
}
|
|
937
|
+
/** The theme a light appearance wears until the user picks another. */
|
|
938
|
+
export const DEFAULT_LIGHT_THEME = themeById(DEFAULT_LIGHT_THEME_ID);
|
|
939
|
+
/** The theme a dark appearance wears until the user picks another. */
|
|
940
|
+
export const DEFAULT_DARK_THEME = themeById(DEFAULT_DARK_THEME_ID);
|