@adea-ai/ui 0.156.0 → 0.158.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 +3 -3
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-editor.js +305 -172
- package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts +6 -0
- package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-rows.js +2 -2
- package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.d.ts +26 -0
- package/dist/components/composites/appearance-editor/appearance-types.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/appearance-types.js +10 -0
- package/dist/components/composites/appearance-editor/appearance-types.js.map +1 -0
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts +13 -1
- package/dist/components/composites/appearance-editor/font-settings-group.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/font-settings-group.js +51 -15
- package/dist/components/composites/appearance-editor/font-settings-group.js.map +1 -1
- package/dist/components/composites/appearance-editor/index.d.ts +2 -1
- package/dist/components/composites/appearance-editor/index.d.ts.map +1 -1
- package/dist/components/composites/appearance-editor/index.js +3 -2
- package/dist/components/theme/theme-document.d.ts +1 -1
- package/dist/components/theme/theme-document.js.map +1 -1
- package/dist/components/theme/theme-provider-value.d.ts +1 -1
- package/dist/components/theme/theme-provider-value.js.map +1 -1
- package/dist/components/ui/button/button.d.ts.map +1 -1
- package/dist/components/ui/button/button.js +3 -3
- package/dist/components/ui/button/button.js.map +1 -1
- package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/ui/tooltip/tooltip.js +4 -18
- package/dist/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/lib/appearance-font-settings.d.ts +18 -4
- package/dist/lib/appearance-font-settings.d.ts.map +1 -1
- package/dist/lib/appearance-font-settings.js +24 -6
- package/dist/lib/appearance-font-settings.js.map +1 -1
- package/dist/lib/fast-icon.d.ts +2 -1
- package/dist/lib/fast-icon.d.ts.map +1 -1
- package/dist/lib/fast-icon.js +4 -3
- package/dist/lib/fast-icon.js.map +1 -1
- package/dist/lib/font-catalog.d.ts +5 -0
- package/dist/lib/font-catalog.d.ts.map +1 -1
- package/dist/lib/font-catalog.js +10 -5
- package/dist/lib/font-catalog.js.map +1 -1
- package/dist/lib/font-zoom.d.ts +1 -1
- package/dist/lib/font-zoom.d.ts.map +1 -1
- package/dist/lib/font-zoom.js +5 -1
- package/dist/lib/font-zoom.js.map +1 -1
- package/dist/lib/theme-defaults.generated.d.ts.map +1 -1
- package/dist/lib/theme-defaults.generated.js +88 -60
- package/dist/lib/theme-defaults.generated.js.map +1 -1
- package/dist/lib/theme-projection.d.ts +2 -0
- package/dist/lib/theme-projection.d.ts.map +1 -1
- package/dist/lib/theme-projection.js +2 -2
- package/dist/lib/theme-projection.js.map +1 -1
- package/dist/lib/theme-types.d.ts +7 -0
- package/dist/lib/theme-types.d.ts.map +1 -1
- package/dist/lib/theme-types.js +7 -0
- package/dist/lib/theme-types.js.map +1 -1
- package/dist/lib/tokens.d.ts.map +1 -1
- package/dist/lib/tokens.js +17 -2
- package/dist/lib/tokens.js.map +1 -1
- package/dist/r/appearance-editor.json +2 -1
- package/dist/r/lib.json +1 -1
- package/dist/r/registry.json +4 -3
- package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +202 -110
- package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +11 -1
- package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +27 -0
- package/dist/r/src/components/composites/appearance-editor/font-settings-group.tsx +50 -10
- package/dist/r/src/components/composites/appearance-editor/index.ts +3 -0
- package/dist/r/src/components/theme/theme-document.ts +1 -1
- package/dist/r/src/components/theme/theme-provider-value.ts +1 -1
- package/dist/r/src/components/ui/button/button.tsx +12 -3
- package/dist/r/src/components/ui/tooltip/tooltip.tsx +9 -18
- package/dist/r/src/lib/appearance-font-settings.ts +43 -7
- package/dist/r/src/lib/fast-icon.ts +11 -4
- package/dist/r/src/lib/font-catalog.ts +5 -0
- package/dist/r/src/lib/font-zoom.ts +3 -0
- package/dist/r/src/lib/theme-defaults.generated.ts +88 -60
- package/dist/r/src/lib/theme-projection.ts +2 -0
- package/dist/r/src/lib/theme-types.ts +7 -0
- package/dist/r/src/lib/tokens.ts +17 -2
- package/dist/r/src/styles/appearance-font-settings.css +2 -0
- package/dist/r/src/styles/theme-variants.css +608 -370
- package/dist/r/src/styles/theme.css +4 -4
- package/dist/r/theming.json +1 -1
- package/package.json +2 -2
- package/registry.json +4 -3
- package/src/components/composites/appearance-editor/appearance-editor.tsx +202 -110
- package/src/components/composites/appearance-editor/appearance-rows.tsx +11 -1
- package/src/components/composites/appearance-editor/appearance-types.ts +27 -0
- package/src/components/composites/appearance-editor/font-settings-group.tsx +50 -10
- package/src/components/composites/appearance-editor/index.ts +3 -0
- package/src/components/theme/theme-document.ts +1 -1
- package/src/components/theme/theme-provider-value.ts +1 -1
- package/src/components/ui/button/button.tsx +12 -3
- package/src/components/ui/tooltip/tooltip.tsx +9 -18
- package/src/lib/appearance-font-settings.ts +43 -7
- package/src/lib/fast-icon.ts +11 -4
- package/src/lib/font-catalog.ts +5 -0
- package/src/lib/font-zoom.ts +3 -0
- package/src/lib/theme-defaults.generated.ts +88 -60
- package/src/lib/theme-projection.ts +2 -0
- package/src/lib/theme-types.ts +7 -0
- package/src/lib/tokens.ts +17 -2
- package/src/styles/appearance-font-settings.css +2 -0
- package/src/styles/theme-variants.css +608 -370
- package/src/styles/theme.css +4 -4
- package/src/styles/themes/aardvark-blue.css +7 -0
- package/src/styles/themes/aardvark-ink.css +7 -0
- package/src/styles/themes/adea-dark-colorblind.css +22 -15
- package/src/styles/themes/adea-dark-high-contrast.css +22 -15
- package/src/styles/themes/adea-dark.css +22 -15
- package/src/styles/themes/adea-light-colorblind.css +21 -14
- package/src/styles/themes/adea-light-high-contrast.css +21 -14
- package/src/styles/themes/adea-light.css +22 -15
- package/src/styles/themes/ayu-light.css +20 -13
- package/src/styles/themes/ayu-mirage.css +21 -14
- package/src/styles/themes/ayu.css +22 -15
- package/src/styles/themes/catppuccin-frappe.css +16 -9
- package/src/styles/themes/catppuccin-latte.css +15 -8
- package/src/styles/themes/catppuccin-macchiato.css +16 -9
- package/src/styles/themes/catppuccin-mocha.css +16 -9
- package/src/styles/themes/dracula.css +16 -9
- package/src/styles/themes/everforest-dark.css +19 -12
- package/src/styles/themes/everforest-light.css +21 -14
- package/src/styles/themes/gruvbox-dark.css +21 -14
- package/src/styles/themes/gruvbox-light.css +20 -13
- package/src/styles/themes/kanagawa.css +18 -11
- package/src/styles/themes/monokai.css +19 -12
- package/src/styles/themes/nord-light.css +7 -0
- package/src/styles/themes/nord.css +19 -12
- package/src/styles/themes/one-dark.css +16 -9
- package/src/styles/themes/rosepine-dawn.css +19 -12
- package/src/styles/themes/rosepine-moon.css +20 -13
- package/src/styles/themes/rosepine.css +20 -13
- package/src/styles/themes/solarized-dark.css +19 -12
- package/src/styles/themes/solarized-light.css +19 -12
- package/src/styles/themes/tokyonight-day.css +7 -0
- package/src/styles/themes/tokyonight-night.css +18 -11
- package/src/styles/themes/tokyonight-storm.css +18 -11
- package/src/styles/themes/vesper.css +22 -15
|
@@ -115,21 +115,28 @@ export const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', Theme
|
|
|
115
115
|
brightWhite: 'oklch(0.6658 0.0181 250.92)',
|
|
116
116
|
},
|
|
117
117
|
editor: {
|
|
118
|
-
keyword: 'oklch(0.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
118
|
+
keyword: 'oklch(0.5517 0.2051 24.53)',
|
|
119
|
+
storage: 'oklch(0.5517 0.2051 24.53)',
|
|
120
|
+
string: 'oklch(0.321 0.1084 259.11)',
|
|
121
|
+
number: 'oklch(0.4509 0.1641 258.18)',
|
|
122
|
+
comment: 'oklch(0.5651 0.0189 250.97)',
|
|
123
|
+
function: 'oklch(0.5631 0.2069 294.97)',
|
|
124
|
+
variable: 'oklch(0.2542 0.0111 254.04)',
|
|
125
|
+
parameter: 'oklch(0.4657 0.1371 43.35)',
|
|
126
|
+
property: 'oklch(0.2542 0.0111 254.04)',
|
|
127
|
+
field: 'oklch(0.2542 0.0111 254.04)',
|
|
128
|
+
member: 'oklch(0.2542 0.0111 254.04)',
|
|
129
|
+
type: 'oklch(0.4657 0.1371 43.35)',
|
|
130
|
+
tag: 'oklch(0.4391 0.1179 148.07)',
|
|
131
|
+
attribute: 'oklch(0.4509 0.1641 258.18)',
|
|
132
|
+
operator: 'oklch(0.5517 0.2051 24.53)',
|
|
133
|
+
heading: 'oklch(0.4509 0.1641 258.18)',
|
|
134
|
+
link: 'oklch(0.2542 0.0111 254.04)',
|
|
135
|
+
constant: 'oklch(0.4509 0.1641 258.18)',
|
|
136
|
+
punctuation: 'oklch(0.2542 0.0111 254.04)',
|
|
137
|
+
diffAdd: 'oklch(0.4391 0.1179 148.07)',
|
|
138
|
+
diffDelete: 'oklch(0.387 0.1507 20.77)',
|
|
139
|
+
diffHunk: 'oklch(0.5631 0.2069 294.97)',
|
|
133
140
|
searchMatch: 'oklch(0.5016 0.1401 79.91)',
|
|
134
141
|
},
|
|
135
142
|
chart: [
|
|
@@ -211,21 +218,28 @@ export const DEFAULT_VARIANTS: Readonly<Record<'adea-light' | 'adea-dark', Theme
|
|
|
211
218
|
brightWhite: 'oklch(1 0 0)',
|
|
212
219
|
},
|
|
213
220
|
editor: {
|
|
214
|
-
keyword: 'oklch(0.
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
221
|
+
keyword: 'oklch(0.7345 0.1626 25.78)',
|
|
222
|
+
storage: 'oklch(0.7345 0.1626 25.78)',
|
|
223
|
+
string: 'oklch(0.856 0.0768 244.09)',
|
|
224
|
+
number: 'oklch(0.7857 0.1153 246.66)',
|
|
225
|
+
comment: 'oklch(0.6625 0.0181 250.92)',
|
|
226
|
+
function: 'oklch(0.8005 0.1275 305.86)',
|
|
227
|
+
variable: 'oklch(0.9425 0.0111 243.66)',
|
|
228
|
+
parameter: 'oklch(0.7991 0.1412 60.1)',
|
|
229
|
+
property: 'oklch(0.9425 0.0111 243.66)',
|
|
230
|
+
field: 'oklch(0.9425 0.0111 243.66)',
|
|
231
|
+
member: 'oklch(0.9425 0.0111 243.66)',
|
|
232
|
+
type: 'oklch(0.7991 0.1412 60.1)',
|
|
233
|
+
tag: 'oklch(0.8416 0.1641 145.75)',
|
|
234
|
+
attribute: 'oklch(0.7857 0.1153 246.66)',
|
|
235
|
+
operator: 'oklch(0.7345 0.1626 25.78)',
|
|
236
|
+
heading: 'oklch(0.7857 0.1153 246.66)',
|
|
237
|
+
link: 'oklch(0.9425 0.0111 243.66)',
|
|
238
|
+
constant: 'oklch(0.7857 0.1153 246.66)',
|
|
239
|
+
punctuation: 'oklch(0.9425 0.0111 243.66)',
|
|
240
|
+
diffAdd: 'oklch(0.8416 0.1641 145.75)',
|
|
241
|
+
diffDelete: 'oklch(0.8014 0.1134 25.81)',
|
|
242
|
+
diffHunk: 'oklch(0.8005 0.1275 305.86)',
|
|
229
243
|
searchMatch: 'oklch(0.7196 0.1401 79.91)',
|
|
230
244
|
},
|
|
231
245
|
chart: [
|
|
@@ -281,39 +295,53 @@ export const DEFAULT_PRIMARY_SUBTLE: Readonly<Record<string, string>> = {
|
|
|
281
295
|
/** Each default's `--editor-*` ramp held to 4.5:1 on its canvas (`editorRoles: 'floor'`). */
|
|
282
296
|
export const DEFAULT_FLOOR_EDITOR: Readonly<Record<string, ThemeEditorPalette>> = {
|
|
283
297
|
'adea-light': {
|
|
284
|
-
keyword: '#
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
298
|
+
keyword: '#cf222e',
|
|
299
|
+
storage: '#cf222e',
|
|
300
|
+
string: '#0a3069',
|
|
301
|
+
number: '#0550ae',
|
|
302
|
+
comment: '#6e7781',
|
|
303
|
+
function: '#8250df',
|
|
304
|
+
variable: '#1f2328',
|
|
305
|
+
parameter: '#953800',
|
|
306
|
+
property: '#1f2328',
|
|
307
|
+
field: '#1f2328',
|
|
308
|
+
member: '#1f2328',
|
|
309
|
+
type: '#953800',
|
|
310
|
+
tag: '#116329',
|
|
311
|
+
attribute: '#0550ae',
|
|
312
|
+
operator: '#cf222e',
|
|
313
|
+
heading: '#0550ae',
|
|
314
|
+
link: '#1f2328',
|
|
315
|
+
constant: '#0550ae',
|
|
316
|
+
punctuation: '#1f2328',
|
|
317
|
+
diffAdd: '#116329',
|
|
318
|
+
diffDelete: '#82071e',
|
|
319
|
+
diffHunk: '#8250df',
|
|
299
320
|
searchMatch: '#825c00',
|
|
300
321
|
},
|
|
301
322
|
'adea-dark': {
|
|
302
|
-
keyword: '#
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
323
|
+
keyword: '#ff7b72',
|
|
324
|
+
storage: '#ff7b72',
|
|
325
|
+
string: '#a5d6ff',
|
|
326
|
+
number: '#79c0ff',
|
|
327
|
+
comment: '#8b949e',
|
|
328
|
+
function: '#d2a8ff',
|
|
329
|
+
variable: '#e6edf3',
|
|
330
|
+
parameter: '#ffa657',
|
|
331
|
+
property: '#e6edf3',
|
|
332
|
+
field: '#e6edf3',
|
|
333
|
+
member: '#e6edf3',
|
|
334
|
+
type: '#ffa657',
|
|
335
|
+
tag: '#7ee787',
|
|
336
|
+
attribute: '#79c0ff',
|
|
337
|
+
operator: '#ff7b72',
|
|
338
|
+
heading: '#79c0ff',
|
|
339
|
+
link: '#e6edf3',
|
|
340
|
+
constant: '#79c0ff',
|
|
341
|
+
punctuation: '#e6edf3',
|
|
342
|
+
diffAdd: '#7ee787',
|
|
343
|
+
diffDelete: '#ffa198',
|
|
344
|
+
diffHunk: '#d2a8ff',
|
|
317
345
|
searchMatch: '#d29922',
|
|
318
346
|
},
|
|
319
347
|
}
|
|
@@ -24,6 +24,8 @@ import {
|
|
|
24
24
|
} from '@adea-ai/themes'
|
|
25
25
|
|
|
26
26
|
export { editorRolesHex, syntaxRolesHex } from '@adea-ai/themes'
|
|
27
|
+
/** A VS Code colour theme's syntax roles, resolved as VS Code paints them, for importers. */
|
|
28
|
+
export { opaqueHex, parseVsCodeTheme, vsCodeSyntax, type VsCodeTheme } from '@adea-ai/themes'
|
|
27
29
|
export { oklchToHex, parseColor as parseOklchColor } from '@adea-ai/themes/oklch'
|
|
28
30
|
export { shadcnDestructiveProjection, shadcnVariables } from '@adea-ai/themes/adapters/shadcn'
|
|
29
31
|
export { toXtermTheme } from '@adea-ai/themes/adapters/xterm'
|
package/src/lib/theme-types.ts
CHANGED
|
@@ -89,17 +89,24 @@ export type ThemeTerminalPalette = Record<keyof typeof THEME_TERMINAL_PROPERTIES
|
|
|
89
89
|
/** The syntax roles a code view needs. */
|
|
90
90
|
export const THEME_EDITOR_PROPERTIES = {
|
|
91
91
|
keyword: '--editor-keyword',
|
|
92
|
+
storage: '--editor-storage',
|
|
92
93
|
string: '--editor-string',
|
|
93
94
|
number: '--editor-number',
|
|
94
95
|
comment: '--editor-comment',
|
|
95
96
|
function: '--editor-function',
|
|
96
97
|
variable: '--editor-variable',
|
|
98
|
+
parameter: '--editor-parameter',
|
|
99
|
+
property: '--editor-property',
|
|
100
|
+
field: '--editor-field',
|
|
101
|
+
member: '--editor-member',
|
|
97
102
|
type: '--editor-type',
|
|
98
103
|
tag: '--editor-tag',
|
|
99
104
|
attribute: '--editor-attribute',
|
|
100
105
|
operator: '--editor-operator',
|
|
101
106
|
heading: '--editor-heading',
|
|
102
107
|
link: '--editor-link',
|
|
108
|
+
constant: '--editor-constant',
|
|
109
|
+
punctuation: '--editor-punctuation',
|
|
103
110
|
diffAdd: '--editor-diff-add',
|
|
104
111
|
diffDelete: '--editor-diff-delete',
|
|
105
112
|
diffHunk: '--editor-diff-hunk',
|
package/src/lib/tokens.ts
CHANGED
|
@@ -418,7 +418,12 @@ export const typographyTokens: TokenDefinition[] = [
|
|
|
418
418
|
{
|
|
419
419
|
name: 'font-code',
|
|
420
420
|
kind: 'font-family',
|
|
421
|
-
description: 'The selected family for code,
|
|
421
|
+
description: 'The selected family for code, keyboard keys, ids and paths.',
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
name: 'font-terminal',
|
|
425
|
+
kind: 'font-family',
|
|
426
|
+
description: 'The selected family for terminals; follows the code family until chosen.',
|
|
422
427
|
},
|
|
423
428
|
{
|
|
424
429
|
name: 'font-sans',
|
|
@@ -473,7 +478,12 @@ export const typographyTokens: TokenDefinition[] = [
|
|
|
473
478
|
{
|
|
474
479
|
name: 'font-code-size',
|
|
475
480
|
kind: 'dimension',
|
|
476
|
-
description: 'Runtime-projected code
|
|
481
|
+
description: 'Runtime-projected code and keyboard-key size in pixels.',
|
|
482
|
+
},
|
|
483
|
+
{
|
|
484
|
+
name: 'font-terminal-size',
|
|
485
|
+
kind: 'dimension',
|
|
486
|
+
description: 'Runtime-projected terminal size in pixels; follows the code size until chosen.',
|
|
477
487
|
},
|
|
478
488
|
{
|
|
479
489
|
name: 'font-ui-scale',
|
|
@@ -490,6 +500,11 @@ export const typographyTokens: TokenDefinition[] = [
|
|
|
490
500
|
kind: 'number',
|
|
491
501
|
description: 'The code size ratio applied to rem-relative code text.',
|
|
492
502
|
},
|
|
503
|
+
{
|
|
504
|
+
name: 'font-terminal-scale',
|
|
505
|
+
kind: 'number',
|
|
506
|
+
description: 'The terminal size ratio applied to rem-relative terminal text.',
|
|
507
|
+
},
|
|
493
508
|
{
|
|
494
509
|
name: 'ui-tracking',
|
|
495
510
|
kind: 'text',
|
|
@@ -13,11 +13,13 @@
|
|
|
13
13
|
--font-ui: var(--font-family-system);
|
|
14
14
|
--font-content: var(--font-family-system);
|
|
15
15
|
--font-code: var(--font-family-system-mono);
|
|
16
|
+
--font-terminal: var(--font-family-system-mono);
|
|
16
17
|
--font-sans: var(--font-ui);
|
|
17
18
|
--font-mono: var(--font-code);
|
|
18
19
|
--font-ui-scale: 1;
|
|
19
20
|
--font-content-scale: 1;
|
|
20
21
|
--font-code-scale: 1;
|
|
22
|
+
--font-terminal-scale: 1;
|
|
21
23
|
|
|
22
24
|
--text-2xs: calc(0.6875rem * var(--font-ui-scale));
|
|
23
25
|
--text-xs: calc(0.75rem * var(--font-ui-scale));
|