feat: nowo-ui.css asset + panel/base for custom hosts - #1
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
public/css/nowo-ui.cssand named asset packagenowo_routing_kit.panel/base.html.twigthat extends the hostlayout_templateand injectsnowo-ui.cssviastylesheets/parent().base.html.twig; slim demo layout to the asset link.web_ui.css_framework: custom+assets:install.Test plan
layout_templatewithstylesheetsblock receivesnowo-ui.csswithout forking panel bodiesassets:installcopiesbundles/noworoutingkit/css/nowo-ui.css--nowo-ui-*under their shellMade with Cursor