aha-components 1.7.7 → 1.7.9

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,112 @@
1
+ /* ==========================================================================
2
+ Design Tokens — extracted from Untitled UI (Tokens Studio export)
3
+ Brand: Orange (brand-500 = #fb6011) | Font: DM Sans | Mode: Light only
4
+
5
+ Layer 1: Primitives (raw color scales) -> :root
6
+ Layer 2: Semantic tokens (text/bg/border/fg) -> :root
7
+ Layer 3: Spacing / Radius / Typography / Shadow
8
+
9
+ Tailwind v4: the
10
+
11
+ /* ==========================================================================
12
+ SEMANTIC TOKENS — Light mode
13
+ ========================================================================== */
14
+ :root {
15
+ /* ---------- TEXT ---------- */
16
+ --color-text-primary: #1c1917;
17
+ --color-text-tertiary: #57534e;
18
+ --color-text-error-primary: #d92d20;
19
+ --color-text-warning-primary: #dc6803;
20
+ --color-text-success-primary: #079455;
21
+ --color-text-white: #ffffff;
22
+ --color-text-secondary: #44403c;
23
+ --color-text-disabled: #79716b;
24
+ --color-text-secondary_hover: #292524;
25
+ --color-text-tertiary_hover: #44403c;
26
+ --color-text-brand-secondary: #ec470a;
27
+ --color-text-placeholder: #79716b;
28
+ --color-text-placeholder_subtle: #d7d3d0;
29
+ --color-text-brand-tertiary: #fb6011;
30
+ --color-text-quaternary: #79716b;
31
+ --color-text-brand-primary: #7d2511;
32
+ --color-text-primary_on-brand: #ffffff;
33
+ --color-text-secondary_on-brand: #ffd1a9;
34
+ --color-text-tertiary_on-brand: #ffd1a9;
35
+ --color-text-quaternary_on-brand: #feb073;
36
+ --color-text-brand-tertiary_alt: #fb6011;
37
+ --color-text-brand-secondary_hover: #c4330a;
38
+ --color-text-error-primary_hover: #b42318;
39
+
40
+ /* ---------- BORDER ---------- */
41
+ --color-border-secondary: #e7e5e4;
42
+ --color-border-error_subtle: #fda29b;
43
+ --color-border-primary: #d7d3d0;
44
+ --color-border-brand: #fb6011;
45
+ --color-border-disabled: #d7d3d0;
46
+ --color-border-error: #f04438;
47
+ --color-border-disabled_subtle: #e7e5e4;
48
+ --color-border-tertiary: #f5f5f4;
49
+ --color-border-brand_alt: #fb6011;
50
+ --color-border-secondary_alt: #00000014;
51
+
52
+ /* ---------- BG ---------- */
53
+ --color-bg-primary: #ffffff;
54
+ --color-bg-tertiary: #f5f5f4;
55
+ --color-bg-brand-primary: #fff6ed;
56
+ --color-bg-error-secondary: #fee4e2;
57
+ --color-bg-warning-primary: #fffaeb;
58
+ --color-bg-warning-secondary: #fef0c7;
59
+ --color-bg-success-primary: #ecfdf3;
60
+ --color-bg-success-secondary: #dcfae6;
61
+ --color-bg-brand-solid: #fb6011;
62
+ --color-bg-secondary-solid: #57534e;
63
+ --color-bg-error-solid: #d92d20;
64
+ --color-bg-warning-solid: #dc6803;
65
+ --color-bg-success-solid: #079455;
66
+ --color-bg-secondary_hover: #f5f5f4;
67
+ --color-bg-primary_hover: #fafaf9;
68
+ --color-bg-disabled: #f5f5f4;
69
+ --color-bg-active: #fafaf9;
70
+ --color-bg-brand-solid_hover: #ec470a;
71
+ --color-bg-error-primary: #fef3f2;
72
+ --color-bg-brand-secondary: #ffead5;
73
+ --color-bg-secondary: #fafaf9;
74
+ --color-bg-disabled_subtle: #fafaf9;
75
+ --color-bg-quaternary: #e7e5e4;
76
+ --color-bg-primary_alt: #ffffff;
77
+ --color-bg-brand-primary_alt: #fff6ed;
78
+ --color-bg-secondary_alt: #fafaf9;
79
+ --color-bg-overlay: #171412;
80
+ --color-bg-secondary_subtle: #fdfdfc;
81
+ --color-bg-brand-section: #c4330a;
82
+ --color-bg-brand-section_subtle: #ec470a;
83
+ --color-bg-primary-solid: #171412;
84
+
85
+ /* ---------- FG ---------- */
86
+ --color-fg-secondary: #44403c;
87
+ --color-fg-warning-primary: #dc6803;
88
+ --color-fg-success-primary: #079455;
89
+ --color-fg-white: #ffffff;
90
+ --color-fg-success-secondary: #17b26a;
91
+ --color-fg-secondary_hover: #292524;
92
+ --color-fg-primary: #1c1917;
93
+ --color-fg-disabled: #a9a29d;
94
+ --color-fg-brand-secondary: #fb6011;
95
+ --color-fg-brand-primary: #fb6011;
96
+ --color-fg-quaternary: #a9a29d;
97
+ --color-fg-quaternary_hover: #79716b;
98
+ --color-fg-error-primary: #d92d20;
99
+ --color-fg-disabled_subtle: #d7d3d0;
100
+ --color-fg-warning-secondary: #f79009;
101
+ --color-fg-error-secondary: #f04438;
102
+ --color-fg-tertiary: #57534e;
103
+ --color-fg-tertiary_hover: #44403c;
104
+ --color-fg-brand-primary_alt: #fb6011;
105
+ --color-fg-brand-secondary_alt: #fb6011;
106
+ --color-fg-brand-secondary_hover: #fb6011;
107
+
108
+ }
109
+
110
+ /* ==========================================================================
111
+ TAILWIND v4 — exposes tokens as utility classes
112
+ ========================================================================== */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aha-components",
3
- "version": "1.7.7",
3
+ "version": "1.7.9",
4
4
  "description": "A React component library with tree-shaking support",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -16,6 +16,9 @@
16
16
  "require": "./dist/index.js",
17
17
  "types": "./dist/index.d.ts"
18
18
  },
19
+ "./theme.css": "./dist/theme.css",
20
+ "./design-tokens/theme.css": "./dist/design-tokens/theme.css",
21
+ "./design-tokens/theme.tailwind4.css": "./dist/design-tokens/theme.tailwind4.css",
19
22
  "./package.json": "./package.json"
20
23
  },
21
24
  "files": [
@@ -24,8 +27,8 @@
24
27
  "CHANGELOG.md"
25
28
  ],
26
29
  "scripts": {
27
- "build": "rollup -c",
28
- "dev": "NODE_OPTIONS=--max-old-space-size=8192 rollup -c -w",
30
+ "build": "rollup -c && node scripts/copy-theme-css.js",
31
+ "dev": "NODE_OPTIONS=--max-old-space-size=8192 rollup -c -w && node scripts/copy-theme-css.js",
29
32
  "test": "jest",
30
33
  "test:watch": "jest --watch",
31
34
  "storybook": "NODE_OPTIONS=--max-old-space-size=8192 storybook dev -p 6006",