@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,358 @@
|
|
|
1
|
+
/* Generated by tokens/looks.mjs from tokens/looks/wordpress/*.css (ADR-0031: one look per site). Do not edit. */
|
|
2
|
+
|
|
3
|
+
/* accordion: default (the project's look: also a block with no style chosen, and the classic markup) */
|
|
4
|
+
/* blocks: core/accordion core/details
|
|
5
|
+
Accordion, DEFAULT look on WordPress (registry/src/ui/accordion/accordion.tsx): upstream's, no box, a rule under every
|
|
6
|
+
item but the last. Consecutive core/details blocks read as one accordion the same way.
|
|
7
|
+
Shared rules: src/core-accordion.css. ADR-0031: installed by tokens/looks.mjs into src/looks.generated.css. */
|
|
8
|
+
|
|
9
|
+
.wp-block-accordion:is(.is-style-default, :not([class*="is-style-"])) > .wp-block-accordion-item:not(:last-child),
|
|
10
|
+
.wp-block-details:is(.is-style-default, :not([class*="is-style-"])):has(+ .wp-block-details) {
|
|
11
|
+
border-bottom: var(--bl-accordion-border-width) solid var(--border);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* accordion: contained */
|
|
15
|
+
/* blocks: core/accordion core/details
|
|
16
|
+
Accordion, CONTAINED look on WordPress (registry/src/ui/accordion/accordion.contained.tsx): each item a bordered card
|
|
17
|
+
(card fill, accordion/radius, accordion/padding-x), the cards spaced by accordion/group/gap.
|
|
18
|
+
Shared rules: src/core-accordion.css. ADR-0031: installed by tokens/looks.mjs into src/looks.generated.css. */
|
|
19
|
+
|
|
20
|
+
.wp-block-accordion.is-style-contained > .wp-block-accordion-item,
|
|
21
|
+
.wp-block-details.is-style-contained {
|
|
22
|
+
padding-inline: var(--bl-accordion-padding-x);
|
|
23
|
+
border: var(--bl-accordion-border-width) solid var(--border);
|
|
24
|
+
border-radius: var(--bl-accordion-radius);
|
|
25
|
+
background-color: var(--card);
|
|
26
|
+
color: var(--card-foreground);
|
|
27
|
+
}
|
|
28
|
+
.wp-block-accordion.is-style-contained > .wp-block-accordion-item + .wp-block-accordion-item,
|
|
29
|
+
.wp-block-details.is-style-contained + .wp-block-details {
|
|
30
|
+
margin-block-start: var(--bl-accordion-group-gap);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* open, then hovered (hover wins): a tint layered over the card fill, a border and the text colour on the whole card;
|
|
34
|
+
the title and chevron take the hover colours with the trigger (accordion/{background,border,foreground,icon}-*) */
|
|
35
|
+
.wp-block-accordion.is-style-contained > .wp-block-accordion-item.is-open,
|
|
36
|
+
.wp-block-details.is-style-contained[open] {
|
|
37
|
+
border-color: var(--bl-accordion-border-open);
|
|
38
|
+
background-image: linear-gradient(var(--bl-accordion-background-open), var(--bl-accordion-background-open));
|
|
39
|
+
color: var(--bl-accordion-foreground-open);
|
|
40
|
+
}
|
|
41
|
+
.wp-block-accordion.is-style-contained > .wp-block-accordion-item:has(.wp-block-accordion-heading__toggle:hover),
|
|
42
|
+
.wp-block-details.is-style-contained:has(> summary:hover) {
|
|
43
|
+
border-color: var(--bl-accordion-border-hover);
|
|
44
|
+
background-image: linear-gradient(var(--bl-accordion-background-hover), var(--bl-accordion-background-hover));
|
|
45
|
+
}
|
|
46
|
+
.wp-block-accordion.is-style-contained > .wp-block-accordion-item .wp-block-accordion-heading__toggle:hover,
|
|
47
|
+
.wp-block-details.is-style-contained > summary:hover {
|
|
48
|
+
color: var(--bl-accordion-foreground-hover);
|
|
49
|
+
}
|
|
50
|
+
.wp-block-accordion.is-style-contained > .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon,
|
|
51
|
+
.wp-block-details.is-style-contained[open] > summary::after {
|
|
52
|
+
background-color: var(--bl-accordion-icon-open);
|
|
53
|
+
}
|
|
54
|
+
.wp-block-accordion.is-style-contained > .wp-block-accordion-item .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon,
|
|
55
|
+
.wp-block-details.is-style-contained > summary:hover::after {
|
|
56
|
+
background-color: var(--bl-accordion-icon-hover);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* accordion: split */
|
|
60
|
+
/* blocks: core/accordion core/details
|
|
61
|
+
Accordion, SPLIT look on WordPress (registry/src/ui/accordion/accordion.split.tsx): each item a bordered card whose
|
|
62
|
+
header is a bordered box of its own (overlapping the card's edge by the border width and painted over it, so its open
|
|
63
|
+
and hover border wins; the item must not clip it), the
|
|
64
|
+
content padded below it; the cards spaced by accordion/group/gap.
|
|
65
|
+
Shared rules: src/core-accordion.css. ADR-0031: installed by tokens/looks.mjs into src/looks.generated.css. */
|
|
66
|
+
|
|
67
|
+
.wp-block-accordion.is-style-split > .wp-block-accordion-item,
|
|
68
|
+
.wp-block-details.is-style-split {
|
|
69
|
+
border: var(--bl-accordion-border-width) solid var(--border);
|
|
70
|
+
border-radius: var(--bl-accordion-radius);
|
|
71
|
+
background-color: var(--card);
|
|
72
|
+
color: var(--card-foreground);
|
|
73
|
+
}
|
|
74
|
+
.wp-block-accordion.is-style-split > .wp-block-accordion-item + .wp-block-accordion-item,
|
|
75
|
+
.wp-block-details.is-style-split + .wp-block-details {
|
|
76
|
+
margin-block-start: var(--bl-accordion-group-gap);
|
|
77
|
+
}
|
|
78
|
+
.wp-block-accordion.is-style-split .wp-block-accordion-heading__toggle,
|
|
79
|
+
.wp-block-details.is-style-split > summary {
|
|
80
|
+
/* a <button> does not stretch, so its width takes back the two border widths the negative margin adds */
|
|
81
|
+
width: calc(100% + 2 * var(--bl-accordion-border-width));
|
|
82
|
+
margin: calc(var(--bl-accordion-border-width) * -1);
|
|
83
|
+
padding-inline: var(--bl-accordion-padding-x);
|
|
84
|
+
border: var(--bl-accordion-border-width) solid var(--border);
|
|
85
|
+
border-radius: var(--bl-accordion-radius);
|
|
86
|
+
background-color: var(--card);
|
|
87
|
+
}
|
|
88
|
+
/* the content's padding: inline on the panel, held while core hides it (its hidden rule zeroes padding with !important,
|
|
89
|
+
which would reflow the text as it closes); the top as a spacer inside the clipped panel, like the bottom one in
|
|
90
|
+
src/core-accordion.css, so opening and closing only reveal it */
|
|
91
|
+
.wp-block-accordion.is-style-split .wp-block-accordion-panel {
|
|
92
|
+
padding: 0 var(--bl-accordion-padding-x);
|
|
93
|
+
}
|
|
94
|
+
.wp-block-accordion.is-style-split .wp-block-accordion-panel[hidden] {
|
|
95
|
+
padding-inline: var(--bl-accordion-padding-x) !important;
|
|
96
|
+
}
|
|
97
|
+
.wp-block-accordion.is-style-split .wp-block-accordion-panel::before {
|
|
98
|
+
content: "";
|
|
99
|
+
display: block;
|
|
100
|
+
block-size: var(--bl-accordion-padding-y);
|
|
101
|
+
}
|
|
102
|
+
.wp-block-details.is-style-split > :not(summary) {
|
|
103
|
+
padding-inline: var(--bl-accordion-padding-x);
|
|
104
|
+
}
|
|
105
|
+
/* not only while [open]: inside ::details-content it is clipped with the rest, so a close no longer drops it first */
|
|
106
|
+
.wp-block-details.is-style-split > summary + * {
|
|
107
|
+
margin-block-start: var(--bl-accordion-padding-y);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* open, then hovered (hover wins): the trigger box alone takes a tint over the card fill, a border and the text colour
|
|
111
|
+
(accordion/{background,border,foreground,icon}-*) */
|
|
112
|
+
.wp-block-accordion.is-style-split > .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle,
|
|
113
|
+
.wp-block-details.is-style-split[open] > summary {
|
|
114
|
+
border-color: var(--bl-accordion-border-open);
|
|
115
|
+
background-image: linear-gradient(var(--bl-accordion-background-open), var(--bl-accordion-background-open));
|
|
116
|
+
color: var(--bl-accordion-foreground-open);
|
|
117
|
+
}
|
|
118
|
+
.wp-block-accordion.is-style-split > .wp-block-accordion-item .wp-block-accordion-heading__toggle:hover,
|
|
119
|
+
.wp-block-details.is-style-split > summary:hover {
|
|
120
|
+
border-color: var(--bl-accordion-border-hover);
|
|
121
|
+
background-image: linear-gradient(var(--bl-accordion-background-hover), var(--bl-accordion-background-hover));
|
|
122
|
+
color: var(--bl-accordion-foreground-hover);
|
|
123
|
+
}
|
|
124
|
+
.wp-block-accordion.is-style-split > .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon,
|
|
125
|
+
.wp-block-details.is-style-split[open] > summary::after {
|
|
126
|
+
background-color: var(--bl-accordion-icon-open);
|
|
127
|
+
}
|
|
128
|
+
.wp-block-accordion.is-style-split > .wp-block-accordion-item .wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon,
|
|
129
|
+
.wp-block-details.is-style-split > summary:hover::after {
|
|
130
|
+
background-color: var(--bl-accordion-icon-hover);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* pagination: default (the project's look: also a block with no style chosen, and the classic markup) */
|
|
134
|
+
/* blocks: core/query-pagination
|
|
135
|
+
Pagination, DEFAULT look on WordPress (upstream's; registry/src/ui/pagination/pagination.tsx). Links are Button md
|
|
136
|
+
boxes, ghost; the current page is the outline Button. Shared rules: src/core-pagination.css.
|
|
137
|
+
ADR-0031: tokens/looks.mjs installs the project's looks into src/looks.generated.css; the project's own look also
|
|
138
|
+
matches a block with no style chosen and the classic navigation, so `:is(.is-style-default, :not([class*="is-style-"]))` here is rewritten for it. */
|
|
139
|
+
|
|
140
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)):is(.is-style-default, :not([class*="is-style-"])) :is(.wp-block-query-pagination-numbers, .nav-links),
|
|
141
|
+
.wp-block-query-pagination:is(.is-style-default, :not([class*="is-style-"])) {
|
|
142
|
+
gap: var(--bl-pagination-default-gap);
|
|
143
|
+
}
|
|
144
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)):is(.is-style-default, :not([class*="is-style-"])) :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
|
|
145
|
+
gap: var(--bl-button-md-gap);
|
|
146
|
+
min-width: var(--bl-button-md-height);
|
|
147
|
+
height: var(--bl-button-md-height);
|
|
148
|
+
padding: 0 var(--bl-button-md-padding-x);
|
|
149
|
+
border: var(--bl-pagination-bordered-border-width) solid transparent;
|
|
150
|
+
border-radius: var(--bl-button-md-radius);
|
|
151
|
+
color: var(--foreground);
|
|
152
|
+
}
|
|
153
|
+
/* page numbers are square icon buttons */
|
|
154
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)):is(.is-style-default, :not([class*="is-style-"])) .page-numbers:not(.prev, .next) {
|
|
155
|
+
width: var(--bl-button-md-height);
|
|
156
|
+
padding: 0;
|
|
157
|
+
}
|
|
158
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)):is(.is-style-default, :not([class*="is-style-"])) :is(a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
|
|
159
|
+
background-color: var(--muted);
|
|
160
|
+
}
|
|
161
|
+
/* the current page: the outline Button */
|
|
162
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)):is(.is-style-default, :not([class*="is-style-"])) .page-numbers.current {
|
|
163
|
+
border-color: var(--border);
|
|
164
|
+
}
|
|
165
|
+
/* Previous / Next: the icon side tightened as Button does (padding-x minus half the gap) */
|
|
166
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)):is(.is-style-default, :not([class*="is-style-"])) :is(.wp-block-query-pagination-previous, .prev) {
|
|
167
|
+
padding-inline-start: calc(var(--bl-button-md-padding-x) - var(--bl-button-md-gap) / 2);
|
|
168
|
+
}
|
|
169
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)):is(.is-style-default, :not([class*="is-style-"])) :is(.wp-block-query-pagination-next, .next) {
|
|
170
|
+
padding-inline-end: calc(var(--bl-button-md-padding-x) - var(--bl-button-md-gap) / 2);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* pagination: bordered */
|
|
174
|
+
/* blocks: core/query-pagination
|
|
175
|
+
Pagination, BORDERED look on WordPress (registry/src/ui/pagination/pagination.bordered.tsx). A rule across the top;
|
|
176
|
+
links are Button md boxes in muted text with an indicator on that rule: clear, pagination/bordered/indicator-hover on
|
|
177
|
+
hover, primary on the current page (its text primary too). Previous and Next sit at the ends, the numbers between
|
|
178
|
+
them. The spacing is the default look's (Button md and pagination/default/gap, user 2026-10-02).
|
|
179
|
+
Shared rules: src/core-pagination.css. ADR-0031: installed by tokens/looks.mjs into src/looks.generated.css. */
|
|
180
|
+
|
|
181
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-bordered {
|
|
182
|
+
border-top: var(--bl-pagination-bordered-border-width) solid var(--border);
|
|
183
|
+
}
|
|
184
|
+
/* the block: Previous | numbers | Next on three tracks, so the numbers stay centred whatever the labels' widths */
|
|
185
|
+
.wp-block-query-pagination.is-style-bordered {
|
|
186
|
+
display: grid;
|
|
187
|
+
grid-template-columns: 1fr auto 1fr;
|
|
188
|
+
align-items: start;
|
|
189
|
+
gap: var(--bl-pagination-default-gap);
|
|
190
|
+
}
|
|
191
|
+
.wp-block-query-pagination.is-style-bordered > .wp-block-query-pagination-previous {
|
|
192
|
+
grid-column: 1;
|
|
193
|
+
justify-self: start;
|
|
194
|
+
}
|
|
195
|
+
.wp-block-query-pagination.is-style-bordered > .wp-block-query-pagination-numbers {
|
|
196
|
+
grid-column: 2;
|
|
197
|
+
gap: var(--bl-pagination-default-gap);
|
|
198
|
+
}
|
|
199
|
+
.wp-block-query-pagination.is-style-bordered > .wp-block-query-pagination-next {
|
|
200
|
+
grid-column: 3;
|
|
201
|
+
justify-self: end;
|
|
202
|
+
}
|
|
203
|
+
/* the classic output is flat: Previous and Next push to the ends */
|
|
204
|
+
.navigation:is(.pagination, .comments-pagination).is-style-bordered .nav-links {
|
|
205
|
+
align-items: flex-start;
|
|
206
|
+
gap: var(--bl-pagination-default-gap);
|
|
207
|
+
}
|
|
208
|
+
.navigation:is(.pagination, .comments-pagination).is-style-bordered .nav-links > .prev {
|
|
209
|
+
margin-inline-end: auto;
|
|
210
|
+
}
|
|
211
|
+
.navigation:is(.pagination, .comments-pagination).is-style-bordered .nav-links > .next {
|
|
212
|
+
margin-inline-start: auto;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Button md boxes; the links overlap the rule by its width, so the indicator sits on it */
|
|
216
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-bordered :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
|
|
217
|
+
gap: var(--bl-button-md-gap);
|
|
218
|
+
min-width: var(--bl-button-md-height);
|
|
219
|
+
height: var(--bl-button-md-height);
|
|
220
|
+
margin-top: calc(-1 * var(--bl-pagination-bordered-border-width));
|
|
221
|
+
padding: 0 var(--bl-button-md-padding-x);
|
|
222
|
+
border: 0;
|
|
223
|
+
border-top: var(--bl-pagination-bordered-indicator-width) solid transparent;
|
|
224
|
+
border-radius: 0;
|
|
225
|
+
color: var(--muted-foreground);
|
|
226
|
+
}
|
|
227
|
+
/* page numbers are square, as the icon-md links of the other looks */
|
|
228
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-bordered .page-numbers:not(.prev, .next) {
|
|
229
|
+
width: var(--bl-button-md-height);
|
|
230
|
+
padding: 0;
|
|
231
|
+
}
|
|
232
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-bordered :is(a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
|
|
233
|
+
border-top-color: var(--bl-pagination-bordered-indicator-hover);
|
|
234
|
+
color: var(--foreground);
|
|
235
|
+
}
|
|
236
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-bordered .page-numbers.current {
|
|
237
|
+
border-top-color: var(--primary);
|
|
238
|
+
color: var(--primary);
|
|
239
|
+
}
|
|
240
|
+
/* Previous / Next: the icon side tightened as Button does (padding-x minus half the gap) */
|
|
241
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-bordered :is(.wp-block-query-pagination-previous, .prev) {
|
|
242
|
+
padding-inline-start: calc(var(--bl-button-md-padding-x) - var(--bl-button-md-gap) / 2);
|
|
243
|
+
}
|
|
244
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-bordered :is(.wp-block-query-pagination-next, .next) {
|
|
245
|
+
padding-inline-end: calc(var(--bl-button-md-padding-x) - var(--bl-button-md-gap) / 2);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* pagination: grouped */
|
|
249
|
+
/* blocks: core/query-pagination
|
|
250
|
+
Pagination, GROUPED look on WordPress (registry/src/ui/pagination/pagination.grouped.tsx). The links are Button md
|
|
251
|
+
boxes joined into one outline with Button Group's seams, across the numbers wrapper; the current page is filled with
|
|
252
|
+
accent. Shared rules: src/core-pagination.css. ADR-0031: installed by tokens/looks.mjs into src/looks.generated.css. */
|
|
253
|
+
|
|
254
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped :is(.wp-block-query-pagination-numbers, .nav-links),
|
|
255
|
+
.wp-block-query-pagination.is-style-grouped {
|
|
256
|
+
gap: 0;
|
|
257
|
+
}
|
|
258
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) {
|
|
259
|
+
gap: var(--bl-button-md-gap);
|
|
260
|
+
min-width: var(--bl-button-md-height);
|
|
261
|
+
height: var(--bl-button-md-height);
|
|
262
|
+
padding: 0 var(--bl-button-md-padding-x);
|
|
263
|
+
border: var(--bl-pagination-bordered-border-width) solid var(--border);
|
|
264
|
+
border-inline-start-width: 0;
|
|
265
|
+
border-radius: 0;
|
|
266
|
+
color: var(--foreground);
|
|
267
|
+
}
|
|
268
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped .page-numbers:not(.prev, .next) {
|
|
269
|
+
width: var(--bl-button-md-height);
|
|
270
|
+
padding: 0;
|
|
271
|
+
}
|
|
272
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped :is(a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):hover {
|
|
273
|
+
background-color: var(--muted);
|
|
274
|
+
}
|
|
275
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped .page-numbers.current {
|
|
276
|
+
background-color: var(--accent);
|
|
277
|
+
color: var(--accent-foreground);
|
|
278
|
+
}
|
|
279
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped :is(.wp-block-query-pagination-previous, .prev) {
|
|
280
|
+
padding-inline-start: calc(var(--bl-button-md-padding-x) - var(--bl-button-md-gap) / 2);
|
|
281
|
+
}
|
|
282
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped :is(.wp-block-query-pagination-next, .next) {
|
|
283
|
+
padding-inline-end: calc(var(--bl-button-md-padding-x) - var(--bl-button-md-gap) / 2);
|
|
284
|
+
}
|
|
285
|
+
/* the outer ends of the group: Previous opens it and Next closes it (both are always rendered) */
|
|
286
|
+
.wp-block-query-pagination.is-style-grouped > a:first-child,
|
|
287
|
+
.wp-block-query-pagination.is-style-grouped > .wp-block-query-pagination-numbers:first-child > :first-child,
|
|
288
|
+
.navigation:is(.pagination, .comments-pagination).is-style-grouped .nav-links > :first-child {
|
|
289
|
+
border-inline-start-width: var(--bl-pagination-bordered-border-width);
|
|
290
|
+
border-start-start-radius: var(--bl-button-md-radius);
|
|
291
|
+
border-end-start-radius: var(--bl-button-md-radius);
|
|
292
|
+
}
|
|
293
|
+
.wp-block-query-pagination.is-style-grouped > a:last-child,
|
|
294
|
+
.wp-block-query-pagination.is-style-grouped > .wp-block-query-pagination-numbers:last-child > :last-child,
|
|
295
|
+
.navigation:is(.pagination, .comments-pagination).is-style-grouped .nav-links > :last-child {
|
|
296
|
+
border-start-end-radius: var(--bl-button-md-radius);
|
|
297
|
+
border-end-end-radius: var(--bl-button-md-radius);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* disabled keeps its outline, which is the group's edge: muted text instead of the 50 % opacity */
|
|
301
|
+
:is(.wp-block-query-pagination, .navigation:is(.pagination, .comments-pagination)).is-style-grouped [aria-disabled="true"] {
|
|
302
|
+
opacity: 1;
|
|
303
|
+
color: var(--muted-foreground);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/* tabs: default (the project's look: also a block with no style chosen, and the classic markup) */
|
|
307
|
+
/* blocks: core/tabs
|
|
308
|
+
Tabs, DEFAULT look on WordPress (registry/src/ui/tabs/tabs.tsx): upstream's muted pill list, the selected tab a
|
|
309
|
+
background pill with Tailwind's shadow-sm. Shared rules: src/core-tabs.css. ADR-0031: installed by tokens/looks.mjs
|
|
310
|
+
into src/looks.generated.css. */
|
|
311
|
+
|
|
312
|
+
.wp-block-tabs:is(.is-style-default, :not([class*="is-style-"])) > .wp-block-tab-list {
|
|
313
|
+
gap: 0;
|
|
314
|
+
border-radius: var(--bl-tabs-list-radius);
|
|
315
|
+
background-color: var(--muted);
|
|
316
|
+
}
|
|
317
|
+
.wp-block-tabs:is(.is-style-default, :not([class*="is-style-"])) > .wp-block-tab-list > button[aria-selected="true"] {
|
|
318
|
+
background-color: var(--background);
|
|
319
|
+
box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
320
|
+
}
|
|
321
|
+
.wp-block-tabs:is(.is-style-default, :not([class*="is-style-"])) > .wp-block-tab-list > button[aria-selected="true"]:focus-visible {
|
|
322
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring), 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/* tabs: line */
|
|
326
|
+
/* blocks: core/tabs
|
|
327
|
+
Tabs, LINE look on WordPress (registry/src/ui/tabs/tabs.line.tsx), drawn as bordered Pagination's (user, 2026-10-06):
|
|
328
|
+
a tabs/line/border-width rule under the list, the tabs tabs/list/gap-line apart, and a tabs/line/indicator-width
|
|
329
|
+
indicator sitting on the rule, primary under the selected tab (whose text is primary too) and
|
|
330
|
+
tabs/line/indicator-hover under a hovered one. Core has no vertical tabs. Shared rules: src/core-tabs.css. ADR-0031:
|
|
331
|
+
installed by tokens/looks.mjs into src/looks.generated.css. */
|
|
332
|
+
|
|
333
|
+
.wp-block-tabs.is-style-line > .wp-block-tab-list {
|
|
334
|
+
gap: var(--bl-tabs-list-gap-line);
|
|
335
|
+
border-bottom: var(--bl-tabs-line-border-width) solid var(--border);
|
|
336
|
+
background-color: transparent;
|
|
337
|
+
}
|
|
338
|
+
.wp-block-tabs.is-style-line > .wp-block-tab-list > button::after {
|
|
339
|
+
content: "";
|
|
340
|
+
position: absolute;
|
|
341
|
+
inset-inline: 0;
|
|
342
|
+
bottom: calc(-1 * (var(--bl-tabs-list-padding) + var(--bl-tabs-line-border-width)));
|
|
343
|
+
height: var(--bl-tabs-line-indicator-width);
|
|
344
|
+
background-color: var(--primary);
|
|
345
|
+
opacity: 0;
|
|
346
|
+
pointer-events: none;
|
|
347
|
+
transition: opacity 150ms;
|
|
348
|
+
}
|
|
349
|
+
.wp-block-tabs.is-style-line > .wp-block-tab-list > button:hover:not([aria-selected="true"])::after {
|
|
350
|
+
background-color: var(--bl-tabs-line-indicator-hover);
|
|
351
|
+
opacity: 1;
|
|
352
|
+
}
|
|
353
|
+
.wp-block-tabs.is-style-line > .wp-block-tab-list > button[aria-selected="true"] {
|
|
354
|
+
color: var(--primary);
|
|
355
|
+
}
|
|
356
|
+
.wp-block-tabs.is-style-line > .wp-block-tab-list > button[aria-selected="true"]::after {
|
|
357
|
+
opacity: 1;
|
|
358
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/* Media on core/image, core/video and core/embed (spec: components/media/spec.md, ADR-0018). Mirrors
|
|
2
|
+
registry/src/ui/media/media.tsx; the facade markup comes from inc/media.php. Reads the media/* tokens. */
|
|
3
|
+
|
|
4
|
+
/* the frame: the ratio as a custom property (Aspect Ratio's one static rule), poster under, play button over */
|
|
5
|
+
.bl-media__frame {
|
|
6
|
+
position: relative;
|
|
7
|
+
aspect-ratio: var(--ratio);
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: var(--muted);
|
|
10
|
+
}
|
|
11
|
+
/* in prose the frame takes typeset's media radius, so a facade matches the images around it */
|
|
12
|
+
:is(.typeset, .editor-styles-wrapper) .bl-media__frame {
|
|
13
|
+
border-radius: var(--bl-radius-lg);
|
|
14
|
+
}
|
|
15
|
+
.bl-media__frame > .bl-media__image,
|
|
16
|
+
.bl-media__frame > .bl-media__player {
|
|
17
|
+
position: absolute;
|
|
18
|
+
inset: 0;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
margin: 0;
|
|
22
|
+
border: 0;
|
|
23
|
+
border-radius: 0; /* the frame clips; typeset would round the image again inside it */
|
|
24
|
+
}
|
|
25
|
+
.bl-media__frame > .bl-media__image {
|
|
26
|
+
object-fit: cover;
|
|
27
|
+
}
|
|
28
|
+
.bl-media__frame > video.bl-media__player {
|
|
29
|
+
object-fit: contain;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.bl-media__play {
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset: 0;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
}
|
|
39
|
+
/* the inset widens the clickable area round the button. The button is a core Button (secondary) on its own
|
|
40
|
+
media/play-button/* box, icon and radius (user, 2026-10-02), not a Button size */
|
|
41
|
+
.bl-media__play-inset {
|
|
42
|
+
padding: var(--bl-media-play-button-inset);
|
|
43
|
+
}
|
|
44
|
+
.bl-media__play-button.wp-block-button > .wp-block-button__link {
|
|
45
|
+
width: var(--bl-media-play-button-size);
|
|
46
|
+
height: var(--bl-media-play-button-size);
|
|
47
|
+
padding: 0;
|
|
48
|
+
border-radius: var(--bl-media-play-button-radius);
|
|
49
|
+
}
|
|
50
|
+
.bl-media__play-button.wp-block-button > .wp-block-button__link svg {
|
|
51
|
+
width: var(--bl-media-play-button-icon-size);
|
|
52
|
+
height: var(--bl-media-play-button-icon-size);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* captions on core's media blocks read as Media's: text/sm, muted, 8px below the frame, start-aligned (typeset centres
|
|
56
|
+
prose captions; a media block is the component) */
|
|
57
|
+
:is(.wp-block-image, .wp-block-video, .wp-block-embed) :is(figcaption, .wp-element-caption) {
|
|
58
|
+
margin-block: var(--bl-media-caption-gap) 0;
|
|
59
|
+
color: var(--muted-foreground);
|
|
60
|
+
font-size: var(--bl-media-caption-font-size);
|
|
61
|
+
line-height: var(--bl-media-caption-line-height);
|
|
62
|
+
text-align: start;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* a facade video or embed as a card's first child goes full bleed, as an image does (src/core-card.css) */
|
|
66
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) > :is(.wp-block-video, .wp-block-embed) {
|
|
67
|
+
padding-inline: 0;
|
|
68
|
+
}
|
|
69
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm):has(> :is(.wp-block-video, .wp-block-embed):first-child) {
|
|
70
|
+
padding-top: 0;
|
|
71
|
+
}
|
|
72
|
+
.wp-block-group:is(.is-style-card, .is-style-card-sm) .bl-media__frame {
|
|
73
|
+
border-radius: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/* Dialog playback: a lightbox (user, 2026-10-05). The video alone on the backdrop (color/overlay, as Dialog's), no title
|
|
77
|
+
or panel, the close in the viewport's top-right corner. The <dialog> fills the viewport and is transparent, so its corner
|
|
78
|
+
is the viewport's and a click outside the video is a click on the <dialog> (media.js closes it). The player goes in on
|
|
79
|
+
open and is removed on close. Mirrors registry/src/ui/media/media-play-button.tsx. */
|
|
80
|
+
:root:has(dialog[open]:modal) {
|
|
81
|
+
overflow: hidden;
|
|
82
|
+
}
|
|
83
|
+
.bl-media__dialog {
|
|
84
|
+
position: fixed;
|
|
85
|
+
inset: 0;
|
|
86
|
+
width: 100%;
|
|
87
|
+
height: 100%;
|
|
88
|
+
max-width: none;
|
|
89
|
+
max-height: none;
|
|
90
|
+
margin: 0;
|
|
91
|
+
padding: var(--bl-dialog-padding);
|
|
92
|
+
border: 0;
|
|
93
|
+
background: transparent;
|
|
94
|
+
outline: none;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
opacity: 0;
|
|
98
|
+
transition: opacity 200ms, display 200ms allow-discrete, overlay 200ms allow-discrete;
|
|
99
|
+
}
|
|
100
|
+
.bl-media__dialog[open] {
|
|
101
|
+
display: flex;
|
|
102
|
+
opacity: 1;
|
|
103
|
+
}
|
|
104
|
+
@starting-style {
|
|
105
|
+
.bl-media__dialog[open] { opacity: 0; }
|
|
106
|
+
}
|
|
107
|
+
.bl-media__dialog::backdrop {
|
|
108
|
+
background-color: var(--overlay);
|
|
109
|
+
opacity: 0;
|
|
110
|
+
transition: opacity 200ms, display 200ms allow-discrete, overlay 200ms allow-discrete;
|
|
111
|
+
}
|
|
112
|
+
@supports (backdrop-filter: blur(4px)) {
|
|
113
|
+
.bl-media__dialog::backdrop { backdrop-filter: blur(4px); }
|
|
114
|
+
}
|
|
115
|
+
.bl-media__dialog[open]::backdrop { opacity: 1; }
|
|
116
|
+
@starting-style {
|
|
117
|
+
.bl-media__dialog[open]::backdrop { opacity: 0; }
|
|
118
|
+
}
|
|
119
|
+
@media (prefers-reduced-motion: reduce) {
|
|
120
|
+
.bl-media__dialog,
|
|
121
|
+
.bl-media__dialog::backdrop { transition: none; }
|
|
122
|
+
}
|
|
123
|
+
.bl-media__dialog > .bl-media__dialog-close {
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: var(--bl-dialog-padding);
|
|
126
|
+
right: var(--bl-dialog-padding);
|
|
127
|
+
}
|
|
128
|
+
.bl-media__dialog-frame {
|
|
129
|
+
position: relative;
|
|
130
|
+
width: 100%;
|
|
131
|
+
max-width: var(--bl-media-dialog-max-width);
|
|
132
|
+
aspect-ratio: var(--ratio);
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
background-color: var(--muted);
|
|
135
|
+
/* the video fades and zooms in from 95 %, as Dialog's panel does */
|
|
136
|
+
opacity: 0;
|
|
137
|
+
scale: 0.95;
|
|
138
|
+
transition: opacity 200ms ease-out, scale 200ms ease-out;
|
|
139
|
+
}
|
|
140
|
+
.bl-media__dialog[open] > .bl-media__dialog-frame {
|
|
141
|
+
opacity: 1;
|
|
142
|
+
scale: 1;
|
|
143
|
+
}
|
|
144
|
+
@starting-style {
|
|
145
|
+
.bl-media__dialog[open] > .bl-media__dialog-frame { opacity: 0; scale: 0.95; }
|
|
146
|
+
}
|
|
147
|
+
@media (prefers-reduced-motion: reduce) {
|
|
148
|
+
.bl-media__dialog-frame { transition: none; }
|
|
149
|
+
}
|
|
150
|
+
.bl-media__dialog-frame > .bl-media__player {
|
|
151
|
+
position: absolute;
|
|
152
|
+
inset: 0;
|
|
153
|
+
width: 100%;
|
|
154
|
+
height: 100%;
|
|
155
|
+
margin: 0;
|
|
156
|
+
border: 0;
|
|
157
|
+
}
|
|
158
|
+
.bl-media__dialog-frame > video.bl-media__player {
|
|
159
|
+
object-fit: contain;
|
|
160
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/* Radio on WordPress (spec: components/radio/spec.md). There is no core radio block, so ADR-0018's ladder
|
|
2
|
+
ends at element styling and the native control *is* the component. Mirrors
|
|
3
|
+
registry/src/ui/radio/radio.tsx, with the same structural difference Checkbox has:
|
|
4
|
+
|
|
5
|
+
React wraps the input in a span and lays a sibling dot over it. WordPress cannot do that — Gravity Forms and
|
|
6
|
+
core emit their own markup — so the dot is a pseudo-element instead. It needs no mask, unlike the checkbox
|
|
7
|
+
tick: a radio's indicator is a circle, which CSS can draw.
|
|
8
|
+
|
|
9
|
+
Gravity Forms' own radios are styled in gravityforms.css, because its choice controls need the extra
|
|
10
|
+
specificity to beat the plugin's stylesheet. This file is for the theme's own markup. Both resolve to the
|
|
11
|
+
same --bl-radio-* variables, so one designer change in Figma moves both.
|
|
12
|
+
|
|
13
|
+
A visually hidden radio (.sr-only) is excluded: it is the state of something drawn another way (a Toggle Group
|
|
14
|
+
item), and these unlayered rules would otherwise beat the sr-only utility and draw it. */
|
|
15
|
+
|
|
16
|
+
:where(input[type="radio"]:not(.sr-only)) {
|
|
17
|
+
appearance: none;
|
|
18
|
+
position: relative;
|
|
19
|
+
flex-shrink: 0;
|
|
20
|
+
width: var(--bl-radio-size);
|
|
21
|
+
height: var(--bl-radio-size);
|
|
22
|
+
margin: 0;
|
|
23
|
+
border: 1px solid var(--input);
|
|
24
|
+
border-radius: 9999px;
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
vertical-align: middle;
|
|
27
|
+
outline: none;
|
|
28
|
+
transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
:where(input[type="radio"]:not(.sr-only)):checked {
|
|
32
|
+
border-color: var(--primary);
|
|
33
|
+
background-color: var(--primary);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/* The dot. 10px rather than upstream's 8px: Figma draws 10 and Figma is the source of truth (spec: Size).
|
|
37
|
+
`inset: 0` plus `margin: auto` centres it without transforms. */
|
|
38
|
+
:where(input[type="radio"]:not(.sr-only))::before {
|
|
39
|
+
content: "";
|
|
40
|
+
position: absolute;
|
|
41
|
+
inset: 0;
|
|
42
|
+
margin: auto;
|
|
43
|
+
width: var(--bl-radio-dot-size);
|
|
44
|
+
height: var(--bl-radio-dot-size);
|
|
45
|
+
border-radius: 9999px;
|
|
46
|
+
background-color: var(--primary-foreground);
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:where(input[type="radio"]:not(.sr-only)):checked::before {
|
|
51
|
+
opacity: 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/* focus-visible is a solid primary border plus the shared 3px ring, the same contract Input uses. */
|
|
55
|
+
:where(input[type="radio"]:not(.sr-only)):focus-visible {
|
|
56
|
+
border-color: var(--primary);
|
|
57
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* invalid does not override checked: a selected-but-invalid radio still has to read as selected. */
|
|
61
|
+
:where(input[type="radio"]:not(.sr-only))[aria-invalid="true"] {
|
|
62
|
+
border-color: var(--destructive);
|
|
63
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring-invalid);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where(input[type="radio"]:not(.sr-only))[aria-invalid="true"]:checked {
|
|
67
|
+
border-color: var(--primary);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:where(input[type="radio"]:not(.sr-only)):disabled {
|
|
71
|
+
cursor: not-allowed;
|
|
72
|
+
opacity: 0.5;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* 16px fails WCAG 2.5.8 on touch. The target is grown with a pseudo-element rather than with padding, which
|
|
76
|
+
would move the box. A label with `for` is the bigger target in practice; this is the floor. */
|
|
77
|
+
:where(input[type="radio"]:not(.sr-only))::after {
|
|
78
|
+
content: "";
|
|
79
|
+
position: absolute;
|
|
80
|
+
inset: -8px -12px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* The group. RadioGroup is a real component in React; here it is the role, which is what Gravity Forms and
|
|
84
|
+
hand-written markup both emit. The gap is radio/group/gap, as upstream's gap-2 is. */
|
|
85
|
+
:where([role="radiogroup"]) {
|
|
86
|
+
display: grid;
|
|
87
|
+
gap: var(--bl-radio-group-gap);
|
|
88
|
+
}
|