@goldencomm/create-baseline 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -79
- package/index.mjs +175 -283
- package/package.json +13 -30
- package/templates/ci/bitbucket-pipelines.yml +29 -0
- package/templates/code-connect/accordion-item.figma.ts +45 -0
- package/templates/code-connect/accordion.figma.ts +40 -0
- package/templates/code-connect/alert.figma.ts +378 -0
- package/templates/code-connect/avatar-badge.figma.ts +14 -0
- package/templates/code-connect/avatar-group-count.figma.ts +16 -0
- package/templates/code-connect/avatar-group.figma.ts +30 -0
- package/templates/code-connect/avatar.figma.ts +34 -0
- package/templates/code-connect/badge.figma.ts +383 -0
- package/templates/code-connect/breadcrumb-item.figma.ts +23 -0
- package/templates/code-connect/breadcrumb-separator.figma.ts +12 -0
- package/templates/code-connect/breadcrumb.figma.ts +32 -0
- package/templates/code-connect/button-group.figma.ts +28 -0
- package/templates/code-connect/button.figma.ts +408 -0
- package/templates/code-connect/card.figma.ts +74 -0
- package/templates/code-connect/carousel.figma.ts +27 -0
- package/templates/code-connect/checkbox.figma.ts +34 -0
- package/templates/code-connect/columns-1.figma.ts +43 -0
- package/templates/code-connect/columns-2.figma.ts +49 -0
- package/templates/code-connect/columns-3.figma.ts +45 -0
- package/templates/code-connect/columns-4.figma.ts +46 -0
- package/templates/code-connect/container.figma.ts +42 -0
- package/templates/code-connect/dialog.figma.ts +72 -0
- package/templates/code-connect/drawer.figma.ts +69 -0
- package/templates/code-connect/dropdown-menu-checkbox-item.figma.ts +19 -0
- package/templates/code-connect/dropdown-menu-item.figma.ts +25 -0
- package/templates/code-connect/dropdown-menu-label.figma.ts +16 -0
- package/templates/code-connect/dropdown-menu-radio-item.figma.ts +19 -0
- package/templates/code-connect/dropdown-menu-separator.figma.ts +12 -0
- package/templates/code-connect/dropdown-menu-sub-trigger.figma.ts +22 -0
- package/templates/code-connect/dropdown-menu.figma.ts +44 -0
- package/templates/code-connect/field-horizontal.figma.ts +73 -0
- package/templates/code-connect/field.figma.ts +68 -0
- package/templates/code-connect/hover-card.figma.ts +41 -0
- package/templates/code-connect/icon-button.figma.ts +382 -0
- package/templates/code-connect/input-group.figma.ts +51 -0
- package/templates/code-connect/input-otp.figma.ts +40 -0
- package/templates/code-connect/input.figma.ts +42 -0
- package/templates/code-connect/item-group.figma.ts +30 -0
- package/templates/code-connect/item.figma.ts +50 -0
- package/templates/code-connect/kbd.figma.ts +16 -0
- package/templates/code-connect/media.figma.ts +35 -0
- package/templates/code-connect/meter.figma.ts +31 -0
- package/templates/code-connect/native-select.figma.ts +36 -0
- package/templates/code-connect/navigation-menu-link.figma.ts +33 -0
- package/templates/code-connect/navigation-menu-trigger.figma.ts +28 -0
- package/templates/code-connect/navigation-menu.figma.ts +30 -0
- package/templates/code-connect/pagination-ellipsis.figma.ts +11 -0
- package/templates/code-connect/pagination-link.figma.ts +24 -0
- package/templates/code-connect/pagination-next.figma.ts +17 -0
- package/templates/code-connect/pagination-previous.figma.ts +17 -0
- package/templates/code-connect/pagination.figma.ts +33 -0
- package/templates/code-connect/panel.figma.ts +40 -0
- package/templates/code-connect/popover.figma.ts +58 -0
- package/templates/code-connect/progress.figma.ts +34 -0
- package/templates/code-connect/radio.figma.ts +29 -0
- package/templates/code-connect/section.figma.ts +42 -0
- package/templates/code-connect/select.figma.ts +30 -0
- package/templates/code-connect/sheet.figma.ts +70 -0
- package/templates/code-connect/sidebar-menu-button.figma.ts +36 -0
- package/templates/code-connect/sidebar.figma.ts +44 -0
- package/templates/code-connect/spinner.figma.ts +13 -0
- package/templates/code-connect/switch.figma.ts +32 -0
- package/templates/code-connect/table-cell.figma.ts +21 -0
- package/templates/code-connect/table.figma.ts +62 -0
- package/templates/code-connect/tabs-trigger.figma.ts +369 -0
- package/templates/code-connect/tabs.figma.ts +28 -0
- package/templates/code-connect/textarea.figma.ts +32 -0
- package/templates/code-connect/toggle-group.figma.ts +24 -0
- package/templates/code-connect/toggle.figma.ts +385 -0
- package/templates/code-connect/tooltip.figma.ts +29 -0
- package/templates/next/app/globals.css +13 -12
- package/templates/next/app/page.tsx +38 -26
- package/templates/next/public/placeholder.svg +1 -0
- package/templates/shopify/.gitattributes +1 -0
- package/templates/shopify/.shopifyignore +23 -0
- package/templates/shopify/.theme-check.yml +1 -0
- package/templates/shopify/CODE_OF_CONDUCT.md +132 -0
- package/templates/shopify/CONTRIBUTING.md +24 -0
- package/templates/shopify/LICENSE.md +9 -0
- package/templates/shopify/README.md +160 -0
- package/templates/shopify/assets/carousel.js +2 -0
- package/templates/shopify/assets/critical.css +117 -0
- package/templates/shopify/assets/icon-account.svg +6 -0
- package/templates/shopify/assets/icon-cart.svg +5 -0
- package/templates/shopify/assets/predictive-search.js +65 -0
- package/templates/shopify/assets/shoppy-x-ray.svg +1 -0
- package/templates/shopify/blocks/_accordion-item.liquid +44 -0
- package/templates/shopify/blocks/_card-footer.liquid +26 -0
- package/templates/shopify/blocks/_carousel-slide.liquid +21 -0
- package/templates/shopify/blocks/_column.liquid +30 -0
- package/templates/shopify/blocks/_dialog-footer.liquid +28 -0
- package/templates/shopify/blocks/_sheet-footer.liquid +28 -0
- package/templates/shopify/blocks/_tab.liquid +21 -0
- package/templates/shopify/blocks/accordion.liquid +40 -0
- package/templates/shopify/blocks/blog-posts.liquid +70 -0
- package/templates/shopify/blocks/button.figma.ts +359 -0
- package/templates/shopify/blocks/button.liquid +477 -0
- package/templates/shopify/blocks/card.liquid +73 -0
- package/templates/shopify/blocks/carousel.liquid +47 -0
- package/templates/shopify/blocks/columns.liquid +73 -0
- package/templates/shopify/blocks/contact-form.liquid +69 -0
- package/templates/shopify/blocks/container.liquid +29 -0
- package/templates/shopify/blocks/dialog.liquid +77 -0
- package/templates/shopify/blocks/group.liquid +105 -0
- package/templates/shopify/blocks/heading.liquid +57 -0
- package/templates/shopify/blocks/icon-button.figma.ts +358 -0
- package/templates/shopify/blocks/media.liquid +80 -0
- package/templates/shopify/blocks/navigation-menu.liquid +23 -0
- package/templates/shopify/blocks/panel.liquid +64 -0
- package/templates/shopify/blocks/popover.liquid +88 -0
- package/templates/shopify/blocks/section-heading.liquid +68 -0
- package/templates/shopify/blocks/sheet.liquid +90 -0
- package/templates/shopify/blocks/tabs.liquid +58 -0
- package/templates/shopify/blocks/text.liquid +59 -0
- package/templates/shopify/build-js.mjs +22 -0
- package/templates/shopify/config/settings_data.json +182 -0
- package/templates/shopify/config/settings_schema.json +365 -0
- package/templates/shopify/layout/password.liquid +19 -0
- package/templates/shopify/layout/theme.liquid +57 -0
- package/templates/shopify/locales/en.default.json +58 -0
- package/templates/shopify/locales/en.default.schema.json +303 -0
- package/templates/shopify/package-lock.json +521 -0
- package/templates/shopify/package.json +17 -0
- package/templates/shopify/sections/404.liquid +23 -0
- package/templates/shopify/sections/article.liquid +81 -0
- package/templates/shopify/sections/baseline-header.liquid +236 -0
- package/templates/shopify/sections/baseline-kitchen-sink.liquid +988 -0
- package/templates/shopify/sections/baseline-section.liquid +661 -0
- package/templates/shopify/sections/blog.liquid +36 -0
- package/templates/shopify/sections/cart.liquid +65 -0
- package/templates/shopify/sections/collection.liquid +54 -0
- package/templates/shopify/sections/collections.liquid +83 -0
- package/templates/shopify/sections/custom-section.liquid +60 -0
- package/templates/shopify/sections/footer-group.json +25 -0
- package/templates/shopify/sections/footer.liquid +57 -0
- package/templates/shopify/sections/header-group.json +22 -0
- package/templates/shopify/sections/page.liquid +18 -0
- package/templates/shopify/sections/password.liquid +36 -0
- package/templates/shopify/sections/product.liquid +60 -0
- package/templates/shopify/sections/search.liquid +73 -0
- package/templates/shopify/snippets/accordion-item.figma.ts +34 -0
- package/templates/shopify/snippets/accordion-item.liquid +36 -0
- package/templates/shopify/snippets/accordion.figma.ts +37 -0
- package/templates/shopify/snippets/accordion.liquid +169 -0
- package/templates/shopify/snippets/alert.figma.ts +31 -0
- package/templates/shopify/snippets/alert.liquid +104 -0
- package/templates/shopify/snippets/avatar-group.figma.ts +17 -0
- package/templates/shopify/snippets/avatar-group.liquid +66 -0
- package/templates/shopify/snippets/avatar.figma.ts +24 -0
- package/templates/shopify/snippets/avatar.liquid +143 -0
- package/templates/shopify/snippets/badge.figma.ts +355 -0
- package/templates/shopify/snippets/badge.liquid +111 -0
- package/templates/shopify/snippets/baseline-schemes.liquid +44 -0
- package/templates/shopify/snippets/baseline-tokens.liquid +712 -0
- package/templates/shopify/snippets/breadcrumb.figma.ts +12 -0
- package/templates/shopify/snippets/breadcrumb.liquid +124 -0
- package/templates/shopify/snippets/button-group.liquid +148 -0
- package/templates/shopify/snippets/button.liquid +144 -0
- package/templates/shopify/snippets/card.figma.ts +43 -0
- package/templates/shopify/snippets/card.liquid +196 -0
- package/templates/shopify/snippets/carousel-item.liquid +18 -0
- package/templates/shopify/snippets/carousel.figma.ts +28 -0
- package/templates/shopify/snippets/carousel.liquid +121 -0
- package/templates/shopify/snippets/checkbox.liquid +147 -0
- package/templates/shopify/snippets/container.liquid +52 -0
- package/templates/shopify/snippets/css-variables.liquid +18 -0
- package/templates/shopify/snippets/dialog.figma.ts +36 -0
- package/templates/shopify/snippets/dialog.liquid +217 -0
- package/templates/shopify/snippets/field-separator.liquid +68 -0
- package/templates/shopify/snippets/field.liquid +187 -0
- package/templates/shopify/snippets/icon.liquid +101 -0
- package/templates/shopify/snippets/image.liquid +64 -0
- package/templates/shopify/snippets/input-group.liquid +196 -0
- package/templates/shopify/snippets/input.liquid +126 -0
- package/templates/shopify/snippets/item-group.liquid +31 -0
- package/templates/shopify/snippets/item.figma.ts +40 -0
- package/templates/shopify/snippets/item.liquid +162 -0
- package/templates/shopify/snippets/media.figma.ts +33 -0
- package/templates/shopify/snippets/media.liquid +273 -0
- package/templates/shopify/snippets/meta-tags.liquid +105 -0
- package/templates/shopify/snippets/meter.figma.ts +24 -0
- package/templates/shopify/snippets/meter.liquid +118 -0
- package/templates/shopify/snippets/native-select.liquid +141 -0
- package/templates/shopify/snippets/navigation-menu-item.figma.ts +23 -0
- package/templates/shopify/snippets/navigation-menu-item.liquid +40 -0
- package/templates/shopify/snippets/navigation-menu-link.figma.ts +27 -0
- package/templates/shopify/snippets/navigation-menu-link.liquid +31 -0
- package/templates/shopify/snippets/navigation-menu.figma.ts +12 -0
- package/templates/shopify/snippets/navigation-menu.liquid +300 -0
- package/templates/shopify/snippets/pagination.figma.ts +13 -0
- package/templates/shopify/snippets/pagination.liquid +208 -0
- package/templates/shopify/snippets/popover.figma.ts +41 -0
- package/templates/shopify/snippets/popover.liquid +203 -0
- package/templates/shopify/snippets/progress.figma.ts +26 -0
- package/templates/shopify/snippets/progress.liquid +114 -0
- package/templates/shopify/snippets/radio.liquid +145 -0
- package/templates/shopify/snippets/sheet.figma.ts +37 -0
- package/templates/shopify/snippets/sheet.liquid +197 -0
- package/templates/shopify/snippets/sidebar-menu-item.liquid +34 -0
- package/templates/shopify/snippets/sidebar-menu-sub-link.liquid +17 -0
- package/templates/shopify/snippets/sidebar-menu.liquid +139 -0
- package/templates/shopify/snippets/spinner.liquid +42 -0
- package/templates/shopify/snippets/switch.liquid +180 -0
- package/templates/shopify/snippets/tab.figma.ts +353 -0
- package/templates/shopify/snippets/tab.liquid +33 -0
- package/templates/shopify/snippets/tabs.figma.ts +21 -0
- package/templates/shopify/snippets/tabs.liquid +260 -0
- package/templates/shopify/snippets/text-styles.liquid +45 -0
- package/templates/shopify/snippets/textarea.liquid +103 -0
- package/templates/shopify/snippets/toggle-group.figma.ts +30 -0
- package/templates/shopify/snippets/toggle-group.liquid +46 -0
- package/templates/shopify/snippets/toggle.figma.ts +357 -0
- package/templates/shopify/snippets/toggle.liquid +104 -0
- package/templates/shopify/snippets/typeset.liquid +498 -0
- package/templates/shopify/src/carousel.js +94 -0
- package/templates/shopify/templates/404.json +20 -0
- package/templates/shopify/templates/article.json +20 -0
- package/templates/shopify/templates/blog.json +20 -0
- package/templates/shopify/templates/cart.json +20 -0
- package/templates/shopify/templates/collection.json +20 -0
- package/templates/shopify/templates/gift_card.liquid +73 -0
- package/templates/shopify/templates/index.json +18 -0
- package/templates/shopify/templates/list-collections.json +20 -0
- package/templates/shopify/templates/page.json +20 -0
- package/templates/shopify/templates/password.json +21 -0
- package/templates/shopify/templates/product.json +20 -0
- package/templates/shopify/templates/search.json +20 -0
- package/templates/skills/baseline-client-tokens/SKILL.md +74 -0
- package/templates/wordpress/.ddev/commands/web/seed +258 -3
- package/templates/wordpress/.ddev/config.yaml +10 -7
- package/templates/wordpress/.ddev/seed/gravityforms-contact.json +1 -0
- package/templates/wordpress/README.md +37 -39
- package/templates/wordpress/auth.json.example +1 -1
- package/templates/wordpress/composer.json +88 -84
- package/templates/wordpress/theme/README.md +3 -0
- package/templates/wordpress/theme/acf-json/.gitkeep +0 -0
- package/templates/wordpress/theme/acf-json/group_baseline_alert.json +83 -0
- package/templates/wordpress/theme/acf-json/group_baseline_avatar.json +82 -0
- package/templates/wordpress/theme/acf-json/group_baseline_avatar_group.json +35 -0
- package/templates/wordpress/theme/acf-json/group_baseline_badge.json +93 -0
- package/templates/wordpress/theme/acf-json/group_baseline_carousel.json +21 -0
- package/templates/wordpress/theme/acf-json/group_baseline_carousel_slide.json +16 -0
- package/templates/wordpress/theme/acf-json/group_baseline_dialog.json +68 -0
- package/templates/wordpress/theme/acf-json/group_baseline_dialog_footer.json +23 -0
- package/templates/wordpress/theme/acf-json/group_baseline_item.json +101 -0
- package/templates/wordpress/theme/acf-json/group_baseline_item_group.json +26 -0
- package/templates/wordpress/theme/acf-json/group_baseline_sheet.json +104 -0
- package/templates/wordpress/theme/acf-json/group_baseline_sheet_footer.json +31 -0
- package/templates/wordpress/theme/assets/app.css +2 -0
- package/templates/wordpress/theme/assets/editor.css +2 -0
- package/templates/wordpress/theme/assets/images/placeholder.svg +1 -0
- package/templates/wordpress/theme/assets/js/carousel-editor.js +85 -0
- package/templates/wordpress/theme/assets/js/carousel.js +2 -0
- package/templates/wordpress/theme/assets/js/core-button-editor.js +243 -0
- package/templates/wordpress/theme/assets/js/core-layout-editor.js +144 -0
- package/templates/wordpress/theme/assets/js/core-navigation.js +11 -0
- package/templates/wordpress/theme/assets/js/media-editor.js +52 -0
- package/templates/wordpress/theme/assets/js/media.js +38 -0
- package/templates/wordpress/theme/assets/tokens.css +1030 -0
- package/templates/wordpress/theme/blocks/alert/alert.figma.ts +32 -0
- package/templates/wordpress/theme/blocks/alert/block.json +24 -0
- package/templates/wordpress/theme/blocks/alert/render.php +30 -0
- package/templates/wordpress/theme/blocks/avatar/block.json +24 -0
- package/templates/wordpress/theme/blocks/avatar/render.php +35 -0
- package/templates/wordpress/theme/blocks/avatar-group/avatar-group.figma.ts +16 -0
- package/templates/wordpress/theme/blocks/avatar-group/block.json +25 -0
- package/templates/wordpress/theme/blocks/avatar-group/render.php +27 -0
- package/templates/wordpress/theme/blocks/badge/badge.figma.ts +349 -0
- package/templates/wordpress/theme/blocks/badge/block.json +23 -0
- package/templates/wordpress/theme/blocks/badge/render.php +28 -0
- package/templates/wordpress/theme/blocks/carousel/block.json +25 -0
- package/templates/wordpress/theme/blocks/carousel/carousel.figma.ts +22 -0
- package/templates/wordpress/theme/blocks/carousel/render.php +54 -0
- package/templates/wordpress/theme/blocks/carousel-slide/block.json +24 -0
- package/templates/wordpress/theme/blocks/carousel-slide/render.php +13 -0
- package/templates/wordpress/theme/blocks/dialog/block.json +24 -0
- package/templates/wordpress/theme/blocks/dialog/dialog.figma.ts +36 -0
- package/templates/wordpress/theme/blocks/dialog/render.php +41 -0
- package/templates/wordpress/theme/blocks/dialog-footer/block.json +25 -0
- package/templates/wordpress/theme/blocks/dialog-footer/render.php +18 -0
- package/templates/wordpress/theme/blocks/item/block.json +25 -0
- package/templates/wordpress/theme/blocks/item/item.figma.ts +43 -0
- package/templates/wordpress/theme/blocks/item/render.php +38 -0
- package/templates/wordpress/theme/blocks/item-group/block.json +25 -0
- package/templates/wordpress/theme/blocks/item-group/item-group.figma.ts +28 -0
- package/templates/wordpress/theme/blocks/item-group/render.php +22 -0
- package/templates/wordpress/theme/blocks/sheet/block.json +24 -0
- package/templates/wordpress/theme/blocks/sheet/render.php +39 -0
- package/templates/wordpress/theme/blocks/sheet/sheet.figma.ts +38 -0
- package/templates/wordpress/theme/blocks/sheet-footer/block.json +25 -0
- package/templates/wordpress/theme/blocks/sheet-footer/render.php +18 -0
- package/templates/wordpress/theme/build-js.mjs +22 -0
- package/templates/wordpress/theme/code-connect/accordion-item.figma.ts +47 -0
- package/templates/wordpress/theme/code-connect/accordion.figma.ts +37 -0
- package/templates/wordpress/theme/code-connect/avatar.figma.ts +25 -0
- package/templates/wordpress/theme/code-connect/breadcrumb.figma.ts +12 -0
- package/templates/wordpress/theme/code-connect/button.figma.ts +360 -0
- package/templates/wordpress/theme/code-connect/card.figma.ts +45 -0
- package/templates/wordpress/theme/code-connect/icon-button.figma.ts +359 -0
- package/templates/wordpress/theme/code-connect/navigation-menu.figma.ts +20 -0
- package/templates/wordpress/theme/code-connect/pagination.figma.ts +17 -0
- package/templates/wordpress/theme/code-connect/popover.figma.ts +42 -0
- package/templates/wordpress/theme/code-connect/tabs.figma.ts +32 -0
- package/templates/wordpress/theme/code-connect/toggle-group.figma.ts +34 -0
- package/templates/wordpress/theme/code-connect/toggle.figma.ts +356 -0
- package/templates/wordpress/theme/composer.json +7 -0
- package/templates/wordpress/theme/footer.php +4 -0
- package/templates/wordpress/theme/functions.php +86 -0
- package/templates/wordpress/theme/header.php +17 -0
- package/templates/wordpress/theme/inc/acf.php +13 -0
- package/templates/wordpress/theme/inc/blocks.php +41 -0
- package/templates/wordpress/theme/inc/carousel.php +36 -0
- package/templates/wordpress/theme/inc/components/alert.php +83 -0
- package/templates/wordpress/theme/inc/components/avatar.php +111 -0
- package/templates/wordpress/theme/inc/components/badge.php +96 -0
- package/templates/wordpress/theme/inc/components/button.php +77 -0
- package/templates/wordpress/theme/inc/components/dialog.php +98 -0
- package/templates/wordpress/theme/inc/components/item.php +111 -0
- package/templates/wordpress/theme/inc/components/popover.php +125 -0
- package/templates/wordpress/theme/inc/components/sheet.php +88 -0
- package/templates/wordpress/theme/inc/components/toggle.php +127 -0
- package/templates/wordpress/theme/inc/core-button.php +96 -0
- package/templates/wordpress/theme/inc/core-card.php +30 -0
- package/templates/wordpress/theme/inc/core-layout.php +76 -0
- package/templates/wordpress/theme/inc/core-navigation.php +31 -0
- package/templates/wordpress/theme/inc/core-pagination.php +87 -0
- package/templates/wordpress/theme/inc/header.php +39 -0
- package/templates/wordpress/theme/inc/icons.generated.php +94 -0
- package/templates/wordpress/theme/inc/icons.php +70 -0
- package/templates/wordpress/theme/inc/looks.generated.php +18 -0
- package/templates/wordpress/theme/inc/media.php +183 -0
- package/templates/wordpress/theme/inc/sections.php +16 -0
- package/templates/wordpress/theme/index.php +24 -0
- package/templates/wordpress/theme/package-lock.json +1637 -0
- package/templates/wordpress/theme/package.json +23 -0
- package/templates/wordpress/theme/parts/header.html +23 -0
- package/templates/wordpress/theme/patterns/blog-card-grid.php +41 -0
- package/templates/wordpress/theme/patterns/card.php +46 -0
- package/templates/wordpress/theme/patterns/contact-centered.php +22 -0
- package/templates/wordpress/theme/patterns/cta-left.php +25 -0
- package/templates/wordpress/theme/patterns/faq-centered.php +36 -0
- package/templates/wordpress/theme/patterns/header-inline.php +33 -0
- package/templates/wordpress/theme/patterns/header-stacked.php +25 -0
- package/templates/wordpress/theme/patterns/hero-centered.php +28 -0
- package/templates/wordpress/theme/patterns/hero-split.php +41 -0
- package/templates/wordpress/theme/patterns/section.php +28 -0
- package/templates/wordpress/theme/src/app.css +45 -0
- package/templates/wordpress/theme/src/carousel.css +93 -0
- package/templates/wordpress/theme/src/carousel.js +94 -0
- package/templates/wordpress/theme/src/checkbox.css +102 -0
- package/templates/wordpress/theme/src/core-accordion.css +158 -0
- package/templates/wordpress/theme/src/core-avatar.css +68 -0
- package/templates/wordpress/theme/src/core-breadcrumbs.css +124 -0
- package/templates/wordpress/theme/src/core-button-editor.css +45 -0
- package/templates/wordpress/theme/src/core-button.css +155 -0
- package/templates/wordpress/theme/src/core-card.css +157 -0
- package/templates/wordpress/theme/src/core-layout.css +73 -0
- package/templates/wordpress/theme/src/core-navigation.css +290 -0
- package/templates/wordpress/theme/src/core-pagination.css +112 -0
- package/templates/wordpress/theme/src/core-table.css +88 -0
- package/templates/wordpress/theme/src/core-tabs.css +86 -0
- package/templates/wordpress/theme/src/dialog.css +29 -0
- package/templates/wordpress/theme/src/editor.css +65 -0
- package/templates/wordpress/theme/src/field.css +95 -0
- package/templates/wordpress/theme/src/fonts.css +3 -0
- package/templates/wordpress/theme/src/gravityforms.css +919 -0
- package/templates/wordpress/theme/src/header.css +80 -0
- package/templates/wordpress/theme/src/icons.generated.css +16 -0
- package/templates/wordpress/theme/src/input-group.css +105 -0
- package/templates/wordpress/theme/src/input.css +116 -0
- package/templates/wordpress/theme/src/item.css +7 -0
- package/templates/wordpress/theme/src/looks.generated.css +358 -0
- package/templates/wordpress/theme/src/media.css +160 -0
- package/templates/wordpress/theme/src/radio.css +88 -0
- package/templates/wordpress/theme/src/sections.css +80 -0
- package/templates/wordpress/theme/src/sheet.css +24 -0
- package/templates/wordpress/theme/src/switch.css +120 -0
- package/templates/wordpress/theme/src/text-styles.css +44 -0
- package/templates/wordpress/theme/src/textarea.css +61 -0
- package/templates/wordpress/theme/src/toggle-group.css +28 -0
- package/templates/wordpress/theme/src/typeset.css +510 -0
- package/templates/wordpress/theme/style.css +13 -0
- package/templates/wordpress/theme/theme.json +362 -0
- package/templates/wordpress/web/wp-config.php +38 -0
- package/templates/wordpress/wp-cli.yml +1 -0
- package/templates/next/.claude/skills/ai-elements/SKILL.md +0 -160
- package/templates/next/.claude/skills/ai-elements/references/agent.md +0 -134
- package/templates/next/.claude/skills/ai-elements/references/artifact.md +0 -84
- package/templates/next/.claude/skills/ai-elements/references/attachments.md +0 -190
- package/templates/next/.claude/skills/ai-elements/references/audio-player.md +0 -134
- package/templates/next/.claude/skills/ai-elements/references/canvas.md +0 -34
- package/templates/next/.claude/skills/ai-elements/references/chain-of-thought.md +0 -81
- package/templates/next/.claude/skills/ai-elements/references/checkpoint.md +0 -183
- package/templates/next/.claude/skills/ai-elements/references/code-block.md +0 -170
- package/templates/next/.claude/skills/ai-elements/references/commit.md +0 -177
- package/templates/next/.claude/skills/ai-elements/references/confirmation.md +0 -262
- package/templates/next/.claude/skills/ai-elements/references/connection.md +0 -34
- package/templates/next/.claude/skills/ai-elements/references/context.md +0 -126
- package/templates/next/.claude/skills/ai-elements/references/controls.md +0 -32
- package/templates/next/.claude/skills/ai-elements/references/conversation.md +0 -224
- package/templates/next/.claude/skills/ai-elements/references/edge.md +0 -52
- package/templates/next/.claude/skills/ai-elements/references/environment-variables.md +0 -102
- package/templates/next/.claude/skills/ai-elements/references/file-tree.md +0 -72
- package/templates/next/.claude/skills/ai-elements/references/image.md +0 -146
- package/templates/next/.claude/skills/ai-elements/references/inline-citation.md +0 -299
- package/templates/next/.claude/skills/ai-elements/references/jsx-preview.md +0 -104
- package/templates/next/.claude/skills/ai-elements/references/message.md +0 -237
- package/templates/next/.claude/skills/ai-elements/references/mic-selector.md +0 -189
- package/templates/next/.claude/skills/ai-elements/references/model-selector.md +0 -112
- package/templates/next/.claude/skills/ai-elements/references/node.md +0 -73
- package/templates/next/.claude/skills/ai-elements/references/open-in-chat.md +0 -67
- package/templates/next/.claude/skills/ai-elements/references/package-info.md +0 -95
- package/templates/next/.claude/skills/ai-elements/references/panel.md +0 -33
- package/templates/next/.claude/skills/ai-elements/references/persona.md +0 -166
- package/templates/next/.claude/skills/ai-elements/references/plan.md +0 -79
- package/templates/next/.claude/skills/ai-elements/references/prompt-input.md +0 -579
- package/templates/next/.claude/skills/ai-elements/references/queue.md +0 -172
- package/templates/next/.claude/skills/ai-elements/references/reasoning.md +0 -238
- package/templates/next/.claude/skills/ai-elements/references/sandbox.md +0 -129
- package/templates/next/.claude/skills/ai-elements/references/schema-display.md +0 -102
- package/templates/next/.claude/skills/ai-elements/references/shimmer.md +0 -48
- package/templates/next/.claude/skills/ai-elements/references/snippet.md +0 -64
- package/templates/next/.claude/skills/ai-elements/references/sources.md +0 -209
- package/templates/next/.claude/skills/ai-elements/references/speech-input.md +0 -163
- package/templates/next/.claude/skills/ai-elements/references/stack-trace.md +0 -224
- package/templates/next/.claude/skills/ai-elements/references/suggestion.md +0 -124
- package/templates/next/.claude/skills/ai-elements/references/task.md +0 -222
- package/templates/next/.claude/skills/ai-elements/references/terminal.md +0 -103
- package/templates/next/.claude/skills/ai-elements/references/test-results.md +0 -157
- package/templates/next/.claude/skills/ai-elements/references/tool.md +0 -285
- package/templates/next/.claude/skills/ai-elements/references/toolbar.md +0 -32
- package/templates/next/.claude/skills/ai-elements/references/transcription.md +0 -120
- package/templates/next/.claude/skills/ai-elements/references/voice-selector.md +0 -241
- package/templates/next/.claude/skills/ai-elements/references/web-preview.md +0 -200
- package/templates/next/.claude/skills/ai-elements/scripts/agent.tsx +0 -61
- package/templates/next/.claude/skills/ai-elements/scripts/artifact.tsx +0 -127
- package/templates/next/.claude/skills/ai-elements/scripts/attachments-inline.tsx +0 -128
- package/templates/next/.claude/skills/ai-elements/scripts/attachments-list.tsx +0 -95
- package/templates/next/.claude/skills/ai-elements/scripts/attachments.tsx +0 -85
- package/templates/next/.claude/skills/ai-elements/scripts/audio-player-remote.tsx +0 -35
- package/templates/next/.claude/skills/ai-elements/scripts/audio-player.tsx +0 -68
- package/templates/next/.claude/skills/ai-elements/scripts/chain-of-thought.tsx +0 -82
- package/templates/next/.claude/skills/ai-elements/scripts/checkpoint.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/code-block-dark.tsx +0 -46
- package/templates/next/.claude/skills/ai-elements/scripts/code-block.tsx +0 -120
- package/templates/next/.claude/skills/ai-elements/scripts/commit.tsx +0 -94
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation-accepted.tsx +0 -40
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation-rejected.tsx +0 -40
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation-request.tsx +0 -54
- package/templates/next/.claude/skills/ai-elements/scripts/confirmation.tsx +0 -55
- package/templates/next/.claude/skills/ai-elements/scripts/context.tsx +0 -45
- package/templates/next/.claude/skills/ai-elements/scripts/conversation.tsx +0 -177
- package/templates/next/.claude/skills/ai-elements/scripts/environment-variables.tsx +0 -62
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree-basic.tsx +0 -18
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree-expanded.tsx +0 -21
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree-selection.tsx +0 -24
- package/templates/next/.claude/skills/ai-elements/scripts/file-tree.tsx +0 -42
- package/templates/next/.claude/skills/ai-elements/scripts/image.tsx +0 -20
- package/templates/next/.claude/skills/ai-elements/scripts/inline-citation.tsx +0 -97
- package/templates/next/.claude/skills/ai-elements/scripts/jsx-preview.tsx +0 -104
- package/templates/next/.claude/skills/ai-elements/scripts/message.tsx +0 -365
- package/templates/next/.claude/skills/ai-elements/scripts/mic-selector.tsx +0 -49
- package/templates/next/.claude/skills/ai-elements/scripts/model-selector.tsx +0 -365
- package/templates/next/.claude/skills/ai-elements/scripts/open-in-chat.tsx +0 -33
- package/templates/next/.claude/skills/ai-elements/scripts/package-info.tsx +0 -51
- package/templates/next/.claude/skills/ai-elements/scripts/persona-command.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-glint.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-halo.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-mana.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-obsidian.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/persona-opal.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/plan.tsx +0 -65
- package/templates/next/.claude/skills/ai-elements/scripts/prompt-input-cursor.tsx +0 -502
- package/templates/next/.claude/skills/ai-elements/scripts/prompt-input-tooltip.tsx +0 -44
- package/templates/next/.claude/skills/ai-elements/scripts/prompt-input.tsx +0 -267
- package/templates/next/.claude/skills/ai-elements/scripts/queue-prompt-input.tsx +0 -394
- package/templates/next/.claude/skills/ai-elements/scripts/queue.tsx +0 -295
- package/templates/next/.claude/skills/ai-elements/scripts/reasoning.tsx +0 -71
- package/templates/next/.claude/skills/ai-elements/scripts/sandbox.tsx +0 -178
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-basic.tsx +0 -9
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-body.tsx +0 -20
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-nested.tsx +0 -23
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display-params.tsx +0 -16
- package/templates/next/.claude/skills/ai-elements/scripts/schema-display.tsx +0 -110
- package/templates/next/.claude/skills/ai-elements/scripts/shimmer-duration.tsx +0 -31
- package/templates/next/.claude/skills/ai-elements/scripts/shimmer-elements.tsx +0 -43
- package/templates/next/.claude/skills/ai-elements/scripts/shimmer.tsx +0 -17
- package/templates/next/.claude/skills/ai-elements/scripts/snippet-plain.tsx +0 -19
- package/templates/next/.claude/skills/ai-elements/scripts/snippet.tsx +0 -25
- package/templates/next/.claude/skills/ai-elements/scripts/sources-custom.tsx +0 -39
- package/templates/next/.claude/skills/ai-elements/scripts/sources.tsx +0 -32
- package/templates/next/.claude/skills/ai-elements/scripts/speech-input.tsx +0 -84
- package/templates/next/.claude/skills/ai-elements/scripts/stack-trace-collapsed.tsx +0 -39
- package/templates/next/.claude/skills/ai-elements/scripts/stack-trace-no-internal.tsx +0 -41
- package/templates/next/.claude/skills/ai-elements/scripts/stack-trace.tsx +0 -58
- package/templates/next/.claude/skills/ai-elements/scripts/suggestion-input.tsx +0 -144
- package/templates/next/.claude/skills/ai-elements/scripts/suggestion.tsx +0 -32
- package/templates/next/.claude/skills/ai-elements/scripts/task.tsx +0 -59
- package/templates/next/.claude/skills/ai-elements/scripts/terminal-basic.tsx +0 -7
- package/templates/next/.claude/skills/ai-elements/scripts/terminal-clear.tsx +0 -19
- package/templates/next/.claude/skills/ai-elements/scripts/terminal-streaming.tsx +0 -38
- package/templates/next/.claude/skills/ai-elements/scripts/terminal.tsx +0 -82
- package/templates/next/.claude/skills/ai-elements/scripts/test-results-basic.tsx +0 -27
- package/templates/next/.claude/skills/ai-elements/scripts/test-results-errors.tsx +0 -51
- package/templates/next/.claude/skills/ai-elements/scripts/test-results-suites.tsx +0 -40
- package/templates/next/.claude/skills/ai-elements/scripts/test-results.tsx +0 -102
- package/templates/next/.claude/skills/ai-elements/scripts/tool-input-available.tsx +0 -31
- package/templates/next/.claude/skills/ai-elements/scripts/tool-input-streaming.tsx +0 -30
- package/templates/next/.claude/skills/ai-elements/scripts/tool-output-available.tsx +0 -80
- package/templates/next/.claude/skills/ai-elements/scripts/tool-output-error.tsx +0 -44
- package/templates/next/.claude/skills/ai-elements/scripts/tool.tsx +0 -222
- package/templates/next/.claude/skills/ai-elements/scripts/transcription.tsx +0 -290
- package/templates/next/.claude/skills/ai-elements/scripts/voice-selector.tsx +0 -245
- package/templates/next/.claude/skills/ai-elements/scripts/web-preview.tsx +0 -115
- package/templates/next/.claude/skills/ai-sdk/SKILL.md +0 -78
- package/templates/next/.claude/skills/frontend-design/LICENSE.txt +0 -177
- package/templates/next/.claude/skills/frontend-design/SKILL.md +0 -55
- package/templates/next/.claude/skills/gc-implement-figma-page/SKILL.md +0 -93
- package/templates/next/.claude/skills/migrate-ai-sdk-v6-to-v7/SKILL.md +0 -108
- package/templates/next/.claude/skills/vercel-composition-patterns/AGENTS.md +0 -946
- package/templates/next/.claude/skills/vercel-composition-patterns/README.md +0 -60
- package/templates/next/.claude/skills/vercel-composition-patterns/SKILL.md +0 -89
- package/templates/next/.claude/skills/vercel-composition-patterns/metadata.json +0 -11
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/_sections.md +0 -29
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/_template.md +0 -24
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/architecture-avoid-boolean-props.md +0 -100
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/architecture-compound-components.md +0 -112
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/patterns-children-over-render-props.md +0 -87
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/patterns-explicit-variants.md +0 -100
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/react19-no-forwardref.md +0 -42
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/state-context-interface.md +0 -191
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/state-decouple-implementation.md +0 -113
- package/templates/next/.claude/skills/vercel-composition-patterns/rules/state-lift-state.md +0 -125
- package/templates/next/.claude/skills/vercel-react-best-practices/AGENTS.md +0 -3810
- package/templates/next/.claude/skills/vercel-react-best-practices/README.md +0 -123
- package/templates/next/.claude/skills/vercel-react-best-practices/SKILL.md +0 -149
- package/templates/next/.claude/skills/vercel-react-best-practices/metadata.json +0 -15
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/_sections.md +0 -46
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/_template.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-effect-event-deps.md +0 -56
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -55
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-init-once.md +0 -42
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/advanced-use-latest.md +0 -39
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-api-routes.md +0 -38
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-cheap-condition-before-await.md +0 -37
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-defer-await.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-dependencies.md +0 -51
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-parallel.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -99
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-analyzable-paths.md +0 -63
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -60
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-conditional.md +0 -31
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -49
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -35
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/bundle-preload.md +0 -50
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-event-listeners.md +0 -74
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -71
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -48
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/client-swr-dedup.md +0 -56
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -107
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-cache-function-results.md +0 -80
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-cache-property-access.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-cache-storage.md +0 -70
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-combine-iterations.md +0 -32
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-early-exit.md +0 -50
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-flatmap-filter.md +0 -60
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -45
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-index-maps.md +0 -37
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-length-check-first.md +0 -49
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-min-max-loop.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-request-idle-callback.md +0 -105
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -24
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -57
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-activity.md +0 -26
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -47
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -40
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -38
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -46
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +0 -30
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-resource-hints.md +0 -85
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-script-defer-async.md +0 -68
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -28
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +0 -75
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -39
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-dependencies.md +0 -45
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +0 -40
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-derived-state.md +0 -29
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -74
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -58
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +0 -38
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-memo.md +0 -44
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +0 -45
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-no-inline-components.md +0 -82
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +0 -35
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-split-combined-hooks.md +0 -64
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-transitions.md +0 -40
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-use-deferred-value.md +0 -59
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +0 -73
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -73
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-auth-actions.md +0 -96
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-cache-lru.md +0 -41
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-cache-react.md +0 -76
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-dedup-props.md +0 -65
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-hoist-static-io.md +0 -149
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-no-shared-module-state.md +0 -50
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -83
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-parallel-nested-fetching.md +0 -34
- package/templates/next/.claude/skills/vercel-react-best-practices/rules/server-serialization.md +0 -38
- package/templates/next/.claude/skills/web-design-guidelines/SKILL.md +0 -39
- package/templates/next/CLAUDE.md +0 -42
- package/templates/next/README.md +0 -30
- package/templates/next/_gitignore +0 -4
- package/templates/next/app/layout.tsx +0 -44
- package/templates/next/globals.d.ts +0 -8
- package/templates/next/next.config.mjs +0 -6
- package/templates/next/package.json +0 -38
- package/templates/next/postcss.config.mjs +0 -5
- package/templates/next/skills-lock.json +0 -47
- package/templates/next/tsconfig.json +0 -36
- package/templates/shopify-theme/.claude/skills/gc-shopify-block/SKILL.md +0 -44
- package/templates/shopify-theme/.claude/skills/shopify-dev/SKILL.md +0 -51
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/log_skill_use.mjs +0 -205
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/search_docs.mjs +0 -272
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/track-telemetry.ps1 +0 -361
- package/templates/shopify-theme/.claude/skills/shopify-dev/scripts/track-telemetry.sh +0 -527
- package/templates/shopify-theme/.claude/skills/shopify-liquid/SKILL.md +0 -343
- package/templates/shopify-theme/.claude/skills/shopify-liquid/blocks/hero-slide.liquid +0 -342
- package/templates/shopify-theme/.claude/skills/shopify-liquid/config/settings_schema.json +0 -1
- package/templates/shopify-theme/.claude/skills/shopify-liquid/featured-collection.liquid +0 -457
- package/templates/shopify-theme/.claude/skills/shopify-liquid/locales/en.default.json +0 -10
- package/templates/shopify-theme/.claude/skills/shopify-liquid/locales/en.default.schema.json +0 -103
- package/templates/shopify-theme/.claude/skills/shopify-liquid/package.json +0 -10
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/search_docs.mjs +0 -759
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/track-telemetry.ps1 +0 -361
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/track-telemetry.sh +0 -527
- package/templates/shopify-theme/.claude/skills/shopify-liquid/scripts/validate.mjs +0 -654
- package/templates/shopify-theme/.claude/skills/shopify-liquid/sections/hero-banner.liquid +0 -329
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/SKILL.md +0 -165
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/scripts/log_skill_use.mjs +0 -205
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/scripts/track-telemetry.ps1 +0 -361
- package/templates/shopify-theme/.claude/skills/shopify-use-shopify-cli/scripts/track-telemetry.sh +0 -527
- package/templates/shopify-theme/.shopifyignore +0 -9
- package/templates/shopify-theme/CLAUDE.md +0 -51
- package/templates/shopify-theme/README.md +0 -92
- package/templates/shopify-theme/assets/baseline.css +0 -8390
- package/templates/shopify-theme/assets/swiper-element-bundle.min.js +0 -14
- package/templates/shopify-theme/blocks/_accordion.liquid +0 -59
- package/templates/shopify-theme/blocks/_carousel-slide.liquid +0 -24
- package/templates/shopify-theme/blocks/_modal-body.liquid +0 -18
- package/templates/shopify-theme/blocks/_modal-footer.liquid +0 -36
- package/templates/shopify-theme/blocks/_modal-header.liquid +0 -19
- package/templates/shopify-theme/blocks/_modal-media.liquid +0 -37
- package/templates/shopify-theme/blocks/accordion-group.liquid +0 -53
- package/templates/shopify-theme/blocks/alert.liquid +0 -92
- package/templates/shopify-theme/blocks/avatar-group.liquid +0 -51
- package/templates/shopify-theme/blocks/avatar.liquid +0 -56
- package/templates/shopify-theme/blocks/badge.liquid +0 -33
- package/templates/shopify-theme/blocks/breadcrumb.liquid +0 -45
- package/templates/shopify-theme/blocks/button.liquid +0 -51
- package/templates/shopify-theme/blocks/buttons.liquid +0 -41
- package/templates/shopify-theme/blocks/card.liquid +0 -67
- package/templates/shopify-theme/blocks/carousel.liquid +0 -55
- package/templates/shopify-theme/blocks/column.liquid +0 -33
- package/templates/shopify-theme/blocks/image.liquid +0 -37
- package/templates/shopify-theme/blocks/modal.liquid +0 -52
- package/templates/shopify-theme/blocks/popover.liquid +0 -24
- package/templates/shopify-theme/blocks/skeleton.liquid +0 -22
- package/templates/shopify-theme/blocks/spinner.liquid +0 -22
- package/templates/shopify-theme/blocks/split.liquid +0 -39
- package/templates/shopify-theme/blocks/tab.liquid +0 -19
- package/templates/shopify-theme/blocks/tabs.liquid +0 -78
- package/templates/shopify-theme/blocks/tags.liquid +0 -55
- package/templates/shopify-theme/blocks/text.liquid +0 -55
- package/templates/shopify-theme/blocks/tooltip.liquid +0 -50
- package/templates/shopify-theme/blocks/typography.liquid +0 -90
- package/templates/shopify-theme/config/settings_data.json +0 -4
- package/templates/shopify-theme/config/settings_schema.json +0 -10
- package/templates/shopify-theme/layout/theme.liquid +0 -21
- package/templates/shopify-theme/locales/en.default.json +0 -5
- package/templates/shopify-theme/locales/en.default.schema.json +0 -131
- package/templates/shopify-theme/package.json +0 -21
- package/templates/shopify-theme/scripts/sync-tokens.mjs +0 -32
- package/templates/shopify-theme/sections/baseline-components.liquid +0 -81
- package/templates/shopify-theme/skills-lock.json +0 -23
- package/templates/shopify-theme/snippets/lucide.liquid +0 -34
- package/templates/shopify-theme/snippets/pagination.liquid +0 -44
- package/templates/shopify-theme/templates/collection.json +0 -13
- package/templates/shopify-theme/templates/gift_card.liquid +0 -5
- package/templates/shopify-theme/templates/index.json +0 -135
- package/templates/shopify-theme/templates/list-collections.json +0 -13
- package/templates/shopify-theme/templates/product.json +0 -13
- package/templates/wordpress/.claude/CLAUDE.md +0 -37
- package/templates/wordpress/.claude/skills/wp-block-development/SKILL.md +0 -174
- package/templates/wordpress/.claude/skills/wp-block-development/references/attributes-and-serialization.md +0 -22
- package/templates/wordpress/.claude/skills/wp-block-development/references/block-json.md +0 -49
- package/templates/wordpress/.claude/skills/wp-block-development/references/creating-new-blocks.md +0 -46
- package/templates/wordpress/.claude/skills/wp-block-development/references/debugging.md +0 -36
- package/templates/wordpress/.claude/skills/wp-block-development/references/deprecations.md +0 -24
- package/templates/wordpress/.claude/skills/wp-block-development/references/dynamic-rendering.md +0 -23
- package/templates/wordpress/.claude/skills/wp-block-development/references/inner-blocks.md +0 -25
- package/templates/wordpress/.claude/skills/wp-block-development/references/registration.md +0 -30
- package/templates/wordpress/.claude/skills/wp-block-development/references/supports-and-wrappers.md +0 -18
- package/templates/wordpress/.claude/skills/wp-block-development/references/tooling-and-testing.md +0 -21
- package/templates/wordpress/.claude/skills/wp-block-development/scripts/list_blocks.mjs +0 -121
- package/templates/wordpress/.claude/skills/wp-block-themes/SKILL.md +0 -116
- package/templates/wordpress/.claude/skills/wp-block-themes/references/creating-new-block-theme.md +0 -37
- package/templates/wordpress/.claude/skills/wp-block-themes/references/debugging.md +0 -24
- package/templates/wordpress/.claude/skills/wp-block-themes/references/patterns.md +0 -18
- package/templates/wordpress/.claude/skills/wp-block-themes/references/style-variations.md +0 -14
- package/templates/wordpress/.claude/skills/wp-block-themes/references/templates-and-parts.md +0 -16
- package/templates/wordpress/.claude/skills/wp-block-themes/references/theme-json.md +0 -59
- package/templates/wordpress/.claude/skills/wp-block-themes/scripts/detect_block_themes.mjs +0 -117
- package/templates/wordpress/.claude/skills/wp-performance/SKILL.md +0 -146
- package/templates/wordpress/.claude/skills/wp-performance/references/autoload-options.md +0 -24
- package/templates/wordpress/.claude/skills/wp-performance/references/cron.md +0 -20
- package/templates/wordpress/.claude/skills/wp-performance/references/database.md +0 -20
- package/templates/wordpress/.claude/skills/wp-performance/references/http-api.md +0 -15
- package/templates/wordpress/.claude/skills/wp-performance/references/measurement.md +0 -21
- package/templates/wordpress/.claude/skills/wp-performance/references/object-cache.md +0 -24
- package/templates/wordpress/.claude/skills/wp-performance/references/query-monitor-headless.md +0 -38
- package/templates/wordpress/.claude/skills/wp-performance/references/server-timing.md +0 -22
- package/templates/wordpress/.claude/skills/wp-performance/references/wp-cli-doctor.md +0 -24
- package/templates/wordpress/.claude/skills/wp-performance/references/wp-cli-profile.md +0 -32
- package/templates/wordpress/.claude/skills/wp-performance/scripts/perf_inspect.mjs +0 -128
- package/templates/wordpress/.claude/skills/wp-plugin-development/SKILL.md +0 -112
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/data-and-cron.md +0 -19
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/debugging.md +0 -19
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/lifecycle.md +0 -33
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/security.md +0 -29
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/settings-api.md +0 -22
- package/templates/wordpress/.claude/skills/wp-plugin-development/references/structure.md +0 -16
- package/templates/wordpress/.claude/skills/wp-plugin-development/scripts/detect_plugins.mjs +0 -122
- package/templates/wordpress/.claude/skills/wp-rest-api/SKILL.md +0 -114
- package/templates/wordpress/.claude/skills/wp-rest-api/references/authentication.md +0 -18
- package/templates/wordpress/.claude/skills/wp-rest-api/references/custom-content-types.md +0 -20
- package/templates/wordpress/.claude/skills/wp-rest-api/references/discovery-and-params.md +0 -20
- package/templates/wordpress/.claude/skills/wp-rest-api/references/responses-and-fields.md +0 -30
- package/templates/wordpress/.claude/skills/wp-rest-api/references/routes-and-endpoints.md +0 -36
- package/templates/wordpress/.claude/skills/wp-rest-api/references/schema.md +0 -22
- package/templates/wordpress/.ddev/docker-compose.packages.yaml +0 -14
- package/templates/wordpress/.ddev/docker-compose.redis.yaml +0 -11
- package/templates/wordpress/.env.example +0 -33
- package/templates/wordpress/CLAUDE.md +0 -34
- package/templates/wordpress/_gitignore +0 -33
- package/templates/wordpress/composer.lock +0 -1594
- package/templates/wordpress/package.json +0 -13
- package/templates/wordpress/scripts/seed.sh +0 -64
- package/templates/wordpress/skills-lock.json +0 -35
- package/templates/wordpress/wp-config.php +0 -89
- package/templates/wordpress/wp-content/index.php +0 -2
- package/templates/wordpress/wp-content/mu-plugins/baseline-bootstrap.php +0 -26
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/* Card on core/group (spec: components/card/spec.md, ADR-0018). Block styles from inc/core-card.php; every rule mirrors
|
|
2
|
+
registry/src/ui/card/card.tsx and reads the card/* tokens. Selectors carry .wp-block-group plus the style class, so
|
|
3
|
+
they beat core's layout rules (a single generated class) and typeset's (0,1,0) flow margins without !important. */
|
|
4
|
+
|
|
5
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) {
|
|
6
|
+
--card-padding: var(--bl-card-md-padding);
|
|
7
|
+
--card-gap: var(--bl-card-md-gap);
|
|
8
|
+
--card-radius: var(--bl-card-md-radius);
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: var(--card-gap);
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
padding: var(--card-padding) 0;
|
|
14
|
+
border-radius: var(--card-radius);
|
|
15
|
+
background-color: var(--card);
|
|
16
|
+
color: var(--card-foreground);
|
|
17
|
+
box-shadow: 0 0 0 var(--bl-card-border-width) var(--bl-card-border);
|
|
18
|
+
font-size: var(--bl-card-description-font-size);
|
|
19
|
+
line-height: var(--bl-card-description-line-height);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.wp-block-group.is-style-card-sm {
|
|
23
|
+
--card-padding: var(--bl-card-sm-padding);
|
|
24
|
+
--card-gap: var(--bl-card-sm-gap);
|
|
25
|
+
--card-radius: var(--bl-card-sm-radius);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* In post content the card takes typeset's flow gap above it, like any embedded component (tokens/typeset.css, the
|
|
29
|
+
Baseline addition): a core/group carries neither not-typeset nor data-slot, so the card styles name themselves. */
|
|
30
|
+
:is(.typeset, .editor-styles-wrapper .is-root-container) > .wp-block-group:is(.is-style-card, .is-style-card-sm):not(:first-child) {
|
|
31
|
+
margin-block-start: var(--typeset-flow);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/* Every direct child is a region: the gap spaces them, so core's flow margins go. Anything that is not a header, a
|
|
35
|
+
footer or the media is content (React's CardContent) and pads itself horizontally. */
|
|
36
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) > * {
|
|
37
|
+
margin: 0;
|
|
38
|
+
padding-inline: var(--card-padding);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Media: an image as the first child goes full bleed, removes the top padding and takes the top corners; as the last
|
|
42
|
+
child it takes the bottom corners (upstream's has-[>img:first-child]:pt-0 and *:[img:first-child]:rounded-t-xl). */
|
|
43
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) > .wp-block-image {
|
|
44
|
+
padding-inline: 0;
|
|
45
|
+
}
|
|
46
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) > .wp-block-image img {
|
|
47
|
+
display: block;
|
|
48
|
+
width: 100%;
|
|
49
|
+
height: auto;
|
|
50
|
+
border-radius: 0; /* typeset rounds media; the card decides which corners are round */
|
|
51
|
+
}
|
|
52
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm):has(> .wp-block-image:first-child) {
|
|
53
|
+
padding-top: 0;
|
|
54
|
+
}
|
|
55
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) > .wp-block-image:first-child img {
|
|
56
|
+
border-start-start-radius: var(--card-radius);
|
|
57
|
+
border-start-end-radius: var(--card-radius);
|
|
58
|
+
}
|
|
59
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) > .wp-block-image:last-child img {
|
|
60
|
+
border-end-start-radius: var(--card-radius);
|
|
61
|
+
border-end-end-radius: var(--card-radius);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* A footer removes the card's bottom padding; the footer pads all round. */
|
|
65
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm):has(> .is-style-card-footer) {
|
|
66
|
+
padding-bottom: 0;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Header: title and description stack 4px apart; an action makes it two columns, spanning both rows at the top right. */
|
|
70
|
+
.wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered) {
|
|
71
|
+
display: grid;
|
|
72
|
+
grid-auto-rows: min-content;
|
|
73
|
+
align-items: start;
|
|
74
|
+
row-gap: var(--bl-card-header-gap);
|
|
75
|
+
column-gap: var(--bl-card-header-action-gap);
|
|
76
|
+
padding-inline: var(--card-padding);
|
|
77
|
+
border-start-start-radius: var(--card-radius);
|
|
78
|
+
border-start-end-radius: var(--card-radius);
|
|
79
|
+
}
|
|
80
|
+
.wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered) > * {
|
|
81
|
+
margin: 0;
|
|
82
|
+
}
|
|
83
|
+
.wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered):has(> .wp-block-buttons) {
|
|
84
|
+
grid-template-columns: 1fr auto;
|
|
85
|
+
}
|
|
86
|
+
.wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered):has(> p) {
|
|
87
|
+
grid-template-rows: auto auto;
|
|
88
|
+
}
|
|
89
|
+
.wp-block-group.is-style-card-header-bordered {
|
|
90
|
+
padding-bottom: var(--card-padding);
|
|
91
|
+
border-bottom: var(--bl-card-border-width) solid var(--border);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* the title: the header's heading, whatever its level */
|
|
95
|
+
.wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered) > :is(h1, h2, h3, h4, h5, h6) {
|
|
96
|
+
color: inherit;
|
|
97
|
+
font-family: inherit;
|
|
98
|
+
font-size: var(--bl-card-title-md-font-size);
|
|
99
|
+
font-weight: var(--bl-card-title-font-weight);
|
|
100
|
+
line-height: var(--bl-card-title-md-line-height);
|
|
101
|
+
}
|
|
102
|
+
.wp-block-group.is-style-card-sm .wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered) > :is(h1, h2, h3, h4, h5, h6) {
|
|
103
|
+
font-size: var(--bl-card-title-sm-font-size);
|
|
104
|
+
line-height: var(--bl-card-title-sm-line-height);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* the description: the header's paragraph */
|
|
108
|
+
.wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered) > p {
|
|
109
|
+
color: var(--muted-foreground);
|
|
110
|
+
font-size: var(--bl-card-description-font-size);
|
|
111
|
+
line-height: var(--bl-card-description-line-height);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* the action: the header's buttons */
|
|
115
|
+
.wp-block-group:is(.is-style-card-header, .is-style-card-header-bordered) > .wp-block-buttons {
|
|
116
|
+
grid-column: 2;
|
|
117
|
+
grid-row: 1 / span 2;
|
|
118
|
+
align-self: start;
|
|
119
|
+
justify-self: end;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* Footer: always bordered and muted, as upstream. A Row group lays the buttons out; a Stack group (core's is-vertical)
|
|
123
|
+
stacks them full width, Figma's vertical Orientation. */
|
|
124
|
+
.wp-block-group.is-style-card-footer {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: var(--bl-card-footer-gap);
|
|
128
|
+
padding: var(--card-padding);
|
|
129
|
+
border-top: var(--bl-card-border-width) solid var(--border);
|
|
130
|
+
border-end-start-radius: var(--card-radius);
|
|
131
|
+
border-end-end-radius: var(--card-radius);
|
|
132
|
+
background-color: var(--bl-card-footer-background);
|
|
133
|
+
}
|
|
134
|
+
.wp-block-group.is-style-card-footer.is-vertical {
|
|
135
|
+
flex-direction: column;
|
|
136
|
+
align-items: stretch;
|
|
137
|
+
}
|
|
138
|
+
.wp-block-group.is-style-card-footer > * {
|
|
139
|
+
margin: 0;
|
|
140
|
+
}
|
|
141
|
+
/* the footer's buttons usually arrive as one core/buttons block: its own gap is the footer gap */
|
|
142
|
+
.wp-block-group.is-style-card-footer > .wp-block-buttons {
|
|
143
|
+
gap: var(--bl-card-footer-gap);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* A Stack footer stacks its buttons full width, as React's `CardFooter className="flex-col"` with `w-full` buttons:
|
|
147
|
+
the buttons arrive as one core/buttons block, so the stacking has to reach into it (found 2026-10-01 on the
|
|
148
|
+
kitchen-sink page, where the two buttons stayed side by side). */
|
|
149
|
+
.wp-block-group.is-style-card-footer.is-vertical > .wp-block-buttons {
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
align-items: stretch;
|
|
152
|
+
width: 100%;
|
|
153
|
+
}
|
|
154
|
+
.wp-block-group.is-style-card-footer.is-vertical > .wp-block-buttons > .wp-block-button,
|
|
155
|
+
.wp-block-group.is-style-card-footer.is-vertical > .wp-block-buttons > .wp-block-button > .wp-block-button__link {
|
|
156
|
+
width: 100%;
|
|
157
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* Layout on core blocks (B5; specs: components/section, container, columns, panel). inc/core-layout.php registers the
|
|
2
|
+
attributes and the Panel style; theme.json carries the widths, the root padding and the spacing presets. Every rule
|
|
3
|
+
mirrors registry/src/ui/{section,container,columns,panel} and reads the same tokens. */
|
|
4
|
+
|
|
5
|
+
/* The page wrapper (index.php) pads flowing content, unless it starts or ends with a full-width Section. */
|
|
6
|
+
#main > .entry-content {
|
|
7
|
+
padding-block: var(--bl-spacing-responsive-xs);
|
|
8
|
+
}
|
|
9
|
+
#main > .entry-content:has(> .alignfull:first-child) {
|
|
10
|
+
padding-block-start: 0;
|
|
11
|
+
}
|
|
12
|
+
#main > .entry-content:has(> .alignfull:last-child) {
|
|
13
|
+
padding-block-end: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* Section: a group with a scheme paints the scheme edge to edge, as React's bg-background text-foreground. */
|
|
17
|
+
.wp-block-group[data-scheme] {
|
|
18
|
+
background-color: var(--background);
|
|
19
|
+
color: var(--foreground);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Surface (baselineSurface): Figma's Surface mode on a Section, the role pair within the scheme, as React's surface. */
|
|
23
|
+
.wp-block-group.has-surface-muted { background-color: var(--muted); color: var(--muted-foreground); }
|
|
24
|
+
.wp-block-group.has-surface-card { background-color: var(--card); color: var(--card-foreground); }
|
|
25
|
+
.wp-block-group.has-surface-primary { background-color: var(--primary); color: var(--primary-foreground); }
|
|
26
|
+
.wp-block-group.has-surface-secondary { background-color: var(--secondary); color: var(--secondary-foreground); }
|
|
27
|
+
.wp-block-group.has-surface-accent { background-color: var(--accent); color: var(--accent-foreground); }
|
|
28
|
+
.wp-block-group.has-surface-inverse { background-color: var(--foreground); color: var(--background); }
|
|
29
|
+
|
|
30
|
+
/* Full-width Sections stack as bands: typeset's flow gap between blocks does not apply to them. */
|
|
31
|
+
:is(.typeset, .editor-styles-wrapper .is-root-container) > .wp-block-group.alignfull {
|
|
32
|
+
margin-block: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Columns: the gap is the responsive sm step (React's default). Core stacks below 782px (its own breakpoint, kept so
|
|
36
|
+
the column widths it writes inline still apply; React and HTML stack below 768px). */
|
|
37
|
+
.wp-block-columns {
|
|
38
|
+
gap: var(--bl-spacing-responsive-sm);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Four columns are 2 x 2 on Tablet and four from xl, as Figma's Columns/4. */
|
|
42
|
+
@media (min-width: 782px) and (max-width: 79.999rem) {
|
|
43
|
+
.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4):last-child) {
|
|
44
|
+
flex-wrap: wrap !important; /* core sets nowrap !important from 782px */
|
|
45
|
+
}
|
|
46
|
+
.wp-block-columns:not(.is-not-stacked-on-mobile):has(> .wp-block-column:nth-child(4):last-child) > .wp-block-column {
|
|
47
|
+
flex-basis: calc(50% - var(--bl-spacing-responsive-sm) / 2) !important;
|
|
48
|
+
flex-grow: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/* Invert order (baselineInvertOrder): once stacked, the last column comes first; the source keeps the desktop order. */
|
|
53
|
+
@media (max-width: 781px) {
|
|
54
|
+
.wp-block-columns.is-inverted-on-mobile:not(.is-not-stacked-on-mobile) > .wp-block-column:last-child {
|
|
55
|
+
order: -1;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Panel: Card's surface (fill, card/border tint, radius) around a section's content; padding from the spacing
|
|
60
|
+
presets, xs when none is set (an inline padding style wins over this rule). */
|
|
61
|
+
.wp-block-group.is-style-panel {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
gap: var(--bl-spacing-responsive-sm);
|
|
65
|
+
padding: var(--bl-spacing-responsive-xs);
|
|
66
|
+
border-radius: var(--bl-card-md-radius);
|
|
67
|
+
background-color: var(--card);
|
|
68
|
+
color: var(--card-foreground);
|
|
69
|
+
box-shadow: 0 0 0 var(--bl-card-border-width) var(--bl-card-border);
|
|
70
|
+
}
|
|
71
|
+
.wp-block-group.is-style-panel > * {
|
|
72
|
+
margin-block: 0;
|
|
73
|
+
}
|
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
/* Navigation Menu on WordPress (spec: components/navigation-menu/spec.md; ADR-0018: core/navigation is styled).
|
|
2
|
+
Core's markup, in either submenu mode:
|
|
3
|
+
hover (core's default) li.has-child.open-on-hover-click > a.wp-block-navigation-item__content
|
|
4
|
+
+ button.wp-block-navigation-submenu__toggle (the chevron) + ul.wp-block-navigation__submenu-container
|
|
5
|
+
opens on :hover / :focus-within, or by the chevron button (aria-expanded)
|
|
6
|
+
click li.has-child.open-on-click > button.wp-block-navigation-item__content.wp-block-navigation-submenu__toggle
|
|
7
|
+
+ span.wp-block-navigation__submenu-icon + ul.wp-block-navigation__submenu-container
|
|
8
|
+
core's Interactivity API toggles aria-expanded, closes on Escape and on a click outside; its responsive overlay (the
|
|
9
|
+
mobile menu) is kept, styled as the Sidebar's menu (the end of this file: a Sheet). Here: the top-level item drawn as
|
|
10
|
+
upstream's trigger (the li carries the box, so a hover-mode link + chevron and a click-mode button look one control), the first-level submenu as the panel
|
|
11
|
+
(Popover's look, navigation-menu/content/*), its links as NavigationMenuLink. Mirrors
|
|
12
|
+
registry/src/ui/navigation-menu/navigation-menu.tsx; the doubled class outranks core's (0,3,0) rules. */
|
|
13
|
+
|
|
14
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__container {
|
|
15
|
+
gap: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* ---- the top-level item: upstream's navigationMenuTriggerStyle ---- */
|
|
19
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item {
|
|
20
|
+
height: var(--bl-navigation-menu-trigger-height);
|
|
21
|
+
padding: var(--bl-navigation-menu-trigger-padding-y) var(--bl-navigation-menu-trigger-padding-x);
|
|
22
|
+
border-radius: var(--bl-navigation-menu-trigger-radius);
|
|
23
|
+
font-size: var(--bl-navigation-menu-trigger-font-size);
|
|
24
|
+
font-weight: var(--bl-navigation-menu-trigger-font-weight);
|
|
25
|
+
line-height: var(--bl-navigation-menu-trigger-line-height);
|
|
26
|
+
transition: background-color 150ms, box-shadow 150ms;
|
|
27
|
+
}
|
|
28
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item > .wp-block-navigation-item__content {
|
|
29
|
+
padding: 0;
|
|
30
|
+
outline: none;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
33
|
+
/* open (a submenu shown by its button) takes the background-open tint; hovered or focused, muted, as upstream's
|
|
34
|
+
data-open:bg-muted/50 data-open:hover:bg-muted */
|
|
35
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item:has(> [aria-expanded="true"]) {
|
|
36
|
+
background-color: var(--bl-navigation-menu-trigger-background-open);
|
|
37
|
+
}
|
|
38
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item:is(:hover, :has(> :focus-visible)) {
|
|
39
|
+
background-color: var(--muted);
|
|
40
|
+
}
|
|
41
|
+
/* focus keeps Baseline's ring role (already translucent), as Button's */
|
|
42
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item:has(> :focus-visible) {
|
|
43
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
44
|
+
}
|
|
45
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item > :focus-visible {
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* the chevron: navigation-menu/trigger/icon-size, icon-gap after the label; it turns while its submenu is open */
|
|
50
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child .wp-block-navigation__submenu-icon {
|
|
51
|
+
width: var(--bl-navigation-menu-trigger-icon-size);
|
|
52
|
+
height: var(--bl-navigation-menu-trigger-icon-size);
|
|
53
|
+
margin: 0 0 0 var(--bl-navigation-menu-trigger-icon-gap);
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child.open-on-hover-click > .wp-block-navigation-submenu__toggle {
|
|
57
|
+
pointer-events: auto;
|
|
58
|
+
}
|
|
59
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child.open-on-click > .wp-block-navigation-submenu__toggle {
|
|
60
|
+
padding: 0;
|
|
61
|
+
}
|
|
62
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child .wp-block-navigation__submenu-icon svg {
|
|
63
|
+
margin: 0;
|
|
64
|
+
transition: transform 300ms;
|
|
65
|
+
}
|
|
66
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child:is(:has(> [aria-expanded="true"]), .open-on-hover-click:hover) > :is(.wp-block-navigation__submenu-icon, .wp-block-navigation-submenu__toggle) svg {
|
|
67
|
+
transform: rotate(180deg);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* ---- the first-level submenu: the panel (Popover's look), navigation-menu/content/offset below the item, aligned to
|
|
71
|
+
its start (upstream's align="start") ---- */
|
|
72
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child > .wp-block-navigation__submenu-container {
|
|
73
|
+
top: 100%;
|
|
74
|
+
left: 0;
|
|
75
|
+
margin-top: var(--bl-navigation-menu-content-offset);
|
|
76
|
+
padding: var(--bl-navigation-menu-content-padding);
|
|
77
|
+
border: 0;
|
|
78
|
+
border-radius: var(--bl-navigation-menu-content-radius);
|
|
79
|
+
background-color: var(--popover);
|
|
80
|
+
color: var(--popover-foreground);
|
|
81
|
+
font-weight: normal;
|
|
82
|
+
box-shadow: 0 0 0 1px var(--bl-navigation-menu-content-border), 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
83
|
+
}
|
|
84
|
+
/* the offset is a gap the pointer crosses on its way down: a transparent bridge keeps the item :hover-ed */
|
|
85
|
+
.wp-block-navigation.wp-block-navigation :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child > .wp-block-navigation__submenu-container::before {
|
|
86
|
+
content: "";
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset-inline: 0;
|
|
89
|
+
bottom: 100%;
|
|
90
|
+
height: var(--bl-navigation-menu-content-offset);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* ---- links in a panel: NavigationMenuLink ---- */
|
|
94
|
+
.wp-block-navigation.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
|
|
95
|
+
display: flex;
|
|
96
|
+
align-items: center;
|
|
97
|
+
gap: var(--bl-navigation-menu-link-gap);
|
|
98
|
+
padding: var(--bl-navigation-menu-link-padding);
|
|
99
|
+
border-radius: var(--bl-navigation-menu-link-radius);
|
|
100
|
+
font-size: var(--bl-navigation-menu-link-font-size);
|
|
101
|
+
line-height: var(--bl-navigation-menu-link-line-height);
|
|
102
|
+
text-decoration: none;
|
|
103
|
+
outline: none;
|
|
104
|
+
transition: background-color 150ms, box-shadow 150ms;
|
|
105
|
+
}
|
|
106
|
+
.wp-block-navigation.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"] {
|
|
107
|
+
background-color: var(--bl-navigation-menu-link-background-active);
|
|
108
|
+
}
|
|
109
|
+
.wp-block-navigation.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:is(:hover, :focus) {
|
|
110
|
+
background-color: var(--muted);
|
|
111
|
+
}
|
|
112
|
+
.wp-block-navigation.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible {
|
|
113
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* ---- core's responsive overlay (the mobile menu) as the Sidebar on mobile (spec: components/sidebar/spec.md, user
|
|
117
|
+
2026-10-06): a Sheet from the start edge, the Sheet's width (75%, sheet/max-width from 40rem; user 2026-10-07: as
|
|
118
|
+
Shopify's), over the page dimmed by color/overlay, in the sidebar's fill; top-level items as SidebarMenuButton (md), submenus as SidebarMenuSub with sub buttons, always
|
|
119
|
+
expanded as core keeps them in its overlay (user 2026-10-07: core's isSubmenuOpen is true while the overlay is open,
|
|
120
|
+
so no collapsing). Core's open / close buttons, focus trap and Escape stay; a click on the dimmed page closes it
|
|
121
|
+
(assets/js/core-navigation.js). Mirrors registry/src/ui/sidebar/sidebar.tsx. Every rule starts with the panel at
|
|
122
|
+
(0,5,0): above core's white (.wp-block-navigation:not(.has-background) … .is-menu-open, (0,4,0)) and the desktop
|
|
123
|
+
rules above. ---- */
|
|
124
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
|
|
125
|
+
inset-inline-end: auto;
|
|
126
|
+
width: 75vw;
|
|
127
|
+
padding: var(--bl-sidebar-padding);
|
|
128
|
+
border-inline-end: var(--bl-sheet-border-width) solid var(--border);
|
|
129
|
+
background-color: var(--sidebar);
|
|
130
|
+
color: var(--sidebar-foreground);
|
|
131
|
+
box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
132
|
+
/* core's fade-in animates transform, which would make the panel the containing block of the fixed backdrop below */
|
|
133
|
+
animation: bl-navigation-sheet-in 150ms ease-out;
|
|
134
|
+
}
|
|
135
|
+
/* the dimmed page beside the panel (the Sheet's ::backdrop) */
|
|
136
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open::before {
|
|
137
|
+
content: "";
|
|
138
|
+
position: fixed;
|
|
139
|
+
inset-block: 0;
|
|
140
|
+
inset-inline-start: 75vw;
|
|
141
|
+
inset-inline-end: 0;
|
|
142
|
+
background-color: var(--overlay);
|
|
143
|
+
animation: bl-navigation-backdrop-in 150ms ease-out;
|
|
144
|
+
}
|
|
145
|
+
@media (min-width: 40rem) {
|
|
146
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open {
|
|
147
|
+
width: min(75vw, var(--bl-sheet-max-width));
|
|
148
|
+
}
|
|
149
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open::before {
|
|
150
|
+
inset-inline-start: min(75vw, var(--bl-sheet-max-width));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
@keyframes bl-navigation-sheet-in {
|
|
154
|
+
from { opacity: 0; inset-inline-start: -2.5rem; }
|
|
155
|
+
}
|
|
156
|
+
@keyframes bl-navigation-backdrop-in {
|
|
157
|
+
from { opacity: 0; }
|
|
158
|
+
}
|
|
159
|
+
@media (prefers-reduced-motion: reduce) {
|
|
160
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open,
|
|
161
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open::before {
|
|
162
|
+
animation: none;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation__container {
|
|
167
|
+
width: 100%;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
align-items: stretch;
|
|
170
|
+
gap: 0;
|
|
171
|
+
}
|
|
172
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item {
|
|
173
|
+
height: auto;
|
|
174
|
+
flex-direction: column;
|
|
175
|
+
align-items: stretch;
|
|
176
|
+
padding: 0;
|
|
177
|
+
border-radius: 0;
|
|
178
|
+
background-color: transparent;
|
|
179
|
+
box-shadow: none;
|
|
180
|
+
font-weight: normal;
|
|
181
|
+
}
|
|
182
|
+
/* a menu button */
|
|
183
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open :is(.wp-block-navigation__container, .wp-block-page-list) > .wp-block-navigation-item > .wp-block-navigation-item__content {
|
|
184
|
+
display: flex;
|
|
185
|
+
width: 100%;
|
|
186
|
+
min-width: 0;
|
|
187
|
+
height: var(--bl-sidebar-menu-button-md-height);
|
|
188
|
+
align-items: center;
|
|
189
|
+
justify-content: flex-start;
|
|
190
|
+
gap: var(--bl-sidebar-menu-button-gap);
|
|
191
|
+
padding: var(--bl-sidebar-menu-button-padding);
|
|
192
|
+
border-radius: var(--bl-sidebar-menu-button-radius);
|
|
193
|
+
font-size: var(--bl-sidebar-menu-button-md-font-size);
|
|
194
|
+
line-height: var(--bl-sidebar-menu-button-md-line-height);
|
|
195
|
+
text-align: start;
|
|
196
|
+
transition: background-color 150ms;
|
|
197
|
+
}
|
|
198
|
+
/* sub-menus: a start rule, indented; their links are sub buttons */
|
|
199
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child > .wp-block-navigation__submenu-container {
|
|
200
|
+
display: flex;
|
|
201
|
+
position: static;
|
|
202
|
+
flex-direction: column;
|
|
203
|
+
gap: var(--bl-sidebar-menu-sub-gap);
|
|
204
|
+
min-width: 0;
|
|
205
|
+
margin: 0 var(--bl-sidebar-menu-sub-margin-x);
|
|
206
|
+
padding: var(--bl-sidebar-menu-sub-padding-y) var(--bl-sidebar-menu-sub-padding-x);
|
|
207
|
+
border: 0 solid var(--sidebar-border);
|
|
208
|
+
border-inline-start-width: var(--bl-sidebar-border-width);
|
|
209
|
+
border-radius: 0;
|
|
210
|
+
background-color: transparent;
|
|
211
|
+
color: inherit;
|
|
212
|
+
box-shadow: none;
|
|
213
|
+
}
|
|
214
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open :is(.wp-block-navigation__container, .wp-block-page-list) > .has-child > .wp-block-navigation__submenu-container::before {
|
|
215
|
+
content: none;
|
|
216
|
+
}
|
|
217
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item {
|
|
218
|
+
align-self: stretch;
|
|
219
|
+
}
|
|
220
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
|
|
221
|
+
display: flex;
|
|
222
|
+
width: 100%;
|
|
223
|
+
height: var(--bl-sidebar-menu-sub-button-height);
|
|
224
|
+
align-items: center;
|
|
225
|
+
justify-content: flex-start;
|
|
226
|
+
gap: var(--bl-sidebar-menu-button-gap);
|
|
227
|
+
padding: 0 var(--bl-sidebar-menu-sub-button-padding-x);
|
|
228
|
+
border-radius: var(--bl-sidebar-menu-button-radius);
|
|
229
|
+
font-size: var(--bl-sidebar-menu-button-md-font-size);
|
|
230
|
+
line-height: var(--bl-sidebar-menu-button-md-line-height);
|
|
231
|
+
}
|
|
232
|
+
/* core's close button as the Sheet's: a ghost sm icon-only Button, sheet/close-inset from the panel's corner (core
|
|
233
|
+
places it in the panel's padding, hence the difference) */
|
|
234
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close {
|
|
235
|
+
top: calc(var(--bl-sheet-close-inset) - var(--bl-sidebar-padding));
|
|
236
|
+
right: calc(var(--bl-sheet-close-inset) - var(--bl-sidebar-padding));
|
|
237
|
+
display: flex;
|
|
238
|
+
width: var(--bl-button-sm-height);
|
|
239
|
+
height: var(--bl-button-sm-height);
|
|
240
|
+
align-items: center;
|
|
241
|
+
justify-content: center;
|
|
242
|
+
padding: 0;
|
|
243
|
+
border-radius: var(--bl-button-sm-radius);
|
|
244
|
+
background-color: transparent;
|
|
245
|
+
color: var(--foreground);
|
|
246
|
+
outline: none;
|
|
247
|
+
transition: background-color 150ms;
|
|
248
|
+
}
|
|
249
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close:hover {
|
|
250
|
+
background-color: var(--muted);
|
|
251
|
+
}
|
|
252
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close:focus-visible {
|
|
253
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
254
|
+
}
|
|
255
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close svg {
|
|
256
|
+
width: var(--bl-button-sm-icon-size);
|
|
257
|
+
height: var(--bl-button-sm-icon-size);
|
|
258
|
+
}
|
|
259
|
+
[dir="rtl"] .wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__responsive-container-close {
|
|
260
|
+
right: auto;
|
|
261
|
+
left: calc(var(--bl-sheet-close-inset) - var(--bl-sidebar-padding));
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* the submenus are always open: no chevrons */
|
|
265
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation__submenu-icon {
|
|
266
|
+
display: none;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* hover, focus and the current page, as SidebarMenuButton / SidebarMenuSubButton */
|
|
270
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content:is(:hover, :focus-visible),
|
|
271
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content:is(:hover, :focus-visible) {
|
|
272
|
+
background-color: var(--sidebar-accent);
|
|
273
|
+
color: var(--sidebar-accent-foreground);
|
|
274
|
+
}
|
|
275
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content:focus-visible {
|
|
276
|
+
outline: none;
|
|
277
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--sidebar-ring);
|
|
278
|
+
}
|
|
279
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .wp-block-navigation-item__content[aria-current="page"],
|
|
280
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open.is-menu-open .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content[aria-current="page"] {
|
|
281
|
+
background-color: var(--sidebar-accent);
|
|
282
|
+
color: var(--sidebar-accent-foreground);
|
|
283
|
+
font-weight: var(--bl-sidebar-menu-button-font-weight-active);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* core's fallback menu (no wp_navigation yet) is a core/page-list nested in the container: its items are the top level
|
|
287
|
+
(the selectors above name both), and its list takes the container's flex row */
|
|
288
|
+
.wp-block-navigation.wp-block-navigation .wp-block-navigation__container > .wp-block-page-list {
|
|
289
|
+
display: contents;
|
|
290
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/* Pagination on WordPress (spec: components/pagination/spec.md, ADR-0018): core/query-pagination and its children, and
|
|
2
|
+
the classic paginate_links() / the_posts_pagination() output, which prints the same .page-numbers markup.
|
|
3
|
+
|
|
4
|
+
nav.wp-block-query-pagination > a.wp-block-query-pagination-previous (span.…-previous-arrow "«")
|
|
5
|
+
> div.wp-block-query-pagination-numbers > a.page-numbers | span.page-numbers.current
|
|
6
|
+
| span.page-numbers.dots
|
|
7
|
+
> a.wp-block-query-pagination-next (span.…-next-arrow "»")
|
|
8
|
+
nav.navigation.pagination > .nav-links (classic) > a.prev.page-numbers, a.page-numbers, span.current, span.dots,
|
|
9
|
+
a.next.page-numbers
|
|
10
|
+
|
|
11
|
+
This file is what every look shares: the row, the links' type, the focus ring, core's arrow characters as the system
|
|
12
|
+
chevrons and the dots as more-horizontal (masks from src/icons.generated.css), the disabled Previous/Next that
|
|
13
|
+
inc/core-pagination.php puts back on the first and last page, and in a pagination narrower than 32rem (a container
|
|
14
|
+
query, so a narrow column behaves like a phone) only Previous and Next, with their text, remain. Each look's boxes and colours are in src/looks.generated.css, generated from
|
|
15
|
+
tokens/looks/wordpress/pagination-<look>.css with only the project's looks installed (ADR-0031). */
|
|
16
|
+
|
|
17
|
+
/* the pagination is the container its links query */
|
|
18
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)) {
|
|
19
|
+
container: pagination / inline-size;
|
|
20
|
+
}
|
|
21
|
+
:is(.wp-block-query-pagination, .wp-block-query-pagination-numbers, .nav-links) {
|
|
22
|
+
display: flex;
|
|
23
|
+
flex-wrap: wrap;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* every link and the dots */
|
|
29
|
+
:is(.wp-block-query-pagination, .nav-links) :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
|
|
30
|
+
display: inline-flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
justify-content: center;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
margin: 0;
|
|
35
|
+
font-family: var(--bl-button-font-family);
|
|
36
|
+
font-size: var(--bl-button-md-font-size);
|
|
37
|
+
font-weight: var(--bl-button-font-weight);
|
|
38
|
+
line-height: var(--bl-button-md-line-height);
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
transition: background-color 150ms, color 150ms, border-color 150ms, box-shadow 150ms;
|
|
42
|
+
}
|
|
43
|
+
:is(.wp-block-query-pagination, .nav-links) :is(a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):focus-visible {
|
|
44
|
+
outline: none;
|
|
45
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/* a disabled Previous / Next (no href): dimmed and inert, as Button's aria-disabled */
|
|
49
|
+
:is(.wp-block-query-pagination, .nav-links) [aria-disabled="true"] {
|
|
50
|
+
opacity: 0.5;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* Previous / Next: core's « » become the chevrons, on the outer side */
|
|
55
|
+
:is(.wp-block-query-pagination-previous-arrow, .wp-block-query-pagination-next-arrow),
|
|
56
|
+
.nav-links .prev::before,
|
|
57
|
+
.nav-links .next::after {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
width: var(--bl-button-md-icon-size);
|
|
61
|
+
height: var(--bl-button-md-icon-size);
|
|
62
|
+
margin: 0;
|
|
63
|
+
font-size: 0; /* core's « » */
|
|
64
|
+
background-color: currentColor;
|
|
65
|
+
mask-repeat: no-repeat;
|
|
66
|
+
mask-position: center;
|
|
67
|
+
mask-size: 100% 100%;
|
|
68
|
+
}
|
|
69
|
+
.nav-links .prev::before,
|
|
70
|
+
.nav-links .next::after {
|
|
71
|
+
content: "";
|
|
72
|
+
}
|
|
73
|
+
/* (selector lists, not :is(): a pseudo-element is not allowed inside :is()) */
|
|
74
|
+
.wp-block-query-pagination-previous-arrow,
|
|
75
|
+
.nav-links .prev::before {
|
|
76
|
+
mask-image: var(--bl-icon-chevron-left);
|
|
77
|
+
}
|
|
78
|
+
.wp-block-query-pagination-next-arrow,
|
|
79
|
+
.nav-links .next::after {
|
|
80
|
+
mask-image: var(--bl-icon-chevron-right);
|
|
81
|
+
}
|
|
82
|
+
[dir="rtl"] .wp-block-query-pagination-previous-arrow,
|
|
83
|
+
[dir="rtl"] .wp-block-query-pagination-next-arrow,
|
|
84
|
+
[dir="rtl"] .nav-links .prev::before,
|
|
85
|
+
[dir="rtl"] .nav-links .next::after {
|
|
86
|
+
transform: scaleX(-1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* the dots: the more-horizontal glyph */
|
|
90
|
+
:is(.wp-block-query-pagination, .nav-links) .page-numbers.dots {
|
|
91
|
+
font-size: 0;
|
|
92
|
+
}
|
|
93
|
+
:is(.wp-block-query-pagination, .nav-links) .page-numbers.dots::before {
|
|
94
|
+
content: "";
|
|
95
|
+
width: var(--bl-button-md-icon-size);
|
|
96
|
+
height: var(--bl-button-md-icon-size);
|
|
97
|
+
background-color: currentColor;
|
|
98
|
+
mask-image: var(--bl-icon-more-horizontal);
|
|
99
|
+
mask-repeat: no-repeat;
|
|
100
|
+
mask-position: center;
|
|
101
|
+
mask-size: 100% 100%;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* in a pagination narrower than 32rem the page numbers and the dots hide; Previous and Next keep their text (user,
|
|
105
|
+
2026-10-02). A container query at the Primitive container/lg (32rem), as React's @max-lg/pagination; plain CSS cannot read the
|
|
106
|
+
variable in the condition, so the value is repeated here. */
|
|
107
|
+
@container pagination (width < 32rem) {
|
|
108
|
+
.wp-block-query-pagination .wp-block-query-pagination-numbers,
|
|
109
|
+
.nav-links .page-numbers:not(.prev, .next) {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
}
|