Source: factory.service/package.core/ObjServicePalette.py
Colour palette and SCSS compilation service.
Parses Bootstrap SCSS swatch files for colour
variables, stores them in def_colour_palette, and
compiles SCSS templates to minified CSS.
...
| Method | Signature | Description |
|---|---|---|
| parse_swatch | parse_swatch(swatch_dir: str, swatch_name: str) -> dict[str, str] |
Parse a Bootstrap SCSS swatch for colour vars. |
| parse_all_swatches | parse_all_swatches() -> int |
Parse all swatches in resource.style/factory.swatch/. |
| compile_scss | compile_scss() -> int |
Compile SCSS templates to minified CSS. |
| load_palette_map | load_palette_map() -> dict[str, str] |
Load the active palette and build the colour map. |
| process | process(context: dict) -> dict |
Workflow entry point for palette operations. |
| run_workflow_direct | run_workflow_direct(guid: str = '', param1: str = '', param2: str = '', param3: str = '') -> str |
Legacy workflow direct entry point. |
Parse all Bootstrap swatches to DB.
Load palette and compile SCSS to CSS.
Show the active palette colours.