Skip to content

Commit

Permalink
chore: exclude tailwind css variables from docs
Browse files Browse the repository at this point in the history
  • Loading branch information
egoist committed Mar 31, 2021
1 parent 0c99b0b commit 95964cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,11 @@ function getAllCSSVariableNames(styleSheets = document.styleSheets) {
for (var k = 0; k < styleSheets[i].cssRules[j].style.length; k++) {
let name = styleSheets[i].cssRules[j].style[k]
// test name for css variable signature and uniqueness
if (name.startsWith('--') && cssVars.indexOf(name) == -1) {
if (
name.startsWith('--') &&
cssVars.indexOf(name) == -1 &&
!name.startsWith('--tw-')
) {
cssVars.push(name)
}
}
Expand Down

1 comment on commit 95964cf

@vercel
Copy link

@vercel vercel bot commented on 95964cf Mar 31, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.