Skip to content
New issue

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

Add theme-clean Tailwind variant to local config #5292

Merged
merged 1 commit into from Mar 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions tailwind.config.mjs
Expand Up @@ -214,6 +214,11 @@ export default {
// class to the sidebar frame when it's collapsed. This modifier allows
// sub-components to select for that state.
addVariant('sidebar-collapsed', '.sidebar-collapsed &');
// Add a custom variant such that the `theme-clean:` modifier is available
// for all tailwind utility classes. e.g. `.theme-clean:bg-white` would
// only apply (set the element's background color to white) if a parent
// element had the `.theme-clean` class.
addVariant('theme-clean', '.theme-clean &');
}),
plugin(({ addComponents, addUtilities }) => {
// Tailwind does not provide hyphens-related utility classes.
Expand Down