@floegence/floe-webapp-core 0.101.50 → 0.102.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/dist/components/media/ImageAnnotationSurface.js +99 -92
- package/dist/components/ui/ThemeFields.d.ts +18 -0
- package/dist/components/ui/ThemeFields.js +327 -0
- package/dist/components/ui/ThemePicker.d.ts +2 -0
- package/dist/components/ui/ThemePicker.js +43 -37
- package/dist/components/ui/ThemeStudio.d.ts +16 -0
- package/dist/components/ui/ThemeStudio.js +381 -0
- package/dist/context/FloeConfigContext.d.ts +1 -0
- package/dist/context/ThemeContext.js +57 -56
- package/dist/floe.css +1 -1
- package/dist/styles/themes/index.d.ts +1 -0
- package/dist/styles/themes/portableTheme.d.ts +30 -0
- package/dist/styles/themes/portableTheme.js +289 -0
- package/dist/styles/themes/presets.d.ts +3 -0
- package/dist/styles/themes/presets.js +3 -0
- package/dist/styles/themes/themeDocument.d.ts +13 -0
- package/dist/styles/themes/themeDocument.js +65 -0
- package/dist/styles.css +1 -1
- package/dist/surface.css +15 -15
- package/dist/themes/porcelain-light.css +2 -2
- package/dist/themes.d.ts +2 -0
- package/dist/themes.js +22 -9
- package/dist/ui.css +27 -0
- package/dist/workbench-composition.css +2 -2
- package/dist/workbench-themes.css +1 -1
- package/dist/workbench.css +1 -1
- package/package.json +1 -1
package/dist/surface.css
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* quiet seams; material and existing fills carry the grouping. High contrast
|
|
28
28
|
* retains the original boundaries. Explicit rich Card variants stay independent. */
|
|
29
29
|
@media (forced-colors: none) {
|
|
30
|
-
:where(:root:not([data-floe-shell-theme='hc-light']))
|
|
30
|
+
:where(:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))))
|
|
31
31
|
:is(
|
|
32
32
|
.border-border,
|
|
33
33
|
[class~='border-border/40'],
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
) {
|
|
60
60
|
border-color: var(--floe-surface-edge);
|
|
61
61
|
}
|
|
62
|
-
:where(:root:not([data-floe-shell-theme='hc-light']))
|
|
62
|
+
:where(:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))))
|
|
63
63
|
:is(
|
|
64
64
|
[data-floe-shell-slot],
|
|
65
65
|
.workbench-widget__header,
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
--terminal-panel-border: var(--floe-surface-divider);
|
|
75
75
|
border-color: var(--floe-surface-divider);
|
|
76
76
|
}
|
|
77
|
-
:where(:root:not([data-floe-shell-theme='hc-light']))
|
|
77
|
+
:where(:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))))
|
|
78
78
|
:is(
|
|
79
79
|
.bg-border,
|
|
80
80
|
.workbench-dock__divider,
|
|
@@ -85,15 +85,15 @@
|
|
|
85
85
|
) {
|
|
86
86
|
background-color: var(--floe-surface-divider);
|
|
87
87
|
}
|
|
88
|
-
:where(:root:not([data-floe-shell-theme='hc-light']))
|
|
88
|
+
:where(:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))))
|
|
89
89
|
.workbench-canvas__grid {
|
|
90
90
|
opacity: 0.35;
|
|
91
91
|
}
|
|
92
|
-
:root:not([data-floe-shell-theme='hc-light'])
|
|
92
|
+
:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))))
|
|
93
93
|
[data-floe-surface-divider] {
|
|
94
94
|
border-color: var(--floe-surface-divider);
|
|
95
95
|
}
|
|
96
|
-
:root:not([data-floe-shell-theme='hc-light'])
|
|
96
|
+
:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))))
|
|
97
97
|
.workbench-surface {
|
|
98
98
|
--wb-dock-material-border: var(--floe-surface-edge);
|
|
99
99
|
--wb-dock-material-border-top: var(--floe-surface-edge);
|
|
@@ -317,11 +317,11 @@
|
|
|
317
317
|
* Tight static highlights carry material without large soft shadows per item.
|
|
318
318
|
* Functional transforms, progress widths, and SVG strokes retain their motion. */
|
|
319
319
|
@media (forced-colors: none) {
|
|
320
|
-
:root:not([data-floe-shell-theme='hc-light']) {
|
|
320
|
+
:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))) {
|
|
321
321
|
--floe-surface-compact-raised: var(--floe-elevation-raised);
|
|
322
322
|
--floe-surface-compact-inset: 0 0 transparent;
|
|
323
323
|
}
|
|
324
|
-
:where(:root:not([data-floe-shell-theme='hc-light'])) {
|
|
324
|
+
:where(:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))))) {
|
|
325
325
|
& [data-floe-surface-part][data-floe-surface='raised'] {
|
|
326
326
|
--floe-surface-decoration: var(
|
|
327
327
|
--floe-surface-shadow-raised,
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
box-shadow: var(--floe-surface-decoration);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
:where(:root:not([data-floe-shell-theme='hc-light'])) {
|
|
529
|
+
:where(:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))))) {
|
|
530
530
|
& :is([data-floe-input-surface], input, textarea, select)[data-floe-surface='inset'] {
|
|
531
531
|
background-color: var(--floe-well);
|
|
532
532
|
}
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
* distinct from ordinary Cards, Dialogs and menus. Only this visible panel owns
|
|
562
562
|
* material; the outer geometry owner and its input lifecycle stay unchanged. */
|
|
563
563
|
@media (forced-colors: none) {
|
|
564
|
-
:root:not([data-floe-shell-theme='hc-light'])
|
|
564
|
+
:root:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))))
|
|
565
565
|
[data-floe-floating-window-surface='true'][data-floe-surface='floating'] {
|
|
566
566
|
--floe-window-radius: var(--floe-radius-floating);
|
|
567
567
|
background: var(--floe-window-background);
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
* guarantees an upward step from any accent while title text keeps 5.3:1 or
|
|
616
616
|
* better. Light presets take no such step: their background is already far from
|
|
617
617
|
* the accent wash, and darkening it there would eat title text contrast. */
|
|
618
|
-
:root.dark:not([data-floe-shell-theme='hc-light'])
|
|
618
|
+
:root.dark:not(:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))))
|
|
619
619
|
[data-floe-floating-window-surface='true'][data-floe-floating-window-state='active']
|
|
620
620
|
> [data-floe-floating-window-titlebar='true'] {
|
|
621
621
|
background-color: color-mix(
|
|
@@ -640,11 +640,11 @@
|
|
|
640
640
|
}
|
|
641
641
|
|
|
642
642
|
/* High contrast stays flat, with real boundaries and keyboard indicators. */
|
|
643
|
-
:root[data-floe-shell-theme='hc-light']
|
|
643
|
+
:root:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))
|
|
644
644
|
[data-floe-surface] {
|
|
645
645
|
--floe-surface-decoration: 0 0 transparent;
|
|
646
646
|
}
|
|
647
|
-
:root[data-floe-shell-theme='hc-light']
|
|
647
|
+
:root:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))
|
|
648
648
|
.workbench-widget.is-selected {
|
|
649
649
|
border-color: var(--wb-accent);
|
|
650
650
|
}
|
|
@@ -695,9 +695,9 @@
|
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
|
|
698
|
-
:root[data-floe-shell-theme='hc-light']
|
|
698
|
+
:root:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))
|
|
699
699
|
[data-floe-surface-part='choice']:has([data-floe-choice-input]:focus-visible),
|
|
700
|
-
:root[data-floe-shell-theme='hc-light']
|
|
700
|
+
:root:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))
|
|
701
701
|
[data-floe-choice-input]:focus-visible
|
|
702
702
|
+ :is([data-floe-surface-part='indicator'], [data-floe-surface-part='switch-track']) {
|
|
703
703
|
outline: 2px solid var(--ring);
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* small labels and placeholders unreadable on near-white surfaces. Palette
|
|
3
3
|
* values live in presets.ts; this file only maps existing component recipes. */
|
|
4
4
|
@media (forced-colors: none) {
|
|
5
|
-
:root[data-floe-shell-theme='porcelain-light']:not(.dark)
|
|
5
|
+
:root:is([data-floe-theme-features~='opaque-muted-ink'],[data-floe-shell-theme='porcelain-light']:where(:not([data-floe-theme-features]))):not(.dark)
|
|
6
6
|
:is(input, textarea)::placeholder {
|
|
7
7
|
color: var(--floe-field-placeholder);
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
:root[data-floe-shell-theme='porcelain-light']:not(.dark)
|
|
11
|
+
:root:is([data-floe-theme-features~='opaque-muted-ink'],[data-floe-shell-theme='porcelain-light']:where(:not([data-floe-theme-features]))):not(.dark)
|
|
12
12
|
:is([class~='text-muted-foreground/40'], [class~='text-muted-foreground/45'],
|
|
13
13
|
[class~='text-muted-foreground/50'], [class~='text-muted-foreground/60'],
|
|
14
14
|
[class~='text-muted-foreground/65'], [class~='text-muted-foreground/70'],
|
package/dist/themes.d.ts
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
|
+
export { FLOE_THEME_FILE_LIMIT, floeThemeContrastIssue, readFloeThemeDocument, resolveFloeThemeDocument, type FloeThemeDocument } from './styles/themes/themeDocument';
|
|
2
|
+
export * from './styles/themes/portableTheme';
|
|
1
3
|
export { BUILT_IN_SHELL_THEME_DEFAULTS, REQUIRED_SHELL_THEME_TOKENS, assertUniqueThemePresetNames, builtInShellThemePresets, getShellThemePresetsForMode, normalizeShellThemeSelection, presetSupportsMode, resolveShellThemePresetName, type FloeShellThemeDefaults, type FloeShellThemeMode, type FloeShellThemeSelection, } from './styles/themes/presets';
|
|
2
4
|
export type { FloeSurfaceStyle, FloeMonacoThemeDefinition, FloeMonacoTokenRule, FloeThemePreset, FloeThemePresetMode, FloeThemeTokenMap, FloeThemeTokenOverrides, } from './styles/themes';
|
package/dist/themes.js
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FLOE_THEME_FILE_LIMIT as o, floeThemeContrastIssue as r, readFloeThemeDocument as t, resolveFloeThemeDocument as s } from "./styles/themes/themeDocument.js";
|
|
2
|
+
import { PORTABLE_THEME_LIMIT as m, exportShellTheme as h, portableContrastIssue as E, readPortableShellTheme as S, resolvePortableShellTheme as a, shellColorRoles as _, terminalThemeRoles as I } from "./styles/themes/portableTheme.js";
|
|
3
|
+
import { BUILT_IN_SHELL_THEME_DEFAULTS as n, REQUIRED_SHELL_THEME_TOKENS as p, assertUniqueThemePresetNames as M, builtInShellThemePresets as u, getShellThemePresetsForMode as P, normalizeShellThemeSelection as F, presetSupportsMode as H, resolveShellThemePresetName as i } from "./styles/themes/presets.js";
|
|
2
4
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
h as
|
|
10
|
-
|
|
5
|
+
n as BUILT_IN_SHELL_THEME_DEFAULTS,
|
|
6
|
+
o as FLOE_THEME_FILE_LIMIT,
|
|
7
|
+
m as PORTABLE_THEME_LIMIT,
|
|
8
|
+
p as REQUIRED_SHELL_THEME_TOKENS,
|
|
9
|
+
M as assertUniqueThemePresetNames,
|
|
10
|
+
u as builtInShellThemePresets,
|
|
11
|
+
h as exportShellTheme,
|
|
12
|
+
r as floeThemeContrastIssue,
|
|
13
|
+
P as getShellThemePresetsForMode,
|
|
14
|
+
F as normalizeShellThemeSelection,
|
|
15
|
+
E as portableContrastIssue,
|
|
16
|
+
H as presetSupportsMode,
|
|
17
|
+
t as readFloeThemeDocument,
|
|
18
|
+
S as readPortableShellTheme,
|
|
19
|
+
s as resolveFloeThemeDocument,
|
|
20
|
+
a as resolvePortableShellTheme,
|
|
21
|
+
i as resolveShellThemePresetName,
|
|
22
|
+
_ as shellColorRoles,
|
|
23
|
+
I as terminalThemeRoles
|
|
11
24
|
};
|
package/dist/ui.css
CHANGED
|
@@ -1917,6 +1917,33 @@
|
|
|
1917
1917
|
responsive previews. Never stretch the three choices across a settings page. */
|
|
1918
1918
|
.floe-theme-picker { min-width: 0; container: floe-theme-picker / inline-size; }
|
|
1919
1919
|
.floe-theme-picker__toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
|
|
1920
|
+
.floe-theme-studio__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-inline-start: auto; }
|
|
1921
|
+
.floe-theme-studio__body { display: grid; gap: 14px; font-size: var(--floe-type-control); }
|
|
1922
|
+
.floe-theme-studio__body label, .floe-theme-studio__body fieldset { min-width: 0; }
|
|
1923
|
+
.floe-theme-fields__tools, .floe-theme-fields__rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
|
|
1924
|
+
.floe-theme-fields__tools > input { flex: 1 1 8rem; min-width: 0; }
|
|
1925
|
+
.floe-theme-fields__list { max-height: min(35vh, 24rem); overflow: auto; overscroll-behavior: contain; display: grid; gap: 4px; margin-block: 6px; }
|
|
1926
|
+
.floe-theme-fields__row { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 5px; align-items: center; }
|
|
1927
|
+
.floe-theme-fields__row > span { overflow-wrap: anywhere; }
|
|
1928
|
+
.floe-theme-fields__row > input[type=color] { width: 24px; height: 24px; cursor: pointer; }
|
|
1929
|
+
.floe-theme-fields__rule { padding-block: 6px; border-block-end: 1px solid var(--border); }
|
|
1930
|
+
.floe-theme-fields__rule input:not([type=checkbox]) { width: 100%; min-width: 0; }
|
|
1931
|
+
.floe-theme-fields__rule label:has(input[type=number]) { flex: 1 1 3rem; }
|
|
1932
|
+
.floe-theme-studio__body :is(summary,legend) { padding-block: 4px; font-weight: 500; }
|
|
1933
|
+
.floe-theme-studio__body summary { cursor: pointer; }
|
|
1934
|
+
.floe-theme-studio__body textarea { font-family: var(--font-mono, monospace); }
|
|
1935
|
+
.floe-theme-studio__sample { display: flex; height: 96px; padding: 8px; gap: 6px; border: 1px solid; border-radius: var(--floe-radius-md); }
|
|
1936
|
+
.floe-theme-studio__sample > :is(aside,div) { border-radius: 4px; padding: 8px; }
|
|
1937
|
+
.floe-theme-studio__sample aside { width: 17%; }
|
|
1938
|
+
.floe-theme-studio__sample aside i { display: block; width: 65%; height: 3px; margin-bottom: 8px; background: currentColor; opacity: .4; }
|
|
1939
|
+
.floe-theme-studio__sample > div { flex: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px; }
|
|
1940
|
+
.floe-theme-studio__sample strong { font-size: 24px; }
|
|
1941
|
+
.floe-theme-studio__sample span { width: 32px; height: 12px; border-radius: 3px; }
|
|
1942
|
+
.floe-theme-studio__sample section { display: flex; gap: 4px; grid-column: 1 / -1; }
|
|
1943
|
+
.floe-theme-studio__sample section i { flex: 1; height: 6px; border-radius: 2px; }
|
|
1944
|
+
.floe-theme-studio__swatches { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,125px),1fr)); gap: 6px; }
|
|
1945
|
+
.floe-theme-studio__swatches label { display: flex; gap: 6px; align-items: center; }
|
|
1946
|
+
.floe-theme-studio__swatches input { width: 28px; height: 28px; flex: none; cursor: pointer; }
|
|
1920
1947
|
.floe-theme-picker__modes { display: inline-flex; max-width: 100%; padding: 2px; gap: 2px; border: 1px solid var(--border); border-radius: var(--floe-radius-field); background: var(--muted); }
|
|
1921
1948
|
.floe-theme-picker__modes > button { min-width: 0; height: var(--floe-control-height-sm); padding-inline: 12px; border-radius: var(--floe-radius-sm); font-size: var(--floe-type-control); color: var(--muted-foreground); cursor: pointer; transition: background-color var(--floe-duration-fast), color var(--floe-duration-fast); }
|
|
1922
1949
|
.floe-theme-picker__modes > [aria-checked='true'] { background: var(--primary); color: var(--primary-foreground); }
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
opacity: 0.6;
|
|
839
839
|
pointer-events: none;
|
|
840
840
|
}
|
|
841
|
-
:root[data-floe-shell-theme='hc-light']
|
|
841
|
+
:root:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features])))
|
|
842
842
|
:is(
|
|
843
843
|
.workbench-background-region,
|
|
844
844
|
.workbench-region-material__sample,
|
|
@@ -847,7 +847,7 @@
|
|
|
847
847
|
--region-outline: oklch(0.44 var(--region-outline-chroma) var(--region-hue));
|
|
848
848
|
--region-border: var(--region-outline);
|
|
849
849
|
}
|
|
850
|
-
:root[data-floe-shell-theme='hc-light'] [data-note-material] {
|
|
850
|
+
:root:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))) [data-note-material] {
|
|
851
851
|
border-color: var(--foreground);
|
|
852
852
|
}
|
|
853
853
|
@media (max-width: 1100px) {
|
|
@@ -1179,7 +1179,7 @@
|
|
|
1179
1179
|
.workbench-surface[data-workbench-theme] .workbench-widget__title-area svg {
|
|
1180
1180
|
color: var(--foreground);
|
|
1181
1181
|
}
|
|
1182
|
-
html[data-floe-shell-theme='hc-light'] .workbench-surface[data-workbench-theme] {
|
|
1182
|
+
html:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))) .workbench-surface[data-workbench-theme] {
|
|
1183
1183
|
--wb-window-edge: var(--foreground);
|
|
1184
1184
|
--wb-window-active: var(--foreground);
|
|
1185
1185
|
--wb-canvas: var(--muted);
|
package/dist/workbench.css
CHANGED
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
opacity: 0.55;
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
:root[data-floe-shell-theme='hc-light'] .workbench-canvas__grid {
|
|
363
|
+
:root:is([data-floe-theme-features~='high-contrast'],[data-floe-shell-theme='hc-light']:where(:not([data-floe-theme-features]))) .workbench-canvas__grid {
|
|
364
364
|
display: none;
|
|
365
365
|
}
|
|
366
366
|
|