Skip to content

Commit

Permalink
Updated michijs
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegurado committed Jan 2, 2024
1 parent c91c399 commit 9831492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"peerDependencies": {
"@storybook/theming": "7.5.2",
"@storybook/types": "7.5.2",
"@michijs/michijs": "2.0.0-beta.2"
"@michijs/michijs": "^2.0.0-beta.13"
}
}
8 changes: 4 additions & 4 deletions src/stories/bind.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ import {
FragmentJSXElement,
FunctionJSXElement,
ObjectJSXElement,
useCssVariablesDeclaration,
useCssVariables,
useStyleSheet,
} from "@michijs/michijs";
import { themes } from "@storybook/theming";

const cssVariables = useCssVariablesDeclaration<{
const cssVariables = useCssVariables<{
storybookTextColor: string;
storybookBackground: string;
}>();

const documentStyle = useStyleSheet({
body: {
padding: "0 !important",
color: cssVariables.storybookTextColor.var(),
backgroundColor: cssVariables.storybookBackground.var(),
color: cssVariables.storybookTextColor(),
backgroundColor: cssVariables.storybookBackground(),
},
".dark": {
[cssVariables.storybookTextColor]: themes["dark"].textColor!,
Expand Down

0 comments on commit 9831492

Please sign in to comment.