1) write {{ color_alpha('rgb(0,0,0)', 50) }}
result
An exception has been thrown during the rendering of a template ("Undefined offset: 3").
2) write {{ color_alpha('rgba(0,0,0,0.1)', 50) }} or {{ color_red('rgba(0,0,0,0.1)', 50) }}
result
An exception has been thrown during the rendering of a template ("Undefined offset: 4").
Twig Color Tools
A collection of Twig functions for working with colors
← Back to Twig Color Tools Support
1-3 of 3