Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
8k views

I'm setting up a new project using Next.js (v15.3.0 - Pages Router) and Tailwind CSS (v4.1.4) and I've hit a persistent build issue where Tailwind utility classes are not being recognized. The Core ...
Amritanshu SINGH's user avatar
1 vote
1 answer
136 views

I'm trying build a chrome extension using vite, react and tailwind. When I use DaisyUI inside of the popup it works just fine but when I try to add it to my content script, it just isn't showing up. ...
Monkey's user avatar
  • 11
1 vote
2 answers
1k views

I'm trying to use a custom font (RetroGaming.ttf) in my React project using Vite and Tailwind CSS v4, but the font isn't applying. The @font-face rule seems ignored, and the generated Tailwind class ...
Paul Martinez's user avatar
0 votes
0 answers
186 views

I am using Tailwind V4 and created a custom utility function: import type { ClassValue } from 'clsx'; import { clsx } from 'clsx'; import { twMerge } from 'tailwind-merge'; export const cn = (......
meez's user avatar
  • 4,888
2 votes
1 answer
942 views

I'm creating a new Angular 19 project using PrimeNG 19 and Tailwind CSS v4. I followed both the Tailwind and PrimeNG installation guides. However, when I run my application, the PrimeNG styles are not ...
Nessarose's user avatar
0 votes
0 answers
64 views

When I add this comand npx @tailwindcss/cli -i ./src/input.css -o ./src/output.css --watch My vs code give this error .What should i do now? const err = new Error(message); ^ Error: Cannot find module ...
Rafay Chohan's user avatar
1 vote
1 answer
2k views

Here are the details: Next.js v15.x TailwindCSS v4.x Hero UI: latest Tailwind classes work but Hero UI not showing styling at all. package.json { "dependencies": { "@heroui/...
Gazi's user avatar
  • 77
0 votes
1 answer
1k views

I'm encountering a persistent issue setting up Tailwind CSS v4 in a Vite + React project on Windows 10/11. The core problem is that the tailwindcss CLI command is unavailable after installation via ...
Paul Martinez's user avatar
3 votes
1 answer
414 views

Starting from Tailwind v4 tailwind.config.ts is not supported/needed. Hence I am migrating v3 config of tailwind.config.ts. The below is existing code using tailwind.config.ts and I want to convert ...
Balaji Venkatraman's user avatar
0 votes
1 answer
42 views

I wanted to declare a @utility called animate-repeat-{number}, whose function is to modify a variable at usage time; a variable I tie to the repeat count in all my animations. This works. @utility ...
rozsazoltan's user avatar
  • 18.4k
1 vote
1 answer
464 views

I am using TailwindCSS v4 with Next.js v15.0.4. In globals.css I have: @theme { --animate-float: float 4s inifinite --animate-wiggle: wiggle 1s infinite @keyFrames[ wiggle { 0% { ...
Chris Hunter-Johnson's user avatar
1 vote
2 answers
224 views

In my index.css I have these annotations: @import "tailwindcss" prefix(tw) source(none); @source "../content_script"; Generated CSS file has styles with names that are not under ...
user435421's user avatar
2 votes
1 answer
2k views

I used tailwind.config.js like this: export default { theme: { extend: { fontSize: { 'heading-banner-title': ['88px', { lineHeight: '100px', fontWeight: '700' }], }, }, ...
윤효준's user avatar
2 votes
1 answer
3k views

I am using a prefix to distinguish my styling from 3rd party clases. When not using the prefix, this works fine: fixed h-[5px] bg-green top-0 left-0 z-1000 When using the prefix top and left styles ...
user435421's user avatar
-2 votes
2 answers
2k views

I am doing work in a monorepo where I have 2 apps. The first is NextJS and the second one is React.js. I have recently upgraded Tailwind CSS version to the latest one. But the issue is that my CSS ...
Sabeer Waqas's user avatar
0 votes
0 answers
290 views

New to Webpack with Tailwind and trying to get it set up properly, but running into an issue I don't understand at all. I've generated a new project with cookiecutter-django which uses Webpack. I then ...
beginnercoder's user avatar
3 votes
1 answer
2k views

I ran into an issue with a new Next.js 15 project. I created it using and selected the option to set up Tailwind CSS 4.1.3. After the project was installed, I noticed that the file was missing. ...
Sergey F's user avatar
5 votes
1 answer
4k views

Ive got tailwindcss v4 to work with other applications as a vite plugin in the vite.config.ts file. Similar to this: import { defineConfig } from "vite"; import tailwindcss from "@...
BigBoss9324's user avatar
2 votes
2 answers
802 views

I have app.css like this: @import 'tailwindcss'; @source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'; @source '../../storage/framework/views/*.php'; @source ...
827 men's user avatar
  • 23
2 votes
1 answer
2k views

Hello I'm trying to add a local font that I've downloaded to my Next.js project but I'm having trouble loading it in my project. ./src/app/layout.tsx import localFont from 'next/font/local' const ...
user30123003's user avatar
-1 votes
1 answer
872 views

As soon I installed the newer version of TailwindCSS V4.1 the autocomplete suggestion from Tailwind CSS IntelliSense donot work. So far I have tried the following troubleshooting methods: Adding ...
saugat karki's user avatar
0 votes
3 answers
3k views

I'm using the latest version of Next.js (with the App Router and TypeScript), and I noticed that my project uses a postcss.config.mjs file instead of the usual postcss.config.js. I want to add custom ...
elham rajaee's user avatar
0 votes
2 answers
1k views

I have been trying to add Tailwind to my project. I am using Tailwind CLI, it seems futile, kindly check what I have done wrong. I followed the documentation: Get started with Tailwind CSS and ...
Queen Lisa's user avatar
0 votes
3 answers
683 views

I'm migrating from Tailwind CSS v3 to v4, and I've hit a roadblock with custom colors. In v3, I was able to import a JSON file with color values directly into my tailwind.config.js: const colors = ...
Michel Merheb's user avatar
0 votes
1 answer
420 views

The whole project was building without much problems but since one or two days (and most probably after composer & npm) update/upgrades) it will return the following: npm run build > build >...
Michael Kocurek's user avatar
0 votes
2 answers
4k views

Has anyone been able to successfully run TailwindCSS 4 with Sass in Webpack 5 & React app? I am having some configuration issues where I don't get any console errors but CSS processing seems to be ...
Kevin Garcia's user avatar
0 votes
1 answer
286 views

When I create Next.js project. Running: npx create-next-app@latest Then I choose all options and TailwindCSS as well. But after installation the tailwind.config.ts file is not created at all. When I ...
Dmitruz Ruzhytskyi's user avatar
1 vote
2 answers
145 views

I have a problem with the Collapse component in FlyonUI. I'm using the following code: <button type="button" class="collapse-toggle btn btn-primary" id="shadow-collapse&...
mabu95's user avatar
  • 13
1 vote
1 answer
1k views

Why does my tailwind not work with my components in my packages/components/src files? It works in my apps/my-app but when I import my component from packages it does not apply TailwindCSS on my ...
Christian Munk-Nissen's user avatar
10 votes
1 answer
7k views

I am using Tailwind CSS v4 and want to define custom colors that automatically switch between light and dark modes. Instead of using the dark: prefix for every class, I want to manage color changes ...
Mourya Pranay's user avatar
0 votes
1 answer
1k views

How add darkMode: class in tailwind.config.js, it is missing in Laravel 12.
Bastard_Ape's user avatar
2 votes
2 answers
822 views

I'm new to Tailwind CSS and I'm looking to include it in my Django/FastAPI project. I'm using Tailwind v4.0.17. The problem I'm having is that Tailwind doesn't recognize the HTML tags I have in my ...
MagicLudo's user avatar
1 vote
1 answer
811 views

I'm using Tailwind CSS v4 and I'd like to generate separate compiled CSS files for different sections of my app (e.g. blog.css, dashboard.css), each one containing only the utility classes used in ...
J.doe's user avatar
  • 185
2 votes
1 answer
213 views

I defined my own breakpoint use @theme: @theme { --breakpoint-tablet: 52.125rem; --breakpoint-desktop: 90rem; } Then I defined my own class in @layer components: @layer components .mobile-...
evelgaden violet's user avatar
1 vote
1 answer
180 views

I'm working with: Vite v6.1 Tailwind v4.0.16 Whenever I run my dev server, the .container classes are generated and everything works fine. The moment I do a build, .container is not included in the ...
Arno Ramon's user avatar
0 votes
2 answers
492 views

How to solve the Error: could not determine executable to run error message when running: npx tailwindcss init -p My TailwindCSS version is the latest one, according to the log: [email protected]. ...
Dinu Thomas's user avatar
0 votes
1 answer
1k views

Wanted to try out the custom themes on the shadcn ui website, however when I paste the teams into my index.css (vite project) it does not get applied to my default components. Is there a step am ...
narh's user avatar
  • 3
1 vote
1 answer
935 views

I'm building a Vue 3 component library using Vite and Tailwind CSS, but I want to ensure that the final build only includes the Tailwind classes that are actually used in my components. Right now, the ...
Ebraheem Al-hetari's user avatar
0 votes
1 answer
237 views

When I want to start my dev server the terminal gives me this error instead: failed to load config from E:\Code\tailtests\vite.config.ts error when starting dev server: Error: Cannot find module '../...
Victor Keuchler's user avatar
1 vote
1 answer
288 views

I'm working through a course and need help adapting the following code for my Astro project configuration. The original code I'm trying to replicate is: // @ts-check import { defineConfig, envField } ...
Daniel's user avatar
  • 11
0 votes
2 answers
2k views

I have been trying to install vite with tailwindcss, but I keep getting this error: [vite] Internal server error: [postcss] It looks like you're trying to use tailwindcss directly as a PostCSS plugin....
user30024141's user avatar
1 vote
1 answer
4k views

How can implement dark mode in TailwindCSS v4 using Vite in React project? I did the below code but it didn't work? vite.config.js import { defineConfig } from 'vite' import react from '@vitejs/plugin-...
Eslam Gomaa's user avatar
0 votes
1 answer
45 views

When using TailwindCSS 3 in a Next.js app you could console log the theme in layout.tsx when you were implementing a tailwind.config.ts: import resolveConfig from 'tailwindcss/resolveConfig'; import ...
GʀᴜᴍᴘʏCᴀᴛ's user avatar
1 vote
1 answer
3k views

So the time has come to update my boilerplate to Tailwind 4, and I can't work out how to transfer my custom variant setup. In my Tailwind 3 tailwind.config.js I have this: plugins: [ plugin(...
Mike Harrison's user avatar
0 votes
2 answers
30 views

<Image src={"/insta.png"} alt="Instagram" width={24} height={24} className=" cursor-pointer 2xl:h-8 2xl:w-8 md:h-6 md:w-6 sm:h-4 sm:w-4 " /> ...
Moosa Haroon's user avatar
1 vote
2 answers
4k views

I'm working on setting up Tailwind CSS in an ASP.NET Core MVC project, and previously, with Tailwind v3, the process involved initializing a tailwind.config.js file and specifying the CSS output ...
Furqan's user avatar
  • 1
2 votes
1 answer
822 views

I've created a project using Vite + React, also installed latest version of TailwindCSS. But daisyui is not working, even if I apply themes it is not working. output image is attached, whereas having ...
nidhishree rao's user avatar
0 votes
1 answer
692 views

I’m working on a project using Vite and React to build a widget that users can integrate into their websites. I’m using Tailwind CSS for styling and injecting the styles into the DOM using the vite-...
YOUNESS HASSOUNE's user avatar
1 vote
1 answer
341 views

According to v4 docs, to override existing or define new spacing (which includes margin, padding, min-w/h, etc.) you use theme namespace: --spacing-* So let's say I would like to define mx-max to ...
starter_dev's user avatar
1 vote
2 answers
55 views

I have achieved the following with [mask-image:linear-gradient(to_right,transparent_0%,#000_1%)]: But I have no idea how to do the same for the right side. I have tried many different things but no ...
Ash's user avatar
  • 928