Module

Hylograph.Components.Theme

Package
purescript-hylograph-components
Repository
afcondon/purescript-hylograph-components

Shared visual theme for every component in this library.

A Theme is a plain record so it can be edited field-by-field in a form surface like Atelier. defaultTheme follows a Swiss / International Typographic aesthetic: restrained palette, sans-serif, clean grid. A component can shrug and accept defaultTheme; a caller with house style passes its own.

#Theme Source

type Theme = { axisColor :: String, axisFontSize :: Number, axisTextColor :: String, background :: String, categoricalPalette :: Array String, dimmedOpacity :: Number, fontFamily :: String, hoverStrokeColor :: String, hoverStrokeWidth :: Number, markFill :: String, markStroke :: String, markStrokeWidth :: Number, strokeStrong :: String }

#defaultTheme Source