@cyclone-ui/theme-builder 0.0.4 → 0.0.6

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.
@@ -54,13 +54,15 @@ const token = ($value: string | number): Token => ({ $value });
54
54
 
55
55
  const semanticColors = (prefix: string) => ({
56
56
  color: {
57
- primary: token(`${prefix}-primary`),
58
- secondary: token(`${prefix}-secondary`),
59
- tertiary: token(`${prefix}-tertiary`),
60
- border: token(`${prefix}-border`),
61
- "surface-canvas": token(`${prefix}-surface-canvas`),
62
- "surface-elevated": token(`${prefix}-surface-elevated`),
63
- "surface-floating": token(`${prefix}-surface-floating`)
57
+ emphasis: token(`${prefix}-emphasis`),
58
+ ink: token(`${prefix}-ink`),
59
+ subtlest: token(`${prefix}-subtlest`),
60
+ subtle: token(`${prefix}-subtle`),
61
+ outline: token(`${prefix}-outline`),
62
+ hairline: token(`${prefix}-hairline`),
63
+ canvas: token(`${prefix}-canvas`),
64
+ elevated: token(`${prefix}-elevated`),
65
+ floating: token(`${prefix}-floating`),
64
66
  },
65
67
  radius: { md: token(6) }
66
68
  });
@@ -89,30 +91,30 @@ describe("Storybook theme mapping", () => {
89
91
 
90
92
  expect(themes.dark).toMatchObject({
91
93
  base: "dark",
92
- colorPrimary: "dark-primary",
93
- colorSecondary: "dark-tertiary",
94
- textColor: "dark-primary",
95
- textInverseColor: "dark-surface-canvas",
96
- appBg: "dark-surface-canvas",
97
- appContentBg: "dark-surface-elevated",
98
- appPreviewBg: "dark-surface-canvas",
99
- appBorderColor: "dark-border",
94
+ colorPrimary: "dark-emphasis",
95
+ colorSecondary: "dark-subtlest",
96
+ textColor: "dark-emphasis",
97
+ textInverseColor: "dark-canvas",
98
+ appBg: "dark-canvas",
99
+ appContentBg: "dark-canvas",
100
+ appPreviewBg: "dark-canvas",
101
+ appBorderColor: "dark-outline",
100
102
  appBorderRadius: 6,
101
- barTextColor: "dark-secondary",
102
- barSelectedColor: "dark-primary",
103
- barBg: "dark-surface-floating",
104
- barHoverColor: "dark-tertiary",
105
- buttonBg: "dark-surface-elevated",
106
- buttonBorder: "dark-border",
107
- inputBg: "dark-surface-elevated",
108
- inputBorder: "dark-border",
109
- inputTextColor: "dark-secondary",
103
+ barTextColor: "dark-ink",
104
+ barSelectedColor: "dark-emphasis",
105
+ barBg: "dark-floating",
106
+ barHoverColor: "dark-subtlest",
107
+ buttonBg: "dark-elevated",
108
+ buttonBorder: "dark-outline",
109
+ inputBg: "dark-elevated",
110
+ inputBorder: "dark-outline",
111
+ inputTextColor: "dark-ink",
110
112
  inputBorderRadius: 6,
111
- booleanBg: "dark-surface-elevated",
112
- booleanSelectedBg: "dark-tertiary"
113
+ booleanBg: "dark-elevated",
114
+ booleanSelectedBg: "dark-subtlest"
113
115
  });
114
- expect(themes.light.colorPrimary).toBe("light-primary");
115
- expect(themes.light.textColor).toBe("light-primary");
116
- expect(themes.light.appBg).toBe("light-surface-canvas");
116
+ expect(themes.light.colorPrimary).toBe("light-emphasis");
117
+ expect(themes.light.textColor).toBe("light-emphasis");
118
+ expect(themes.light.appBg).toBe("light-canvas");
117
119
  });
118
120
  });