CSS functions?
See original GitHub issueFirst, this is a great plugin, and a great project, thanks.
Is your feature request related to a problem? Please describe.
It’s great to have everything in the html: <div class="dark:bg-blue-100"></div>
.
Describe the solution you’d like
But what would be even better would be to have something that can be used in CSS like the @screen
directive:
input {
@apply bg-gray-300;
}
input:focus {
@apply bg-white;
}
@theme dark {
input {
@apply bg-gray-800;
}
input:focus {
@apply bg-gray-500;
}
}
Describe alternatives you’ve considered A clear and concise description of any alternative solutions or features you’ve considered.
Additional context Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:5 (2 by maintainers)
Top Results From Across the Web
A Complete Guide to CSS Functions
Like any other programming language, CSS has functions. They can be inserted where you'd place a value, or in some cases, accompanying another ......
Read more >CSS Functional Notation - CSS: Cascading Style Sheets | MDN
CSS functional notation is a type of CSS value that can represent more complex data types or invoke special data processing or calculations....
Read more >CSS Functions - Quackit Tutorials
CSS functions are used as a value for various CSS properties. For example, you can use the rgb() function to provide a color...
Read more >Functions - web.dev
CSS has a range of inbuilt functions. In this module you will find out about some of the key functions, and how to...
Read more >CSS Functions Complete Reference - GeeksforGeeks
HTML ; CSS attr() Function, The attr() function is an inbuilt function in CSS that returns the value of an attribute of the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Added to the docs. Thanks!
I think it’s a good idea to mention that it needs nesting support.
If users don’t want to use nesting, they can do something like: