Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.33 KB

File metadata and controls

52 lines (35 loc) · 1.33 KB

Verification

Integration profile: P2 — foundation (theme CSS via head partial or Twig helpers).

Local commands

composer test
composer phpstan
php bin/console debug:config symfinity_ui_kernel

Clean-app smoke

composer require symfinity/ui-kernel

In 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.

Runtime switching smoke (optional)

In the Symfinity org checkout, dogfood ui-lab exercises runtime_switch:

make dogfood-serve SLUG=ui-lab

Open the served URL, use the theme shell / scheme controls, and confirm:

  1. <html data-theme="…"> matches the selected variant before paint stabilizes
  2. <head> order is boot script → layer order → theme CSS (same as @UiKernel/_head.html.twig)
  3. Reload preserves preference cookies when lineage/scheme cookies are set

See also