1,092 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-1
votes
0
answers
104
views
Stylelint extension not validating Tailwind CSS @apply directives in VS Code [closed]
I am using Tailwind CSS with PostCSS and trying to configure the Stylelint VS Code extension to validate my CSS files.
Despite having stylelint-config-tailwindcss installed and configured, the linter ...
1
vote
1
answer
88
views
Is it possible to set up a gulp-based build to compile css modules for react components
I have an existing Express project where I'd like to add css modules locally scoped to my react components. The project relies on a gulp build script. I have recently added react to the project to ...
1
vote
1
answer
158
views
@layer base is used but no matching @tailwind base directive is present
I'm having issue with tailwindcss 4. On fresh new project when I run the app the error occurs:
C:/Users/Maxima/Desktop/System_obslugi_praktyk/src/app.css:45:1: @layer base is used but no matching @...
0
votes
0
answers
69
views
PostCSS parent Selector is adding :is() pseudo after compilation and not producing compatible css
I have just migrated from SCSS to PostCSS and encountered only one issue I cannot resolve.
The issue concerns how to alter a the styles of a nested element when its parent has a specific class.
The ...
1
vote
0
answers
56
views
Bundle selected CSS files to a single output file
How to combine multiple CSS files into a single output file?
In SASS, this was done in a SCSS file by adding in other SCSS files via the @use method.
I have found that this can be done by adding in ...
2
votes
1
answer
387
views
Tailwind CSS not applying in Turborepo monorepo with shared tailwind-config package and UI component library and storybook
Description
I have a Turborepo monorepo set up with the following structure:
root/
├── apps/
│ ├── web/ # Next.js app
│ │ ├── src/
│ │ ├── package.json
│ │ ├── tailwind....
1
vote
1
answer
192
views
How can I build TailwindCSS from an HTML string?
How can I build TailwindCSS from an HTML string? I tried:
import postcss from 'postcss'
import tailwindcss from '@tailwindcss/postcss'
export async function buildTailwind(content, css = '') {
const ...
1
vote
0
answers
83
views
Tailwind v4 variables are not working in prod build but working in dev
//postcss.config.js
module.exports = {
plugins: {
'@tailwindcss/postcss': {},
},
}
//webpack.mix.js
mix.js('resources/js/app.js', 'public/js')
.react()
.postCss('resources/css/app.css', '...
2
votes
2
answers
218
views
Why is @apply underlined in my Tailwind CSS input file in VS Code?
I'm learning Tailwind CSS for the first time and trying to set up a global custom class using @apply. Even though everything seems to be working fine, the @apply line is underlined in my CSS file in ...
1
vote
2
answers
340
views
`backgroundImage` in tailwind.config.js not working after upgrade to TailwindCSS v4
I need help find the cause to why backgroundImage stopped working after I had to upgrade to tailwind v4. I initially had one linear background set in the config which worked fine until I upgraded to ...
2
votes
0
answers
105
views
Next.JS incorrect css ordering breaks cascade layers
I have a Next.js application where I try to use css layers to control the precedence.
The css is a mix of global css and third-party libraries (e.g. Mantine UI). Therefore, I have the following line ...
0
votes
2
answers
427
views
React + Vite + TailwindCSS application is not building
I was working on migration my application from CRA to Vite.
Project is using React, Tailwind, SCSS, TS and Vite.
After migration application works well with all Tailwind styles locally. It is also ...
0
votes
2
answers
267
views
Why @tailwind utilities; stopped working all of sudden?
Environment:
Next.js 15 (App Router)
Tailwind CSS 3.4.10
PostCSS 8
Sass 1.87.0
pnpm
HeroUI v2.7.8 (using @heroui/react)
What I’m seeing:
When I run pnpm dev, I get:
Parsing css source code failed
./...
0
votes
2
answers
744
views
"Cannot read properties of undefined (reading 'input')" error
I'm encountering a build error when running a simple setup using Parcel, Tailwind CSS, and PostCSS. When I run npm run start, I get the following error:
> [email protected] start
> parcel
🚨 Build ...
2
votes
1
answer
329
views
Make TailwindCSS V4 not ignore CSS files
ENVIRONMENT
Next.JS 15.3.2
TailwindCSS ^4.1.6
PostCSS ^8.5.3
@tailwindcss/postcss ^4.1.6
DESCRIPTION
Recently all my projects were done using TailwindCSS together with .module.css. Despite official ...