@astryxdesign/theme-chocolate 0.7.6-canary.fa3f760 → 0.7.6-canary.fc44bc3

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/chocolate.js CHANGED
@@ -81,6 +81,15 @@ export const chocolateTheme = {
81
81
  "--duration-slow-min": "525ms",
82
82
  "--duration-slow": "700ms",
83
83
  "--duration-slow-max": "935ms",
84
+ "--_astryx-pre-tempo-duration-fast-min": "95ms",
85
+ "--_astryx-pre-tempo-duration-fast": "125ms",
86
+ "--_astryx-pre-tempo-duration-fast-max": "165ms",
87
+ "--_astryx-pre-tempo-duration-medium-min": "225ms",
88
+ "--_astryx-pre-tempo-duration-medium": "300ms",
89
+ "--_astryx-pre-tempo-duration-medium-max": "400ms",
90
+ "--_astryx-pre-tempo-duration-slow-min": "525ms",
91
+ "--_astryx-pre-tempo-duration-slow": "700ms",
92
+ "--_astryx-pre-tempo-duration-slow-max": "935ms",
84
93
  "--font-family-body": "\"Albert Sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif",
85
94
  "--font-family-heading": "Fraunces, Georgia, \"Times New Roman\", Times, serif",
86
95
  "--font-family-code": "\"JetBrains Mono\", \"SF Mono\", Monaco, Consolas, monospace",
package/dist/theme.css CHANGED
@@ -149,6 +149,15 @@
149
149
  --duration-slow-min: 525ms;
150
150
  --duration-slow: 700ms;
151
151
  --duration-slow-max: 935ms;
152
+ --_astryx-pre-tempo-duration-fast-min: 95ms;
153
+ --_astryx-pre-tempo-duration-fast: 125ms;
154
+ --_astryx-pre-tempo-duration-fast-max: 165ms;
155
+ --_astryx-pre-tempo-duration-medium-min: 225ms;
156
+ --_astryx-pre-tempo-duration-medium: 300ms;
157
+ --_astryx-pre-tempo-duration-medium-max: 400ms;
158
+ --_astryx-pre-tempo-duration-slow-min: 525ms;
159
+ --_astryx-pre-tempo-duration-slow: 700ms;
160
+ --_astryx-pre-tempo-duration-slow-max: 935ms;
152
161
  --font-family-body: "Albert Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
153
162
  --font-family-heading: Fraunces, Georgia, "Times New Roman", Times, serif;
154
163
  --font-family-code: "JetBrains Mono", "SF Mono", Monaco, Consolas, monospace;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astryxdesign/theme-chocolate",
3
- "version": "0.7.6-canary.fa3f760",
3
+ "version": "0.7.6-canary.fc44bc3",
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",
@@ -51,20 +51,34 @@
51
51
  "dist",
52
52
  "src",
53
53
  "fonts.css",
54
- "fonts.css.d.ts"
54
+ "fonts.css.d.ts",
55
+ "!**/*.test.*",
56
+ "!**/*.spec.js",
57
+ "!**/*.spec.jsx",
58
+ "!**/*.spec.mjs",
59
+ "!**/*.spec.cjs",
60
+ "!**/*.spec.ts",
61
+ "!**/*.spec.tsx",
62
+ "!**/*.spec.mts",
63
+ "!**/*.spec.cts",
64
+ "!**/*.spec.d.ts",
65
+ "!**/__tests__/**",
66
+ "!**/__mocks__/**",
67
+ "!**/*.bench.*"
55
68
  ],
56
69
  "dependencies": {
57
70
  "lucide-react": "^1.18.0"
58
71
  },
59
72
  "peerDependencies": {
60
- "@astryxdesign/core": "0.7.6-canary.fa3f760",
73
+ "@astryxdesign/core": "0.7.6-canary.fc44bc3",
61
74
  "react": ">=19"
62
75
  },
63
76
  "devDependencies": {
64
- "@astryxdesign/cli": "0.7.6-canary.fa3f760"
77
+ "@astryxdesign/cli": "0.7.6-canary.fc44bc3"
65
78
  },
66
79
  "module": "./dist/source.mjs",
67
80
  "scripts": {
81
+ "api:report": "node ../../../scripts/api-report/cli.mjs --package .",
68
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"
69
83
  }
70
84
  }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=chocolateTheme.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chocolateTheme.test.d.ts","sourceRoot":"","sources":["../src/chocolateTheme.test.ts"],"names":[],"mappings":""}
@@ -1,25 +0,0 @@
1
- // Copyright (c) Meta Platforms, Inc. and affiliates.
2
-
3
- import {describe, expect, it} from 'vitest';
4
- import {generateThemeCSS} from '@astryxdesign/core/theme';
5
- import {chocolateTheme} from './chocolateTheme';
6
-
7
- describe('chocolate touch + narrow type pin', () => {
8
- it('floors body to 16px and holds Display 1 at its desktop size', () => {
9
- const rule = chocolateTheme.__adaptationRules?.[0];
10
-
11
- expect(chocolateTheme.__adaptations.rules).toHaveLength(1);
12
- expect(rule?.when).toEqual({pointer: 'coarse', width: {below: 'lg'}});
13
- expect(rule?.query).toBe('(width < 1024px) and (pointer: coarse)');
14
- // Pinned ladder: base 16 (was 14), ratio 1.2 -> 1.1736, Display 1 pinned.
15
- expect(rule?.tokens['--font-size-base']).toBe('1rem');
16
- expect(rule?.tokens['--font-size-lg']).toBe('1.1875rem');
17
- expect(rule?.tokens['--font-size-5xl']).toBe('2.625rem');
18
- // Desktop scale is untouched.
19
- expect(chocolateTheme.tokens['--font-size-base']).toBe('0.875rem');
20
- expect(chocolateTheme.tokens['--font-size-5xl']).toBe('2.625rem');
21
- expect(generateThemeCSS(chocolateTheme).component).toContain(
22
- '@media (width < 1024px) and (pointer: coarse)',
23
- );
24
- });
25
- });