Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

design-tokens.source.json not being created #217

Open
alfred1000351 opened this issue Jan 31, 2025 · 0 comments
Open

design-tokens.source.json not being created #217

alfred1000351 opened this issue Jan 31, 2025 · 0 comments

Comments

@alfred1000351
Copy link

Hi I'm using 3.1.0 and storybook 8.5.2 I'm having an issue where the design-tokens.source.json is not being created. Not really sure if I'm doing something wrong on this or not

this is my tokens.css file

:root {
  /**
  * @tokens Colors Dark
  * @presenter Color
  */
  --colourTertiarry400: #8dd2bf;
  --colourTertiarry600: #5a9f8c;
  --colourTertiarry700: #437769;
  --colourTertiarry800: #2d5046;
  --colourTertiarry900: #162823;
  --colourTertiarryDefault: #70c7af;
  /* @tokens End */
}

and this is my main.js

import type { StorybookConfig } from "@storybook-vue/nuxt";

const config: StorybookConfig = {
  stories: [
    "../stories/**/*.mdx",
    "../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)",
    "../components/**/*.stories.@(js|jsx|mjs|ts|tsx)",
  ],
  addons: [
    "@storybook/addon-links",
    "@storybook/addon-essentials",
    "@storybook/addon-interactions",
    "@storybook/addon-designs",
    { name: 'storybook-design-token', options: { preserveCSSVars: true,
        designTokenGlob: "tokens.css",
      } }
  ],
  // features: {
  //   buildStoriesJson: true
  // },

  framework: {
    name: "@storybook-vue/nuxt",
    options: {},
  },
  docs: {
    autodocs: true,
  },
};
export default config;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant