We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
css_unused_selector
@apply
<style>
In the beta docs, you are guided to import the theme file only:
theme
<template> <h1>Hello world!</h1> </template> <style> @import "../../my-theme.css" theme(reference); h1 { @apply font-bold text-2xl text-red-500; } </style>
However in a recent GitHub comment, Adam suggests importing the global app.css file instead:
app.css
If you do use <style> blocks, make sure to import your global styles as reference if you want features like @apply to work as expected:
<template> <button><slot /></button> </template> <style scoped> @import "../app.css" reference; button { @apply bg-blue-500; } </style>
This causes multiple 'Unused CSS selector' errors:
Unused CSS selector "html" Unused CSS selector "body" Unused CSS selector "hr" Unused CSS selector "abbr:where([title])" Unused CSS selector "h1" Unused CSS selector "h2" Unused CSS selector "h3" Unused CSS selector "h4" Unused CSS selector "h5" Unused CSS selector "h6" Unused CSS selector "b" Unused CSS selector "strong" Unused CSS selector "code" Unused CSS selector "kbd" Unused CSS selector "samp" Unused CSS selector "pre" Unused CSS selector "small" Unused CSS selector "sub" Unused CSS selector "sup" Unused CSS selector "sub" Unused CSS selector "sup" Unused CSS selector "table" Unused CSS selector "progress" Unused CSS selector "summary" Unused CSS selector "ol" Unused CSS selector "ul" Unused CSS selector "menu" Unused CSS selector "img" Unused CSS selector "svg" Unused CSS selector "video" Unused CSS selector "canvas" Unused CSS selector "audio" Unused CSS selector "iframe" Unused CSS selector "embed" Unused CSS selector "object" Unused CSS selector "img" Unused CSS selector "video" Unused CSS selector "button" Unused CSS selector "input" Unused CSS selector "select" Unused CSS selector "optgroup" Unused CSS selector "textarea"
Disable 'Unused CSS selector' warnings on @import reference statements:
@import
@import 'app.css' reference; @import 'app.css' theme(reference);
This is all I can think of as of now.
would make my life easier
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the problem
In the beta docs, you are guided to import the
theme
file only:However in a recent GitHub comment, Adam suggests importing the global
app.css
file instead:This causes multiple 'Unused CSS selector' errors:
Describe the proposed solution
Disable 'Unused CSS selector' warnings on
@import
reference statements:This is all I can think of as of now.
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: