Make storybook wrapper to render both dark and light themes

This commit is contained in:
Belén Albeza 2024-06-28 15:03:25 +02:00
parent 2bb7726180
commit b5aba58aac
7 changed files with 69 additions and 26 deletions

View file

@ -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",
},
],
},
},
};