Skip to content
This repository has been archived by the owner on Feb 2, 2022. It is now read-only.

Commit

Permalink
Enable the 'apply complex classes' feature
Browse files Browse the repository at this point in the history
Enable the experimental feature to use `@apply` with complex classes
including interactive states. I tried this on the Rebuilding Symfony
demo project and it worked well.

This would mean that I could refactor some of my existing styles on this
project.

References #190
  • Loading branch information
opdavies committed Sep 16, 2020
1 parent b8b1766 commit 390c3ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/themes/custom/opdavies/tailwind.config.js
Expand Up @@ -93,5 +93,8 @@ module.exports = {
borderStyle: [...variants.borderStyle, 'hover', 'focus'],
borderWidth: [...variants.borderWidth, 'hover', 'focus'],
margin: [...variants.margin, 'first', 'last', 'odd', 'even'],
},
experimental: {
applyComplexClasses: true
}
}

0 comments on commit 390c3ba

Please sign in to comment.