Skip to content

Commit

Permalink
add set_alpha filter example
Browse files Browse the repository at this point in the history
  • Loading branch information
Davenchy committed Jul 26, 2024
1 parent 844b1c7 commit e7a33e4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion example/colors.whatever-extension
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,8 @@ source_color {{colors.source_color.default.hex}};

<* for name, value in colors *>
{{name | replace: "_", "-" }} {{value.default.hex}};
<* endfor *>
<* endfor *>

Only works with rgba and hsla
{{ colors.source_color.default.rgba | set_alpha 0.5 }}
Output: rgba(r, g, b, 0.5)

0 comments on commit e7a33e4

Please sign in to comment.