@astryxdesign/theme-chocolate 0.0.0-bootstrap.0 → 0.0.15

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,404 @@
1
+ /*
2
+ * @generated by `astryx theme build` — do not edit manually.
3
+ * Source: src/chocolateTheme.ts
4
+ * Command: astryx theme build src/chocolateTheme.ts --out dist/theme.css
5
+ * Generated: 2026-06-24T18:16:19.163Z
6
+ */
7
+
8
+ @layer reset {
9
+ @scope ([data-astryx-theme="chocolate"]) to ([data-astryx-theme]) {
10
+ :where(h1, h2, h3, h4, h5, h6) {
11
+ font-family: var(--font-family-heading);
12
+ color: var(--color-text-primary);
13
+ }
14
+
15
+ :where(h1) {
16
+ font-size: var(--font-size-2xl);
17
+ font-weight: var(--font-weight-semibold);
18
+ line-height: 1.3333;
19
+ }
20
+
21
+ :where(h2) {
22
+ font-size: var(--font-size-xl);
23
+ font-weight: var(--font-weight-semibold);
24
+ line-height: 1.4;
25
+ }
26
+
27
+ :where(h3) {
28
+ font-size: var(--font-size-lg);
29
+ font-weight: var(--font-weight-bold);
30
+ line-height: 1.4118;
31
+ }
32
+
33
+ :where(h4) {
34
+ font-size: var(--font-size-base);
35
+ font-weight: var(--font-weight-bold);
36
+ line-height: 1.4286;
37
+ }
38
+
39
+ :where(h5) {
40
+ font-size: var(--font-size-sm);
41
+ font-weight: var(--font-weight-semibold);
42
+ line-height: 1.6667;
43
+ }
44
+
45
+ :where(h6) {
46
+ font-size: var(--font-size-xs);
47
+ font-weight: var(--font-weight-semibold);
48
+ line-height: 1.6;
49
+ }
50
+
51
+ :where(p) {
52
+ font-family: var(--font-family-body);
53
+ font-size: var(--font-size-base);
54
+ font-weight: var(--font-weight-normal);
55
+ line-height: 1.4286;
56
+ color: var(--color-text-primary);
57
+ }
58
+
59
+ :where(small) {
60
+ font-size: var(--font-size-sm);
61
+ font-weight: var(--font-weight-normal);
62
+ line-height: 1.6667;
63
+ color: var(--color-text-secondary);
64
+ }
65
+
66
+ :where(code, pre) {
67
+ font-family: var(--font-family-code);
68
+ font-size: var(--font-size-base);
69
+ line-height: 1.4286;
70
+ }
71
+
72
+ :where(hr) {
73
+ border: none;
74
+ border-top: 1px solid var(--color-border);
75
+ }
76
+ }
77
+ }
78
+
79
+ @layer astryx-theme {
80
+ :root { color-scheme: light dark; }
81
+
82
+ @scope ([data-astryx-theme="chocolate"]) to ([data-astryx-theme]) {
83
+ :scope {
84
+ --font-size-4xs: 0.375rem;
85
+ --font-size-3xs: 0.4375rem;
86
+ --font-size-2xs: 0.5rem;
87
+ --font-size-xs: 0.625rem;
88
+ --font-size-sm: 0.75rem;
89
+ --font-size-base: 0.875rem;
90
+ --font-size-lg: 1.0625rem;
91
+ --font-size-xl: 1.25rem;
92
+ --font-size-2xl: 1.5rem;
93
+ --font-size-3xl: 1.8125rem;
94
+ --font-size-4xl: 2.1875rem;
95
+ --font-size-5xl: 2.625rem;
96
+ --text-heading-1-size: var(--font-size-2xl);
97
+ --text-heading-1-weight: var(--font-weight-semibold);
98
+ --text-heading-1-leading: 1.3333;
99
+ --text-heading-2-size: var(--font-size-xl);
100
+ --text-heading-2-weight: var(--font-weight-semibold);
101
+ --text-heading-2-leading: 1.4;
102
+ --text-heading-3-size: var(--font-size-lg);
103
+ --text-heading-3-weight: var(--font-weight-bold);
104
+ --text-heading-3-leading: 1.4118;
105
+ --text-heading-4-size: var(--font-size-base);
106
+ --text-heading-4-weight: var(--font-weight-bold);
107
+ --text-heading-4-leading: 1.4286;
108
+ --text-heading-5-size: var(--font-size-sm);
109
+ --text-heading-5-weight: var(--font-weight-semibold);
110
+ --text-heading-5-leading: 1.6667;
111
+ --text-heading-6-size: var(--font-size-xs);
112
+ --text-heading-6-weight: var(--font-weight-semibold);
113
+ --text-heading-6-leading: 1.6;
114
+ --text-body-size: var(--font-size-base);
115
+ --text-body-weight: var(--font-weight-normal);
116
+ --text-body-leading: 1.4286;
117
+ --text-large-size: var(--font-size-lg);
118
+ --text-large-weight: var(--font-weight-semibold);
119
+ --text-large-leading: 1.4118;
120
+ --text-label-size: var(--font-size-base);
121
+ --text-label-weight: var(--font-weight-medium);
122
+ --text-label-leading: 1.4286;
123
+ --text-code-size: var(--font-size-base);
124
+ --text-code-weight: var(--font-weight-normal);
125
+ --text-code-leading: 1.4286;
126
+ --text-supporting-size: var(--font-size-sm);
127
+ --text-supporting-weight: var(--font-weight-normal);
128
+ --text-supporting-leading: 1.6667;
129
+ --text-display-1-size: var(--font-size-5xl);
130
+ --text-display-1-weight: var(--font-weight-normal);
131
+ --text-display-1-leading: 1.2381;
132
+ --text-display-2-size: var(--font-size-4xl);
133
+ --text-display-2-weight: var(--font-weight-normal);
134
+ --text-display-2-leading: 1.2571;
135
+ --text-display-3-size: var(--font-size-3xl);
136
+ --text-display-3-weight: var(--font-weight-normal);
137
+ --text-display-3-leading: 1.3793;
138
+ --duration-fast-min: 95ms;
139
+ --duration-fast: 125ms;
140
+ --duration-fast-max: 165ms;
141
+ --duration-medium-min: 225ms;
142
+ --duration-medium: 300ms;
143
+ --duration-medium-max: 400ms;
144
+ --duration-slow-min: 525ms;
145
+ --duration-slow: 700ms;
146
+ --duration-slow-max: 935ms;
147
+ --font-family-body: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
148
+ --font-family-heading: Fraunces, Georgia, "Times New Roman", Times, serif;
149
+ --font-family-code: "JetBrains Mono", "SF Mono", Monaco, Consolas, monospace;
150
+ --color-syntax-keyword: light-dark(#8C5927, #d4a06a);
151
+ --color-syntax-string: light-dark(#2e6b4a, #7bc49e);
152
+ --color-syntax-comment: light-dark(#B88859, #B88859);
153
+ --color-syntax-number: light-dark(#a06018, #d4b870);
154
+ --color-syntax-function: light-dark(#3a5e8c, #7ba8d4);
155
+ --color-syntax-type: light-dark(#6b4a8c, #b08ed4);
156
+ --color-syntax-variable: light-dark(#4a3520, #EDE4D4);
157
+ --color-syntax-operator: light-dark(#B88859, #c4a882);
158
+ --color-syntax-constant: light-dark(#a06018, #d4b870);
159
+ --color-syntax-tag: light-dark(#8c3a3a, #d47a7a);
160
+ --color-syntax-attribute: light-dark(#8C5927, #d4a06a);
161
+ --color-syntax-property: light-dark(#3a7c6b, #70c4b0);
162
+ --color-syntax-punctuation: light-dark(#B88859, #6b5540);
163
+ --color-syntax-background: light-dark(#FFFCF7, #1c1610);
164
+ --color-accent: light-dark(#8C5927, #d4a06a);
165
+ --color-accent-muted: light-dark(#8C592714, #d4a06a20);
166
+ --color-neutral: light-dark(#8C59270F, #EDE4D41A);
167
+ --color-background-surface: light-dark(#FFFCF7, #1c1610);
168
+ --color-background-body: light-dark(#FFFCF7, #141010);
169
+ --color-overlay: light-dark(#4a352080, #140e0aCC);
170
+ --color-overlay-hover: light-dark(#4a35200D, #EDE4D40D);
171
+ --color-overlay-pressed: light-dark(#4a35201A, #EDE4D41A);
172
+ --color-background-muted: light-dark(#EDE4D4, #2a2018);
173
+ --color-text-primary: light-dark(#4a3520, #EDE4D4);
174
+ --color-text-secondary: light-dark(#B88859, #c4a882);
175
+ --color-text-disabled: light-dark(#C4AC95, #6b5540);
176
+ --color-text-accent: light-dark(#8C5927, #d4a06a);
177
+ --color-on-dark: #FFFCF7;
178
+ --color-on-light: #4a3520;
179
+ --color-on-accent: light-dark(#FFFFFF, #4a3520);
180
+ --color-on-success: light-dark(#FFFFFF, #4a3520);
181
+ --color-on-error: light-dark(#FFFFFF, #4a3520);
182
+ --color-on-warning: light-dark(#4a3520, #4a3520);
183
+ --color-icon-accent: light-dark(#8C5927, #d4a06a);
184
+ --color-icon-primary: light-dark(#4a3520, #EDE4D4);
185
+ --color-icon-secondary: light-dark(#B88859, #c4a882);
186
+ --color-icon-disabled: light-dark(#C4AC95, #6b5540);
187
+ --color-background-card: light-dark(#EDE4D4, #2a2018);
188
+ --color-background-popover: light-dark(#FFFCF7, #2a2018);
189
+ --color-background-inverted: light-dark(#4a3520, #EDE4D4);
190
+ --color-success: light-dark(#709900, #96bf2a);
191
+ --color-success-muted: light-dark(#70990020, #96bf2a20);
192
+ --color-error: light-dark(#FD0000, #ff5c5c);
193
+ --color-error-muted: light-dark(#FD000020, #ff5c5c20);
194
+ --color-warning: light-dark(#FFB600, #ffc940);
195
+ --color-warning-muted: light-dark(#FFB60020, #ffc94020);
196
+ --color-border: light-dark(#C4AC95, #EDE4D41A);
197
+ --color-border-emphasized: light-dark(#B88859, #6b5540);
198
+ --color-skeleton: light-dark(#C4AC95, #6b5540);
199
+ --color-shadow: light-dark(#4a35201A, #0000004D);
200
+ --color-tint-hover: light-dark(black, white);
201
+ --color-background-blue: light-dark(#3a5e8c33, #3a5e8c33);
202
+ --color-border-blue: light-dark(#3a5e8c, #7ba8d4);
203
+ --color-icon-blue: light-dark(#3a5e8c, #7ba8d4);
204
+ --color-text-blue: light-dark(#2e4a6e, #8dbce0);
205
+ --color-background-cyan: light-dark(#3a7c7c33, #3a7c7c33);
206
+ --color-border-cyan: light-dark(#3a7c7c, #70c4c4);
207
+ --color-icon-cyan: light-dark(#3a7c7c, #70c4c4);
208
+ --color-text-cyan: light-dark(#2e6060, #82d4d4);
209
+ --color-background-gray: light-dark(#B8885933, #6b554033);
210
+ --color-border-gray: light-dark(#B88859, #B88859);
211
+ --color-icon-gray: light-dark(#B88859, #c4a882);
212
+ --color-text-gray: light-dark(#4a3520, #EDE4D4);
213
+ --color-background-green: light-dark(#70990033, #96bf2a33);
214
+ --color-border-green: light-dark(#709900, #96bf2a);
215
+ --color-icon-green: light-dark(#709900, #96bf2a);
216
+ --color-text-green: light-dark(#5a7a00, #a8d43a);
217
+ --color-background-orange: light-dark(#c4762033, #d4903a33);
218
+ --color-border-orange: light-dark(#c47620, #d4903a);
219
+ --color-icon-orange: light-dark(#c47620, #d4903a);
220
+ --color-text-orange: light-dark(#a06018, #e0a04a);
221
+ --color-background-pink: light-dark(#c44a7033, #e07a9a33);
222
+ --color-border-pink: light-dark(#c44a70, #e07a9a);
223
+ --color-icon-pink: light-dark(#c44a70, #e07a9a);
224
+ --color-text-pink: light-dark(#a03a5a, #f08aaa);
225
+ --color-background-purple: light-dark(#6b4a8c33, #b08ed433);
226
+ --color-border-purple: light-dark(#6b4a8c, #b08ed4);
227
+ --color-icon-purple: light-dark(#6b4a8c, #b08ed4);
228
+ --color-text-purple: light-dark(#553a70, #c0a0e0);
229
+ --color-background-red: light-dark(#FD000033, #ff5c5c33);
230
+ --color-border-red: light-dark(#FD0000, #ff5c5c);
231
+ --color-icon-red: light-dark(#FD0000, #ff5c5c);
232
+ --color-text-red: light-dark(#cc0000, #ff7a7a);
233
+ --color-background-teal: light-dark(#2e6b5a33, #5ab89833);
234
+ --color-border-teal: light-dark(#2e6b5a, #5ab898);
235
+ --color-icon-teal: light-dark(#2e6b5a, #5ab898);
236
+ --color-text-teal: light-dark(#245546, #6ccaaa);
237
+ --color-background-yellow: light-dark(#FFB60033, #ffc94033);
238
+ --color-border-yellow: light-dark(#FFB600, #ffc940);
239
+ --color-icon-yellow: light-dark(#FFB600, #ffc940);
240
+ --color-text-yellow: light-dark(#cc9200, #ffd960);
241
+ --radius-none: 0.125rem;
242
+ --radius-inner: 0.375rem;
243
+ --radius-element: 0.625rem;
244
+ --radius-container: 0.75rem;
245
+ --radius-page: 1.5rem;
246
+ --radius-full: 9999px;
247
+ --shadow-low: 0 2px 4px #4a35200D, 0 4px 8px #4a35201A;
248
+ --shadow-med: 0 2px 4px #4a35200D, 0 4px 12px #4a35201A;
249
+ --shadow-high: 0 4px 6px #4a35201A, 0 12px 24px #4a352026;
250
+ --shadow-inset-hover: inset 0px 0px 0px 2px #8C592730;
251
+ --shadow-inset-selected: inset 0px 0px 0px 2px #8C592750;
252
+ --shadow-inset-success: inset 0px 0px 0px 2px #70990050;
253
+ --shadow-inset-warning: inset 0px 0px 0px 2px #FFB60050;
254
+ --shadow-inset-error: inset 0px 0px 0px 2px #FD000050;
255
+ }
256
+
257
+ .astryx-heading.level-1 {
258
+ font-family: var(--font-family-heading);
259
+ font-size: var(--text-heading-1-size);
260
+ font-weight: var(--text-heading-1-weight);
261
+ line-height: var(--text-heading-1-leading);
262
+ }
263
+
264
+ .astryx-heading.level-2 {
265
+ font-family: var(--font-family-heading);
266
+ font-size: var(--text-heading-2-size);
267
+ font-weight: var(--text-heading-2-weight);
268
+ line-height: var(--text-heading-2-leading);
269
+ }
270
+
271
+ .astryx-heading.level-3 {
272
+ font-family: var(--font-family-heading);
273
+ font-size: var(--text-heading-3-size);
274
+ font-weight: var(--text-heading-3-weight);
275
+ line-height: var(--text-heading-3-leading);
276
+ }
277
+
278
+ .astryx-heading.level-4 {
279
+ font-family: var(--font-family-heading);
280
+ font-size: var(--text-heading-4-size);
281
+ font-weight: var(--text-heading-4-weight);
282
+ line-height: var(--text-heading-4-leading);
283
+ }
284
+
285
+ .astryx-heading.level-5 {
286
+ font-family: var(--font-family-heading);
287
+ font-size: var(--text-heading-5-size);
288
+ font-weight: var(--text-heading-5-weight);
289
+ line-height: var(--text-heading-5-leading);
290
+ }
291
+
292
+ .astryx-heading.level-6 {
293
+ font-family: var(--font-family-heading);
294
+ font-size: var(--text-heading-6-size);
295
+ font-weight: var(--text-heading-6-weight);
296
+ line-height: var(--text-heading-6-leading);
297
+ }
298
+
299
+ .astryx-text.body {
300
+ font-family: var(--font-family-body);
301
+ font-size: var(--text-body-size);
302
+ line-height: var(--text-body-leading);
303
+ }
304
+
305
+ .astryx-text.large {
306
+ font-family: var(--font-family-body);
307
+ font-size: var(--text-large-size);
308
+ line-height: var(--text-large-leading);
309
+ }
310
+
311
+ .astryx-text.label {
312
+ font-family: var(--font-family-body);
313
+ font-size: var(--text-label-size);
314
+ line-height: var(--text-label-leading);
315
+ }
316
+
317
+ .astryx-text.code {
318
+ font-family: var(--font-family-code);
319
+ font-size: var(--text-code-size);
320
+ line-height: var(--text-code-leading);
321
+ }
322
+
323
+ .astryx-text.supporting {
324
+ font-family: var(--font-family-body);
325
+ font-size: var(--text-supporting-size);
326
+ line-height: var(--text-supporting-leading);
327
+ }
328
+
329
+ .astryx-text.display-1 {
330
+ font-family: var(--font-family-heading);
331
+ font-size: var(--text-display-1-size);
332
+ line-height: var(--text-display-1-leading);
333
+ }
334
+
335
+ .astryx-text.display-2 {
336
+ font-family: var(--font-family-heading);
337
+ font-size: var(--text-display-2-size);
338
+ line-height: var(--text-display-2-leading);
339
+ }
340
+
341
+ .astryx-text.display-3 {
342
+ font-family: var(--font-family-heading);
343
+ font-size: var(--text-display-3-size);
344
+ line-height: var(--text-display-3-leading);
345
+ }
346
+
347
+ .astryx-button {
348
+ border-radius: var(--radius-full);
349
+ --_button-radius: var(--radius-full);
350
+ }
351
+
352
+ .astryx-button.secondary {
353
+ border-width: 1px;
354
+ border-style: solid;
355
+ border-color: var(--color-border-emphasized);
356
+ }
357
+
358
+ .astryx-card {
359
+ --astryx-card-padding: var(--spacing-3);
360
+ }
361
+
362
+ .astryx-section {
363
+ --astryx-section-padding: var(--spacing-3);
364
+ }
365
+
366
+ .astryx-text.primary { color: var(--color-text-primary); }
367
+
368
+ .astryx-heading.primary { color: var(--color-text-primary); }
369
+
370
+ .astryx-text.secondary { color: var(--color-text-secondary); }
371
+
372
+ .astryx-heading.secondary { color: var(--color-text-secondary); }
373
+
374
+ .astryx-text.disabled { color: var(--color-text-disabled); }
375
+
376
+ .astryx-heading.disabled { color: var(--color-text-disabled); }
377
+
378
+ .astryx-text.placeholder { color: var(--color-text-secondary); }
379
+
380
+ .astryx-heading.placeholder { color: var(--color-text-secondary); }
381
+
382
+ .astryx-text.active { color: var(--color-accent); }
383
+
384
+ .astryx-heading.active { color: var(--color-accent); }
385
+ }
386
+ }
387
+
388
+ @layer astryx-theme {
389
+ @scope ([data-astryx-theme="chocolate"]) to ([data-astryx-theme]) {
390
+ [data-astryx-media="dark"] {
391
+ color-scheme: dark;
392
+ --color-text-primary: var(--color-on-dark);
393
+ --color-icon-primary: var(--color-on-dark);
394
+ --color-accent: var(--color-on-dark);
395
+ }
396
+
397
+ [data-astryx-media="light"] {
398
+ color-scheme: light;
399
+ --color-text-primary: var(--color-on-light);
400
+ --color-icon-primary: var(--color-on-light);
401
+ --color-accent: var(--color-on-light);
402
+ }
403
+ }
404
+ }
package/package.json CHANGED
@@ -1,11 +1,62 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-chocolate",
3
- "version": "0.0.0-bootstrap.0",
4
- "description": "Placeholder published to claim the npm name during trusted publishing setup. Do not install.",
5
- "homepage": "https://github.com/facebook/astryx",
3
+ "version": "0.0.15",
4
+ "displayName": "Chocolate Theme",
5
+ "private": false,
6
+ "description": "Warm chocolate theme for Astryx — rich brown palette with Fraunces headings, Albert Sans body, and Lucide icons",
7
+ "author": "Meta Open Source",
6
8
  "license": "MIT",
9
+ "homepage": "https://github.com/facebook/astryx#readme",
7
10
  "repository": {
8
11
  "type": "git",
9
- "url": "git+https://github.com/facebook/astryx.git"
12
+ "url": "git+https://github.com/facebook/astryx.git",
13
+ "directory": "packages/themes/chocolate"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/facebook/astryx/issues"
17
+ },
18
+ "keywords": [
19
+ "xds",
20
+ "theme",
21
+ "design-system",
22
+ "lucide",
23
+ "design-tokens"
24
+ ],
25
+ "sideEffects": false,
26
+ "main": "./dist/source.js",
27
+ "types": "./dist/source.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/source.d.ts",
31
+ "import": "./dist/source.mjs",
32
+ "require": "./dist/source.js"
33
+ },
34
+ "./built": {
35
+ "types": "./dist/chocolate.d.ts",
36
+ "import": "./dist/chocolate.js",
37
+ "require": "./dist/chocolate.js"
38
+ },
39
+ "./theme.css": {
40
+ "types": "./theme.css.d.ts",
41
+ "default": "./dist/theme.css"
42
+ }
43
+ },
44
+ "files": [
45
+ "dist",
46
+ "src"
47
+ ],
48
+ "dependencies": {
49
+ "lucide-react": "^1.18.0"
50
+ },
51
+ "peerDependencies": {
52
+ "@astryxdesign/core": "0.0.15",
53
+ "react": ">=19"
54
+ },
55
+ "devDependencies": {
56
+ "@astryxdesign/cli": "0.0.15"
57
+ },
58
+ "module": "./dist/source.mjs",
59
+ "scripts": {
60
+ "build": "astryx theme build src/chocolateTheme.ts -o dist/theme.css && tsup && tsc --project tsconfig.build.json"
10
61
  }
11
- }
62
+ }