Skip to content

feat: nowo-ui.css asset + panel/base for custom hosts - #1

Merged
HecFranco merged 2 commits into
mainfrom
feat/custom-css-framework-host
Aug 1, 2026
Merged

feat: nowo-ui.css asset + panel/base for custom hosts#1
HecFranco merged 2 commits into
mainfrom
feat/custom-css-framework-host

Conversation

@HecFranco

Copy link
Copy Markdown
Contributor

Summary

  • Ship tokenized public/css/nowo-ui.css and named asset package nowo_routing_kit.
  • Add panel/base.html.twig that extends the host layout_template and injects nowo-ui.css via stylesheets / parent().
  • Point panel pages at base.html.twig; slim demo layout to the asset link.
  • Document recommended host path: web_ui.css_framework: custom + assets:install.

Test plan

  • Demo layout still styles the panel
  • Host layout_template with stylesheets block receives nowo-ui.css without forking panel bodies
  • assets:install copies bundles/noworoutingkit/css/nowo-ui.css
  • Hosts can remap --nowo-ui-* under their shell

Made with Cursor

…framework:custom hosts

- src/Resources/public/css/nowo-ui.css: tokenized panel stylesheet with --nowo-ui-* CSS
  variables (buttons, table, forms, muted, errors, pagination, actions) replacing inline
  styles; tokens aligned with DashboardMenuBundle semantics.
- RoutingKitExtension: implements PrependExtensionInterface, registers named asset package
  'nowo_routing_kit' (base_path /bundles/noworoutingkit) via prepend(), mirroring
  DashboardMenuExtension pattern.
- panel/base.html.twig: intermediate template extending layout_template that injects
  nowo-ui.css via the stylesheets block so host shells receive it through parent().
- panel/index.html.twig, panel/form.html.twig: extend base.html.twig instead of
  layout|default(...) directly.
- panel/layout.html.twig: slim demo shell — inline <style> replaced by linked asset.
- docs/CONFIGURATION.md: css_framework:custom recommended host path, --nowo-ui-* token
  guide, Bootstrap 5 example retained.
- docs/INSTALLATION.md: Assets section (assets:install, nowo_routing_kit package,
  css_framework:custom integration).
- docs/CHANGELOG.md: [Unreleased] entries for all changes above.
@HecFranco
HecFranco merged commit b68036c into main Aug 1, 2026
18 checks passed
@HecFranco
HecFranco deleted the feat/custom-css-framework-host branch August 1, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant