-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed: Add postcss message when color function contains a var() (#36)
Custom properties cannot be resolved by `css-color-function`. This change skips color functions that contain `var(` and adds a message to the postcss `result.messages` with type 'skipped-color-function-with-custom-property'.
- Loading branch information
1 parent
453acee
commit c232861
Showing
4 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
body { | ||
color: color(var(--red)); | ||
color: color(var(--red) tint(50%)); | ||
color: color(var(--red) tint(var(--tintPercent))); | ||
color: color(rgb(255, 0, 0) tint(var(--tintPercent))); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
body { | ||
color: color(var(--red)); | ||
color: color(var(--red) tint(50%)); | ||
color: color(var(--red) tint(var(--tintPercent))); | ||
color: color(rgb(255, 0, 0) tint(var(--tintPercent))); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters