@brimveyn/aimux-config 0.5.3 → 0.5.6
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/package.json +1 -1
- package/src/actions.ts +58 -0
- package/src/defaults.ts +3 -0
- package/src/index.ts +21 -31
- package/src/resolver.ts +1 -1
- package/src/tui/index.ts +5 -0
- package/src/tui/registry.ts +95 -0
- package/src/tui/resolve.ts +156 -0
- package/src/tui/shiki.ts +149 -0
- package/src/tui/themes/aimux.json +110 -0
- package/src/tui/themes/aura.json +69 -0
- package/src/tui/themes/ayu.json +80 -0
- package/src/tui/themes/carbonfox.json +248 -0
- package/src/tui/themes/catppuccin-frappe.json +230 -0
- package/src/tui/themes/catppuccin-macchiato.json +230 -0
- package/src/tui/themes/catppuccin.json +112 -0
- package/src/tui/themes/cobalt2.json +225 -0
- package/src/tui/themes/cursor.json +249 -0
- package/src/tui/themes/dracula.json +219 -0
- package/src/tui/themes/everforest.json +241 -0
- package/src/tui/themes/flexoki.json +237 -0
- package/src/tui/themes/github.json +233 -0
- package/src/tui/themes/gruvbox.json +242 -0
- package/src/tui/themes/kanagawa.json +77 -0
- package/src/tui/themes/lucent-orng.json +234 -0
- package/src/tui/themes/material.json +235 -0
- package/src/tui/themes/matrix.json +77 -0
- package/src/tui/themes/mercury.json +252 -0
- package/src/tui/themes/monokai.json +221 -0
- package/src/tui/themes/nightowl.json +221 -0
- package/src/tui/themes/nord.json +223 -0
- package/src/tui/themes/one-dark.json +84 -0
- package/src/tui/themes/opencode.json +245 -0
- package/src/tui/themes/orng.json +249 -0
- package/src/tui/themes/osaka-jade.json +93 -0
- package/src/tui/themes/palenight.json +222 -0
- package/src/tui/themes/rosepine.json +234 -0
- package/src/tui/themes/solarized.json +223 -0
- package/src/tui/themes/synthwave84.json +226 -0
- package/src/tui/themes/tokyonight.json +243 -0
- package/src/tui/themes/vercel.json +245 -0
- package/src/tui/themes/vesper.json +218 -0
- package/src/tui/themes/zenburn.json +223 -0
- package/src/tui/tokens.ts +111 -0
- package/src/tui/types.ts +30 -0
- package/src/types.ts +9 -35
- package/src/house-themes.ts +0 -55
- package/src/neutral-scale.ts +0 -75
- package/src/oklch.ts +0 -164
- package/src/palette-to-shiki.ts +0 -134
- package/src/palette-utils.ts +0 -130
- package/src/themes/opencode.ts +0 -1460
- package/src/themes.ts +0 -30
package/src/themes.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { AimuxTheme, ThemeId } from './types'
|
|
2
|
-
|
|
3
|
-
import { HOUSE_THEME_IDS, HOUSE_THEMES } from './house-themes'
|
|
4
|
-
import { OPENCODE_THEME_IDS, OPENCODE_THEMES } from './themes/opencode'
|
|
5
|
-
|
|
6
|
-
export const THEMES: Record<string, AimuxTheme> = { ...HOUSE_THEMES, ...OPENCODE_THEMES }
|
|
7
|
-
export const THEME_IDS: ThemeId[] = [...HOUSE_THEME_IDS, ...OPENCODE_THEME_IDS]
|
|
8
|
-
|
|
9
|
-
const DEFAULT_THEME_ID: ThemeId = 'aimux-dark'
|
|
10
|
-
|
|
11
|
-
const LEGACY_MODE_HINTS: Record<string, ThemeId> = {
|
|
12
|
-
'aimux': 'aimux-dark',
|
|
13
|
-
'aimux-dark': 'aimux-dark',
|
|
14
|
-
'aimux-light': 'aimux-light',
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Migrate a legacy persisted theme id (anything from the old wide registry)
|
|
19
|
-
* to the new light/dark identifier. Anything we don't recognize lands on the
|
|
20
|
-
* dark default — modes are the only knob now.
|
|
21
|
-
*/
|
|
22
|
-
export function migrateThemeId(id: string | undefined): ThemeId {
|
|
23
|
-
if (id === undefined) return DEFAULT_THEME_ID
|
|
24
|
-
if (id in THEMES) return id as ThemeId
|
|
25
|
-
return LEGACY_MODE_HINTS[id] ?? DEFAULT_THEME_ID
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function isKnownThemeId(id: string): id is ThemeId {
|
|
29
|
-
return id in THEMES
|
|
30
|
-
}
|