sketch/css

This module has no vocation to be used programmatically currently. Any PR to add programmatic support would be helpful!

In case you’re looking to use it programmatically, heads up to generate_stylesheets, that should work as expected!

Functions

pub fn generate_stylesheets(
  src src: String,
  dst dst: String,
  interface src_interfaces: String,
) -> Result(Nil, Error)

Generate stylesheets from Gleam style definitions files. Recursively extract all files ending with _styles.gleam, _css.gleam or _sketch.gleam to proper stylesheets, and output some files interfaces to interact with them.

src should be a relative path containing the source files. dst should be a relative path where to output CSS files. interface should be a relative path where to output Gleam files.

pub fn main() -> Nil
Search Document