Linked Questions
40 questions linked to/from Unexpected token CloseSquareBracket error with TailwindCSS v4 and Parcel
55
votes
14
answers
66k
views
Cannot apply unknown utility class `border-border` - the `border-border` class does not exist per TailwindCSS; even if I manually define it as a class
The border-border class does not exist. If border-border is a custom class, make sure it is defined within a @layer directive.
globals.css
@tailwind base;
@tailwind components;
@tailwind utilities;
@...
23
votes
8
answers
41k
views
Problem installing TailwindCSS after `npx tailwindcss init` command - tailwindcss not recognized - npm error could not determine executable to run
I've been using TailwindCSS for my projects for a long time, and I'm used to first installing the package and then creating the tailwind.config.js file using the init process. I did the same for ...
26
votes
4
answers
71k
views
Cannot build frontend using Vite, TailwindCSS with PostCSS
10:04:32 PM [vite] Internal server error: [postcss] It looks like you're trying to use tailwindcss directly as a PostCSS plugin. The PostCSS plugin has moved to a separate package, so to continue ...
8
votes
4
answers
13k
views
Error Installing Shadcn UI and Tailwind CSS in React.js Project with Vite
I'm trying to set up Shadcn UI in a new React.js project using Vite with JavaScript, but I'm encountering some issues.
Steps Taken for Shadcn UI:
Created a new React.js project with Vite and selected ...
16
votes
3
answers
24k
views
How to use custom color themes in TailwindCSS v4
My tailwind.config.js in v3 looks like this, but I can't find a way to use it in v4:
theme: {
extend: {
colors: {
lightHover: '#fcf4ff',
darkHover: '#2a004a',
darktheme: '#...
10
votes
1
answer
7k
views
How can I setup tailwind.config.js with Angular & TailwindCSS v4 application
I used this setup guide for setting TailwindCSS with my Angular application. However there is no tailwind.config.js. I tried a lot of online blogs but didn't work. How can I setup tailwind.config.js ...
13
votes
2
answers
22k
views
How to fix Tailwind PostCSS plugin error?
Not one LLM was able to help me fix this issue, so here I am. I'm building a Vite + React + TS project and it fails to build because of this error: [plugin:vite:css] [postcss] It looks like you're ...
4
votes
1
answer
3k
views
Adding HeroUI after creating a ReactJS application via Vite
I'm following the instruction Here trying to make HeroUI works with React app created via Vite. However, it doesn't seem to be working!
Tailwind CSS on the other hand is working perfectly, app running ...
5
votes
1
answer
6k
views
Whenever I run my React-Vite it says [plugin:vite:esbuild] The service is no longer running
After running the npm run dev, it shows this:
[plugin:vite:esbuild] The service is no longer running
My config files are properly set up although I don't have a config file for PostCSS also.
vite....
2
votes
1
answer
9k
views
Unknown word "use strict" error by upgrading TailwindCSS from v3 to v4
I was running Tailwind 3.4.17 in my Vite React app, but I wanted to upgrade it, so I ran 'npx @tailwindcss/upgrade' following this guide and expecting an easy migration.
I now get this error from the ...
0
votes
3
answers
5k
views
There is no tailwind.config.ts file in tailwind 4.0, how do i configure this theme in Next.js now?
Here is the tailwind.config.ts file I need to add in my project, but in tailwind v4 I have no tailwind.config.ts file. Please tell me a fix to solve this problem.
I have been trying to use Aceternity ...
2
votes
2
answers
1k
views
How to remove unused colors during build?
When I run the build script in my svelte kit tailwind project, with Tailwind v4, it add every single tailwind color. I only use one single tailwind color, so I'd like to remove them.
I spent a while ...
2
votes
1
answer
2k
views
TailwindCSS V4 in Angular 19 - Changes in CSS Not Reflecting Without Restarting ng serve
I'm working on an Angular 19 project with Tailwind CSS 4. When I make a typo in a class inside my styles.css, Angular throws an error in the console, which is expected. However, even after fixing the ...
4
votes
2
answers
6k
views
Missing tailwind.config.js in Latest Tailwind CSS and Next.js Versions - Issues Configuring Hero UI
I'm trying to configure Hero UI (or any component library) with the latest versions of Tailwind CSS and Next.js. However, I'm facing issues because there's no tailwind.config.js file in my project, ...
0
votes
1
answer
858
views
react, typescript, tailwind + npm & vite - styles from tailwind config do not work
I am trying to learn some web dev and starting to learn typescript with react and tailwind using npm and vite...
I was making the initial set up via. tailwind page: https://tailwindcss.com/docs/...