grimoire_css 1.8.1

A magical CSS engine for all environments
Documentation
//! The `core` module contains the essential building blocks of the Grimoire CSS system.
//!
//! This module defines the core structures and logic required to build and optimize CSS.
//! It includes utilities for parsing, generating, and managing CSS, as well as error handling
//! and configuration management. The public submodules provide the necessary components
//! to work with the Grimoire CSS pipeline, from initial configuration to the final optimized output.

mod animations;
mod build_info;
mod css_generator;
mod file_tracker;
mod filesystem;

pub mod compiled_css;
pub mod component;
pub mod config;
pub mod css_builder;
pub mod css_optimizer;
pub mod grimoire_css_error;
pub mod parser;
pub mod source_file;
pub mod spell;
pub mod spell_value_validator;

pub use compiled_css::*;
pub use config::*;
pub use css_builder::*;
pub use css_optimizer::*;
pub use filesystem::*;
pub use grimoire_css_error::*;
pub use source_file::*;
// Exception: This external dependency was part of the Grimoire CSS and is now included as a separate crate, but should still be part of the main module and available for use.
pub use grimoire_css_color_toolkit_lib::*;

#[cfg(feature = "lsp")]
pub fn list_builtin_animation_names() -> Vec<String> {
    let mut names: Vec<String> = animations::ANIMATIONS.keys().cloned().collect();
    names.sort();
    names
}

#[cfg(feature = "lsp")]
pub fn get_builtin_animation_css(name: &str) -> Option<String> {
    animations::ANIMATIONS.get(name).cloned()
}

#[cfg(feature = "lsp")]
pub fn list_spell_color_functions() -> Vec<(&'static str, &'static str)> {
    css_generator::color_functions::list_spell_color_functions()
}