Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
68 views

I'm working on a Next.js 16 project and trying to set up Tailwind CSS v4. I installed Tailwind via npm: npm install -D tailwindcss postcss autoprefixer I also created the following config files ...
trabelsi wejden's user avatar
2 votes
1 answer
89 views

I have trouble on implementing TailwindCSS v4 on Deno. This is my structure: deno.json { "tasks": { "dev": "deno run -A --watch main.ts", "vite": &...
トロイ's user avatar
0 votes
1 answer
94 views

The TailwindCSS website currently doesn't have any guidance related to Bun, so it's difficult for me to figure out how to properly integrate v4 with Bun SSR. I found a bun-plugin-tailwind dependency ...
Gabriel Rubio's user avatar
0 votes
1 answer
26 views

I have a project where I'm trying to remove the previously used @tailwindcss/typography plugin. I assumed that the max-w-prose utility was tied to the prose utility from that plugin, but after ...
rozsazoltan's user avatar
  • 18.2k
1 vote
1 answer
86 views

This is my global.css @import "tailwindcss"; @layer base { :root { --background: 0 0% 100%; --foreground: 222.2 84% 4.9%; --card: 0 0% 100%; --card-foreground: 222.2 84% 4....
MikiBelavista's user avatar
3 votes
2 answers
218 views

I'm using ShadCN UI, Radix UI with TailwindCSS v4. I noticed that Tailwind classes don't work unless I add !important. For example: <section className="bg-gray-100 !px-15 !pt-15 !pb-20 rounded-...
PerfDev.'s user avatar
  • 118
0 votes
1 answer
129 views

I'm working on a Vue 3 monorepo with the following structure: packages/ └── ui/ ├── src/ │ ├── components/ │ │ └── *.vue │ └── assets/ │ └── tailwind.css └── ...
Amin's user avatar
  • 397
0 votes
1 answer
60 views

From TailwindCSS v4, you can manually control automatic source detection using @source. If I now want to map the internal files of a custom UI package so that they are included in the generated CSS, I ...
rozsazoltan's user avatar
  • 18.2k
1 vote
1 answer
154 views

I’m building a personal blog with Astro + Tailwind CSS and I successfully implemented a dark/light theme toggle. After that, I wanted to add smooth transition animations between themes. To avoid ...
Leo204_LKY's user avatar
1 vote
1 answer
64 views

I have a div with a background image and it's opacity is set to 40%. This is TailwindCSS v4. <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> <div class="...
Jim's user avatar
  • 63
3 votes
1 answer
234 views

I have a local setup of Tailwind v4.1 the below header occupies the whole screen on mobile viewports, with container queries <div id="app" class="@container"> <div ...
Damian's user avatar
  • 304
3 votes
1 answer
167 views

I'm using Angular v20 and Tailwind CSS v4. I have everything set up as per the documentation. Tailwind works great — for instance, if I define an element's class with a Tailwind utility class, the ...
Bruno Miguel's user avatar
  • 1,145
0 votes
2 answers
152 views

In addition to registering simple utilities with the @utility directive, you can also register functional utilities that accept an argument: CSS @utility tab-* { tab-size: --value(--tab-size-*); } ...
melissa chow's user avatar
2 votes
1 answer
116 views

I’m working on a responsive grid layout using Tailwind CSS and want to style grid items differently based on the screen size. Here’s a simplified example of my code: <html lang="en"> <head&...
DevWebTk's user avatar
  • 425
0 votes
0 answers
63 views

I am new to setting up a monorepo solution as I've only worked with a regular next app in the past. For my current project, I have 2 deliverables and I am trying to share resources and components ...
Matthew's user avatar
  • 4,066
2 votes
1 answer
184 views

I'm trying to use custom spacing variables from my Tailwind theme inside a calc() expression, but it doesn’t seem to work. In my input.css, I added custom spacing like this: @theme { --spacing-my-...
DevWebTk's user avatar
  • 425
1 vote
1 answer
196 views

I would like to overwrite some of DaisyUI components using CSS. For example, I would like to overwrite the .input font-size. Inside my components.css file I put the CSS styles but they are add first ...
hubvill's user avatar
  • 275
1 vote
1 answer
419 views

I wanted to use Tailwind and SCSS on my Nuxt site, but I noticed that the only way to make it work is if the file where I put @import is a CSS file; it doesn't work in an SCSS file. I don't understand ...
Michele Bianchi's user avatar
0 votes
1 answer
267 views

I’m creating a reusable component library with tsup to share common UI elements across my Next.js projects (for example, a Footer). The Footer works fine in my base app. But when I publish it as an ...
Muhammad Sikandar Subhani's user avatar
0 votes
1 answer
74 views

In a TailwindCSS variant - purely out of curiosity, since its usefulness is limited - I want to declare a dark: variant that works inside .dark, but gets overridden when inside a .light parent, and ...
rozsazoltan's user avatar
  • 18.2k
0 votes
1 answer
39 views

If I reference variables in CSS in a nested way using the var() CSS function, it cannot properly track changes to the original variable. Is there a way in TailwindCSS to reference a value declared in @...
rozsazoltan's user avatar
  • 18.2k
3 votes
1 answer
320 views

Using light-dark() would be appealing to me, but it is part of the 2024 baseline and somewhat raises the minimum browser version requirement set by TailwindCSS v4 - which is already high - originally ...
rozsazoltan's user avatar
  • 18.2k
-3 votes
2 answers
2k views

I was trying to get tailwindcss to work in my nuxt 4 application. There is no proper documentation for the same. After wasting 4 hours of my life asking chat GPT which did not help I finally got the ...
Raj's user avatar
  • 495
0 votes
3 answers
301 views

I am working on a Laravel project with Vite, TailwindCSS, and DaisyUI. I want to apply the "corporate" theme globally, but all DaisyUI components still appear with the default theme styling. ...
Muhammad Sameed's user avatar
1 vote
1 answer
338 views

I'm currently building a custom component library (similar to DaisyUI) using Tailwind CSS v4. I'm defining custom utility classes such as .badge, .badge-success, .badge-error, etc., through a plugin ...
Trung Vu's user avatar

1
2 3 4 5 6