Integration profile: P2 — foundation (theme CSS via head partial or Twig helpers).
composer test
composer phpstan
php bin/console debug:config symfinity_ui_kernelcomposer require symfinity/ui-kernelIn your base layout <head>, include kernel output:
{% include '@UiKernel/_head.html.twig' %}Or call the helpers in order:
{{ ui_kernel_theme_boot_script() }}
{{ ui_kernel_layer_order()|raw }}
{{ ui_kernel_css()|raw }}Confirm generated theme CSS variables on :root or [data-theme="…"] in page source. When symfinity/ux-blocks-core is also installed, tier CSS may be injected automatically — kernel head partial is still required for boot script and layer order.
In the Symfinity org checkout, dogfood ui-lab exercises runtime_switch:
make dogfood-serve SLUG=ui-labOpen the served URL, use the theme shell / scheme controls, and confirm:
<html data-theme="…">matches the selected variant before paint stabilizes<head>order is boot script → layer order → theme CSS (same as@UiKernel/_head.html.twig)- Reload preserves preference cookies when lineage/scheme cookies are set