Skip to content

Commit

Permalink
Remove @tailwind utility nodes with parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Oct 25, 2024
1 parent 822e053 commit 47be35a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/tailwindcss/src/ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ export function toCss(ast: AstNode[]) {

// Rule
if (node.kind === 'rule') {
if (node.selector === '@tailwind utilities') {
if (
node.selector === '@tailwind utilities' ||
node.selector.startsWith('@tailwind utilities ')
) {
for (let child of node.nodes) {
css += stringify(child, depth)
}
Expand Down

0 comments on commit 47be35a

Please sign in to comment.