@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,2 @@
1
+ export * from './icons';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export * from './icons';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "bugs": {
3
+ "url": "https://github.com/FerrLabs/UI/issues"
4
+ },
5
+ "dependencies": {
6
+ "@fontsource/dm-mono": "^5.0.0",
7
+ "@fontsource/fraunces": "^5.0.0"
8
+ },
9
+ "description": "Framework-agnostic FerrLabs design foundation: SVG icons, base CSS + fonts, Tailwind preset tokens. Consumed by @ferrlabs/ui-ng and by the Astro sites directly.",
10
+ "devDependencies": {
11
+ "typescript": "^6.0.0"
12
+ },
13
+ "exports": {
14
+ ".": {
15
+ "default": "./dist/index.js",
16
+ "types": "./dist/index.d.ts"
17
+ },
18
+ "./icons": {
19
+ "default": "./dist/icons.js",
20
+ "types": "./dist/icons.d.ts"
21
+ },
22
+ "./package.json": "./package.json",
23
+ "./styles/global.css": "./src/styles/global.css",
24
+ "./styles/tokens.css": "./src/styles/tokens.css",
25
+ "./svg/*.svg": "./src/svg/*.svg"
26
+ },
27
+ "files": [
28
+ "src",
29
+ "dist",
30
+ "README.md"
31
+ ],
32
+ "homepage": "https://github.com/FerrLabs/UI#readme",
33
+ "license": "MPL-2.0",
34
+ "main": "./dist/index.js",
35
+ "name": "@ferrlabs/ui-foundation",
36
+ "peerDependencies": {
37
+ "tailwindcss": "^4.0.0"
38
+ },
39
+ "peerDependenciesMeta": {
40
+ "tailwindcss": {
41
+ "optional": false
42
+ }
43
+ },
44
+ "publishConfig": {
45
+ "access": "public",
46
+ "registry": "https://registry.npmjs.org"
47
+ },
48
+ "repository": {
49
+ "directory": "packages/foundation",
50
+ "type": "git",
51
+ "url": "git+https://github.com/FerrLabs/UI.git"
52
+ },
53
+ "type": "module",
54
+ "types": "./dist/index.d.ts",
55
+ "version": "5.4.0",
56
+ "scripts": {
57
+ "build": "tsc",
58
+ "typecheck": "tsc --noEmit"
59
+ }
60
+ }
package/src/icons.ts ADDED
@@ -0,0 +1,247 @@
1
+ /**
2
+ * FerrLabs icon set — Lucide-inspired stroke icons designed at 24×24 viewBox,
3
+ * stroke-width 1.5, stroke="currentColor". Render at any size; the icon column
4
+ * in `@ferrlabs/ui-primitives` Sidebar uses 16×16. Each entry is a raw SVG
5
+ * string for portability across React + Astro.
6
+ */
7
+
8
+ const stroke = (paths: string) =>
9
+ `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round">${paths}</svg>`;
10
+
11
+ export const icons = {
12
+ ferrlabsLogo: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><circle cx="16" cy="16" r="4" fill="currentColor"/><circle cx="16" cy="16" r="8" stroke="currentColor" stroke-width="1.5" fill="none" opacity="0.7"/><circle cx="16" cy="16" r="12" stroke="currentColor" stroke-width="1" fill="none" opacity="0.4"/></svg>`,
13
+
14
+ // FerrLens — "loupe over pixel grid" mark (design bundle logos.html, option 03/Loupe).
15
+ // currentColor on stroke + 25% opacity fill on the grid cells, so the icon
16
+ // adapts to the surrounding text color when no accent is set.
17
+ ferrlensLogo: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g fill="#1e293b" opacity="0.35"><rect x="2" y="3" width="3" height="3"/><rect x="6" y="3" width="3" height="3"/><rect x="10" y="3" width="3" height="3"/><rect x="14" y="3" width="3" height="3"/><rect x="2" y="7" width="3" height="3"/><rect x="14" y="7" width="3" height="3"/><rect x="2" y="11" width="3" height="3"/><rect x="14" y="11" width="3" height="3"/><rect x="2" y="15" width="3" height="3"/><rect x="6" y="15" width="3" height="3"/><rect x="10" y="15" width="3" height="3"/><rect x="14" y="15" width="3" height="3"/></g><circle cx="19" cy="19" r="8" stroke="#14b8a6" stroke-width="2" fill="none"/><line x1="25" y1="25" x2="30" y2="30" stroke="#14b8a6" stroke-width="2" stroke-linecap="square"/></svg>`,
18
+
19
+ // Layout & overview
20
+ overview: stroke(
21
+ `<rect x="3" y="3" width="7" height="9"/><rect x="14" y="3" width="7" height="5"/><rect x="14" y="12" width="7" height="9"/><rect x="3" y="16" width="7" height="5"/>`,
22
+ ),
23
+ products: stroke(
24
+ `<rect x="3" y="3" width="7" height="7"/><rect x="14" y="3" width="7" height="7"/><rect x="3" y="14" width="7" height="7"/><rect x="14" y="14" width="7" height="7"/>`,
25
+ ),
26
+ usage: stroke(`<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"/>`),
27
+ home: stroke(`<path d="M3 9 12 2l9 7v11a2 2 0 0 1-2 2h-4v-7H10v7H6a2 2 0 0 1-2-2z"/>`),
28
+
29
+ // Org / people
30
+ members: stroke(
31
+ `<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/>`,
32
+ ),
33
+ teams: stroke(
34
+ `<path d="M3 21v-2a4 4 0 0 1 4-4h4a4 4 0 0 1 4 4v2"/><circle cx="9" cy="7" r="4"/><circle cx="17" cy="7" r="3"/><path d="M21 21v-2a4 4 0 0 0-3-3.87"/>`,
35
+ ),
36
+ roles: stroke(`<path d="M9 12l2 2 4-4"/><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>`),
37
+ profile: stroke(
38
+ `<path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/>`,
39
+ ),
40
+
41
+ // Audit / activity
42
+ auditLog: stroke(
43
+ `<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="9" y1="13" x2="15" y2="13"/><line x1="9" y1="17" x2="15" y2="17"/>`,
44
+ ),
45
+
46
+ // Billing / commerce
47
+ billing: stroke(
48
+ `<rect x="2" y="5" width="20" height="14" rx="2"/><line x1="2" y1="10" x2="22" y2="10"/>`,
49
+ ),
50
+ tax: stroke(
51
+ `<line x1="12" y1="3" x2="12" y2="21"/><path d="M5 7l7-4 7 4"/><path d="M5 7l-2 6h4z"/><path d="M19 7l2 6h-4z"/><path d="M3 13a2 2 0 0 0 4 0"/><path d="M17 13a2 2 0 0 0 4 0"/>`,
52
+ ),
53
+
54
+ // Security
55
+ sso: stroke(
56
+ `<circle cx="12" cy="11" r="9"/><path d="M3.6 9h16.8"/><path d="M3.6 14h16.8"/><path d="M12 2a13 13 0 0 1 0 18M12 2a13 13 0 0 0 0 18"/>`,
57
+ ),
58
+ tokens: stroke(
59
+ `<circle cx="7.5" cy="15.5" r="4.5"/><line x1="10.5" y1="12.5" x2="20" y2="3"/><line x1="16" y1="7" x2="20" y2="11"/><line x1="13" y1="10" x2="17" y2="14"/>`,
60
+ ),
61
+ sessions: stroke(
62
+ `<rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/>`,
63
+ ),
64
+ shield: stroke(`<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/>`),
65
+
66
+ // Vault
67
+ secrets: stroke(
68
+ `<circle cx="7.5" cy="15.5" r="4.5"/><line x1="10.5" y1="12.5" x2="20" y2="3"/><line x1="16" y1="7" x2="20" y2="11"/>`,
69
+ ),
70
+ environments: stroke(
71
+ `<rect x="2" y="3" width="20" height="6" rx="1"/><rect x="2" y="13" width="20" height="6" rx="1"/><line x1="6" y1="6" x2="6.01" y2="6"/><line x1="6" y1="16" x2="6.01" y2="16"/>`,
72
+ ),
73
+ rotations: stroke(
74
+ `<polyline points="21 12 21 6 15 6"/><path d="M3 12a9 9 0 0 1 15-6.7L21 6"/><polyline points="3 12 3 18 9 18"/><path d="M21 12a9 9 0 0 1-15 6.7L3 18"/>`,
75
+ ),
76
+ kms: stroke(
77
+ `<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/>`,
78
+ ),
79
+
80
+ // Connect / DevOps
81
+ cli: stroke(`<polyline points="4 17 10 11 4 5"/><line x1="12" y1="19" x2="20" y2="19"/>`),
82
+ k8s: stroke(`<polygon points="12 2 22 7 22 17 12 22 2 17 2 7"/><circle cx="12" cy="12" r="3"/>`),
83
+ ci: stroke(
84
+ `<line x1="6" y1="3" x2="6" y2="15"/><circle cx="18" cy="6" r="3"/><circle cx="6" cy="18" r="3"/><path d="M18 9a9 9 0 0 1-9 9"/>`,
85
+ ),
86
+
87
+ // Track / issues
88
+ issues: stroke(`<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3"/>`),
89
+ cycles: stroke(
90
+ `<rect x="3" y="4" width="18" height="18" rx="2"/><line x1="16" y1="2" x2="16" y2="6"/><line x1="8" y1="2" x2="8" y2="6"/><line x1="3" y1="10" x2="21" y2="10"/>`,
91
+ ),
92
+ roadmap: stroke(
93
+ `<polygon points="1 6 7 3 17 6 23 3 23 18 17 21 7 18 1 21"/><line x1="7" y1="3" x2="7" y2="18"/><line x1="17" y1="6" x2="17" y2="21"/>`,
94
+ ),
95
+ triage: stroke(
96
+ `<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/>`,
97
+ ),
98
+ templates: stroke(
99
+ `<rect x="3" y="3" width="18" height="18" rx="2"/><line x1="3" y1="9" x2="21" y2="9"/><line x1="9" y1="21" x2="9" y2="9"/>`,
100
+ ),
101
+ prefs: stroke(
102
+ `<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>`,
103
+ ),
104
+ settings: stroke(
105
+ `<circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"/>`,
106
+ ),
107
+ search: stroke(`<circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/>`),
108
+ help: stroke(
109
+ `<circle cx="12" cy="12" r="9"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/>`,
110
+ ),
111
+
112
+ // Admin / staff
113
+ dashboard: stroke(
114
+ `<line x1="3" y1="12" x2="6" y2="12"/><line x1="18" y1="12" x2="21" y2="12"/><line x1="12" y1="3" x2="12" y2="6"/><circle cx="12" cy="12" r="9"/><line x1="12" y1="12" x2="16" y2="8"/>`,
115
+ ),
116
+ organizations: stroke(
117
+ `<rect x="3" y="3" width="8" height="18" rx="1"/><rect x="13" y="9" width="8" height="12" rx="1"/><line x1="6" y1="7" x2="8" y2="7"/><line x1="6" y1="11" x2="8" y2="11"/><line x1="6" y1="15" x2="8" y2="15"/><line x1="16" y1="13" x2="18" y2="13"/><line x1="16" y1="17" x2="18" y2="17"/>`,
118
+ ),
119
+ users: stroke(
120
+ `<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"/><circle cx="9" cy="7" r="4"/><path d="M22 21v-2a4 4 0 0 0-3-3.87"/><path d="M16 3.13a4 4 0 0 1 0 7.75"/>`,
121
+ ),
122
+ installs: stroke(
123
+ `<path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/>`,
124
+ ),
125
+ changelog: stroke(
126
+ `<polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><line x1="10" y1="11" x2="10" y2="17"/><line x1="14" y1="11" x2="14" y2="17"/>`,
127
+ ),
128
+
129
+ // Fleet / agents
130
+ fleet: stroke(
131
+ `<circle cx="12" cy="12" r="3"/><circle cx="5" cy="6" r="2"/><circle cx="19" cy="6" r="2"/><circle cx="5" cy="18" r="2"/><circle cx="19" cy="18" r="2"/><line x1="7" y1="7" x2="10" y2="10"/><line x1="17" y1="7" x2="14" y2="10"/><line x1="7" y1="17" x2="10" y2="14"/><line x1="17" y1="17" x2="14" y2="14"/>`,
132
+ ),
133
+ agents: stroke(
134
+ `<circle cx="12" cy="8" r="4"/><path d="M4 21v-1a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v1"/><circle cx="9" cy="8" r="0.6" fill="currentColor"/><circle cx="15" cy="8" r="0.6" fill="currentColor"/>`,
135
+ ),
136
+ queue: stroke(
137
+ `<line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="14" y2="18"/>`,
138
+ ),
139
+ runs: stroke(`<polygon points="6 4 20 12 6 20 6 4"/>`),
140
+ catalog: stroke(
141
+ `<path d="M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z"/><path d="M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z"/>`,
142
+ ),
143
+ tools: stroke(
144
+ `<path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"/>`,
145
+ ),
146
+ datasets: stroke(
147
+ `<ellipse cx="12" cy="5" rx="9" ry="3"/><path d="M3 5v14a9 3 0 0 0 18 0V5"/><path d="M3 12a9 3 0 0 0 18 0"/>`,
148
+ ),
149
+ spend: stroke(
150
+ `<line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/>`,
151
+ ),
152
+ incidents: stroke(
153
+ `<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"/><line x1="12" y1="9" x2="12" y2="13"/><line x1="12" y1="17" x2="12.01" y2="17"/>`,
154
+ ),
155
+
156
+ // Vault extras
157
+ vault: stroke(
158
+ `<rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="12" cy="12" r="3"/><line x1="12" y1="3" x2="12" y2="6"/><line x1="12" y1="18" x2="12" y2="21"/><line x1="3" y1="12" x2="6" y2="12"/><line x1="18" y1="12" x2="21" y2="12"/>`,
159
+ ),
160
+ access: stroke(
161
+ `<rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/><circle cx="12" cy="16" r="1"/>`,
162
+ ),
163
+
164
+ // Track / inbox
165
+ inbox: stroke(
166
+ `<polyline points="22 12 16 12 14 15 10 15 8 12 2 12"/><path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/>`,
167
+ ),
168
+ myIssues: stroke(
169
+ `<circle cx="12" cy="12" r="9"/><circle cx="12" cy="12" r="3"/><line x1="12" y1="3" x2="12" y2="6"/>`,
170
+ ),
171
+ subscribed: stroke(`<path d="M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/>`),
172
+ bell: stroke(
173
+ `<path d="M10.268 21a2 2 0 0 0 3.464 0"/><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"/>`,
174
+ ),
175
+ docs: stroke(
176
+ `<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/>`,
177
+ ),
178
+
179
+ // Growth / sites
180
+ pages: stroke(
181
+ `<rect x="4" y="3" width="16" height="18" rx="2"/><line x1="4" y1="8" x2="20" y2="8"/><line x1="8" y1="3" x2="8" y2="8"/>`,
182
+ ),
183
+ forms: stroke(
184
+ `<rect x="3" y="4" width="18" height="16" rx="2"/><line x1="7" y1="9" x2="17" y2="9"/><line x1="7" y1="13" x2="13" y2="13"/><line x1="7" y1="17" x2="11" y2="17"/>`,
185
+ ),
186
+ abTest: stroke(
187
+ `<rect x="3" y="3" width="18" height="18" rx="2"/><line x1="12" y1="3" x2="12" y2="21"/><path d="M7 9l-2 3 2 3"/><path d="M17 9l2 3-2 3"/>`,
188
+ ),
189
+ analytics: stroke(
190
+ `<line x1="18" y1="20" x2="18" y2="10"/><line x1="12" y1="20" x2="12" y2="4"/><line x1="6" y1="20" x2="6" y2="14"/><line x1="3" y1="20" x2="21" y2="20"/>`,
191
+ ),
192
+ blog: stroke(
193
+ `<path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/>`,
194
+ ),
195
+ seo: stroke(
196
+ `<circle cx="11" cy="11" r="7"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><polyline points="8 11 10.5 13.5 14 9.5"/>`,
197
+ ),
198
+ funnels: stroke(`<polygon points="22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"/>`),
199
+ quotes: stroke(
200
+ `<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="9" y1="13" x2="15" y2="13"/><line x1="9" y1="17" x2="13" y2="17"/><line x1="9" y1="9" x2="11" y2="9"/>`,
201
+ ),
202
+ emails: stroke(
203
+ `<rect x="2" y="4" width="20" height="16" rx="2"/><polyline points="22 6 12 13 2 6"/>`,
204
+ ),
205
+ domains: stroke(
206
+ `<circle cx="12" cy="12" r="9"/><line x1="3" y1="12" x2="21" y2="12"/><path d="M12 3a13 13 0 0 1 0 18M12 3a13 13 0 0 0 0 18"/>`,
207
+ ),
208
+ integrations: stroke(
209
+ `<path d="M9 11V7a3 3 0 0 1 6 0v4"/><rect x="5" y="11" width="14" height="10" rx="2"/><line x1="9" y1="15" x2="9" y2="17"/><line x1="15" y1="15" x2="15" y2="17"/>`,
210
+ ),
211
+
212
+ // FerrGames admin
213
+ players: stroke(
214
+ `<circle cx="12" cy="8" r="4"/><path d="M5 21v-1a7 7 0 0 1 14 0v1"/><circle cx="9" cy="7" r="0.6" fill="currentColor"/><circle cx="15" cy="7" r="0.6" fill="currentColor"/>`,
215
+ ),
216
+ rooms: stroke(
217
+ `<rect x="4" y="3" width="16" height="18" rx="1"/><circle cx="15" cy="12" r="1" fill="currentColor"/><line x1="4" y1="21" x2="20" y2="21"/>`,
218
+ ),
219
+ shop: stroke(
220
+ `<path d="M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z"/><line x1="3" y1="6" x2="21" y2="6"/><path d="M16 10a4 4 0 0 1-8 0"/>`,
221
+ ),
222
+ geo: stroke(
223
+ `<path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"/><circle cx="12" cy="10" r="3"/>`,
224
+ ),
225
+ dictionaries: stroke(
226
+ `<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/><line x1="9" y1="7" x2="16" y2="7"/><line x1="9" y1="11" x2="14" y2="11"/>`,
227
+ ),
228
+
229
+ // Generic toolkit
230
+ zap: stroke(`<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"/>`),
231
+ sparkles: stroke(
232
+ `<path d="m12 3-1.9 5.8a2 2 0 0 1-1.288 1.288L3 12l5.812 1.9a2 2 0 0 1 1.288 1.288L12 21l1.9-5.812a2 2 0 0 1 1.288-1.288L21 12l-5.812-1.9a2 2 0 0 1-1.288-1.288z"/><path d="M5 3v4"/><path d="M19 17v4"/><path d="M3 5h4"/><path d="M17 19h4"/>`,
233
+ ),
234
+ bookmark: stroke(`<path d="m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z"/>`),
235
+ circleSlash: stroke(
236
+ `<circle cx="12" cy="12" r="10"/><line x1="4.93" y1="4.93" x2="19.07" y2="19.07"/>`,
237
+ ),
238
+ mail: stroke(
239
+ `<rect x="2" y="4" width="20" height="16" rx="2"/><polyline points="22 7 12 13 2 7"/>`,
240
+ ),
241
+ dns: stroke(
242
+ `<circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/>`,
243
+ ),
244
+ arrowRight: stroke(`<line x1="5" y1="12" x2="19" y2="12"/><polyline points="12 5 19 12 12 19"/>`),
245
+ } as const;
246
+
247
+ export type IconName = keyof typeof icons;
package/src/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './icons';
@@ -0,0 +1,286 @@
1
+ /*
2
+ * FerrLabs base stylesheet.
3
+ *
4
+ * Drop-in replacement for the `@import "tailwindcss";` line at the top of
5
+ * every product's global.css. Loads:
6
+ * 1. Self-hosted Fraunces + DM Mono (no Google Fonts CDN, no tracking)
7
+ * 2. Tailwind CSS v4
8
+ * 3. FerrLabs design tokens (brand accents, font vars) as a @theme
9
+ * 4. Minimal base layer that wires font-family + antialiasing
10
+ *
11
+ * Usage in each consuming app's global.css:
12
+ *
13
+ * @import "@ferrlabs/styles/global.css";
14
+ * [ ...your product-specific overrides... ]
15
+ *
16
+ * Do not @import tailwindcss yourself — this file already does it. If you
17
+ * do, you'll generate utilities twice and bloat the final CSS.
18
+ */
19
+
20
+ /* 1. Fonts — only the weights we actually use, to keep the payload down.
21
+ * Fraunces: 400 body / 700 semibold / 900 display.
22
+ * DM Mono: 400 regular / 500 medium.
23
+ * Reviewed in DESIGN.md §2.
24
+ */
25
+ @import '@fontsource/fraunces/400.css';
26
+ @import '@fontsource/fraunces/700.css';
27
+ @import '@fontsource/fraunces/900.css';
28
+ @import '@fontsource/dm-mono/400.css';
29
+ @import '@fontsource/dm-mono/500.css';
30
+
31
+ /* 2. Tailwind v4 — consumers do NOT @import this themselves. */
32
+ @import 'tailwindcss';
33
+
34
+ /* 3. Design tokens. Keep this after the tailwindcss import so that @theme
35
+ * overrides the defaults rather than the other way round.
36
+ */
37
+ @import './tokens.css';
38
+
39
+ /* 4. Base layer. Scoped under @layer base so product-level rules still
40
+ * win when they want to override the brand defaults (admin uses a
41
+ * sans system font for density; that's fine — it can override here).
42
+ */
43
+ @layer base {
44
+ html,
45
+ body {
46
+ height: 100%;
47
+ }
48
+ html {
49
+ -webkit-font-smoothing: antialiased;
50
+ -moz-osx-font-smoothing: grayscale;
51
+ font-family: var(--font-sans);
52
+ text-rendering: optimizeLegibility;
53
+ }
54
+
55
+ /*
56
+ * Sticky-footer layout. Vitrine Astro pages use <body> as the flex
57
+ * container; the <header> (Navbar) sits at the top, a <main> takes
58
+ * remaining space via `flex: 1`, and the <footer> (with
59
+ * `margin-top: auto`) is pinned to the bottom regardless of page
60
+ * content height. Combined with <html, body { height: 100% }>, short
61
+ * pages stop leaving a gap between the content and the footer.
62
+ */
63
+ body {
64
+ margin: 0;
65
+ font-family: var(--font-sans);
66
+ display: flex;
67
+ flex-direction: column;
68
+ min-height: 100vh;
69
+ }
70
+ body > main {
71
+ flex: 1;
72
+ min-height: 0;
73
+ }
74
+
75
+ code,
76
+ kbd,
77
+ pre,
78
+ samp {
79
+ font-family: var(--font-mono);
80
+ }
81
+
82
+ /*
83
+ * Editorial features — the Fraunces stylistic sets that give the
84
+ * marketing prose its character. Pulled into the base because every
85
+ * vitrine surface wants them; admin chrome that needs the plain
86
+ * forms can opt out with `font-feature-settings: normal`.
87
+ */
88
+ body {
89
+ font-feature-settings: 'ss01', 'ss02';
90
+ }
91
+ ::selection {
92
+ background: var(--color-ink);
93
+ color: var(--color-paper);
94
+ }
95
+ ::-webkit-scrollbar {
96
+ width: 10px;
97
+ height: 10px;
98
+ }
99
+ ::-webkit-scrollbar-track {
100
+ background: transparent;
101
+ }
102
+ ::-webkit-scrollbar-thumb {
103
+ background: var(--color-rule-strong);
104
+ border-radius: 10px;
105
+ }
106
+ ::-webkit-scrollbar-thumb:hover {
107
+ background: var(--color-ink-2);
108
+ }
109
+ html {
110
+ scrollbar-width: thin;
111
+ scrollbar-color: var(--color-rule-strong) transparent;
112
+ }
113
+
114
+ /*
115
+ * Cursor affordance. UA stylesheets give <button>, <select>, <summary>,
116
+ * <label for>, most non-text <input> types and ARIA role elements
117
+ * `cursor: default` / `auto`, so nothing tells the user they are
118
+ * interactive. Setting the cursor once here means every product's tools
119
+ * and chrome read correctly without each component having to remember to
120
+ * set it. Kept inside @layer base so any product-level `cursor:` rule wins
121
+ * on simple specificity.
122
+ */
123
+ button,
124
+ select,
125
+ summary,
126
+ label[for],
127
+ input[type='button'],
128
+ input[type='submit'],
129
+ input[type='reset'],
130
+ input[type='checkbox'],
131
+ input[type='radio'],
132
+ input[type='file'],
133
+ input[type='range'],
134
+ input[type='color'],
135
+ input[type='date'],
136
+ input[type='time'],
137
+ input[type='datetime-local'],
138
+ input[type='month'],
139
+ input[type='week'],
140
+ [role='button'],
141
+ [role='link'],
142
+ [role='tab'],
143
+ [role='switch'],
144
+ [role='checkbox'],
145
+ [role='radio'],
146
+ [role='menuitem'],
147
+ [role='menuitemcheckbox'],
148
+ [role='menuitemradio'],
149
+ [role='option'] {
150
+ cursor: pointer;
151
+ }
152
+
153
+ textarea,
154
+ input[type='text'],
155
+ input[type='email'],
156
+ input[type='url'],
157
+ input[type='password'],
158
+ input[type='search'],
159
+ input[type='tel'],
160
+ input[type='number'],
161
+ [contenteditable='true'],
162
+ [contenteditable='plaintext-only'] {
163
+ cursor: text;
164
+ }
165
+
166
+ button:disabled,
167
+ select:disabled,
168
+ textarea:disabled,
169
+ input:disabled,
170
+ [aria-disabled='true'],
171
+ [aria-disabled='true'] * {
172
+ cursor: not-allowed;
173
+ }
174
+ }
175
+
176
+ /*
177
+ * Editorial component primitives. These are utility classes — not
178
+ * Tailwind utilities — for the high-frequency patterns that recur on
179
+ * every marketing page. Kept out of @layer base so a product-level
180
+ * override (different button radius, eyebrow color) wins by simple
181
+ * specificity without `@layer` ordering surprises.
182
+ *
183
+ * Contract:
184
+ * .container — 1440 max, 40 / 20 px gutter
185
+ * .section — vertical rhythm (96 px on desktop, 56 px mobile)
186
+ * .eyebrow — mono uppercase tracking, used as section markers
187
+ * .btn-primary — filled CTA, picks up the page's --accent
188
+ * .btn-ghost — outlined CTA, ink on transparent
189
+ * .mono — DM Mono with feature settings off
190
+ *
191
+ * Pages set `--accent` once at the top of their global.css (or via an
192
+ * inline <style>) and the buttons inherit. Default falls back to the
193
+ * holding slate so an unsuspecting page doesn't render colorless.
194
+ */
195
+ :root {
196
+ --accent: var(--color-ferrlabs-slate);
197
+ --accent-soft: rgba(30, 41, 59, 0.08);
198
+ }
199
+
200
+ .container {
201
+ max-width: 1440px;
202
+ margin: 0 auto;
203
+ padding: 0 40px;
204
+ }
205
+ @media (max-width: 768px) {
206
+ .container {
207
+ padding: 0 20px;
208
+ }
209
+ }
210
+
211
+ .section {
212
+ padding: 96px 0;
213
+ }
214
+ @media (max-width: 768px) {
215
+ .section {
216
+ padding: 56px 0;
217
+ }
218
+ }
219
+
220
+ .eyebrow {
221
+ font-family: var(--font-mono);
222
+ font-size: 11px;
223
+ letter-spacing: 0.14em;
224
+ text-transform: uppercase;
225
+ color: var(--color-ink-3);
226
+ }
227
+
228
+ .mono {
229
+ font-family: var(--font-mono);
230
+ font-feature-settings: normal;
231
+ }
232
+
233
+ .btn-primary,
234
+ .btn-ghost {
235
+ display: inline-flex;
236
+ align-items: center;
237
+ gap: 10px;
238
+ padding: 14px 24px;
239
+ border-radius: 999px;
240
+ font-family: var(--font-mono);
241
+ font-size: 13px;
242
+ letter-spacing: 0.04em;
243
+ cursor: pointer;
244
+ border: 1px solid transparent;
245
+ transition:
246
+ transform 180ms,
247
+ opacity 180ms,
248
+ background 180ms;
249
+ }
250
+ .btn-primary {
251
+ background: var(--accent);
252
+ color: #fff;
253
+ }
254
+ .btn-primary:hover {
255
+ transform: translateY(-1px);
256
+ opacity: 0.92;
257
+ }
258
+ .btn-ghost {
259
+ background: transparent;
260
+ color: var(--color-ink);
261
+ border-color: var(--color-rule-strong);
262
+ }
263
+ .btn-ghost:hover {
264
+ background: var(--color-paper-2);
265
+ transform: translateY(-1px);
266
+ }
267
+
268
+ /* Hairline rule helpers, used by editorial dividers between sections. */
269
+ .rule {
270
+ border-top: 1px solid var(--color-rule);
271
+ }
272
+ .rule-strong {
273
+ border-top: 1px solid var(--color-rule-strong);
274
+ }
275
+
276
+ /* Theme transition — every surface that swaps via `data-theme` should
277
+ * fade rather than flash. Scoped to color/border so layout properties
278
+ * don't jitter while transitioning. */
279
+ html,
280
+ body,
281
+ [data-theme-aware] {
282
+ transition:
283
+ background-color 220ms ease,
284
+ color 220ms ease,
285
+ border-color 220ms ease;
286
+ }