Skip to content

Commit

Permalink
Add support for relative color syntax (#2112)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Oct 10, 2023
1 parent 2eef6a2 commit 5ea5ab0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/functions/color.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,10 @@ Value _parseChannels(String functionName, Value input,
case []:
throw SassScriptException('Color component list may not be empty.', name);

case [SassString(:var text, hasQuotes: false), ...]
when text.toLowerCase() == "from":
return _functionString(functionName, [input]);

case _ when components.isVar:
channels = [components];

Expand Down

0 comments on commit 5ea5ab0

Please sign in to comment.