Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Using Tailwind3 with Docz #1688

Open
utsavdotpro opened this issue Dec 27, 2021 · 1 comment
Open

Using Tailwind3 with Docz #1688

utsavdotpro opened this issue Dec 27, 2021 · 1 comment

Comments

@utsavdotpro
Copy link

Question

Description

Hi, I am trying to use docz in my NextJS project that uses TailwindCSS 3 for styling. I have created a simple mdx file that loads a component, the component is building fine but the styles are missing.

What I have tried?

Apart from the steps specified on the official documentation, here's what I have done:

  • yarn add gatsby-plugin-postcss
    
  • Create gatsby-browser.js

    import "tailwindcss/tailwind.css";
    
  • Create gatsby-config.js

    module.exports = {
      plugins: ["gatsby-plugin-postcss"],
    };
    
@mauriciolcs
Copy link

I got an error with this steps

https://imgur.com/azXAakC

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants