Skip to main content

islands_css/
lib.rs

1pub mod merger;
2pub mod variants;
3
4// Re-export paste under the hidden name the variants! macro references.
5// Callers invoke `islands_css::variants! { ... }` and the expansion uses
6// `$crate::__paste!` — this re-export satisfies that path.
7#[doc(hidden)]
8pub use paste::paste as __paste;
9
10/// Merge Tailwind class strings, with later classes winning on conflicts.
11///
12/// Backed by `tailwind_fuse` (v4 class-set aware). If v4 coverage proves
13/// incomplete during Phase F, swap `merger::merge` for a hand-rolled
14/// `phf::Map`-based conflict-group lookup without changing this public API.
15pub fn cn(parts: &[&str]) -> String {
16    merger::merge(parts)
17}