(answer->color {:keys [children] :as field} answers)
Given a field and set of answers, return a mapping of answer to color defaulting to an inbuilt palette if the field is not a select-one or any of the choices lack an appearance attribute
Given a field and set of answers, return a mapping of answer to color defaulting to an inbuilt palette if the field is not a select-one or any of the choices lack an appearance attribute
(customizable-style? [style-name _])
Check if a user can customize a style
Check if a user can customize a style
(field->colors field)
Return the appropriate set of colors given the field. For a select_one, returns a mapping of answer to color. Returns a string for all other field types
Return the appropriate set of colors given the field. For a select_one, returns a mapping of answer to color. Returns a string for all other field types
(get-css-rule-map appearance-attribute)
Return a map of a form field answer name to CSS rules
Return a map of a form field answer name to CSS rules
(group-user-defined-colors-by-answer field)
Return a map of answers to their associated colors
Return a map of answers to their associated colors
(group-user-defined-styles-by-answer {:keys [children]})
Return a map of answer to associated CSS rules
Return a map of answer to associated CSS rules
Saturated qualitative palette from colorbrewer. Saturated red+brown disabled due to clash with the :clicked color.
Saturated qualitative palette from colorbrewer. Saturated red+brown disabled due to clash with the :clicked color.
Color palette of YlGnBl from colorbrewer.
Color palette of YlGnBl from colorbrewer.
Set of CSS properties that can be modified by a user
Set of CSS properties that can be modified by a user
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close