Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

So the documentation suggests that if I want a manual toggle, I should write it like this: If you want your dark theme to be driven by a CSS selector instead of the prefers-color-scheme media query, ...
rozsazoltan's user avatar
  • 18.4k
1 vote
2 answers
53 views

There is a Vite project using TailwindCSS v4. v4 already targets Baseline 2023 and correctly uses oklch() colors. Input CSS @theme { --color-demo: oklch(98% 0.006 251deg); } Generated CSS with Vite ...
rozsazoltan's user avatar
  • 18.4k
0 votes
1 answer
26 views

With shorthand import, this is easy: @import "tailwindcss" source(none); Although the documentation addresses what happens if I don't use @import "tailwindcss";: https://...
rozsazoltan's user avatar
  • 18.4k
0 votes
2 answers
55 views

I'm trying to implement dark mode in my Next.js app using TailwindCSS. However, TailwindCSS's dark: classes are not being applied, even when the .dark class is present on the <html> tag. global....
Abhinav Shinde's user avatar
-1 votes
1 answer
67 views

I have a fairly large svelte kit tailwind project. I updated all dependencies to latest, including TailwindCSS. My current dependencies are as follows: { "devDependencies": { // ....
Justin's user avatar
  • 1,169
2 votes
1 answer
60 views

I'm using Vite v7.2.4, Tailwind v4.1.17 with DaisyUI v5.5.5. I'm trying to create a full page website where the Navbar will be always visible and the section will change. But every time I add a Navbar ...
Alan's user avatar
  • 23
1 vote
1 answer
88 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
-3 votes
1 answer
77 views

Given a monorepo containing N projects, I wanted to avoid duplicating components, so I thought of creating a dependency package that only ships the components. However, if I install TailwindCSS in ...
rozsazoltan's user avatar
  • 18.4k
2 votes
1 answer
126 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
-5 votes
0 answers
150 views

I installed shadcn/ui to my Next.js project with the "neutral" theme selected. Now I want to switch it to the "slate" theme for my entire project. What should I do? Do I just copy ...
helloworld142857's user avatar
0 votes
1 answer
113 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
1 vote
1 answer
96 views

I've a problem with the Nativewind variables. I created my project on the new version of expo (sdk 54) and therefore nativewind v4 but there is no more file tailwind.config.js to put variables, only ...
Raphaël Miroir'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.4k
0 votes
1 answer
69 views

I have created a site using React with TailwindCSS v4.1.16. When running the site in dev mode (npm run dev), the responsive design is working and I can see the changing formats when I resize my screen ...
myers96's user avatar
1 vote
1 answer
91 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
1 vote
2 answers
127 views

I am working on migrating a code base from Styled Components to Tailwind v4. To avoid introducing breaking changes to our design, I want to continue using the same media breakpoints and media queries, ...
Paul Razvan Berg's user avatar
3 votes
2 answers
241 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
1 vote
1 answer
142 views

I'm creating a "component" package that uses Tailwind utilities. For example, inside the package, I declare components like Button (./components/Button.tsx) and Input (./components/Input.tsx)...
rozsazoltan's user avatar
  • 18.4k
0 votes
1 answer
159 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
256 views

I'm using TailwindCSS v4.0.x, and @source inline safelist doesn't work with either the CLI, PostCSS, or even the Vite plugin: https://tailwindcss.com/docs/detecting-classes-in-source-files#...
rozsazoltan's user avatar
  • 18.4k
0 votes
1 answer
62 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.4k
1 vote
1 answer
214 views

I'm looking for a canonical answer for Tailwind CSS v3 with the finalized JIT engine, which can no longer be modified in v4. I'd like to reference colors using a CSS variable and use a syntax like ...
rozsazoltan's user avatar
  • 18.4k
1 vote
1 answer
170 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
4 votes
3 answers
691 views

I've recently created a new Angular application (v20.3.0) and I installed TailwindCSS v4, using the Angular documentation guideline which is very simple to do (also TailwindCSS in its documentation ...
Karim Garali's user avatar
1 vote
1 answer
65 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
2 answers
243 views

I’m trying to build a grid layout with Tailwind CSS (v4.1) where: There is a gap between items (e.g., gap-10) But the border linesshould continue across the entire container(like graph paper) The ...
DevWebTk's user avatar
  • 425
3 votes
1 answer
245 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
4 votes
4 answers
183 views

I’m working on a grid layout using Tailwind CSS (v4.1). Visit this play snippet https://play.tailwindcss.com/cAvvS656Ts Here’s a minimal example: <script src="https://unpkg.com/@tailwindcss/browser@...
DevWebTk's user avatar
  • 425
3 votes
1 answer
226 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
2 votes
1 answer
103 views

In my tailwind V3 config, I have this: const matchGroup = (groupName, selector, matchVariant) => { matchVariant( groupName, (_value, { modifier }) => { if (modifier) { ...
Sassa's user avatar
  • 2,065
0 votes
2 answers
162 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
0 votes
0 answers
25 views

I have just setup the next js project with typescript and tailwind. i wanted to apply the theme and got to know that, now on words tailwind v4, we will not have tailwind.config.ts file. **but ...
Brijal Kansara's user avatar
2 votes
1 answer
123 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
1 vote
2 answers
504 views

In TailwindCSS v3, the overrides still worked well, but from TailwindCSS v4 onward, it simply doesn't work, and Ant Design v5 always ends up being stronger. It seems this has to do with layers. How ...
rozsazoltan's user avatar
  • 18.4k
0 votes
0 answers
64 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
146 views

I’m building a simple dark mode toggle using Tailwind CSS v4.1. The dark mode switching itself works fine, but the transition effect doesn’t apply — the colors switch instantly instead of fading ...
DevWebTk's user avatar
  • 425
2 votes
1 answer
219 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
71 views

I have two columns, one with infinite scroll and one with a variable height. Both columns are taller than the screen. Like this: |-----------|-------| <- screen starts here | col 1 | col 2 | | ...
Angelo Orate's user avatar
1 vote
1 answer
210 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
2 votes
1 answer
385 views

I'm using Tailwind CSS v4.1 with the Tailwind CLI compiler (no tailwind.config.js support in this version). I want to understand the proper way to write nested classes (similar to SCSS nesting or @...
DevWebTk's user avatar
  • 425
1 vote
1 answer
442 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
104 views

After updating from Tailwind v3 to v4, some Tailwind layer classes are added twice causing unwanted overrides, for example when I inspect element's computed styles in Chrome: The redundant .text-...
van_folmert's user avatar
  • 4,609
0 votes
1 answer
293 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
1 vote
2 answers
218 views

I am trying to deploy an Astro.js site on Vercel that utilizes TailwindCSS v4: tailwind.config.js /** @type {import('tailwindcss').Config} */ export default { purge: ["./src/pages/**/*.{js,ts,...
cr33d's user avatar
  • 23
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.4k
3 votes
2 answers
3k views

Since Tailwind v4 update, all @apply directives have ceased to function. The docs provide a workaround with @reference but the posted example is vague. I tried this but it doesn't work: <style lang=...
van_folmert's user avatar
  • 4,609
0 votes
1 answer
40 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.4k
1 vote
1 answer
157 views

I've copied directly from the document, but the color is still not showing up. I'm using Tailwind v4 with Next.js. In my global.css: @import "tailwindcss"; @theme { --color-bermuda: #...
Chris Nalusaku's user avatar
3 votes
1 answer
340 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.4k
0 votes
1 answer
95 views

I’m using Nuxt 4 (RC) with Tailwind CSS. Tailwind is working fine for default utilities (bg-red-500, text-xl, etc.), but my custom bg-primary color isn’t applied. Here’s my setup: nuxt.config.ts ...
Pandidurai's user avatar

1
2 3 4 5 6