Skip to content

Commit

Permalink
update Theme Color Block
Browse files Browse the repository at this point in the history
  • Loading branch information
SerhiiTsybulskyi committed Feb 5, 2025
1 parent f2d0e76 commit 09e57f9
Show file tree
Hide file tree
Showing 11 changed files with 528 additions and 301 deletions.
8 changes: 4 additions & 4 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
--border-color: #2b2f31;
--color-layer-transparent: rgba(0, 0, 0, 0.5);

&.light {
&.theme-light {
background: #E6E6F0;
color: #000000;
--body-color: #000000;
}

&.dark {
&.theme-dark {
background: #11111F;
color: #F7F7FA;
--body-color: #F7F7FA;
Expand All @@ -37,12 +37,12 @@
font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace !important;
}

.light .sb-show-main.sb-main-centered {
.theme-light .sb-show-main.sb-main-centered {
color: #11111F;
background: #F7F7FA;
}

.dark .sb-show-main.sb-main-centered {
.theme-dark .sb-show-main.sb-main-centered {
color: #F7F7FA;
background: #11111F;
}
Expand Down
7 changes: 4 additions & 3 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import theme from './theme';
import { Preview } from '@storybook/react';
import { withThemeByClassName } from '@storybook/addon-themes';
Expand All @@ -19,10 +20,10 @@ const preview: Preview = {
withProvider,
withThemeByClassName({
themes: {
light: 'light',
dark: 'dark',
light: 'theme-light',
dark: 'theme-dark',
},
defaultTheme: 'dark',
defaultTheme: 'theme-dark',
}),
],
parameters: {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"@marko19907/string-to-color": "^1.0.0",
"@reaviz/react-use-fuzzy": "^1.0.3",
"body-scroll-lock-upgrade": "^1.1.0",
"chroma-js": "^2.4.2",
"chroma-js": "^3.1.2",
"classnames": "^2.5.1",
"coverup": "^0.1.1",
"create-global-state-hook": "^0.0.2",
Expand Down
183 changes: 0 additions & 183 deletions src/color-palette.css

This file was deleted.

Loading

0 comments on commit 09e57f9

Please sign in to comment.