Skip to content

[Bug]: Configuration with TailwindCss #26323

Discussion options

You must be logged in to vote

I've put together an example repository, which is a monorepo, based on turbo and has successfully set up Tailwind with Storybook: https://github.com/valentinpalkovic/example-turbo-repo-tailwind-storybook

The folder structure looks like this:

  • apps/docs
    • storybook
  • packages
    • ui

Let's go through the steps I've done to make it work:

Init Tailwind

I have installed and initialized Tailwind in packages/ui:

  • cd ./packages/ui
  • pnpm install tailwind
  • npx tailwindcss init

I have followed the tailwind guide to configure content, but be aware to use an absolute path glob instead so that Tailwind doesn't mess up if it gets loaded from Storybook

+ const { join } = require("node:path");

/** @type {i…

Replies: 16 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Waseemrajashaik
Comment options

Answer selected by valentinpalkovic
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@acrognale
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tomavic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Converted from issue

This discussion was converted from issue #25177 on March 05, 2024 14:06.