@astryxdesign/theme-chocolate 0.7.6-canary.4cdc3ab → 0.7.6-canary.4fdcebc
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astryxdesign/theme-chocolate",
|
|
3
|
-
"version": "0.7.6-canary.
|
|
3
|
+
"version": "0.7.6-canary.4fdcebc",
|
|
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.
|
|
73
|
+
"@astryxdesign/core": "0.7.6-canary.4fdcebc",
|
|
61
74
|
"react": ">=19"
|
|
62
75
|
},
|
|
63
76
|
"devDependencies": {
|
|
64
|
-
"@astryxdesign/cli": "0.7.6-canary.
|
|
77
|
+
"@astryxdesign/cli": "0.7.6-canary.4fdcebc"
|
|
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 +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
|
-
});
|