fabiommendes / elm-daisy-ui / Daisy.Color

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


type Color
    = Role Daisy.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 -> Html.Attribute msg

Set background color

color : Color -> Html.Attribute msg

Set text and background color

inverted : Color -> Html.Attribute msg

Set text and background, inverting roles

text : Color -> Html.Attribute msg

Set text color

Transforming colors

focused : Color -> Color

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