Comments (3)
Its a good question and the Tailwind community still wonders about how to best go about it, but the intention of Tailwind utility classes are to keep them global and not scoped - it destroys one of the purposes of Tailwind.
https://tailwindcss.com/docs/functions-and-directives#using-apply-with-per-component-css
The above link talks about it a bit so it should be understandable.
from tailwindcss.
That's not what I meant. After further testing the issue is not related to this module, but nuxt itself
from tailwindcss.
That's not what I meant. After further testing the issue is not related to this module, but nuxt itself
I wouldn't call it an issue for Nuxt either. Nuxt/Vite would preprocess whatever you do with PostCSS, it's just Tailwind isn't designed for that as far as I know. If you're aware of any mechanisms that help you with this in alternative frameworks, feel free to link so we can brainstorm on what may be possible for this scenario in Nuxt.
from tailwindcss.
Related Issues (20)
- Nuxt's import protection triggers HOT 5
- How to cancel the styles of h1~h6 and prohibit modification? HOT 1
- W3C Validation Failed - Unsolvable CSS validation errors for variables HOT 5
- Problem differentiating focus state from focus-visible. HOT 1
- Module breaks CSS HMR when an arbitrary value class with whitespace is used HOT 1
- Add "file:" style support HOT 4
- npm install --omit=dev FAILS HOT 2
- Tailwind V4.0 HOT 4
- Use webstorm without any code prompt HOT 3
- How to override default tailwind.css? HOT 4
- Attributify mode HOT 1
- `tw` autocomplete utility regex improvements HOT 1
- call `tailwindcss:config` hook after all modules are initialised HOT 1
- How to encrypt tailwind classes? HOT 1
- Tailwind Config must be restarted HOT 1
- npx tailwindcss init reports an error when running, the error message is: sh: tailwind: command not found
- Remove polyfill for Custom Properties
- Safelist causing build failures HOT 12
- [Docs] Move examples to the repository HOT 1
- [DX] Expose `defineConfig` utility
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tailwindcss.