Use the "c", "clr", "rgb" or "rgba" methods to create a color. For example:

def css = GrooCSS.process {
    def sea = c('5512ab') //OR rgb(85, 18, 171)
    _.sea {
        color darken(sea)
        background sea.brighter()
        border "5px solid ${sea.alpha(0.5)}"

See the javadoc for all available methods.

You can also use named colors: {
    color darkBlue
    background aliceBlue

Image Methods

Index | Next

Last updated: 31 July 2019