#css #port #framework

tachyons

Rust port of the Tachyons CSS framework

2 releases

Uses old Rust 2015

0.1.1 Oct 11, 2018
0.1.0 Oct 11, 2018

#191 in #css

MIT/Apache

85KB

tachyons

crates.io version build status downloads docs.rs docs

Rust port of the Tachyons CSS framework.

Examples

Basic

extern crate html_index;
extern crate tachyons;

pub fn main() {
  let res = html_index::Builder::new()
    .raw_body(
      r#"<body class="measure white bg-black">
      hello world
    </body>"#,
    )
    .inline_style(tachyons::TACHYONS_DEFAULT)
    .inline_style(tachyons::TACHYONS)
    .build();
  println!("{}", res);
}

Installation

$ cargo add tachyons

Safety

This crate uses #![deny(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Contributing

Want to join us? Check out our "Contributing" guide and take a look at some of these issues:

References

None.

License

MIT OR Apache-2.0

No runtime deps