Expand description
Utility Functions for CSS Generation
This module provides utility functions for CSS generation, including helper functions and common operations.
Functions§
- create_
css_ property - Create a CSS property with optional important flag
- create_
important_ property - Create CSS property with important flag
- create_
media_ query - Create a media query
- create_
multiple_ properties - Create multiple CSS properties for a single value
- create_
normal_ property - Create CSS property without important flag
- create_
responsive_ selector - Create a responsive selector
- create_
selector - Create a CSS rule selector
- extract_
numeric_ value - Extract numeric value from class string
- hex_
to_ rgba - Convert hex color to RGBA with opacity
- is_
valid_ color - Check if a value is a valid CSS color
- is_
valid_ length - Check if a value is a valid CSS length
- matches_
pattern - Check if a class matches a pattern
- merge_
properties - Merge CSS properties
- normalize_
property_ name - Normalize CSS property name
- normalize_
property_ value - Normalize CSS property value
- numeric_
to_ css_ unit - Convert numeric value to CSS unit
- parse_
opacity_ from_ class - Parse opacity from class string (e.g., “bg-blue-500/50”)
- percentage_
to_ css - Convert percentage to CSS
- pixel_
to_ css - Convert pixel value to CSS
- remove_
opacity_ suffix - Remove opacity suffix from class string
- sort_
properties - Sort CSS properties by name
- spacing_
to_ css - Convert spacing value to CSS
- validate_
css_ property - Validate CSS property
- viewport_
to_ css - Convert viewport unit to CSS