@ferrlabs/ui-foundation 5.4.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,109 @@
1
+ /*
2
+ * FerrLabs design tokens — brand accents, typography, surfaces.
3
+ *
4
+ * Defined inside @theme so Tailwind v4 auto-generates utilities
5
+ * (`bg-ferrlabs-slate`, `text-ferrflow-orange`, `font-display`, etc.).
6
+ *
7
+ * Source of truth: workspace `DESIGN.md` section 1–2. If you change a
8
+ * value here, update DESIGN.md in the same PR.
9
+ */
10
+
11
+ @theme {
12
+ /* Typography
13
+ * --------------------------------------------------------------------
14
+ * Fraunces is the FerrLabs display/body face — distinctive, editorial,
15
+ * distinguishes us from the sea of Inter-washed SaaS landing pages.
16
+ * DM Mono is the code face; chosen over JetBrains Mono because its
17
+ * metrics sit better against Fraunces.
18
+ */
19
+ --font-sans: 'Fraunces', Georgia, ui-serif, serif;
20
+ --font-display: 'Fraunces', Georgia, ui-serif, serif;
21
+ --font-mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
22
+
23
+ /* Brand accents per product. One product = one accent — never mix.
24
+ * See DESIGN.md §1 for the "when to use which" matrix.
25
+ */
26
+ --color-ferrlabs-slate: #1e293b; /* Holding (sober, neutral) */
27
+ --color-ferrflow-orange: #e8733a; /* FerrFlow (warm, CLI-tool voice) */
28
+ --color-ferrvault-emerald: #10b981; /* FerrVault (calm, security) */
29
+ --color-ferrtrack-indigo: #6366f1; /* FerrTrack (analytic, data) */
30
+ --color-ferrgrowth-violet: #8b5cf6; /* FerrGrowth (energetic) */
31
+ --color-ferrfleet-amber: #f59e0b; /* FerrFleet (operational, runtime) */
32
+ --color-ferrlens-teal: #14b8a6; /* FerrLens (free web tools, clarity) */
33
+
34
+ /* Editorial surface palette — the cream/parchment family the marketing
35
+ * sites are designed against. Cooler greys for app dashboards live in
36
+ * `--color-app-*` so a single page never has to negotiate which palette
37
+ * applies. See DESIGN.md §1.3.
38
+ */
39
+ --color-paper: #faf8f4; /* Page background (parchment) */
40
+ --color-paper-2: #f3efe7; /* Cards, alt rows, subtle panels */
41
+ --color-ink: #1e293b; /* Headings, primary text */
42
+ --color-ink-2: #475569; /* Body text */
43
+ --color-ink-3: #5d6b80; /* Captions, mono labels */
44
+ --color-rule: rgba(30, 41, 59, 0.14);
45
+ --color-rule-strong: rgba(30, 41, 59, 0.28);
46
+ --color-card: #ffffff;
47
+ --color-card-rule: rgba(30, 41, 59, 0.1);
48
+
49
+ /* Component token contract — the names the JS/TSX primitives consume,
50
+ * aliased onto the accent and ink tokens the foundation ships.
51
+ */
52
+ --color-accent: var(--accent, var(--color-ferrlabs-slate));
53
+ --color-fg: var(--color-ink);
54
+ --color-fg-2: var(--color-ink-2);
55
+ --color-fg-3: var(--color-ink-3);
56
+
57
+ /* App dashboards — same ink, lighter neutrals for sidebar density. */
58
+ --color-app-bg: #fafaf9;
59
+ --color-app-bg-2: #f4f4f2;
60
+ --color-app-sidebar: #f7f7f5;
61
+ --color-app-rule: rgba(30, 41, 59, 0.1);
62
+ --color-app-rule-strong: rgba(30, 41, 59, 0.24);
63
+ --color-app-nav-active: rgba(30, 41, 59, 0.06);
64
+ --color-app-nav-hover: rgba(30, 41, 59, 0.03);
65
+
66
+ /* Status colours. `--color-<status>` is the solid fill (a banner bar, a
67
+ * toast background, a progress track) and keeps its value in both themes
68
+ * so white text on it holds its contrast. `--color-<status>-fg` is the text
69
+ * that sits on a surface tinted with that status, and flips with the theme.
70
+ */
71
+ --color-success: #10b981;
72
+ --color-success-fg: #065f46;
73
+ --color-warning: #f59e0b;
74
+ --color-warning-fg: #78350f;
75
+ --color-danger: #dc2626;
76
+ --color-danger-fg: #7f1d1d;
77
+ }
78
+
79
+ /* Dark mode tokens — opt-in via `<html data-theme="dark">`. The marketing
80
+ * sites mount a tweaks panel that flips this; the apps don't have one yet
81
+ * but inherit the same vars so a future toggle Just Works.
82
+ *
83
+ * Kept as plain CSS (not @theme) because Tailwind doesn't need to
84
+ * generate `dark:bg-…` utilities for these — components reference
85
+ * `var(--color-paper)` directly so the dark variant is automatic.
86
+ */
87
+ html[data-theme='dark'] {
88
+ --color-paper: #0c1322;
89
+ --color-paper-2: #131c30;
90
+ --color-ink: #f1f5f9;
91
+ --color-ink-2: #cbd5e1;
92
+ --color-ink-3: #94a3b8;
93
+ --color-rule: rgba(241, 245, 249, 0.14);
94
+ --color-rule-strong: rgba(241, 245, 249, 0.32);
95
+ --color-card: #131c30;
96
+ --color-card-rule: rgba(241, 245, 249, 0.1);
97
+
98
+ --color-app-bg: #0c1322;
99
+ --color-app-bg-2: #131c30;
100
+ --color-app-sidebar: #131c30;
101
+ --color-app-rule: rgba(241, 245, 249, 0.1);
102
+ --color-app-rule-strong: rgba(241, 245, 249, 0.24);
103
+ --color-app-nav-active: rgba(241, 245, 249, 0.08);
104
+ --color-app-nav-hover: rgba(241, 245, 249, 0.04);
105
+
106
+ --color-success-fg: #6ee7b7;
107
+ --color-warning-fg: #fcd34d;
108
+ --color-danger-fg: #fca5a5;
109
+ }
@@ -0,0 +1,18 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
2
+ <g fill="#14b8a6" opacity="0.25">
3
+ <rect x="2" y="3" width="3" height="3"/>
4
+ <rect x="6" y="3" width="3" height="3"/>
5
+ <rect x="10" y="3" width="3" height="3"/>
6
+ <rect x="14" y="3" width="3" height="3"/>
7
+ <rect x="2" y="7" width="3" height="3"/>
8
+ <rect x="14" y="7" width="3" height="3"/>
9
+ <rect x="2" y="11" width="3" height="3"/>
10
+ <rect x="14" y="11" width="3" height="3"/>
11
+ <rect x="2" y="15" width="3" height="3"/>
12
+ <rect x="6" y="15" width="3" height="3"/>
13
+ <rect x="10" y="15" width="3" height="3"/>
14
+ <rect x="14" y="15" width="3" height="3"/>
15
+ </g>
16
+ <circle cx="19" cy="19" r="8" stroke="#14b8a6" stroke-width="2" fill="none"/>
17
+ <line x1="25" y1="25" x2="30" y2="30" stroke="#14b8a6" stroke-width="2" stroke-linecap="square"/>
18
+ </svg>