Skip to content

Histoire doesn't load tailwind styles #315

Answered by Akryum
swyxio asked this question in Q&A
Discussion options

You must be logged in to vote

You need to add CSS with a setup file.

Then in that setup file import the CSS file with:

@tailwind base;
@tailwind components;
@tailwind utilities;

Change the histoire config with:

{
  // ...
  setupFile: '/src/histoire-setup.ts',
}

Create an src/histoire-setup.ts file:

import './tailwind.css'

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
12 replies
@Ishadijcks
Comment options

@Ishadijcks
Comment options

@romanslonov
Comment options

@Ishadijcks
Comment options

@Thebigbignooby
Comment options

Answer selected by swyxio
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants
Converted from issue

This discussion was converted from issue #314 on October 06, 2022 11:33.