fi-glass 1.1.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.
@@ -0,0 +1,58 @@
1
+ export { g as glassTheme } from '../glass-theme-D-leVuKb.js';
2
+ import '@free-intelligence/core';
3
+
4
+ /**
5
+ * glassChatPreset — the typed mirror of the glass-chat visual preset (B3-V1).
6
+ *
7
+ * The runtime CSS lives next to this file (glass-chat.css) and emits the same
8
+ * values as `--glass-chat-*` custom properties; this object is the typed mirror
9
+ * (same phase-1 contract as `glassTheme` ↔ tokens.css): it gives programmatic
10
+ * access to the values and lets a consumer reference an accent/surface without
11
+ * hardcoding the literal.
12
+ *
13
+ * Glass-material-specific by design: a future `fi-<material>` ships its own chat
14
+ * preset. Domain styling (AURITY's clinical personas) is NOT here — only the
15
+ * reusable glassmorphism chat look.
16
+ */
17
+ /** The reusable visual slots of the glass-chat preset. */
18
+ interface GlassChatPreset {
19
+ /** Accent gradient start (emerald). */
20
+ accentFrom: string;
21
+ /** Accent gradient end (cyan). */
22
+ accentTo: string;
23
+ /** Accent text color. */
24
+ accentText: string;
25
+ /** Shell body background (flat fallback under the layered gradient). */
26
+ body: string;
27
+ /** Page gradient edge color (B3-FIGLASS-13). */
28
+ bgFrom: string;
29
+ /** Page gradient mid color. */
30
+ bgMid: string;
31
+ /** Radial accent glow over the page gradient (consumer re-tints this). */
32
+ bgGlow: string;
33
+ /** Frosted composer/surface fill. */
34
+ surface: string;
35
+ /** Frosted surface border. */
36
+ surfaceBorder: string;
37
+ /** User bubble fill (translucent emerald wash, not solid). */
38
+ bubbleUser: string;
39
+ /** User bubble border. */
40
+ bubbleUserBorder: string;
41
+ /** Assistant bubble fill. */
42
+ bubbleAssistant: string;
43
+ /** Assistant bubble border. */
44
+ bubbleBorder: string;
45
+ /** Brand watermark opacity (image is consumer-supplied via CSS var). */
46
+ watermarkOpacity: string;
47
+ /** Primary text color. */
48
+ text: string;
49
+ /** Muted/secondary text color. */
50
+ textMuted: string;
51
+ /** Elevation shadow (≈ shadow-2xl). */
52
+ shadow: string;
53
+ /** Surface corner radius. */
54
+ radius: string;
55
+ }
56
+ declare const glassChatPreset: GlassChatPreset;
57
+
58
+ export { type GlassChatPreset, glassChatPreset };
@@ -0,0 +1,38 @@
1
+ // src/theme/glass-theme.ts
2
+ var glassTheme = {
3
+ blur: "12px",
4
+ blurCompact: "8px",
5
+ opacity: 0.8,
6
+ saturation: "180%",
7
+ surfaceLight: "255, 255, 255",
8
+ borderLight: "rgba(255, 255, 255, 0.18)",
9
+ surfaceDark: "rgba(15, 23, 42, 0.7)",
10
+ borderDark: "rgba(148, 163, 184, 0.2)"
11
+ };
12
+
13
+ // src/theme/glass-chat-preset.ts
14
+ var glassChatPreset = {
15
+ accentFrom: "#059669",
16
+ accentTo: "#0891b2",
17
+ accentText: "#6ee7b7",
18
+ body: "#020617",
19
+ bgFrom: "#020617",
20
+ bgMid: "#0f172a",
21
+ bgGlow: "rgba(8, 145, 178, 0.07)",
22
+ surface: "rgba(30, 41, 59, 0.6)",
23
+ surfaceBorder: "rgba(71, 85, 105, 0.4)",
24
+ bubbleUser: "rgba(5, 150, 105, 0.32)",
25
+ bubbleUserBorder: "rgba(52, 211, 153, 0.25)",
26
+ bubbleAssistant: "rgba(30, 41, 59, 0.55)",
27
+ bubbleBorder: "rgba(71, 85, 105, 0.35)",
28
+ watermarkOpacity: "0.08",
29
+ text: "#ffffff",
30
+ textMuted: "#94a3b8",
31
+ shadow: "0 25px 50px -12px rgba(0, 0, 0, 0.5)",
32
+ radius: "14px"
33
+ };
34
+ export {
35
+ glassChatPreset,
36
+ glassTheme
37
+ };
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/theme/glass-theme.ts","../../src/theme/glass-chat-preset.ts"],"sourcesContent":["import type { ThemeTokens } from '@free-intelligence/core';\n\n/**\n * glassTheme — the concrete values that fill core's ThemeTokens slots for the\n * `fi-glass` material.\n *\n * The runtime CSS lives next to this file (tokens.css / glass.css) and emits the\n * same values as `--glass-*` custom properties. This object is the typed mirror:\n * it gives programmatic access to the values and lets future materials\n * (fi-slate, fi-paper, …) be diffed against the very same slot shape.\n *\n * NOTE: values are intentionally duplicated between this object and tokens.css\n * during phase 1 (CSS is the runtime source of truth; this is documentation +\n * typing). A later phase may generate the CSS from this object to remove the\n * duplication — deliberately out of scope here.\n */\nexport const glassTheme: ThemeTokens = {\n blur: '12px',\n blurCompact: '8px',\n opacity: 0.8,\n saturation: '180%',\n surfaceLight: '255, 255, 255',\n borderLight: 'rgba(255, 255, 255, 0.18)',\n surfaceDark: 'rgba(15, 23, 42, 0.7)',\n borderDark: 'rgba(148, 163, 184, 0.2)',\n};\n","/**\n * glassChatPreset — the typed mirror of the glass-chat visual preset (B3-V1).\n *\n * The runtime CSS lives next to this file (glass-chat.css) and emits the same\n * values as `--glass-chat-*` custom properties; this object is the typed mirror\n * (same phase-1 contract as `glassTheme` ↔ tokens.css): it gives programmatic\n * access to the values and lets a consumer reference an accent/surface without\n * hardcoding the literal.\n *\n * Glass-material-specific by design: a future `fi-<material>` ships its own chat\n * preset. Domain styling (AURITY's clinical personas) is NOT here — only the\n * reusable glassmorphism chat look.\n */\n\n/** The reusable visual slots of the glass-chat preset. */\nexport interface GlassChatPreset {\n /** Accent gradient start (emerald). */\n accentFrom: string;\n /** Accent gradient end (cyan). */\n accentTo: string;\n /** Accent text color. */\n accentText: string;\n /** Shell body background (flat fallback under the layered gradient). */\n body: string;\n /** Page gradient edge color (B3-FIGLASS-13). */\n bgFrom: string;\n /** Page gradient mid color. */\n bgMid: string;\n /** Radial accent glow over the page gradient (consumer re-tints this). */\n bgGlow: string;\n /** Frosted composer/surface fill. */\n surface: string;\n /** Frosted surface border. */\n surfaceBorder: string;\n /** User bubble fill (translucent emerald wash, not solid). */\n bubbleUser: string;\n /** User bubble border. */\n bubbleUserBorder: string;\n /** Assistant bubble fill. */\n bubbleAssistant: string;\n /** Assistant bubble border. */\n bubbleBorder: string;\n /** Brand watermark opacity (image is consumer-supplied via CSS var). */\n watermarkOpacity: string;\n /** Primary text color. */\n text: string;\n /** Muted/secondary text color. */\n textMuted: string;\n /** Elevation shadow (≈ shadow-2xl). */\n shadow: string;\n /** Surface corner radius. */\n radius: string;\n}\n\nexport const glassChatPreset: GlassChatPreset = {\n accentFrom: '#059669',\n accentTo: '#0891b2',\n accentText: '#6ee7b7',\n body: '#020617',\n bgFrom: '#020617',\n bgMid: '#0f172a',\n bgGlow: 'rgba(8, 145, 178, 0.07)',\n surface: 'rgba(30, 41, 59, 0.6)',\n surfaceBorder: 'rgba(71, 85, 105, 0.4)',\n bubbleUser: 'rgba(5, 150, 105, 0.32)',\n bubbleUserBorder: 'rgba(52, 211, 153, 0.25)',\n bubbleAssistant: 'rgba(30, 41, 59, 0.55)',\n bubbleBorder: 'rgba(71, 85, 105, 0.35)',\n watermarkOpacity: '0.08',\n text: '#ffffff',\n textMuted: '#94a3b8',\n shadow: '0 25px 50px -12px rgba(0, 0, 0, 0.5)',\n radius: '14px',\n};\n"],"mappings":";AAgBO,IAAM,aAA0B;AAAA,EACrC,MAAM;AAAA,EACN,aAAa;AAAA,EACb,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,cAAc;AAAA,EACd,aAAa;AAAA,EACb,aAAa;AAAA,EACb,YAAY;AACd;;;AC6BO,IAAM,kBAAmC;AAAA,EAC9C,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,YAAY;AAAA,EACZ,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,kBAAkB;AAAA,EAClB,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,kBAAkB;AAAA,EAClB,MAAM;AAAA,EACN,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,QAAQ;AACV;","names":[]}