Comments (5)
Though would be glad to be able to add theming options in nuxt.config.js
storybook: {
theme: {
// themeConfig here
}
}
from storybook.
You should eject storybook config using manual setup
from storybook.
Resolved by doing the manual setup and adding manager.js
in folder storybook
have to fix and setup webpack to resolve some issues though. Below is a sample theming inside manager.js
import { addons } from '@storybook/addons';
import { create } from '@storybook/theming';
import Logo from '../static/icon.png'
const themeConfig = create({
base: 'dark',
brandTitle: 'Name',
brandImage: Logo,
appBg: '#242424',
appContentBg: '#333333',
textColor: '#ffcf00',
barSelectedColor: '#ffcf00',
});
addons.setConfig({
theme: themeConfig,
});
from storybook.
Though would be glad to be able to add theming options in
nuxt.config.js
storybook: { theme: { // themeConfig here } }
I also would love this option without having to eject/manual setup
from storybook.
Dark mode is also possible with the storybook-dark-mode package.
After installing you can add it to nuxt.config.js
like so:
storybook: {
addons: [
'storybook-dark-mode/register'
],
}
from storybook.
Related Issues (20)
- Error after install don't find @vitejs/plugin-vue. HOT 4
- Storybook disable nuxt ssr
- "Failed to fetch dynamically imported module" when component emits an event with 2 or more arguments HOT 4
- "Neither (...).vue nor (...).js nor ... could be found in (...)" when rendering component HOT 1
- [8.0.0]Cannot read properties of undefined (reading '__STORYBOOK__') HOT 12
- At least one <template> or <script> is required in a single file component. HOT 1
- Separate dev and storybook server? HOT 2
- Netlify PR reviews are not working
- Publish nightly builds HOT 6
- No optional chaining when accessing import.meta.env.__STORYBOOK__ in npm dist HOT 1
- Missing types HOT 1
- Error: Cannot read properties of undefined (reading '__STORYBOOK__') HOT 1
- Cannot start nuxt: Cannot read properties of undefined (reading '__STORYBOOK__') HOT 1
- Static build HOT 1
- Latest version Broken HOT 2
- Story executing script from layouts/default.vue
- Storybook ^8.0.6 is not working with Tailwind HOT 1
- `host` option does not work
- . HOT 1
- Runtime processes handling issues.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from storybook.