Git Product home page Git Product logo

Comments (5)

ponnex avatar ponnex commented on June 6, 2024 6

Though would be glad to be able to add theming options in nuxt.config.js

storybook: {
  theme: {
    // themeConfig here
  }
}

from storybook.

farnabaz avatar farnabaz commented on June 6, 2024 1

You should eject storybook config using manual setup

from storybook.

ponnex avatar ponnex commented on June 6, 2024 1

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.

jojoyuji avatar jojoyuji commented on June 6, 2024

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.

wilvandertuin avatar wilvandertuin commented on June 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.