OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
ui.theme.style_sheet Namespace Reference

Load the deliberately small CSS vocabulary used by OpenRoadCode themes. More...

Classes

class  StyleSheet
 Parsed CSS declarations indexed by simple selector. More...
 

Functions

StyleSheet load_style_sheet (str|Path path)
 Parse a theme CSS file and resolve CSS custom-property references.
 
UiTheme load_ui_theme (str|Path path)
 Load the semantic :root palette from an ORC theme stylesheet.
 
 load_theme_bundle (str|Path path)
 Load one stylesheet and its resolved semantic UI theme.
 
str _resolve_variables (str value, dict[str, str] variables)
 Resolve the simple var(–name) references supported by ORC themes.
 

Detailed Description

Load the deliberately small CSS vocabulary used by OpenRoadCode themes.