smelt-style 0.2.0

Frontend-neutral style primitives: Color, Style, Theme, HlGroup. Shared leaf consumed by document models and renderers.
Documentation
  • Coverage
  • 31.82%
    21 out of 66 items documented0 out of 33 items with examples
  • Size
  • Source code size: 17.84 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 652.8 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • leonardcser/smelt
    25 3 1
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • leonardcser

smelt-style

Frontend-neutral style primitives shared between document models and terminal renderers.

Provides:

  • style::Style, style::Color: foreground/background, attributes (bold, italic, underline, ...).
  • theme::Theme, theme::HlGroup: a small theme model with named highlight groups.

Designed as a "leaf" crate so multiple frontends (a terminal renderer, a buffer model, a Lua API) can speak the same style vocabulary without pulling in heavy dependencies.

Part of the smelt project but usable standalone.

License

MIT