Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 446 Bytes

variants.md

File metadata and controls

25 lines (17 loc) · 446 Bytes

@variants

Allows tailwind to create variants for your custom classes.

These should be put inside a tailwind layer like utilities or components, but it's not mandatory.

These variants are generated in the order you list them.

@parameter: $names

Usage

@include variants($names);

Example

@inlcude variants("responsive, hover, focus") {
  .my-class {
    color: red;
  }
}