@floegence/floe-webapp-core 0.101.52 → 0.102.1

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/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,3 +1,4 @@
1
1
  export { FLOE_THEME_FILE_LIMIT, floeThemeContrastIssue, readFloeThemeDocument, resolveFloeThemeDocument, type FloeThemeDocument } from './styles/themes/themeDocument';
2
+ export * from './styles/themes/portableTheme';
2
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';
3
4
  export type { FloeSurfaceStyle, FloeMonacoThemeDefinition, FloeMonacoTokenRule, FloeThemePreset, FloeThemePresetMode, FloeThemeTokenMap, FloeThemeTokenOverrides, } from './styles/themes';
package/dist/themes.js CHANGED
@@ -1,16 +1,25 @@
1
- import { FLOE_THEME_FILE_LIMIT as r, floeThemeContrastIssue as l, readFloeThemeDocument as s, resolveFloeThemeDocument as t } from "./styles/themes/themeDocument.js";
2
- import { BUILT_IN_SHELL_THEME_DEFAULTS as T, REQUIRED_SHELL_THEME_TOKENS as E, assertUniqueThemePresetNames as h, builtInShellThemePresets as S, getShellThemePresetsForMode as _, normalizeShellThemeSelection as L, presetSupportsMode as I, resolveShellThemePresetName as n } from "./styles/themes/presets.js";
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 h, createBlankShellTheme as m, exportShellTheme as E, portableContrastIssue as a, readPortableShellTheme as S, resolvePortableShellTheme as _, shellColorRoles as I, terminalThemeRoles as L } from "./styles/themes/portableTheme.js";
3
+ import { BUILT_IN_SHELL_THEME_DEFAULTS as p, REQUIRED_SHELL_THEME_TOKENS as M, assertUniqueThemePresetNames as u, builtInShellThemePresets as P, getShellThemePresetsForMode as F, normalizeShellThemeSelection as H, presetSupportsMode as i, resolveShellThemePresetName as R } from "./styles/themes/presets.js";
3
4
  export {
4
- T as BUILT_IN_SHELL_THEME_DEFAULTS,
5
- r as FLOE_THEME_FILE_LIMIT,
6
- E as REQUIRED_SHELL_THEME_TOKENS,
7
- h as assertUniqueThemePresetNames,
8
- S as builtInShellThemePresets,
9
- l as floeThemeContrastIssue,
10
- _ as getShellThemePresetsForMode,
11
- L as normalizeShellThemeSelection,
12
- I as presetSupportsMode,
13
- s as readFloeThemeDocument,
14
- t as resolveFloeThemeDocument,
15
- n as resolveShellThemePresetName
5
+ p as BUILT_IN_SHELL_THEME_DEFAULTS,
6
+ o as FLOE_THEME_FILE_LIMIT,
7
+ h as PORTABLE_THEME_LIMIT,
8
+ M as REQUIRED_SHELL_THEME_TOKENS,
9
+ u as assertUniqueThemePresetNames,
10
+ P as builtInShellThemePresets,
11
+ m as createBlankShellTheme,
12
+ E as exportShellTheme,
13
+ r as floeThemeContrastIssue,
14
+ F as getShellThemePresetsForMode,
15
+ H as normalizeShellThemeSelection,
16
+ a as portableContrastIssue,
17
+ i as presetSupportsMode,
18
+ t as readFloeThemeDocument,
19
+ S as readPortableShellTheme,
20
+ s as resolveFloeThemeDocument,
21
+ _ as resolvePortableShellTheme,
22
+ R as resolveShellThemePresetName,
23
+ I as shellColorRoles,
24
+ L as terminalThemeRoles
16
25
  };
package/dist/ui.css CHANGED
@@ -1920,6 +1920,15 @@
1920
1920
  .floe-theme-studio__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-inline-start: auto; }
1921
1921
  .floe-theme-studio__body { display: grid; gap: 14px; font-size: var(--floe-type-control); }
1922
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; }
1923
1932
  .floe-theme-studio__body :is(summary,legend) { padding-block: 4px; font-weight: 500; }
1924
1933
  .floe-theme-studio__body summary { cursor: pointer; }
1925
1934
  .floe-theme-studio__body textarea { font-family: var(--font-mono, monospace); }
@@ -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);
@@ -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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@floegence/floe-webapp-core",
3
- "version": "0.101.52",
3
+ "version": "0.102.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",