tailwind-rs-core 0.15.4

Core types and utilities for tailwind-rs
Documentation
//! CSS Generator Module
//!
//! This module provides the main CSS generation interface,
//! orchestrating the various parser modules to generate CSS.
//!
//! ## Example
//!
//! ```rust
//! use tailwind_rs_core::CssGenerator;
//!
//! // Create a CSS generator
//! let mut generator = CssGenerator::new();
//!
//! // Add classes (returns Result<()>)
//! generator.add_class("bg-blue-500").unwrap();
//! generator.add_class("text-white").unwrap();
//! generator.add_class("hover:bg-blue-600").unwrap();
//!
//! // Generate CSS
//! let css = generator.generate_css();
//! // Returns actual CSS with properties like:
//! // .bg-blue-500 { background-color: #3b82f6; }
//! // .text-white { color: #ffffff; }
//! // .hover\:bg-blue-600:hover { background-color: #2563eb; }
//! ```

pub mod types;
pub mod generator;
pub mod generator_builders;
pub mod generator_operations;
pub mod generator_parsers;
pub mod core_parsers;
pub mod layout_parsers;
pub mod flexbox_parsers;
pub mod grid_parsers;
pub mod css_output;
pub mod core;
pub mod variants;
pub mod utils;
pub mod parsers;

// Re-export main types and functionality
pub use types::{CssRule, CssProperty, CssGenerationConfig};
pub use generator::CssGenerator;
pub use css_output::CssOutputGenerator;
pub use variants::VariantParser;
pub use parsers::*;