storybook-tailwind-foundations

1.1.2 • Public • Published

Getting Started

Links

Example

Requirements

  • Vue 3.0+
  • Tailwind CSS
  • Storybook

Install package

npm install storybook-tailwind-foundations

Adapt ./storybook/main.js

const path = require('path');
const tailwindConfigPath = path.join(__dirname, '../tailwind.config.js'); // or your own config file
require('storybook-tailwind-foundations/initialize.js')
  .default(tailwindConfigPath);

module.exports = {
   // ...
  stories: [
    // ... 
    '../node_modules/storybook-tailwind-foundations/**/*.stories.js'
  ],
}

Start Storybook

If you make any change to the tailwind config, you need to restart storybook to see the changes. Now you can start storybook and the Foundations section should appear in the sidebar.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.2
    7,805
    • latest

Version History

Package Sidebar

Install

npm i storybook-tailwind-foundations

Weekly Downloads

7,806

Version

1.1.2

License

MIT

Unpacked Size

13.2 kB

Total Files

13

Last publish

Collaborators

  • renatomoor