@astryxdesign/theme-chocolate 0.7.11 → 0.7.12-canary.0085c0f

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.
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/chocolateTheme.ts
4
4
  * Command: astryx theme build src/chocolateTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.11
6
- * Core: @astryxdesign/core@0.7.11
5
+ * CLI: @astryxdesign/cli@0.7.12
6
+ * Core: @astryxdesign/core@0.7.12
7
7
  */
8
8
 
9
9
  import type { DefinedTheme } from '@astryxdesign/core/theme';
package/dist/chocolate.js CHANGED
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/chocolateTheme.ts
4
4
  * Command: astryx theme build src/chocolateTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.11
6
- * Core: @astryxdesign/core@0.7.11
5
+ * CLI: @astryxdesign/cli@0.7.12
6
+ * Core: @astryxdesign/core@0.7.12
7
7
  */
8
8
 
9
9
  import { chocolateIconRegistry } from "./icons.mjs";
@@ -0,0 +1 @@
1
+ export declare const chocolateTheme: import("@astryxdesign/core/theme").ResolvedDefinedTheme<never>;
@@ -0,0 +1,2 @@
1
+ import type { IconRegistry } from '@astryxdesign/core/Icon';
2
+ export declare const chocolateIconRegistry: IconRegistry;
@@ -0,0 +1,2 @@
1
+ export { chocolateTheme } from './chocolateTheme.cjs';
2
+ export { chocolateIconRegistry } from './icons.cjs';
package/dist/source.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { chocolateTheme } from './chocolateTheme';
2
- export { chocolateIconRegistry } from './icons';
1
+ export { chocolateTheme } from './chocolateTheme.js';
2
+ export { chocolateIconRegistry } from './icons.js';
3
3
  //# sourceMappingURL=source.d.ts.map
package/dist/theme.css CHANGED
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/chocolateTheme.ts
4
4
  * Command: astryx theme build src/chocolateTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.11
6
- * Core: @astryxdesign/core@0.7.11
5
+ * CLI: @astryxdesign/cli@0.7.12
6
+ * Core: @astryxdesign/core@0.7.12
7
7
  */
8
8
 
9
9
  @layer reset, astryx-base, astryx-theme;
@@ -86,18 +86,30 @@
86
86
 
87
87
  @scope ([data-astryx-theme="chocolate"]) to ([data-astryx-theme]) {
88
88
  :scope {
89
- --font-size-4xs: 0.375rem;
90
- --font-size-3xs: 0.4375rem;
91
- --font-size-2xs: 0.5rem;
92
- --font-size-xs: 0.625rem;
93
- --font-size-sm: 0.75rem;
94
- --font-size-base: 0.875rem;
95
- --font-size-lg: 1.0625rem;
96
- --font-size-xl: 1.25rem;
97
- --font-size-2xl: 1.5rem;
98
- --font-size-3xl: 1.8125rem;
99
- --font-size-4xl: 2.1875rem;
100
- --font-size-5xl: 2.625rem;
89
+ --_scaled-font-size-4xs: min(calc(0.375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
90
+ --font-size-4xs: var(--_scaled-font-size-4xs);
91
+ --_scaled-font-size-3xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
92
+ --font-size-3xs: var(--_scaled-font-size-3xs);
93
+ --_scaled-font-size-2xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
94
+ --font-size-2xs: var(--_scaled-font-size-2xs);
95
+ --_scaled-font-size-xs: min(calc(0.625rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
96
+ --font-size-xs: var(--_scaled-font-size-xs);
97
+ --_scaled-font-size-sm: min(calc(0.75rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
98
+ --font-size-sm: var(--_scaled-font-size-sm);
99
+ --_scaled-font-size-base: min(calc(0.875rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
100
+ --font-size-base: var(--_scaled-font-size-base);
101
+ --_scaled-font-size-lg: min(calc(1.0625rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
102
+ --font-size-lg: var(--_scaled-font-size-lg);
103
+ --_scaled-font-size-xl: min(calc(1.25rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
104
+ --font-size-xl: var(--_scaled-font-size-xl);
105
+ --_scaled-font-size-2xl: min(calc(1.5rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
106
+ --font-size-2xl: var(--_scaled-font-size-2xl);
107
+ --_scaled-font-size-3xl: min(calc(1.8125rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
108
+ --font-size-3xl: var(--_scaled-font-size-3xl);
109
+ --_scaled-font-size-4xl: min(calc(2.1875rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
110
+ --font-size-4xl: var(--_scaled-font-size-4xl);
111
+ --_scaled-font-size-5xl: calc(2.625rem * var(--_dynamic-type-large-title, 1));
112
+ --font-size-5xl: var(--_scaled-font-size-5xl);
101
113
  --text-heading-1-size: var(--font-size-2xl);
102
114
  --text-heading-1-weight: var(--font-weight-semibold);
103
115
  --text-heading-1-leading: 1.3333;
@@ -503,18 +515,30 @@
503
515
  @media (width < 1024px) and (pointer: coarse) {
504
516
  @scope ([data-astryx-theme="chocolate"]) to ([data-astryx-theme]) {
505
517
  :scope {
506
- --font-size-4xs: 0.4375rem;
507
- --font-size-3xs: 0.5rem;
508
- --font-size-2xs: 0.625rem;
509
- --font-size-xs: 0.75rem;
510
- --font-size-sm: 0.875rem;
511
- --font-size-base: 1rem;
512
- --font-size-lg: 1.1875rem;
513
- --font-size-xl: 1.375rem;
514
- --font-size-2xl: 1.625rem;
515
- --font-size-3xl: 1.875rem;
516
- --font-size-4xl: 2.25rem;
517
- --font-size-5xl: 2.625rem;
518
+ --_scaled-font-size-4xs: min(calc(0.4375rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-3xs));
519
+ --font-size-4xs: var(--_scaled-font-size-4xs);
520
+ --_scaled-font-size-3xs: min(calc(0.5rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-2xs));
521
+ --font-size-3xs: var(--_scaled-font-size-3xs);
522
+ --_scaled-font-size-2xs: min(calc(0.625rem * var(--_dynamic-type-caption2, 1)), var(--_scaled-font-size-xs));
523
+ --font-size-2xs: var(--_scaled-font-size-2xs);
524
+ --_scaled-font-size-xs: min(calc(0.75rem * var(--_dynamic-type-caption1, 1)), var(--_scaled-font-size-sm));
525
+ --font-size-xs: var(--_scaled-font-size-xs);
526
+ --_scaled-font-size-sm: min(calc(0.875rem * var(--_dynamic-type-footnote, 1)), var(--_scaled-font-size-base));
527
+ --font-size-sm: var(--_scaled-font-size-sm);
528
+ --_scaled-font-size-base: min(calc(1rem * var(--_dynamic-type-body, 1)), var(--_scaled-font-size-lg));
529
+ --font-size-base: var(--_scaled-font-size-base);
530
+ --_scaled-font-size-lg: min(calc(1.1875rem * var(--_dynamic-type-title3, 1)), var(--_scaled-font-size-xl));
531
+ --font-size-lg: var(--_scaled-font-size-lg);
532
+ --_scaled-font-size-xl: min(calc(1.375rem * var(--_dynamic-type-title2, 1)), var(--_scaled-font-size-2xl));
533
+ --font-size-xl: var(--_scaled-font-size-xl);
534
+ --_scaled-font-size-2xl: min(calc(1.625rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-3xl));
535
+ --font-size-2xl: var(--_scaled-font-size-2xl);
536
+ --_scaled-font-size-3xl: min(calc(1.875rem * var(--_dynamic-type-title1, 1)), var(--_scaled-font-size-4xl));
537
+ --font-size-3xl: var(--_scaled-font-size-3xl);
538
+ --_scaled-font-size-4xl: min(calc(2.25rem * var(--_dynamic-type-large-title, 1)), var(--_scaled-font-size-5xl));
539
+ --font-size-4xl: var(--_scaled-font-size-4xl);
540
+ --_scaled-font-size-5xl: calc(2.625rem * var(--_dynamic-type-large-title, 1));
541
+ --font-size-5xl: var(--_scaled-font-size-5xl);
518
542
  --text-heading-1-size: var(--font-size-2xl);
519
543
  --text-heading-1-weight: var(--font-weight-semibold);
520
544
  --text-heading-1-leading: 1.3846;
@@ -2,8 +2,8 @@
2
2
  * @generated by `astryx theme build` — do not edit manually.
3
3
  * Source: src/chocolateTheme.ts
4
4
  * Command: astryx theme build src/chocolateTheme.ts --out dist/theme.css
5
- * CLI: @astryxdesign/cli@0.7.11
6
- * Core: @astryxdesign/core@0.7.11
5
+ * CLI: @astryxdesign/cli@0.7.12
6
+ * Core: @astryxdesign/core@0.7.12
7
7
  */
8
8
 
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-chocolate",
3
- "version": "0.7.11",
3
+ "version": "0.7.12-canary.0085c0f",
4
4
  "displayName": "Chocolate Theme",
5
5
  "private": false,
6
6
  "description": "Warm chocolate theme for Astryx — rich brown palette with Fraunces headings, Albert Sans body, and Lucide icons",
@@ -25,13 +25,19 @@
25
25
  "sideEffects": [
26
26
  "**/*.css"
27
27
  ],
28
- "main": "./dist/source.js",
28
+ "type": "module",
29
+ "main": "./dist/source.cjs",
29
30
  "types": "./dist/source.d.ts",
30
31
  "exports": {
31
32
  ".": {
32
- "types": "./dist/source.d.ts",
33
- "import": "./dist/source.mjs",
34
- "require": "./dist/source.js"
33
+ "import": {
34
+ "types": "./dist/source.d.ts",
35
+ "default": "./dist/source.mjs"
36
+ },
37
+ "require": {
38
+ "types": "./dist/source.d.cts",
39
+ "default": "./dist/source.cjs"
40
+ }
35
41
  },
36
42
  "./built": {
37
43
  "types": "./dist/chocolate.d.ts",
@@ -52,6 +58,7 @@
52
58
  "src",
53
59
  "fonts.css",
54
60
  "fonts.css.d.ts",
61
+ "theme.css.d.ts",
55
62
  "!**/*.test.*",
56
63
  "!**/*.spec.js",
57
64
  "!**/*.spec.jsx",
@@ -70,15 +77,15 @@
70
77
  "lucide-react": "^1.18.0"
71
78
  },
72
79
  "peerDependencies": {
73
- "@astryxdesign/core": "0.7.11",
80
+ "@astryxdesign/core": "0.7.12-canary.0085c0f",
74
81
  "react": ">=19"
75
82
  },
76
83
  "devDependencies": {
77
- "@astryxdesign/cli": "0.7.11"
84
+ "@astryxdesign/cli": "0.7.12-canary.0085c0f"
78
85
  },
79
86
  "module": "./dist/source.mjs",
80
87
  "scripts": {
81
88
  "api:report": "node ../../../scripts/api-report/cli.mjs --package .",
82
- "build": "node ../../../scripts/clean-dist.mjs && astryx theme build src/chocolateTheme.ts -o dist/theme.css --icons-specifier ./icons.mjs && tsup && tsc --project tsconfig.build.json && node ../../../scripts/check-fully-specified.mjs"
89
+ "build": "node ../../../scripts/clean-dist.mjs && astryx theme build src/chocolateTheme.ts -o dist/theme.css --icons-specifier ./icons.mjs && tsup && tsc --project tsconfig.build.json && node ../../../scripts/add-declaration-extensions.mjs && node ../../../scripts/emit-commonjs-declarations.mjs dist/source.d.ts && node ../../../scripts/check-fully-specified.mjs"
83
90
  }
84
91
  }
package/theme.css.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ export {};
File without changes