@kabmo-labs/kabmo 0.18.0 → 0.19.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/README.md +10 -7
- package/dist/client/index.html +1 -1
- package/dist/client/index.js +475 -474
- package/dist/client/static/js/{index-tc09dtca.js → index-fcee4c13.js} +766 -765
- package/dist/client/static/js/index-sxdw908m.css +1 -0
- package/marketplace/plugins/command-runner/package.json +3 -2
- package/marketplace/plugins/git-forge/package.json +3 -2
- package/marketplace/plugins/session-info/package.json +3 -2
- package/marketplace/plugins/stats/package.json +3 -2
- package/package.json +3 -1
- package/src/client/components/auth/login-screen/index.tsx +2 -1
- package/src/client/components/common/ComposerPicker.tsx +1 -1
- package/src/client/components/common/FolderPicker.tsx +2 -2
- package/src/client/components/common/Modal.tsx +2 -2
- package/src/client/components/common/PWAInstallButton.tsx +2 -2
- package/src/client/components/common/ViewportSelector.tsx +1 -1
- package/src/client/components/common/anchored-menu/index.tsx +5 -1
- package/src/client/components/common/batch-selection/SelectionCheckbox.tsx +2 -1
- package/src/client/components/common/brand-wordmark/index.test.tsx +13 -2
- package/src/client/components/common/brand-wordmark/index.tsx +13 -2
- package/src/client/components/common/checkbox/style.test.ts +139 -0
- package/src/client/components/common/checkbox/style.ts +51 -0
- package/src/client/components/common/context-usage-button/index.tsx +2 -2
- package/src/client/components/common/file-icon/index.tsx +23 -9
- package/src/client/components/common/header-controls/MoreMenu.tsx +1 -1
- package/src/client/components/common/markdown-review/ReviewPopover.tsx +1 -1
- package/src/client/components/common/panel-mark/index.tsx +97 -0
- package/src/client/components/common/provider-icon/glyphs.test.ts +1 -1
- package/src/client/components/common/provider-icon/index.test.ts +14 -0
- package/src/client/components/common/provider-icon/index.tsx +4 -0
- package/src/client/components/common/provider-icon/resolve.test.ts +8 -7
- package/src/client/components/common/provider-icon/resolve.ts +16 -3
- package/src/client/components/common/session-actions-menu/index.tsx +1 -1
- package/src/client/components/common/toolbar-row/index.tsx +1 -1
- package/src/client/components/layout/ActivityBar.tsx +22 -3
- package/src/client/components/layout/LeftDock.tsx +9 -2
- package/src/client/components/layout/PanelVisibilityMenu.tsx +1 -1
- package/src/client/components/layout/WindowAura.tsx +27 -0
- package/src/client/components/layout/desktop-layout/LeftColumn.tsx +1 -1
- package/src/client/components/layout/desktop-layout/TopNavbar.tsx +2 -2
- package/src/client/components/layout/desktop-layout/WorkspacePanels.tsx +11 -2
- package/src/client/components/layout/desktop-layout/index.tsx +3 -1
- package/src/client/components/layout/session-sidebar/CategoryHeader.tsx +3 -3
- package/src/client/components/layout/session-sidebar/Header.tsx +1 -1
- package/src/client/components/layout/session-sidebar/OverflowMenu.tsx +1 -1
- package/src/client/components/layout/session-sidebar/Toolbar.tsx +1 -1
- package/src/client/components/layout/session-sidebar/about-modal/index.tsx +2 -2
- package/src/client/components/layout/session-sidebar/modern/ActionRow.tsx +1 -1
- package/src/client/components/layout/session-sidebar/modern/WorkspaceHeader.tsx +13 -5
- package/src/client/components/layout/session-sidebar/new-workspace-modal/index.tsx +2 -2
- package/src/client/components/layout/session-sidebar/scheduler-modal/TaskForm.tsx +2 -1
- package/src/client/components/layout/session-sidebar/scheduler-modal/index.tsx +2 -2
- package/src/client/components/mobile/LayoutWrapper.tsx +3 -1
- package/src/client/components/mobile/mobile-main-view/Header.tsx +2 -2
- package/src/client/components/mobile/mobile-session-sidebar/Header.tsx +1 -1
- package/src/client/components/mobile/mobile-session-sidebar/Toolbar.tsx +1 -1
- package/src/client/components/mobile/panel-chips.tsx +10 -2
- package/src/client/components/settings/Modal.tsx +4 -4
- package/src/client/components/settings/ProjectSelectorDropdown.tsx +2 -2
- package/src/client/components/settings/apply-side-effects.test.ts +30 -0
- package/src/client/components/settings/apply-side-effects.ts +14 -0
- package/src/client/components/settings/categories/AppearanceSettings.tsx +6 -0
- package/src/client/components/settings/categories/appearance-settings/EditorBlameSection.tsx +2 -1
- package/src/client/components/settings/categories/appearance-settings/EditorTypingSection.tsx +2 -1
- package/src/client/components/settings/categories/appearance-settings/IconStyleSection.tsx +144 -0
- package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.test.tsx +120 -0
- package/src/client/components/settings/categories/appearance-settings/SurfaceStyleSection.tsx +180 -0
- package/src/client/components/settings/categories/mcp-settings/DetailPane.tsx +2 -1
- package/src/client/components/settings/categories/mcp-settings/ImportModal.tsx +2 -2
- package/src/client/components/settings/categories/omp-settings/OrderedChips.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/AvailableList.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/BuiltinList.tsx +21 -3
- package/src/client/components/settings/categories/panel-plugins/PluginCard.tsx +1 -1
- package/src/client/components/settings/categories/panel-plugins/PluginMark.test.ts +51 -2
- package/src/client/components/settings/categories/panel-plugins/PluginMark.tsx +43 -10
- package/src/client/components/settings/categories/plugin-settings/DetailPane.tsx +2 -1
- package/src/client/components/settings/categories/plugin-settings/SettingsSection.tsx +2 -1
- package/src/client/components/settings/categories/project-settings/ModelDropdown.tsx +1 -1
- package/src/client/components/settings/categories/project-settings/WorktreeSettings.tsx +2 -1
- package/src/client/components/settings/categories/provider-settings/DeleteProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/provider-settings/EntryAdvanced.tsx +3 -2
- package/src/client/components/settings/categories/provider-settings/LogoutProviderModal.tsx +2 -2
- package/src/client/components/settings/categories/skill-catalog/GitImportPanel.tsx +3 -2
- package/src/client/components/settings/categories/skill-settings/DetailHeader.tsx +2 -1
- package/src/client/components/settings/categories/token-usage-settings/Controls.tsx +1 -1
- package/src/client/components/workspace/btw-panel/TopicMenu.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/AiMessageFooter.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/NewChatModal.tsx +3 -3
- package/src/client/components/workspace/chat-timeline/UndoConfirmModal.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/chat-input/AccessDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/GoalModal.tsx +4 -3
- package/src/client/components/workspace/chat-timeline/chat-input/ThinkingLevelDropdown.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/chat-input/WaitingDependencyPicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/plan-review/index.tsx +2 -2
- package/src/client/components/workspace/chat-timeline/target-picker/WorkspacePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/target-picker/WorktreePicker.tsx +1 -1
- package/src/client/components/workspace/chat-timeline/tool-renderers/extension-dialog/index.tsx +2 -6
- package/src/client/components/workspace/context-panel/CostBreakdownPopover.tsx +1 -1
- package/src/client/components/workspace/diff-panel/index.tsx +2 -2
- package/src/client/components/workspace/editor/PluginRail.tsx +1 -1
- package/src/client/components/workspace/editor/SaveDeletedFileModal.tsx +2 -2
- package/src/client/components/workspace/editor/TabContextMenu.tsx +1 -1
- package/src/client/components/workspace/editor/Tabs.tsx +1 -1
- package/src/client/components/workspace/file-explorer/ContextMenu.tsx +1 -1
- package/src/client/components/workspace/file-explorer/Modals.tsx +10 -10
- package/src/client/components/workspace/file-explorer/RootMenu.tsx +1 -1
- package/src/client/components/workspace/git-panel/BranchToolbar.test.tsx +130 -0
- package/src/client/components/workspace/git-panel/BranchToolbar.tsx +21 -11
- package/src/client/components/workspace/git-panel/CommitBox.tsx +2 -1
- package/src/client/components/workspace/git-panel/Modals.tsx +2 -2
- package/src/client/components/workspace/git-panel/StashSection.tsx +2 -1
- package/src/client/components/workspace/git-panel/branch-modal/DeleteDialog.tsx +2 -1
- package/src/client/components/workspace/git-panel/branch-modal/RenameDialog.tsx +2 -1
- package/src/client/components/workspace/git-panel/commit-modal/index.tsx +2 -2
- package/src/client/components/workspace/git-panel/index.tsx +7 -0
- package/src/client/components/workspace/model-dropdown/Panel.tsx +1 -1
- package/src/client/components/workspace/model-dropdown/SpecsTooltip.tsx +1 -1
- package/src/client/components/workspace/plugin-panel/catalog.tsx +7 -0
- package/src/client/components/workspace/plugin-panel/resolve.tsx +4 -0
- package/src/client/components/workspace/search-panel/Body.tsx +1 -1
- package/src/client/components/workspace/usage-panel/ProviderSelect.tsx +1 -1
- package/src/client/glass.css +785 -0
- package/src/client/glass.test.ts +346 -0
- package/src/client/hooks/ui/glass-support.ts +57 -0
- package/src/client/hooks/ui/icon-style.ts +59 -0
- package/src/client/hooks/ui/stuck-header.test.ts +188 -0
- package/src/client/hooks/ui/stuck-header.ts +91 -0
- package/src/client/hooks/ui/style-attributes.test.ts +120 -0
- package/src/client/hooks/ui/surface-style.ts +56 -0
- package/src/client/hooks/workspace/panel-hues.ts +23 -0
- package/src/client/main.tsx +10 -0
- package/src/client/tailwind.css +264 -11
- package/src/server/lib/assets/shell-attributes.server.ts +80 -0
- package/src/server/lib/assets/shell-attributes.test.ts +86 -0
- package/src/server/lib/omp/rpc/frame-fold-host.test-util.ts +1 -0
- package/src/server/lib/omp/rpc/frame-fold-signals.test.ts +2 -30
- package/src/server/lib/omp/rpc/frame-fold.test.ts +55 -0
- package/src/server/lib/omp/rpc/frame-fold.ts +4 -0
- package/src/server/lib/omp/rpc/manager.ts +2 -2
- package/src/server/lib/omp/rpc/process-helpers.ts +11 -0
- package/src/server/lib/omp/rpc/process.test.ts +106 -0
- package/src/server/lib/omp/rpc/process.ts +28 -4
- package/src/server/lib/omp/rpc/run-settle.server.ts +12 -0
- package/src/server/lib/omp/rpc/run-settle.test.ts +22 -0
- package/src/server/lib/omp/rpc/session-command-guards.ts +5 -0
- package/src/server/lib/omp/rpc/session-commands.test.ts +9 -1
- package/src/server/lib/omp/rpc/session-commands.ts +11 -0
- package/src/server/lib/omp/rpc/terminal-settle.ts +29 -7
- package/src/server/lib/panels/bundled-catalog.server.ts +1 -0
- package/src/server/lib/panels/manifest.test.ts +20 -0
- package/src/server/lib/panels/manifest.ts +12 -0
- package/src/server/lib/panels/scan.server.ts +4 -0
- package/src/server/lib/queue/delivery-dispatch.server.test.ts +48 -0
- package/src/server/lib/queue/delivery-harness.ts +8 -4
- package/src/server/lib/queue/delivery.server.test.ts +29 -0
- package/src/server/lib/queue/delivery.server.ts +39 -0
- package/src/server/lib/queue/store.server.test.ts +22 -2
- package/src/server/lib/queue/store.server.ts +33 -11
- package/src/server/plugins/ssr.ts +22 -5
- package/src/shared/lib/icons/file-brand-color.ts +38 -0
- package/src/shared/lib/icons/icon-paint-css.test.ts +234 -0
- package/src/shared/lib/icons/icon-paint-css.ts +284 -0
- package/src/shared/lib/icons/icon-paint-panel.ts +100 -0
- package/src/shared/lib/icons/tint-hues.generated.ts +230 -0
- package/src/shared/lib/icons/tint.test.ts +273 -0
- package/src/shared/lib/icons/tint.ts +219 -0
- package/src/shared/lib/models/provider/brand-color.test.ts +116 -0
- package/src/shared/lib/models/provider/brand-color.ts +103 -0
- package/src/shared/lib/omp/rpc/frame.test.ts +65 -0
- package/src/shared/lib/omp/rpc/frame.ts +58 -3
- package/src/shared/lib/settings/defaults.ts +4 -0
- package/src/shared/lib/theme/catalog.test.ts +5 -4
- package/src/shared/lib/theme/catalog.ts +18 -3
- package/src/shared/lib/theme/glass-support.test.ts +38 -0
- package/src/shared/lib/theme/glass-support.ts +73 -0
- package/src/shared/lib/theme/icon-style.test.ts +74 -0
- package/src/shared/lib/theme/icon-style.ts +90 -0
- package/src/shared/lib/theme/legibility.ts +91 -0
- package/src/shared/lib/theme/palettes/dark-extended.ts +152 -0
- package/src/shared/lib/theme/palettes/light-extended.ts +157 -0
- package/src/shared/lib/theme/surface-style.test.ts +68 -0
- package/src/shared/lib/theme/surface-style.ts +91 -0
- package/src/shared/lib/theme/theme.test.ts +11 -7
- package/src/shared/lib/workspace/panel-hues.test.ts +68 -0
- package/src/shared/lib/workspace/panel-hues.ts +57 -0
- package/src/shared/types/panels-registry.ts +6 -0
- package/src/shared/types/panels.ts +14 -0
- package/src/shared/types/settings/state.ts +26 -0
- package/src/test-support/fake-omp-frames.ts +163 -0
- package/dist/client/static/js/index-hp75vsv9.css +0 -1
- /package/src/{client/components/common/file-icon/brand-paths.ts → shared/lib/icons/file-brand-paths.ts} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { describe, expect, test } from 'bun:test';
|
|
7
|
+
import { GLASS_LIMIT_COPY, glassLimits, type GlassLimit } from '@/shared/lib/theme/glass-support';
|
|
8
|
+
|
|
9
|
+
describe('glass support', () => {
|
|
10
|
+
test('a supported engine with no preference reports nothing', () => {
|
|
11
|
+
expect(glassLimits({ backdropFilter: true, reducedTransparency: false })).toEqual([]);
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
test('a missing backdrop-filter is named even when the system also asked for less transparency', () => {
|
|
15
|
+
// The ORDER is the point: with no blur, the media query has nothing to switch
|
|
16
|
+
// off, so naming the preference first would send the reader to an OS setting
|
|
17
|
+
// that changes nothing on that engine.
|
|
18
|
+
expect(glassLimits({ backdropFilter: false, reducedTransparency: true })).toEqual([
|
|
19
|
+
'no-backdrop-filter',
|
|
20
|
+
'reduced-transparency',
|
|
21
|
+
]);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test('reduced transparency alone is a limit, because the frost really is off', () => {
|
|
25
|
+
expect(glassLimits({ backdropFilter: true, reducedTransparency: true })).toEqual([
|
|
26
|
+
'reduced-transparency',
|
|
27
|
+
]);
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
test('every limit has copy long enough to act on', () => {
|
|
31
|
+
const limits: GlassLimit[] = ['no-backdrop-filter', 'reduced-transparency'];
|
|
32
|
+
for (const limit of limits) {
|
|
33
|
+
// A limit with no sentence is a warning nobody can act on; the number is the
|
|
34
|
+
// shortest of the two shipped strings.
|
|
35
|
+
expect(GLASS_LIMIT_COPY[limit].length).toBeGreaterThan(80);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Whether the machine running this document can actually draw the glass
|
|
8
|
+
* material, and if not, WHY.
|
|
9
|
+
*
|
|
10
|
+
* The `glass` surface style is pure CSS: one `backdrop-filter` on the window
|
|
11
|
+
* plane plus the tiers above it. Every shell Kabmo ships renders the same page —
|
|
12
|
+
* Android's `WebView`, iOS/macOS `WKWebView`, Windows' WebView2 and Linux's
|
|
13
|
+
* WebKitGTK 4.1 — so the style is not per-platform. What IS per-platform is the
|
|
14
|
+
* two ways it silently stops working:
|
|
15
|
+
*
|
|
16
|
+
* - **The engine has no `backdrop-filter`.** Then `glass.css`'s `@supports not
|
|
17
|
+
* (…)` block hands back the opaque palette, and the window looks exactly like
|
|
18
|
+
* `classic` while the setting says `glass`. The prefix matters here: Chromium
|
|
19
|
+
* only shipped the UNPREFIXED property in 76, so an Android 7 device
|
|
20
|
+
* (`minSdk 24`) whose WebView was never updated still needs
|
|
21
|
+
* `-webkit-backdrop-filter`, which the stylesheets always write.
|
|
22
|
+
* - **The system asked apps to reduce transparency.** macOS/iOS "Reduce
|
|
23
|
+
* Transparency", GNOME's equivalent: the `prefers-reduced-transparency` media
|
|
24
|
+
* query fires and every translucent token resolves to opaque paper. That is
|
|
25
|
+
* the intended behaviour — a frosted window is exactly what the setting exists
|
|
26
|
+
* to remove — but a user who switched the surface style ON and sees no change
|
|
27
|
+
* reads it as a bug ("glass doesn't work on my mac").
|
|
28
|
+
*
|
|
29
|
+
* Both are REPORTED rather than papered over (`AGENTS.md` §6: a substitution has
|
|
30
|
+
* to name itself), which is the whole reason this module exists: the fallback in
|
|
31
|
+
* CSS cannot say anything, so the settings control says it once, in the place the
|
|
32
|
+
* choice is made.
|
|
33
|
+
*
|
|
34
|
+
* This module is pure — the caller passes what the platform's own APIs answered —
|
|
35
|
+
* so the rule is testable without a browser, and the same answers can be checked
|
|
36
|
+
* from a terminal (`CSS.supports`, `matchMedia`) when a shell misbehaves.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
export type GlassLimit = 'no-backdrop-filter' | 'reduced-transparency';
|
|
40
|
+
|
|
41
|
+
/** What the platform APIs answered. Both are cheap and synchronous. */
|
|
42
|
+
export interface GlassProbe {
|
|
43
|
+
/** `CSS.supports('backdrop-filter', …) || CSS.supports('-webkit-backdrop-filter', …)`. */
|
|
44
|
+
backdropFilter: boolean;
|
|
45
|
+
/** `matchMedia('(prefers-reduced-transparency: reduce)').matches`. */
|
|
46
|
+
reducedTransparency: boolean;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Every reason the frost will not appear, in the order they matter.
|
|
51
|
+
*
|
|
52
|
+
* An engine that cannot blur is the FIRST reason even when the system also asked
|
|
53
|
+
* for less transparency: with no `backdrop-filter` the media query has nothing to
|
|
54
|
+
* switch off, and naming the preference first would send the reader to an OS
|
|
55
|
+
* setting that changes nothing.
|
|
56
|
+
*/
|
|
57
|
+
export function glassLimits({ backdropFilter, reducedTransparency }: GlassProbe): GlassLimit[] {
|
|
58
|
+
const limits: GlassLimit[] = [];
|
|
59
|
+
if (!backdropFilter) limits.push('no-backdrop-filter');
|
|
60
|
+
if (reducedTransparency) limits.push('reduced-transparency');
|
|
61
|
+
return limits;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* What the settings control says. `null` for a limit is not allowed — a limit
|
|
66
|
+
* with no sentence is a warning nobody can act on.
|
|
67
|
+
*/
|
|
68
|
+
export const GLASS_LIMIT_COPY: Record<GlassLimit, string> = {
|
|
69
|
+
'no-backdrop-filter':
|
|
70
|
+
'This engine reports no backdrop blur, so the frost falls back to opaque panels here — the window keeps the glass colours but loses the blur.',
|
|
71
|
+
'reduced-transparency':
|
|
72
|
+
'Your system asks apps to reduce transparency, so the frost is switched off. Turn that system setting off to see the glass material.',
|
|
73
|
+
};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The icon style's contract.
|
|
8
|
+
*
|
|
9
|
+
* Two facts are pinned here: the default must be what shipped (monochrome ink),
|
|
10
|
+
* and an unreadable stored value must land on it rather than leaving every mark
|
|
11
|
+
* with no rule to paint it.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
import { describe, expect, test } from 'bun:test';
|
|
15
|
+
import {
|
|
16
|
+
DEFAULT_ICON_STYLE,
|
|
17
|
+
ICON_STYLE_ATTRIBUTE,
|
|
18
|
+
ICON_STYLES,
|
|
19
|
+
ICON_STYLE_COPY,
|
|
20
|
+
isIconStyle,
|
|
21
|
+
resolveIconStyle,
|
|
22
|
+
} from '@/shared/lib/theme/icon-style';
|
|
23
|
+
|
|
24
|
+
describe('isIconStyle', () => {
|
|
25
|
+
test('accepts exactly the two styles', () => {
|
|
26
|
+
expect(ICON_STYLES.map(isIconStyle)).toEqual([true, true]);
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
test('refuses what another build or a corrupted blob could carry', () => {
|
|
30
|
+
for (const value of ['', 'Color', 'colour', 'full-color', 0, 1, true, null, undefined, {}, ['color']]) {
|
|
31
|
+
expect(isIconStyle(value)).toBe(false);
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
describe('resolveIconStyle', () => {
|
|
37
|
+
test('keeps a style this build draws', () => {
|
|
38
|
+
expect(resolveIconStyle('monochrome')).toBe('monochrome');
|
|
39
|
+
expect(resolveIconStyle('color')).toBe('color');
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
test('an unknown value lands on the shipped default, not on undefined', () => {
|
|
43
|
+
expect(resolveIconStyle('vivid')).toBe(DEFAULT_ICON_STYLE);
|
|
44
|
+
expect(resolveIconStyle(undefined)).toBe(DEFAULT_ICON_STYLE);
|
|
45
|
+
expect(resolveIconStyle(null)).toBe(DEFAULT_ICON_STYLE);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
describe('the style table', () => {
|
|
50
|
+
test('the default is monochrome, which is what every mark shipped as', () => {
|
|
51
|
+
expect(DEFAULT_ICON_STYLE).toBe('monochrome');
|
|
52
|
+
expect(ICON_STYLES).toContain(DEFAULT_ICON_STYLE);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
test('the attribute is a plain `data-` name', () => {
|
|
56
|
+
expect(ICON_STYLE_ATTRIBUTE).toBe('data-icon-style');
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
test('every style carries its own label and description', () => {
|
|
60
|
+
const labels = ICON_STYLES.map((style) => ICON_STYLE_COPY[style].label);
|
|
61
|
+
expect(new Set(labels).size).toBe(ICON_STYLES.length);
|
|
62
|
+
for (const style of ICON_STYLES) {
|
|
63
|
+
expect(ICON_STYLE_COPY[style].description.length).toBeGreaterThan(0);
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
test('the colour copy names what it colours, so the mode promises no literal hex', () => {
|
|
68
|
+
// Every icon family is covered by the setting; the copy has to say so or a
|
|
69
|
+
// user cannot tell what they just switched on.
|
|
70
|
+
const description = ICON_STYLE_COPY.color.description;
|
|
71
|
+
expect(description).toContain('glyphs');
|
|
72
|
+
expect(description).toContain('brand');
|
|
73
|
+
});
|
|
74
|
+
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* How EVERY icon is painted, as ONE of two styles.
|
|
8
|
+
*
|
|
9
|
+
* Three families of icon ship in this app and this setting covers all three:
|
|
10
|
+
*
|
|
11
|
+
* 1. **Functional glyphs** — Lucide's stroke icons (247 imports, 346 files).
|
|
12
|
+
* There is no second artwork to swap in, so `color` can only mean a TINT.
|
|
13
|
+
* Each glyph gets its own hue from a generated table (`icons/tint.ts`), except
|
|
14
|
+
* the ones whose meaning IS a signal (a trash can, a check, a clock, an info
|
|
15
|
+
* dot), which take the palette's `--theme-error` / `-success` / `-warning` /
|
|
16
|
+
* `-info`.
|
|
17
|
+
* 2. **Provider and model marks** (`provider-icon/`) — brand logos, painted in
|
|
18
|
+
* the brand's own colour where it publishes one.
|
|
19
|
+
* 3. **File-type marks** (`file-icon/`) — the language and tool logos a file
|
|
20
|
+
* list is read by.
|
|
21
|
+
*
|
|
22
|
+
* - `monochrome` — every icon in the surrounding ink. The DEFAULT, because it
|
|
23
|
+
* is what Kabmo ships today: an upgrade must not repaint a window the user
|
|
24
|
+
* did not ask to change.
|
|
25
|
+
* - `color` — each icon in its own colour. A brand colour that would
|
|
26
|
+
* vanish on the active variant (a black logo on a dark theme) keeps the ink
|
|
27
|
+
* instead, and the generated hues are stated at a lightness that clears the
|
|
28
|
+
* 3:1 non-text floor on every palette of that variant, so this never trades a
|
|
29
|
+
* legible row for a literal hex.
|
|
30
|
+
*
|
|
31
|
+
* Every rule is `:where()`-wrapped, so this is a DEFAULT paint and never an
|
|
32
|
+
* override: a caller's own `text-error` on a missing file, or `text-ink/40` on a
|
|
33
|
+
* muted row, still wins. That is what makes one global switch safe over 346
|
|
34
|
+
* files that never agreed to it.
|
|
35
|
+
*
|
|
36
|
+
* The style reaches the document as `data-icon-style` on `<html>`, read by CSS
|
|
37
|
+
* only: `ProviderIconPlate` alone is drawn in 26 places across five surfaces,
|
|
38
|
+
* and a prop would be 26 chances to miss one.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
export type IconStyle = 'monochrome' | 'color';
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* The style a document with no stored preference renders at. Every provider
|
|
45
|
+
* mark was ink before this setting existed, so this is the no-change default.
|
|
46
|
+
*/
|
|
47
|
+
export const DEFAULT_ICON_STYLE: IconStyle = 'monochrome';
|
|
48
|
+
|
|
49
|
+
/** Document attribute carrying the style. Read by CSS only. */
|
|
50
|
+
export const ICON_STYLE_ATTRIBUTE = 'data-icon-style';
|
|
51
|
+
|
|
52
|
+
/** `app_settings` key holding the style — see `SURFACE_STYLE_SETTING_KEY`. */
|
|
53
|
+
export const ICON_STYLE_SETTING_KEY = 'iconStyle';
|
|
54
|
+
|
|
55
|
+
/** Every style, in the order the settings control lists them. */
|
|
56
|
+
export const ICON_STYLES = ['monochrome', 'color'] as const;
|
|
57
|
+
|
|
58
|
+
/** A stored value written by another build is not a style this one can draw. */
|
|
59
|
+
export function isIconStyle(value: unknown): value is IconStyle {
|
|
60
|
+
return value === 'monochrome' || value === 'color';
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The style to APPLY for a stored value. Anything this build cannot draw
|
|
65
|
+
* resolves to the default, so a corrupted blob cannot leave every mark
|
|
66
|
+
* unpainted.
|
|
67
|
+
*/
|
|
68
|
+
export function resolveIconStyle(value: unknown): IconStyle {
|
|
69
|
+
return isIconStyle(value) ? value : DEFAULT_ICON_STYLE;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface IconStyleCopy {
|
|
73
|
+
label: string;
|
|
74
|
+
/** The tradeoff, stated once — including what the mode cannot colour. */
|
|
75
|
+
description: string;
|
|
76
|
+
caption: string;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const ICON_STYLE_COPY: Record<IconStyle, IconStyleCopy> = {
|
|
80
|
+
monochrome: {
|
|
81
|
+
label: 'Monochrome',
|
|
82
|
+
description: 'Every icon inherits the palette ink — toolbar glyphs, provider logos and file marks alike. The most uniform reading.',
|
|
83
|
+
caption: 'Palette ink',
|
|
84
|
+
},
|
|
85
|
+
color: {
|
|
86
|
+
label: 'Full colour',
|
|
87
|
+
description: 'Each icon gets its own colour: glyphs a per-icon hue, brand marks their own logo colour, a project its accent. Tool cards in a transcript stay ink — they are read, not scanned.',
|
|
88
|
+
caption: 'Per-icon colour',
|
|
89
|
+
},
|
|
90
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* How legible a brand colour is on the palettes this build actually ships.
|
|
8
|
+
*
|
|
9
|
+
* Brand art arrives with ONE hex, chosen by the brand for its own background.
|
|
10
|
+
* Kabmo paints it on 63 palettes, so "the brand's colour" is not paintable
|
|
11
|
+
* as-is: measured, `claude`'s `#D97757` reads 2.77:1 on `#f4f1ea` (the darkest
|
|
12
|
+
* light paper shipped) while it is 5.25:1 on `#201E2B` (the lightest dark one).
|
|
13
|
+
* This module is the one place that decides what to paint instead, so the
|
|
14
|
+
* provider table and the file-type table cannot disagree about the rule.
|
|
15
|
+
*
|
|
16
|
+
* Two properties are load-bearing:
|
|
17
|
+
*
|
|
18
|
+
* - **The worst surface is MEASURED, not assumed.** It is the minimum contrast
|
|
19
|
+
* against every palette of that variant (`THEMES`), not against one hardcoded
|
|
20
|
+
* hex — a new palette with a mid-tone paper would otherwise silently drop a
|
|
21
|
+
* mark below the floor. Cost is 63 comparisons per brand, once per process.
|
|
22
|
+
* - **A near-monochrome brand gets NO dark value.** `#000000` mixed toward white
|
|
23
|
+
* lands on `#737373`, which is indistinguishable from the ink it was meant to
|
|
24
|
+
* replace while claiming to be a brand colour; those brands are drawn in the
|
|
25
|
+
* theme's ink instead (`dark: null`), which is what the reference
|
|
26
|
+
* implementation does with `filter: invert()`.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
import { THEMES } from '@/shared/lib/theme/catalog';
|
|
30
|
+
import { mixHex, parseHexColor, relativeLuminance } from '@/shared/lib/theme/color';
|
|
31
|
+
|
|
32
|
+
/** WCAG's non-text floor: an icon is a graphic, not body copy. */
|
|
33
|
+
export const BRAND_CONTRAST_FLOOR = 3;
|
|
34
|
+
|
|
35
|
+
/** Below this channel spread a hex carries no hue worth keeping. */
|
|
36
|
+
const MONOCHROME_CHROMA = 24;
|
|
37
|
+
|
|
38
|
+
/** The largest step the mixer takes while searching for a legible shade. */
|
|
39
|
+
const MIX_STEP = 5;
|
|
40
|
+
const MIX_MAX = 95;
|
|
41
|
+
|
|
42
|
+
export function contrastRatio(a: string, b: string): number {
|
|
43
|
+
const [hi, lo] = [relativeLuminance(a), relativeLuminance(b)].sort((x, y) => y - x);
|
|
44
|
+
return (hi + 0.05) / (lo + 0.05);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Channel spread of a hex: at most 24 apart means the art is monochrome. */
|
|
48
|
+
export function isNearMonochrome(hex: string): boolean {
|
|
49
|
+
const color = parseHexColor(hex);
|
|
50
|
+
if (!color) return true;
|
|
51
|
+
return Math.max(color.r, color.g, color.b) - Math.min(color.r, color.g, color.b) < MONOCHROME_CHROMA;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The lowest contrast `color` reaches on any palette surface of `variant`.
|
|
56
|
+
*
|
|
57
|
+
* `paper` is the surface a mark is drawn on (a plate, a row, a card); the
|
|
58
|
+
* canvas is behind panels and never touches a mark directly.
|
|
59
|
+
*/
|
|
60
|
+
export function worstSurfaceContrast(color: string, variant: 'light' | 'dark'): number {
|
|
61
|
+
let worst = Number.POSITIVE_INFINITY;
|
|
62
|
+
for (const theme of THEMES) {
|
|
63
|
+
if (theme.variant !== variant) continue;
|
|
64
|
+
worst = Math.min(worst, contrastRatio(color, theme.paper));
|
|
65
|
+
}
|
|
66
|
+
return worst === Number.POSITIVE_INFINITY ? BRAND_CONTRAST_FLOOR : worst;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/** `hex` moved toward `toward` in 5% steps until it clears the floor. */
|
|
70
|
+
function legibleToward(hex: string, toward: string, variant: 'light' | 'dark'): string {
|
|
71
|
+
if (worstSurfaceContrast(hex, variant) >= BRAND_CONTRAST_FLOOR) return hex;
|
|
72
|
+
for (let percent = MIX_STEP; percent <= MIX_MAX; percent += MIX_STEP) {
|
|
73
|
+
const mixed = mixHex(hex, toward, percent / 100);
|
|
74
|
+
if (worstSurfaceContrast(mixed, variant) >= BRAND_CONTRAST_FLOOR) return mixed;
|
|
75
|
+
}
|
|
76
|
+
return hex;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The two values a brand colour is painted in.
|
|
81
|
+
*
|
|
82
|
+
* The light value is the brand hex, or the same hue mixed toward black until it
|
|
83
|
+
* clears the floor on every light palette; the dark value is the mirror image
|
|
84
|
+
* toward white. `dark: null` means "this brand is monochrome art — draw it in
|
|
85
|
+
* the theme's ink", which is the only honest answer for a black logo.
|
|
86
|
+
*/
|
|
87
|
+
export function legiblePair(base: string): { light: string; dark: string | null } {
|
|
88
|
+
const light = legibleToward(base, '#000000', 'light');
|
|
89
|
+
const dark = isNearMonochrome(base) ? null : legibleToward(base, '#ffffff', 'dark');
|
|
90
|
+
return { light, dark };
|
|
91
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Dark palettes ported verbatim from OpenChamber
|
|
8
|
+
* (packages/ui/src/lib/theme/themes/*.json, MIT, upstream `main`), split out of
|
|
9
|
+
* `dark.ts` only because that file is at the 350-line ceiling.
|
|
10
|
+
*
|
|
11
|
+
* Only the values Kabmo consumes are carried: surface.background -> canvas,
|
|
12
|
+
* surface.elevated -> paper, surface.foreground -> ink, status.* -> signal
|
|
13
|
+
* colors, primary.base -> accent. Field order is the swatch order.
|
|
14
|
+
*
|
|
15
|
+
* The same two normalizations as `light-extended.ts` apply: `osaka-jade`'s ids
|
|
16
|
+
* are spelled `${family}-${variant}` here (upstream's dark file names itself
|
|
17
|
+
* without the variant), and `opencode`'s opaque `#rrggbbff` values drop the
|
|
18
|
+
* alpha byte.
|
|
19
|
+
*
|
|
20
|
+
* Generated data — re-port rather than hand-editing a color here.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
import type { ThemePalette } from '@/shared/types/theme';
|
|
24
|
+
|
|
25
|
+
export const DARK_EXTENDED_PALETTES = [
|
|
26
|
+
{
|
|
27
|
+
id: 'aurora-dark',
|
|
28
|
+
name: 'Aurora',
|
|
29
|
+
family: 'aurora',
|
|
30
|
+
variant: 'dark',
|
|
31
|
+
canvas: '#131515',
|
|
32
|
+
paper: '#181b1b',
|
|
33
|
+
ink: '#ced2d2',
|
|
34
|
+
error: '#df746d',
|
|
35
|
+
success: '#6bce71',
|
|
36
|
+
info: '#67abe5',
|
|
37
|
+
warning: '#e2a85c',
|
|
38
|
+
meta: '#239d6a',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
id: 'cursor-dark',
|
|
42
|
+
name: 'Cursor',
|
|
43
|
+
family: 'cursor',
|
|
44
|
+
variant: 'dark',
|
|
45
|
+
canvas: '#1a1a1a',
|
|
46
|
+
paper: '#232323',
|
|
47
|
+
ink: '#e1e1e2',
|
|
48
|
+
error: '#c6747b',
|
|
49
|
+
success: '#A3BE8C',
|
|
50
|
+
info: '#81A1C1',
|
|
51
|
+
warning: '#EBCB8B',
|
|
52
|
+
meta: '#4c9df3',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: 'everforest-dark',
|
|
56
|
+
name: 'Everforest',
|
|
57
|
+
family: 'everforest',
|
|
58
|
+
variant: 'dark',
|
|
59
|
+
canvas: '#1c252b',
|
|
60
|
+
paper: '#222c32',
|
|
61
|
+
ink: '#f0efed',
|
|
62
|
+
error: '#e67e80',
|
|
63
|
+
success: '#a7c080',
|
|
64
|
+
info: '#83afe0',
|
|
65
|
+
warning: '#e69875',
|
|
66
|
+
meta: '#a7c080',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: 'github-dark',
|
|
70
|
+
name: 'GitHub',
|
|
71
|
+
family: 'github',
|
|
72
|
+
variant: 'dark',
|
|
73
|
+
canvas: '#0a0e14',
|
|
74
|
+
paper: '#13171e',
|
|
75
|
+
ink: '#d7d8da',
|
|
76
|
+
error: '#f85149',
|
|
77
|
+
success: '#3fb950',
|
|
78
|
+
info: '#83afe0',
|
|
79
|
+
warning: '#e3b341',
|
|
80
|
+
meta: '#58a6ff',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
id: 'material-dark',
|
|
84
|
+
name: 'Material',
|
|
85
|
+
family: 'material',
|
|
86
|
+
variant: 'dark',
|
|
87
|
+
canvas: '#1a252a',
|
|
88
|
+
paper: '#212c31',
|
|
89
|
+
ink: '#edeff0',
|
|
90
|
+
error: '#f07178',
|
|
91
|
+
success: '#c3e88d',
|
|
92
|
+
info: '#83afe0',
|
|
93
|
+
warning: '#ffcb6b',
|
|
94
|
+
meta: '#82aaff',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: 'opencode-dark',
|
|
98
|
+
name: 'OpenCode',
|
|
99
|
+
family: 'opencode',
|
|
100
|
+
variant: 'dark',
|
|
101
|
+
canvas: '#161616',
|
|
102
|
+
paper: '#1f1f1f',
|
|
103
|
+
ink: '#dfdfdf',
|
|
104
|
+
error: '#f17471',
|
|
105
|
+
success: '#6bd586',
|
|
106
|
+
info: '#7698fd',
|
|
107
|
+
warning: '#f2cf76',
|
|
108
|
+
meta: '#637ef8',
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: 'osaka-jade-dark',
|
|
112
|
+
name: 'Osaka Jade',
|
|
113
|
+
family: 'osaka-jade',
|
|
114
|
+
variant: 'dark',
|
|
115
|
+
canvas: '#0a1611',
|
|
116
|
+
paper: '#121f18',
|
|
117
|
+
ink: '#d9dbd6',
|
|
118
|
+
error: '#ff5345',
|
|
119
|
+
success: '#63b07a',
|
|
120
|
+
info: '#82aecb',
|
|
121
|
+
warning: '#e7c831',
|
|
122
|
+
meta: '#2dd5b7',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
id: 'rose-pine-dark',
|
|
126
|
+
name: 'Rose Pine',
|
|
127
|
+
family: 'rose-pine',
|
|
128
|
+
variant: 'dark',
|
|
129
|
+
canvas: '#12101d',
|
|
130
|
+
paper: '#1c1a28',
|
|
131
|
+
ink: '#dbdade',
|
|
132
|
+
error: '#eb6f92',
|
|
133
|
+
success: '#80b888',
|
|
134
|
+
info: '#9ccfd8',
|
|
135
|
+
warning: '#f6c177',
|
|
136
|
+
meta: '#9ccfd8',
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
id: 'vercel-dark',
|
|
140
|
+
name: 'Vercel',
|
|
141
|
+
family: 'vercel',
|
|
142
|
+
variant: 'dark',
|
|
143
|
+
canvas: '#000000',
|
|
144
|
+
paper: '#070707',
|
|
145
|
+
ink: '#cfcfcf',
|
|
146
|
+
error: '#E5484D',
|
|
147
|
+
success: '#46A758',
|
|
148
|
+
info: '#52A8FF',
|
|
149
|
+
warning: '#FFB224',
|
|
150
|
+
meta: '#0674f3',
|
|
151
|
+
},
|
|
152
|
+
] as const satisfies readonly ThemePalette[];
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Light palettes ported verbatim from OpenChamber
|
|
8
|
+
* (packages/ui/src/lib/theme/themes/*.json, MIT, upstream `main`), split out of
|
|
9
|
+
* `light.ts` only because that file is at the 350-line ceiling.
|
|
10
|
+
*
|
|
11
|
+
* Only the values Kabmo consumes are carried: surface.background -> canvas,
|
|
12
|
+
* surface.elevated -> paper, surface.foreground -> ink, status.* -> signal
|
|
13
|
+
* colors, primary.base -> accent. Field order is the swatch order.
|
|
14
|
+
*
|
|
15
|
+
* These are the families upstream added AFTER the snapshot `light.ts` records,
|
|
16
|
+
* and they are the ones this catalog was missing. Two normalizations, stated
|
|
17
|
+
* because neither changes a color:
|
|
18
|
+
*
|
|
19
|
+
* - `osaka-jade-refined`'s upstream ids disagree across the pair (the dark file
|
|
20
|
+
* calls itself `osaka-jade-refined`); the catalog's own `${family}-${variant}`
|
|
21
|
+
* shape is used instead, and the shared name drops the per-variant suffix.
|
|
22
|
+
* - `opencode`'s JSON carries `#rrggbbff` — opaque, so the alpha byte is
|
|
23
|
+
* dropped. An 8-digit value that only ever says "1.0" is noise in a palette.
|
|
24
|
+
*
|
|
25
|
+
* Generated data — re-port rather than hand-editing a color here.
|
|
26
|
+
*/
|
|
27
|
+
|
|
28
|
+
import type { ThemePalette } from '@/shared/types/theme';
|
|
29
|
+
|
|
30
|
+
export const LIGHT_EXTENDED_PALETTES = [
|
|
31
|
+
{
|
|
32
|
+
id: 'aurora-light',
|
|
33
|
+
name: 'Aurora',
|
|
34
|
+
family: 'aurora',
|
|
35
|
+
variant: 'light',
|
|
36
|
+
canvas: '#fdfcfa',
|
|
37
|
+
paper: '#f0f3f1',
|
|
38
|
+
ink: '#48423d',
|
|
39
|
+
error: '#b63b32',
|
|
40
|
+
success: '#507308',
|
|
41
|
+
info: '#1b69ad',
|
|
42
|
+
warning: '#975d04',
|
|
43
|
+
meta: '#063e2a',
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
id: 'cursor-light',
|
|
47
|
+
name: 'Cursor',
|
|
48
|
+
family: 'cursor',
|
|
49
|
+
variant: 'light',
|
|
50
|
+
canvas: '#FCFCFC',
|
|
51
|
+
paper: '#f2f2f2',
|
|
52
|
+
ink: '#454a50',
|
|
53
|
+
error: '#A3424B',
|
|
54
|
+
success: '#467037',
|
|
55
|
+
info: '#315D9B',
|
|
56
|
+
warning: '#806015',
|
|
57
|
+
meta: '#2567A8',
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: 'everforest-light',
|
|
61
|
+
name: 'Everforest',
|
|
62
|
+
family: 'everforest',
|
|
63
|
+
variant: 'light',
|
|
64
|
+
canvas: '#fdf8e8',
|
|
65
|
+
paper: '#f5f2e2',
|
|
66
|
+
ink: '#3b474e',
|
|
67
|
+
error: '#c4222a',
|
|
68
|
+
success: '#66731b',
|
|
69
|
+
info: '#366eaa',
|
|
70
|
+
warning: '#ad5410',
|
|
71
|
+
meta: '#65740b',
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
id: 'github-light',
|
|
75
|
+
name: 'GitHub',
|
|
76
|
+
family: 'github',
|
|
77
|
+
variant: 'light',
|
|
78
|
+
canvas: '#ffffff',
|
|
79
|
+
paper: '#f5f5f4',
|
|
80
|
+
ink: '#464a4e',
|
|
81
|
+
error: '#8f0617',
|
|
82
|
+
success: '#105122',
|
|
83
|
+
info: '#09448f',
|
|
84
|
+
warning: '#664407',
|
|
85
|
+
meta: '#0f69d8',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
id: 'material-light',
|
|
89
|
+
name: 'Material',
|
|
90
|
+
family: 'material',
|
|
91
|
+
variant: 'light',
|
|
92
|
+
canvas: '#fafafa',
|
|
93
|
+
paper: '#f1f1f0',
|
|
94
|
+
ink: '#3e484c',
|
|
95
|
+
error: '#aa0d15',
|
|
96
|
+
success: '#537702',
|
|
97
|
+
info: '#12787f',
|
|
98
|
+
warning: '#8f6510',
|
|
99
|
+
meta: '#19787f',
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
id: 'opencode-light',
|
|
103
|
+
name: 'OpenCode',
|
|
104
|
+
family: 'opencode',
|
|
105
|
+
variant: 'light',
|
|
106
|
+
canvas: '#ffffff',
|
|
107
|
+
paper: '#fafafa',
|
|
108
|
+
ink: '#4a4a4a',
|
|
109
|
+
error: '#b82d35',
|
|
110
|
+
success: '#18833f',
|
|
111
|
+
info: '#3250df',
|
|
112
|
+
warning: '#8c6e24',
|
|
113
|
+
meta: '#3b5cf6',
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: 'osaka-jade-light',
|
|
117
|
+
name: 'Osaka Jade',
|
|
118
|
+
family: 'osaka-jade',
|
|
119
|
+
variant: 'light',
|
|
120
|
+
canvas: '#f1eee8',
|
|
121
|
+
paper: '#e7e4de',
|
|
122
|
+
ink: '#40463e',
|
|
123
|
+
error: '#8f110b',
|
|
124
|
+
success: '#02532a',
|
|
125
|
+
info: '#33679f',
|
|
126
|
+
warning: '#73650e',
|
|
127
|
+
meta: '#197160',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 'rose-pine-light',
|
|
131
|
+
name: 'Rose Pine',
|
|
132
|
+
family: 'rose-pine',
|
|
133
|
+
variant: 'light',
|
|
134
|
+
canvas: '#fbf5ef',
|
|
135
|
+
paper: '#f5ede7',
|
|
136
|
+
ink: '#464061',
|
|
137
|
+
error: '#942a50',
|
|
138
|
+
success: '#347846',
|
|
139
|
+
info: '#0c4b62',
|
|
140
|
+
warning: '#965f0b',
|
|
141
|
+
meta: '#177394',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
id: 'vercel-light',
|
|
145
|
+
name: 'Vercel',
|
|
146
|
+
family: 'vercel',
|
|
147
|
+
variant: 'light',
|
|
148
|
+
canvas: '#ffffff',
|
|
149
|
+
paper: '#f4f4f4',
|
|
150
|
+
ink: '#4a4a4a',
|
|
151
|
+
error: '#a10725',
|
|
152
|
+
success: '#14621b',
|
|
153
|
+
info: '#0a4ca2',
|
|
154
|
+
warning: '#a35d02',
|
|
155
|
+
meta: '#0769e1',
|
|
156
|
+
},
|
|
157
|
+
] as const satisfies readonly ThemePalette[];
|