rakutentech/r10/2.1.1

NOTE: the latest version is 7.0.0

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/rakutentech/r10 exists but has no tag 2.1.1; Software Heritage not asked yet (this run's --swh-calls were used up); no fork with tag 2.1.1 found (60 same-name repos checked); no cached copy. Use another version.

Details

R10.Theme

This is how we store information about the primary color used and if the site is in light or dark mode.

Most of the application use only one primary color but some are configurable and can be used with different colors.

type alias Theme =
{ mode : Mode
, primaryColor : Color
}
fromFlags : { a | mode : Mode, primaryColor : Color } -> Theme

Usually mode and primaryColor are stored in the flags. Use this helper to create a Theme from flags.