nextui-org / nextui-cli

⌨️ A CLI tool that unlocks seamless NextUI integration.
MIT License
40 stars 14 forks source link

[BUG] - Nextui CLI doctor, false positive tailwind.config.ts incorrect #27

Closed TheFabi8A closed 4 months ago

TheFabi8A commented 4 months ago

NextUI Version

2.2.10

Describe the bug

When installing the nextui CLI and evaluating my project, it gives me the message that my tailwind configuration needs to add nextui(), but I have this configured within the array of plugins with custom colors and it does not recognize it

PS D:\GitHub\xburako> nextui doctor

NextUI CLI v0.1.5

NextUI CLI: ❌ Your project has 1 issue that require attention

❗️Issue 1: incorrectTailwind

Your tailwind.config.ts is incorrect

The missing part is:
- need to add nextui()

See more info here: https://nextui.org/docs/guide/installation#tailwind-css-setup-1
// tailwind.config.ts
plugins: [nextui(
    {
      themes: {
        light: {
          colors: {
            primary: '#37296F',
            secondary: '#ffde59'
          }
        }
      }
    }
  ), require('tailwindcss-animate')]

Your Example Website or App

No response

Steps to Reproduce the Bug or Issue

  1. Install NextuiCLI
  2. Run nextui doctor

Expected behavior

That there was no error that my nextui() was missing

Screenshots or Videos

No response

Operating System Version

Windows

Browser

Chrome

linear[bot] commented 4 months ago

ENG-646 [BUG] - Nextui Doctor, false negative tailwind.config.ts incorrect