Skip to content

src/dazzle_ui/runtime/css_loader.py

Generated: 2026-03-30T04:38:48.935668+00:00

Commit: 615f1354a103

Language: python

Scope: dazzle_ui

Purpose

CSS loader for Dazzle UI runtime.

Loads and concatenates CSS files from static/css/ to produce the bundled stylesheet served at /styles/dazzle.css.

Uses CSS Cascade Layers (@layer) for explicit ordering. Generates an inline source map for DevTools debugging.

Key Exports

  • get_bundled_css

Dependencies

Imports

  • base64
  • json
  • pathlib.Path

Event Interactions

None detected.

Invariants and Assumptions

  • Canonical CSS source order — must match dazzle-framework.css and build_dist.py.

  • Unlayered files — must come after the layer block so they can override

Tests

  • tests/integration/test_runtime_e2e.py
  • tests/integration/test_runtime_pipeline.py
  • tests/unit/test_runtime_test_routes.py
  • tests/unit/test_runtime_services.py
  • tests/unit/test_runtime_mcp_tools.py

Notes

This page was automatically generated by tools/gen_reference_docs.py.