Storybook `brandTitle` and `brandLogo` is not working with `storybook-dark-mode`
See original GitHub issueInput ==>>
// .storybook/manager.js
import { addons } from "@storybook/addons";
import { create } from "@storybook/theming";
addons.setConfig({
theme: create({
base: "light",
brandTitle: "foo",
brandUrl: "https://www.xyz.com/",
brandImage:
"https://manufac-analytics-images.s3.ap-south-1.amazonaws.com/logos/landscape/black/Manufac_Final-2.png",
}),
});
Output ===>>
Issue Analytics
- State:
- Created 2 years ago
- Reactions:5
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Theming - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >storybook-dark-mode - Bountysource
Having issues when switching stories. We run storybook with onDeviceUI: false and when I switch story the app goes back to light mode....
Read more >Storybook React with Dark Mode Option - David Yeiser
Animated image showing the Storybook user interface and the React component in the main preview window. We will use the storybook-dark-mode ...
Read more >storybook-facelift - npm
Start using storybook-facelift in your project by running `npm i storybook-facelift`. There are no other projects in the npm registry using ...
Read more >storybook-dark-mode from hipstersmoothie - Coder Social
AFAIK, there isn't a way to customize the classTarget to point it at another attribute. Storybook `brandTitle` and `brandLogo` is not working with...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had this same problem, I have solved it by removing all theming from
.storybook/manager.js
and instead added it underlight
in.storybook/preview.js
.This is working but I now get a flash of Storybooks default theming before my custom theme loads 😦
If anyone knows a solution to the default theming flash before my custom theming loads, please let me know 🙏🏽
@nikkipantony Solution is great and the only thing I can add to improve this workaround is that you can keep yourTheme.js file, export it and spread it.
Thanks Nikki!