mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 06:56:10 +02:00
✨ Make storybook wrapper to render both dark and light themes
This commit is contained in:
parent
2bb7726180
commit
b5aba58aac
7 changed files with 69 additions and 26 deletions
|
@ -1,5 +1,3 @@
|
|||
import "../resources/public/css/main.css";
|
||||
|
||||
/** @type { import('@storybook/react').Preview } */
|
||||
const preview = {
|
||||
parameters: {
|
||||
|
@ -10,6 +8,19 @@ const preview = {
|
|||
date: /Date$/i,
|
||||
},
|
||||
},
|
||||
backgrounds: {
|
||||
default: "dark",
|
||||
values: [
|
||||
{
|
||||
name: "dark",
|
||||
value: "#18181a",
|
||||
},
|
||||
{
|
||||
name: "light",
|
||||
value: "#fff",
|
||||
},
|
||||
],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue