fabiommendes/elm-daisy-ui/1.0.0

Daisy.Color

A type-safe interpetation of DaisyUI colors (https://daisyui.com/docs/colors/)

type Color
= Role Role
| Base
| Base200
| Base300
| Focus Color
| Content Color

Represent colors in the DaisyUI color theme

name : Color -> String

Convert color to string

Classes

bg : Color -> Attribute msg

Set background color

color : Color -> Attribute msg

Set text and background color

inverted : Color -> Attribute msg

Set text and background, inverting roles

text : Color -> Attribute msg

Set text color

Transforming colors

Make a focused color from primary, secondary, Accent or Neutral roles