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

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"],
    };
    
@morricedev
Copy link

I got an error with this steps

https://imgur.com/azXAakC

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

2 participants