xeerpe/css
The style of a Builder as CSS, for any framework or for plain DOM code.
In Lustre: attribute.styles(css.properties(builder)).
Values
pub fn add_keyframes() -> Nil
pub fn inline(b: xeerpe.Builder) -> String
The properties as the text of a style attribute: "name:value;name:value".
pub const keyframes: String
xeerpe’s animations.css, kept as a string so no bundler has to import CSS.
For a server-rendered page, put it in a <style>.
pub fn properties(b: xeerpe.Builder) -> List(#(String, String))
The CSS properties of a builder as #(name, value) pairs, with CSS names
(background-image). If the background animates, the keyframes it needs are
added to the page once.
pub fn text_properties(
b: xeerpe.Builder,
) -> List(#(String, String))
Same for a gradient text fill (toTextStyle()).