Skip to content
Discussion options

You must be logged in to vote

You seem to have mixed v3 and v4 installation instructions.

For step 2:

-@tailwind base;
-@tailwind components;
-@tailwind utilities;
+@import "tailwindcss";

For step 3, delete the tailwind.config.js file. Tailwind is configured in CSS:

 @import "tailwindcss";

+@theme {
+  --color-background: #f5f5f5;
+  --color-light: #e0e0e0;
+  --color-accent: #ff5722;
+}
+
 @layer base {
   body {
     @apply bg-gradient-to-br from-background via-light to-accent;
     @apply min-h-screen;
   }
 }

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Neptune2k21
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
Help
Labels
None yet
2 participants