basecoat-css 0.2.2

Component-layer CSS source for basecoat-rs
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 48.15 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 336.69 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
  • klaus-moon/basecoat-rs
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • klaus-moon

basecoat-css

Component-layer CSS source for basecoat-rs, the Rust port of basecoat.

This crate ships the same basecoat.css that the upstream project distributes on npm. Use it inside a Tailwind v4 pipeline via @import, or call basecoat_css::write_to(path) from a build.rs to drop the file on disk.

Quick start

// build.rs
fn main() {
    let dest = std::path::Path::new("style/basecoat.css");
    basecoat_css::write_to(dest).unwrap();
    println!("cargo:rerun-if-changed=build.rs");
}
/* style/tailwind.css */
@import "tailwindcss";
@source "../src";
@import "./basecoat.css";

See the main README and INTEGRATION.md for the full integration story.

Substantial portions of basecoat-rs were authored with the help of large language models.