@usefidel/design-system 0.2.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.
package/dist/theme.css ADDED
@@ -0,0 +1,115 @@
1
+ /* GENERATED parser-compatibility output — @usefidel/design-system.
2
+ Tailwind v4 @theme block for Fidel's theme-intake parser.
3
+ NOT a source of truth. Do not edit — regenerate from tokens/tokens.json. */
4
+ @theme {
5
+ --color-bg: #ffffff;
6
+ --color-surface: #fff7ed;
7
+ --color-surface-hover: #ffedd5;
8
+ --color-surface-raised: #ffffff;
9
+ --color-text: #171717;
10
+ --color-text-secondary: #525252;
11
+ --color-text-muted: #a3a3a3;
12
+ --color-border: #e5e5e5;
13
+ --color-border-light: #f5f5f5;
14
+ --color-border-strong: #d4d4d4;
15
+ --color-border-focus: #ea580c;
16
+ --color-accent: #ea580c;
17
+ --color-accent-hover: #c2410c;
18
+ --color-accent-subtle: #ffedd5;
19
+ --color-accent-muted: #fb923c;
20
+ --color-accent-text: #c2410c;
21
+ --color-primary: #171717;
22
+ --color-primary-hover: #262626;
23
+ --color-primary-text: #ffffff;
24
+ --color-critical: #ef4444;
25
+ --color-high: #f59e0b;
26
+ --color-high-bg: #fffbeb;
27
+ --color-high-text: #92400e;
28
+ --color-medium: #94a3b8;
29
+ --color-medium-bg: #f8fafc;
30
+ --color-medium-text: #64748b;
31
+ --color-low: #10b981;
32
+ --color-success: #059669;
33
+ --color-success-bg: #f0fdf4;
34
+ --color-success-text: #15803d;
35
+ --color-warning: #ca8a04;
36
+ --color-warning-bg: #fffbeb;
37
+ --color-warning-text: #92400e;
38
+ --color-warning-border: #fde68a;
39
+ --color-error: #b91c1c;
40
+ --color-error-bg: #fef2f2;
41
+ --color-error-text: #991b1b;
42
+ --color-error-border: #fecaca;
43
+ --color-expected-bg: #f0fdf4;
44
+ --color-expected-text: #15803d;
45
+ --color-actual-bg: #fef2f2;
46
+ --color-actual-text: #dc2626;
47
+ --color-focus: #ea580c;
48
+ --color-info: #1d4ed8;
49
+ --font-display: 'Rethink Sans', system-ui, -apple-system, sans-serif;
50
+ --font-body: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
51
+ --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
52
+ --radius-xs: 4px;
53
+ --radius-sm: 6px;
54
+ --radius-md: 8px;
55
+ --radius-lg: 12px;
56
+ --radius-xl: 16px;
57
+ --radius-pill: 9999px;
58
+ --radius-full: 9999px;
59
+ --spacing-1: 4px;
60
+ --spacing-2: 8px;
61
+ --spacing-3: 12px;
62
+ --spacing-4: 16px;
63
+ --spacing-5: 20px;
64
+ --spacing-6: 24px;
65
+ --spacing-8: 32px;
66
+ --spacing-10: 40px;
67
+ --spacing-12: 48px;
68
+ --spacing-16: 64px;
69
+ --font-size-body: 14px;
70
+ --font-size-display-2xl: 70px;
71
+ --font-size-display-xl: 60px;
72
+ --font-size-display-lg: 48px;
73
+ --font-size-display-md: 36px;
74
+ --font-size-display-sm: 30px;
75
+ --font-size-display-xs: 24px;
76
+ --font-size-text-xl: 20px;
77
+ --font-size-text-lg: 18px;
78
+ --font-size-text-md: 16px;
79
+ --font-size-text-sm: 14px;
80
+ --font-size-text-xs: 12px;
81
+ --font-size-label-sm: 14px;
82
+ --font-size-label-xs: 12px;
83
+ --line-height-body: 1.6;
84
+ --line-height-display-2xl: 78px;
85
+ --line-height-display-xl: 68px;
86
+ --line-height-display-lg: 56px;
87
+ --line-height-display-md: 44px;
88
+ --line-height-display-sm: 38px;
89
+ --line-height-display-xs: 32px;
90
+ --line-height-text-xl: 28px;
91
+ --line-height-text-lg: 26px;
92
+ --line-height-text-md: 24px;
93
+ --line-height-text-sm: 22px;
94
+ --line-height-text-xs: 18px;
95
+ --line-height-label-sm: 22px;
96
+ --line-height-label-xs: 18px;
97
+ --duration-instant: 80ms;
98
+ --duration-quick: 150ms;
99
+ --duration-moderate: 280ms;
100
+ --duration-slow: 450ms;
101
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
102
+ --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
103
+ --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
104
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.04);
105
+ --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
106
+ --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
107
+ --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
108
+ --shadow-pill: 0 1px 2px rgba(15, 23, 42, 0.08);
109
+ --shadow-cta: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.06);
110
+ --font-weight-regular: 400;
111
+ --font-weight-medium: 500;
112
+ --font-weight-semibold: 600;
113
+ --font-weight-bold: 700;
114
+ --font-weight-extrabold: 800;
115
+ }
@@ -0,0 +1,113 @@
1
+ /* GENERATED by @usefidel/design-system — do not edit. Surface: webapp. */
2
+ :root {
3
+ --color-bg: #ffffff;
4
+ --color-surface: #fff7ed;
5
+ --color-surface-hover: #ffedd5;
6
+ --color-surface-raised: #ffffff;
7
+ --color-text: #171717;
8
+ --color-text-secondary: #525252;
9
+ --color-text-muted: #a3a3a3;
10
+ --color-border: #e5e5e5;
11
+ --color-border-light: #f5f5f5;
12
+ --color-border-strong: #d4d4d4;
13
+ --color-border-focus: #ea580c;
14
+ --color-accent: #ea580c;
15
+ --color-accent-hover: #c2410c;
16
+ --color-accent-subtle: #ffedd5;
17
+ --color-accent-muted: #fb923c;
18
+ --color-accent-text: #c2410c;
19
+ --color-primary: #171717;
20
+ --color-primary-hover: #262626;
21
+ --color-primary-text: #ffffff;
22
+ --color-critical: #ef4444;
23
+ --color-high: #f59e0b;
24
+ --color-high-bg: #fffbeb;
25
+ --color-high-text: #92400e;
26
+ --color-medium: #94a3b8;
27
+ --color-medium-bg: #f8fafc;
28
+ --color-medium-text: #64748b;
29
+ --color-low: #10b981;
30
+ --color-success: #059669;
31
+ --color-success-bg: #f0fdf4;
32
+ --color-success-text: #15803d;
33
+ --color-warning: #ca8a04;
34
+ --color-warning-bg: #fffbeb;
35
+ --color-warning-text: #92400e;
36
+ --color-warning-border: #fde68a;
37
+ --color-error: #b91c1c;
38
+ --color-error-bg: #fef2f2;
39
+ --color-error-text: #991b1b;
40
+ --color-error-border: #fecaca;
41
+ --color-expected-bg: #f0fdf4;
42
+ --color-expected-text: #15803d;
43
+ --color-actual-bg: #fef2f2;
44
+ --color-actual-text: #dc2626;
45
+ --color-focus: #ea580c;
46
+ --color-info: #1d4ed8;
47
+ --font-display: 'Rethink Sans', system-ui, -apple-system, sans-serif;
48
+ --font-body: 'Rethink Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
49
+ --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
50
+ --radius-xs: 4px;
51
+ --radius-sm: 6px;
52
+ --radius-md: 8px;
53
+ --radius-lg: 12px;
54
+ --radius-xl: 16px;
55
+ --radius-pill: 9999px;
56
+ --radius-full: 9999px;
57
+ --spacing-1: 4px;
58
+ --spacing-2: 8px;
59
+ --spacing-3: 12px;
60
+ --spacing-4: 16px;
61
+ --spacing-5: 20px;
62
+ --spacing-6: 24px;
63
+ --spacing-8: 32px;
64
+ --spacing-10: 40px;
65
+ --spacing-12: 48px;
66
+ --spacing-16: 64px;
67
+ --font-size-body: 14px;
68
+ --font-size-display-2xl: 70px;
69
+ --font-size-display-xl: 60px;
70
+ --font-size-display-lg: 48px;
71
+ --font-size-display-md: 36px;
72
+ --font-size-display-sm: 30px;
73
+ --font-size-display-xs: 24px;
74
+ --font-size-text-xl: 20px;
75
+ --font-size-text-lg: 18px;
76
+ --font-size-text-md: 16px;
77
+ --font-size-text-sm: 14px;
78
+ --font-size-text-xs: 12px;
79
+ --font-size-label-sm: 14px;
80
+ --font-size-label-xs: 12px;
81
+ --line-height-body: 1.6;
82
+ --line-height-display-2xl: 78px;
83
+ --line-height-display-xl: 68px;
84
+ --line-height-display-lg: 56px;
85
+ --line-height-display-md: 44px;
86
+ --line-height-display-sm: 38px;
87
+ --line-height-display-xs: 32px;
88
+ --line-height-text-xl: 28px;
89
+ --line-height-text-lg: 26px;
90
+ --line-height-text-md: 24px;
91
+ --line-height-text-sm: 22px;
92
+ --line-height-text-xs: 18px;
93
+ --line-height-label-sm: 22px;
94
+ --line-height-label-xs: 18px;
95
+ --duration-instant: 80ms;
96
+ --duration-quick: 150ms;
97
+ --duration-moderate: 280ms;
98
+ --duration-slow: 450ms;
99
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
100
+ --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
101
+ --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
102
+ --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.04);
103
+ --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.04);
104
+ --shadow-card-hover: 0 2px 4px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.08);
105
+ --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.1);
106
+ --shadow-pill: 0 1px 2px rgba(15, 23, 42, 0.08);
107
+ --shadow-cta: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.06);
108
+ --font-weight-regular: 400;
109
+ --font-weight-medium: 500;
110
+ --font-weight-semibold: 600;
111
+ --font-weight-bold: 700;
112
+ --font-weight-extrabold: 800;
113
+ }
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@usefidel/design-system",
3
+ "version": "0.2.0",
4
+ "description": "Fidel brand design tokens + React component library — DTCG token source of truth, generated per-surface CSS + Tailwind-v4 parser-compatibility output, and on-brand React components.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "sideEffects": [
10
+ "**/*.css"
11
+ ],
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js",
16
+ "require": "./dist/index.cjs"
17
+ },
18
+ "./styles.css": "./dist/index.css",
19
+ "./dist/*": "./dist/*"
20
+ },
21
+ "publishConfig": {
22
+ "access": "public"
23
+ },
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "git+https://github.com/usefidel/fidel-ds.git"
27
+ },
28
+ "files": [
29
+ "dist",
30
+ "tokens/tokens.json"
31
+ ],
32
+ "scripts": {
33
+ "build": "npm run build:tokens && npm run build:lib",
34
+ "build:tokens": "node style-dictionary.config.js && node build/gen-manifest.mjs",
35
+ "build:lib": "tsup",
36
+ "typecheck": "tsc --noEmit",
37
+ "surface-check": "node build/surface-check.mjs",
38
+ "parser-check": "deno test --allow-read test/parser-compat.test.ts",
39
+ "test": "node --test test/*.test.mjs",
40
+ "gitleaks": "gitleaks detect --no-banner --redact -v"
41
+ },
42
+ "peerDependencies": {
43
+ "react": ">=18",
44
+ "react-dom": ">=18"
45
+ },
46
+ "devDependencies": {
47
+ "@types/react": "^18.3.12",
48
+ "@types/react-dom": "^18.3.1",
49
+ "react": "^18.3.1",
50
+ "react-dom": "^18.3.1",
51
+ "style-dictionary": "^4.3.0",
52
+ "tsup": "^8.3.5",
53
+ "typescript": "^5.6.3"
54
+ }
55
+ }