@floegence/floe-webapp-core 0.86.45 → 0.86.47
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/chat/blocks/MarkdownMedia.d.ts +2 -0
- package/dist/components/chat/blocks/MarkdownMedia.js +187 -171
- package/dist/styles/themes/presets.d.ts +17 -2
- package/dist/styles/themes/presets.js +95 -7
- package/dist/styles.css +1 -1
- package/dist/themes/shell-presets.generated.css +154 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createProgressTokens as
|
|
2
|
-
import { DARK_WINDOW_TOKENS as
|
|
1
|
+
import { createProgressTokens as b } from "./progressTokens.js";
|
|
2
|
+
import { DARK_WINDOW_TOKENS as E, LIGHT_WINDOW_TOKENS as k } from "./windowTokens.js";
|
|
3
3
|
import { CLASSIC_LIGHT_SEMANTIC_TOKENS as t, CLASSIC_DARK_SEMANTIC_TOKENS as F } from "./classicSemanticTokens.js";
|
|
4
4
|
const T = [
|
|
5
5
|
"--floe-window-background",
|
|
@@ -97,7 +97,10 @@ const T = [
|
|
|
97
97
|
tip: "#71C8C0"
|
|
98
98
|
};
|
|
99
99
|
function o(r) {
|
|
100
|
-
const e =
|
|
100
|
+
const e = {
|
|
101
|
+
...r.mode === "light" ? p : A,
|
|
102
|
+
...r.status
|
|
103
|
+
}, n = r.mode === "light" ? { background: "#F4C95D", foreground: "#243447" } : {
|
|
101
104
|
background: r.background,
|
|
102
105
|
foreground: r.foreground
|
|
103
106
|
}, [d, c, u, i, s] = r.chart, a = r.syntax ?? {
|
|
@@ -109,7 +112,8 @@ function o(r) {
|
|
|
109
112
|
function: s,
|
|
110
113
|
constant: i
|
|
111
114
|
}, g = {
|
|
112
|
-
...r.mode === "dark" ?
|
|
115
|
+
...r.mode === "dark" ? E : k,
|
|
116
|
+
...r.windowTokens,
|
|
113
117
|
"--background": r.background,
|
|
114
118
|
"--foreground": r.foreground,
|
|
115
119
|
"--inline-code-foreground": r.inlineCode?.foreground ?? r.foreground,
|
|
@@ -178,9 +182,9 @@ function o(r) {
|
|
|
178
182
|
// selectionBackground so we don't inherit a near-white primary as glow source.
|
|
179
183
|
"--glow": r.glow ?? (r.mode === "light" ? r.primary : r.selectionBackground)
|
|
180
184
|
};
|
|
181
|
-
Object.assign(g,
|
|
182
|
-
for (const [l,
|
|
183
|
-
g[`--floe-file-icon-${l}`] =
|
|
185
|
+
Object.assign(g, b(r.mode, g));
|
|
186
|
+
for (const [l, B] of Object.entries(r.fileIconColors ?? {}))
|
|
187
|
+
g[`--floe-file-icon-${l}`] = B;
|
|
184
188
|
return {
|
|
185
189
|
name: r.name,
|
|
186
190
|
displayName: r.displayName,
|
|
@@ -365,6 +369,46 @@ const C = {
|
|
|
365
369
|
constant: "#9C225E"
|
|
366
370
|
}
|
|
367
371
|
}),
|
|
372
|
+
o({
|
|
373
|
+
name: "cloud-white",
|
|
374
|
+
displayName: "Cloud White",
|
|
375
|
+
description: "Pure white reading surfaces with soft graphite text and restrained blue actions.",
|
|
376
|
+
mode: "light",
|
|
377
|
+
background: "#FFFFFF",
|
|
378
|
+
foreground: "#30343B",
|
|
379
|
+
card: "#FFFFFF",
|
|
380
|
+
muted: "#F6F7F9",
|
|
381
|
+
accent: "#EAF0FB",
|
|
382
|
+
mutedForeground: "#666D79",
|
|
383
|
+
primary: "#365FC0",
|
|
384
|
+
primaryForeground: "#FFFFFF",
|
|
385
|
+
border: "#E3E6EB",
|
|
386
|
+
input: "#8A919B",
|
|
387
|
+
sidebar: "#FAFBFC",
|
|
388
|
+
terminalBackground: "#FFFFFF",
|
|
389
|
+
terminalForeground: "#30343B",
|
|
390
|
+
selectionBackground: "#365FC0",
|
|
391
|
+
selectionForeground: "#FFFFFF",
|
|
392
|
+
inlineCode: { foreground: "#365FC0", background: "#F6F7F9" },
|
|
393
|
+
chart: ["#365FC0", "#317456", "#7B51A0", "#8A641D", "#246F96"],
|
|
394
|
+
status: {
|
|
395
|
+
success: "#317456",
|
|
396
|
+
warning: "#8A641D",
|
|
397
|
+
error: "#B34751",
|
|
398
|
+
info: "#365FC0",
|
|
399
|
+
note: "#7B51A0",
|
|
400
|
+
tip: "#287B83"
|
|
401
|
+
},
|
|
402
|
+
syntax: {
|
|
403
|
+
comment: "#666D79",
|
|
404
|
+
keyword: "#7B51A0",
|
|
405
|
+
string: "#317456",
|
|
406
|
+
number: "#8A641D",
|
|
407
|
+
type: "#365FC0",
|
|
408
|
+
function: "#287B83",
|
|
409
|
+
constant: "#B34751"
|
|
410
|
+
}
|
|
411
|
+
}),
|
|
368
412
|
C,
|
|
369
413
|
o({
|
|
370
414
|
name: "paper",
|
|
@@ -664,6 +708,50 @@ const C = {
|
|
|
664
708
|
constant: "#E9A4A0"
|
|
665
709
|
}
|
|
666
710
|
}),
|
|
711
|
+
o({
|
|
712
|
+
name: "soft-black",
|
|
713
|
+
displayName: "Soft Black",
|
|
714
|
+
description: "Near-black surfaces, soft warm-gray text and muted semantic colors for quiet focus.",
|
|
715
|
+
mode: "dark",
|
|
716
|
+
background: "#09090B",
|
|
717
|
+
foreground: "#C6C5C1",
|
|
718
|
+
card: "#101113",
|
|
719
|
+
muted: "#17181B",
|
|
720
|
+
accent: "#1C2432",
|
|
721
|
+
mutedForeground: "#96979D",
|
|
722
|
+
primary: "#9AAED3",
|
|
723
|
+
primaryForeground: "#111722",
|
|
724
|
+
border: "#292B30",
|
|
725
|
+
input: "#666971",
|
|
726
|
+
sidebar: "#0D0E10",
|
|
727
|
+
terminalBackground: "#09090B",
|
|
728
|
+
terminalForeground: "#C6C5C1",
|
|
729
|
+
selectionBackground: "#38445C",
|
|
730
|
+
selectionForeground: "#DEDDD8",
|
|
731
|
+
inlineCode: { foreground: "#E2B766", background: "#1B1915" },
|
|
732
|
+
chart: ["#9AAED3", "#91B39B", "#C594C8", "#D0B07B", "#6DB8D2"],
|
|
733
|
+
status: {
|
|
734
|
+
success: "#91B39B",
|
|
735
|
+
warning: "#C8B28A",
|
|
736
|
+
error: "#D29292",
|
|
737
|
+
info: "#9AAED3",
|
|
738
|
+
note: "#B5A1CA",
|
|
739
|
+
tip: "#84B6BD"
|
|
740
|
+
},
|
|
741
|
+
windowTokens: {
|
|
742
|
+
"--floe-window-background": "var(--card)",
|
|
743
|
+
"--floe-window-titlebar-background": "color-mix(in srgb, var(--card) 95%, var(--foreground))"
|
|
744
|
+
},
|
|
745
|
+
syntax: {
|
|
746
|
+
comment: "#96979D",
|
|
747
|
+
keyword: "#B5A1CA",
|
|
748
|
+
string: "#91B39B",
|
|
749
|
+
number: "#C8B28A",
|
|
750
|
+
type: "#9AAED3",
|
|
751
|
+
function: "#84B6BD",
|
|
752
|
+
constant: "#D29292"
|
|
753
|
+
}
|
|
754
|
+
}),
|
|
667
755
|
y,
|
|
668
756
|
o({
|
|
669
757
|
name: "ink",
|