@indra-inter/neobrutalism-components 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. package/README.md +13 -15
  2. package/nativewind.css +102 -0
  3. package/package.json +3 -1
package/README.md CHANGED
@@ -183,25 +183,23 @@ pnpm generate:design-tokens
183
183
  pnpm test:design-tokens
184
184
  ```
185
185
 
186
- The generated CSS is published as `neobrutalism-components/tokens.css`. A
187
- NativeWind application can import it once, then preserve its existing semantic
188
- variables by aliasing them to the generated `--neo-*` variables:
186
+ For standard NativeWind semantic utilities, import the generated opt-in
187
+ semantic stylesheet once in the consuming application's global CSS:
189
188
 
190
189
  ```css
191
- @import 'neobrutalism-components/tokens.css';
192
-
193
- @layer base {
194
- :root,
195
- .dark:root {
196
- --background: var(--neo-background);
197
- --primary: var(--neo-primary);
198
- --color-success-100: var(--neo-success-100);
199
- }
200
- }
190
+ @import '@indra-inter/neobrutalism-components/nativewind.css';
201
191
  ```
202
192
 
203
- This keeps `className` utilities such as `bg-primary` and `bg-success-100`
204
- working while their values follow the package's light or dark Figma mode.
193
+ This provides direct light and dark values for semantic classes such as
194
+ `text-foreground`, `bg-primary`, and `bg-success-100`, matching the package
195
+ `ThemeProvider` palette without a consumer-maintained token bridge.
196
+
197
+ `tokens.css` remains available for compatibility and for consumers that need
198
+ the namespaced `--neo-*` variables directly:
199
+
200
+ ```css
201
+ @import '@indra-inter/neobrutalism-components/tokens.css';
202
+ ```
205
203
 
206
204
  ## Components
207
205
 
package/nativewind.css ADDED
@@ -0,0 +1,102 @@
1
+ /* Generated NativeWind semantic tokens from Figma design tokens. Do not edit by hand. */
2
+ :root {
3
+ --background: 0 0% 100%;
4
+ --foreground: 0 0% 3.92%;
5
+ --card: 0 0% 95.29%;
6
+ --card-foreground: 0 0% 3.92%;
7
+ --popover: 0 0% 98.04%;
8
+ --popover-foreground: 0 0% 3.92%;
9
+ --primary: 199.84 100% 50.2%;
10
+ --primary-hover: 200.98 79.89% 64.9%;
11
+ --primary-foreground: 0 0% 0%;
12
+ --secondary: 0 0% 3.92%;
13
+ --secondary-foreground: 0 0% 100%;
14
+ --muted: 0 0% 94.9%;
15
+ --muted-foreground: 0 0% 36.08%;
16
+ --accent: 201.11 100% 89.41%;
17
+ --accent-foreground: 202.17 79.31% 11.37%;
18
+ --destructive: 355.49 77.58% 56.27%;
19
+ --destructive-foreground: 0 0% 100%;
20
+ --border: 0 0% 0%;
21
+ --input: 0 0% 100%;
22
+ --ring: 199.84 100% 50.2%;
23
+ --success: 142.09 70.56% 45.29%;
24
+ --success-foreground: 0 0% 3.92%;
25
+ --color-success-100: 140.63 84.21% 92.55%;
26
+ --color-success-200: 141 78.95% 85.1%;
27
+ --color-success-300: 141.71 76.64% 73.14%;
28
+ --color-success-400: 141.89 69.16% 58.04%;
29
+ --color-success-500: 142.09 70.56% 45.29%;
30
+ --info: 217.22 91.22% 59.8%;
31
+ --info-foreground: 0 0% 3.92%;
32
+ --color-info-100: 214.29 94.59% 92.75%;
33
+ --color-info-200: 213.33 96.92% 87.25%;
34
+ --color-info-300: 211.7 96.36% 78.43%;
35
+ --color-info-400: 213.12 93.9% 67.84%;
36
+ --color-info-500: 217.22 91.22% 59.8%;
37
+ --warning: 26.39 90.22% 63.92%;
38
+ --warning-foreground: 0 0% 3.92%;
39
+ --color-warning-100: 28 100% 97.06%;
40
+ --color-warning-200: 26.51 100% 91.57%;
41
+ --color-warning-300: 26.84 100% 85.1%;
42
+ --color-warning-400: 26.55 100% 77.84%;
43
+ --color-warning-500: 26.39 90.22% 63.92%;
44
+ --error: 0 75.25% 60.39%;
45
+ --error-foreground: 0 75.25% 60.39% / 25.1%;
46
+ --color-error-100: 0 100% 95.88%;
47
+ --color-error-200: 0 100% 90.78%;
48
+ --color-error-300: 0 100% 82.75%;
49
+ --color-error-400: 0 90.14% 72.16%;
50
+ --color-error-500: 0 75.25% 60.39%;
51
+ }
52
+
53
+ .dark:root {
54
+ --background: 0 0% 12.16%;
55
+ --foreground: 0 0% 98.04%;
56
+ --card: 0 0% 10.2%;
57
+ --card-foreground: 0 0% 98.04%;
58
+ --popover: 0 0% 10.2%;
59
+ --popover-foreground: 0 0% 98.04%;
60
+ --primary: 199.84 100% 50.2%;
61
+ --primary-hover: 200.98 79.89% 64.9%;
62
+ --primary-foreground: 0 0% 0%;
63
+ --secondary: 0 0% 98.04%;
64
+ --secondary-foreground: 0 0% 5.88%;
65
+ --muted: 0 0% 14.9%;
66
+ --muted-foreground: 0 0% 63.92%;
67
+ --accent: 202.5 64.86% 14.51%;
68
+ --accent-foreground: 201.11 100% 89.41%;
69
+ --destructive: 0 100% 70.98%;
70
+ --destructive-foreground: 0 10.64% 9.22%;
71
+ --border: 0 0% 0%;
72
+ --input: 200 8.57% 13.73%;
73
+ --ring: 199.89 100% 65.1%;
74
+ --success: 142.09 70.56% 45.29%;
75
+ --success-foreground: 0 0% 98.04%;
76
+ --color-success-100: 140.63 84.21% 92.55%;
77
+ --color-success-200: 141 78.95% 85.1%;
78
+ --color-success-300: 141.71 76.64% 73.14%;
79
+ --color-success-400: 141.89 69.16% 58.04%;
80
+ --color-success-500: 142.09 70.56% 45.29%;
81
+ --info: 217.22 91.22% 59.8%;
82
+ --info-foreground: 0 0% 98.04%;
83
+ --color-info-100: 214.29 94.59% 92.75%;
84
+ --color-info-200: 213.33 96.92% 87.25%;
85
+ --color-info-300: 211.7 96.36% 78.43%;
86
+ --color-info-400: 213.12 93.9% 67.84%;
87
+ --color-info-500: 217.22 91.22% 59.8%;
88
+ --warning: 26.39 90.22% 63.92%;
89
+ --warning-foreground: 0 0% 98.04%;
90
+ --color-warning-100: 28 100% 97.06%;
91
+ --color-warning-200: 26.51 100% 91.57%;
92
+ --color-warning-300: 26.84 100% 85.1%;
93
+ --color-warning-400: 26.55 100% 77.84%;
94
+ --color-warning-500: 26.39 90.22% 63.92%;
95
+ --error: 0 75.25% 60.39%;
96
+ --error-foreground: 0 75.25% 60.39% / 25.1%;
97
+ --color-error-100: 0 100% 95.88%;
98
+ --color-error-200: 0 100% 90.78%;
99
+ --color-error-300: 0 100% 82.75%;
100
+ --color-error-400: 0 90.14% 72.16%;
101
+ --color-error-500: 0 75.25% 60.39%;
102
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra-inter/neobrutalism-components",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -13,11 +13,13 @@
13
13
  "default": "./dist/module/index.js"
14
14
  },
15
15
  "./tokens.css": "./tokens.css",
16
+ "./nativewind.css": "./nativewind.css",
16
17
  "./package.json": "./package.json"
17
18
  },
18
19
  "files": [
19
20
  "dist",
20
21
  "tokens.css",
22
+ "nativewind.css",
21
23
  "README.md"
22
24
  ],
23
25
  "peerDependencies": {