Skip to content

Tailwind 4 @rule Support #39

Open
@stevedya

Description

@stevedya

Tailwind CSS v4 introduces additional custom @ rules used for theming and plugin development. We should update our Stylelint configuration to ignore these rules so they don’t trigger linting errors.

Proposed Change

rules: {
  'scss/at-rule-no-unknown': [
    true,
    {
      ignoreAtRules: [
        'layer',
        'config',
        'theme',
        'custom-variant',
        'plugin',
        'source',
        'variant',
        'utility',
        'reference',
      ],
    },
  ],
}

These rules are valid in the context of Tailwind 4 and are required for our theme system to compile without Stylelint throwing errors. Ignoring them will align our linting setup with Tailwind’s latest features.

More information: Functions and directives

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions