-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add light theme to override dark theme
- Loading branch information
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import type { Meta } from "@storybook/react"; | ||
import { Box } from "../box"; | ||
import { Card } from "../card"; | ||
import { theme, lightTheme } from "../theme"; | ||
|
||
const Template = () => { | ||
return ( | ||
<Box css={{ color: theme.colors.onBackground }}> | ||
<h1>Override Darkmode</h1> | ||
<Box css={{ display: "flex", gap: theme.space["050"], width: "640px" }}> | ||
<Box css={{ flex: 1 }}> | ||
<Card>Responds to Dark</Card> | ||
</Box> | ||
<Box css={{ flex: 1 }} className={lightTheme}> | ||
<Card>Stays Light</Card> | ||
</Box> | ||
</Box> | ||
</Box> | ||
); | ||
}; | ||
|
||
const meta: Meta<React.ComponentProps<typeof Template>> = { | ||
title: "Override Darkmode", | ||
component: Template, | ||
}; | ||
|
||
export const Default = {}; | ||
|
||
export default meta; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters