@cyclone-ui/theme-builder 0.0.35 → 0.0.37
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/CHANGELOG.md +12 -0
- package/dist/preprocessor.d.cts +1 -1
- package/dist/preprocessor.d.mts +1 -1
- package/package.json +1 -1
- package/src/preprocessor.ts +1 -1
- package/test/preprocessor.spec.ts +1 -2
- package/test/shiki-theme-mapping.spec.ts +0 -1
- package/test/storybook-theme-mapping.spec.ts +3 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog for Cyclone UI - Theme Builder
|
|
4
4
|
|
|
5
|
+
## [0.0.36](https://github.com/storm-software/cyclone-ui/releases/tag/theme-builder%400.0.36) (11/04/2026)
|
|
6
|
+
|
|
7
|
+
### Miscellaneous
|
|
8
|
+
|
|
9
|
+
- [nx migration] update-0-0-19 ([1bba628c7](https://github.com/storm-software/cyclone-ui/commit/1bba628c7))
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
- **tokens:** Update token styles and remove `subtlest` duplicate tokens ([ccbe4f900](https://github.com/storm-software/cyclone-ui/commit/ccbe4f900))
|
|
14
|
+
- **theme-builder:** Added the `border` color token to themes ([47f36e073](https://github.com/storm-software/cyclone-ui/commit/47f36e073))
|
|
15
|
+
- **monorepo:** Resolve server rendering issues with newly added component files and linting failures ([199b43593](https://github.com/storm-software/cyclone-ui/commit/199b43593))
|
|
16
|
+
|
|
5
17
|
## [0.0.35](https://github.com/storm-software/cyclone-ui/releases/tag/theme-builder%400.0.35) (11/04/2026)
|
|
6
18
|
|
|
7
19
|
### Miscellaneous
|
package/dist/preprocessor.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { PreprocessedTokens } from "style-dictionary/types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Style Dictionary preprocessor: rewrite color `$value`s (and nested shadow
|
|
4
4
|
* colors) to hex so generators emit `#rrggbb` / `#rrggbbaa` instead of
|
|
5
|
-
* `oklch()`. Root colors (emphasis, ink, subtle,
|
|
5
|
+
* `oklch()`. Root colors (emphasis, ink, subtle, outline, backgrounds)
|
|
6
6
|
* stay in the root light and dark themes without rings. For each color group
|
|
7
7
|
* with a `primary` token (except excluded groups), a missing `secondary` background and `on-primary` /
|
|
8
8
|
* `on-secondary` text colors are generated, a missing `border` is derived from
|
package/dist/preprocessor.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { PreprocessedTokens } from "style-dictionary/types";
|
|
|
2
2
|
/**
|
|
3
3
|
* Style Dictionary preprocessor: rewrite color `$value`s (and nested shadow
|
|
4
4
|
* colors) to hex so generators emit `#rrggbb` / `#rrggbbaa` instead of
|
|
5
|
-
* `oklch()`. Root colors (emphasis, ink, subtle,
|
|
5
|
+
* `oklch()`. Root colors (emphasis, ink, subtle, outline, backgrounds)
|
|
6
6
|
* stay in the root light and dark themes without rings. For each color group
|
|
7
7
|
* with a `primary` token (except excluded groups), a missing `secondary` background and `on-primary` /
|
|
8
8
|
* `on-secondary` text colors are generated, a missing `border` is derived from
|
package/package.json
CHANGED
package/src/preprocessor.ts
CHANGED
|
@@ -1588,7 +1588,7 @@ function injectColorStateVariants(
|
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Style Dictionary preprocessor: rewrite color `$value`s (and nested shadow
|
|
1590
1590
|
* colors) to hex so generators emit `#rrggbb` / `#rrggbbaa` instead of
|
|
1591
|
-
* `oklch()`. Root colors (emphasis, ink, subtle,
|
|
1591
|
+
* `oklch()`. Root colors (emphasis, ink, subtle, outline, backgrounds)
|
|
1592
1592
|
* stay in the root light and dark themes without rings. For each color group
|
|
1593
1593
|
* with a `primary` token (except excluded groups), a missing `secondary` background and `on-primary` /
|
|
1594
1594
|
* `on-secondary` text colors are generated, a missing `border` is derived from
|
|
@@ -397,7 +397,6 @@ describe("tamaguiPreprocessor", () => {
|
|
|
397
397
|
emphasis: { ...colorToken("#f5f5f5"), group: "foreground" },
|
|
398
398
|
ink: { ...colorToken("#777777"), group: "foreground" },
|
|
399
399
|
subtle: { ...colorToken("#777777"), group: "foreground" },
|
|
400
|
-
subtlest: colorToken("#777777"),
|
|
401
400
|
hairline: colorToken("#777777"),
|
|
402
401
|
base: {
|
|
403
402
|
primary: colorToken("#f5f5f5"),
|
|
@@ -437,7 +436,7 @@ describe("tamaguiPreprocessor", () => {
|
|
|
437
436
|
}
|
|
438
437
|
expect(result.color["ink-active"].group).toBe("foreground");
|
|
439
438
|
|
|
440
|
-
for (const key of ["
|
|
439
|
+
for (const key of ["backdrop"]) {
|
|
441
440
|
expect(result.color).toHaveProperty(key);
|
|
442
441
|
expect(result.color).not.toHaveProperty(`${key}-active`);
|
|
443
442
|
}
|
|
@@ -65,7 +65,6 @@ const semanticColors = (prefix: string) => ({
|
|
|
65
65
|
emphasis: color(`${prefix}-emphasis`),
|
|
66
66
|
ink: color(`${prefix}-ink`),
|
|
67
67
|
subtle: color(`${prefix}-subtle`),
|
|
68
|
-
subtlest: color(`${prefix}-subtlest`),
|
|
69
68
|
outline: color(`${prefix}-outline`),
|
|
70
69
|
hairline: color(`${prefix}-hairline`),
|
|
71
70
|
canvas: color(`${prefix}-canvas`),
|
|
@@ -56,7 +56,6 @@ const semanticColors = (prefix: string) => ({
|
|
|
56
56
|
color: {
|
|
57
57
|
emphasis: token(`${prefix}-emphasis`),
|
|
58
58
|
ink: token(`${prefix}-ink`),
|
|
59
|
-
subtlest: token(`${prefix}-subtlest`),
|
|
60
59
|
subtle: token(`${prefix}-subtle`),
|
|
61
60
|
outline: token(`${prefix}-outline`),
|
|
62
61
|
hairline: token(`${prefix}-hairline`),
|
|
@@ -92,7 +91,7 @@ describe("Storybook theme mapping", () => {
|
|
|
92
91
|
expect(themes.dark).toMatchObject({
|
|
93
92
|
base: "dark",
|
|
94
93
|
colorPrimary: "dark-emphasis",
|
|
95
|
-
colorSecondary: "dark-
|
|
94
|
+
colorSecondary: "dark-subtle",
|
|
96
95
|
textColor: "dark-emphasis",
|
|
97
96
|
textInverseColor: "dark-canvas",
|
|
98
97
|
appBg: "dark-canvas",
|
|
@@ -103,7 +102,7 @@ describe("Storybook theme mapping", () => {
|
|
|
103
102
|
barTextColor: "dark-ink",
|
|
104
103
|
barSelectedColor: "dark-emphasis",
|
|
105
104
|
barBg: "dark-floating",
|
|
106
|
-
barHoverColor: "dark-
|
|
105
|
+
barHoverColor: "dark-subtle",
|
|
107
106
|
buttonBg: "dark-elevated",
|
|
108
107
|
buttonBorder: "dark-outline",
|
|
109
108
|
inputBg: "dark-elevated",
|
|
@@ -111,7 +110,7 @@ describe("Storybook theme mapping", () => {
|
|
|
111
110
|
inputTextColor: "dark-ink",
|
|
112
111
|
inputBorderRadius: 6,
|
|
113
112
|
booleanBg: "dark-elevated",
|
|
114
|
-
booleanSelectedBg: "dark-
|
|
113
|
+
booleanSelectedBg: "dark-subtle"
|
|
115
114
|
});
|
|
116
115
|
expect(themes.light.colorPrimary).toBe("light-emphasis");
|
|
117
116
|
expect(themes.light.textColor).toBe("light-emphasis");
|