getludic/ludic

Themes: Document theme utilities

Opened this issue · 0 comments

Motivation

It is possible to do the following:

  • theme.sizes.xl * 0.8
  • theme.colors.primary.darken(2)
  • etc.

It is also possible to define multiple kinds of color schemes:

  • Color("fff") or ColorRange(["#276662", "#4ecdc4", "#dbf5f3"])
  • Size(1, "em) or SizeClamp(2, 1.5, 3.3)

Both is not documented anywhere.