Skip to content

Commit

Permalink
fix: safelist (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlyall authored Jun 4, 2024
1 parent cbbb912 commit 2cd2943
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,16 @@ const plugin = withOptions(
}

return {
// TODO: Custom extraction logic so a magic comment can be used instead inside templates
safelist: [
"bg-gray-100",
{
pattern: /bg-+/,
pattern: /^bg-\w+-(50|500)$/,
},
{
pattern: /border-+/,
pattern: /^border-\w+-(600)$/,
},
{
pattern: /grid-cols-+/,
},
{
pattern: /text-+/,
pattern: /^text-\w+-(600|700)$/,
},
],
theme: {
Expand Down

0 comments on commit 2cd2943

Please sign in to comment.