![Build Status](https://github.com/YannikSc/unstyled/actions/workflows/rust.yml/badge.svg) [![crates.io](https://img.shields.io/crates/v/unstyled)](https://crates.io/crates/unstyled) # Unstyled Another library that provide scoped CSS styling in Rust. This library is made with [leptos](https://github.com/leptos-rs/leptos) primarily in mind, but there should be no reason why it would not work with other frameworks like [yew](https://github.com/yewstack/yew). ## Features - Scoped css styling - Supporting all (that I could think of) css selector types - Basic linting of css - Unterminated quotes - Missing value for property - Invalid characters in property name - Emoji support included as of [the spec](https://www.w3.org/TR/CSS22/syndata.html#value-def-identifier) - Missing semicolon; ## Installation ``` $ cargo add unstyled ``` ## Usage with leptos ```rust use leptos::*; #[component] pub fn MyUnstyledComponent(cx: Scope) -> impl IntoView { let class_name = unstyled::style! {" @keyframes rainbow-text { 0% { color: hsl(0deg 100% 50%); } 33% { color: hsl(120deg 100% 50%); } 66% { color: hsl(240deg 100% 50%); } 100% { color: hsl(360deg 100% 50%); } } .title { animation: rainbow-text infinite 1s; } "}; view! {cx, class = class_name,