@sit-onyx/storybook-utils 1.0.0-beta.92 → 1.0.0-beta.93

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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/src/style.css +12 -12
  3. package/src/theme.ts +10 -11
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sit-onyx/storybook-utils",
3
3
  "description": "Storybook utilities for Vue",
4
- "version": "1.0.0-beta.92",
4
+ "version": "1.0.0-beta.93",
5
5
  "type": "module",
6
6
  "author": "Schwarz IT KG",
7
7
  "license": "Apache-2.0",
package/src/style.css CHANGED
@@ -40,18 +40,18 @@
40
40
  */
41
41
  :where(:root),
42
42
  .onyx-theme-default {
43
- --onyx-color-steel-100: #fafbfc;
44
- --onyx-color-steel-200: #e3eaf0;
45
- --onyx-color-steel-300: #c9d6e0;
46
- --onyx-color-steel-400: #9db3c4;
47
- --onyx-color-steel-500: #7392aa;
48
- --onyx-color-steel-600: #506e84;
49
- --onyx-color-steel-700: #3e596e;
50
- --onyx-color-steel-800: #31495c;
51
- --onyx-color-steel-900: #22384a;
52
- --onyx-color-steel-1000: #11212d;
53
- --onyx-color-steel-1100: #081723;
54
- --onyx-color-steel-1200: #000e19;
43
+ --onyx-color-neutral-steel-100: #fafbfc;
44
+ --onyx-color-neutral-steel-200: #e3eaf0;
45
+ --onyx-color-neutral-steel-300: #c9d6e0;
46
+ --onyx-color-neutral-steel-400: #9db3c4;
47
+ --onyx-color-neutral-steel-500: #7392aa;
48
+ --onyx-color-neutral-steel-600: #506e84;
49
+ --onyx-color-neutral-steel-700: #3e596e;
50
+ --onyx-color-neutral-steel-800: #31495c;
51
+ --onyx-color-neutral-steel-900: #22384a;
52
+ --onyx-color-neutral-steel-1000: #11212d;
53
+ --onyx-color-neutral-steel-1100: #081723;
54
+ --onyx-color-neutral-steel-1200: #000e19;
55
55
  --onyx-color-themed-primary-100: #e8fcfc;
56
56
  --onyx-color-themed-primary-200: #bbeaed;
57
57
  --onyx-color-themed-primary-300: #79dde2;
package/src/theme.ts CHANGED
@@ -20,8 +20,7 @@ export const getCustomProperty = (property: string, el: Element = document.body)
20
20
  * @see https://storybook.js.org/docs/react/configure/theming#create-a-theme-quickstart
21
21
  */
22
22
  export const createTheme = (base: "light" | "dark" = "light", brandDetails?: BrandDetails) => {
23
- const primaryColor = getCustomProperty("--onyx-color-base-primary-500");
24
-
23
+ const primaryColor = getCustomProperty("--onyx-color-onyx-500");
25
24
  return create({
26
25
  brandTitle: brandDetails?.brandTitle,
27
26
  brandUrl: brandDetails?.brandUrl,
@@ -45,20 +44,20 @@ export const createTheme = (base: "light" | "dark" = "light", brandDetails?: Bra
45
44
  const getLightTheme = (): Partial<ThemeVars> => {
46
45
  return defineTheme({
47
46
  background: getCustomProperty("--onyx-color-universal-grayscale-white"),
48
- contentBackground: getCustomProperty("--onyx-color-steel-100"),
49
- text: getCustomProperty("--onyx-color-steel-700"),
50
- textMuted: getCustomProperty("--onyx-color-steel-600"),
51
- border: getCustomProperty("--onyx-color-steel-300"),
47
+ contentBackground: getCustomProperty("--onyx-color-neutral-steel-100"),
48
+ text: getCustomProperty("--onyx-color-neutral-steel-700"),
49
+ textMuted: getCustomProperty("--onyx-color-neutral-steel-600"),
50
+ border: getCustomProperty("--onyx-color-neutral-steel-300"),
52
51
  });
53
52
  };
54
53
 
55
54
  const getDarkTheme = (): Partial<ThemeVars> => {
56
55
  return defineTheme({
57
- background: getCustomProperty("--onyx-color-steel-1100"),
58
- contentBackground: getCustomProperty("--onyx-color-steel-1200"),
59
- text: getCustomProperty("--onyx-color-steel-200"),
60
- textMuted: getCustomProperty("--onyx-color-steel-400"),
61
- border: getCustomProperty("--onyx-color-steel-900"),
56
+ background: getCustomProperty("--onyx-color-neutral-steel-1100"),
57
+ contentBackground: getCustomProperty("--onyx-color-neutral-steel-1200"),
58
+ text: getCustomProperty("--onyx-color-neutral-steel-200"),
59
+ textMuted: getCustomProperty("--onyx-color-neutral-steel-400"),
60
+ border: getCustomProperty("--onyx-color-neutral-steel-900"),
62
61
  });
63
62
  };
64
63