@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,12 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=475-121
|
|
2
|
+
// source=platforms/shopify/theme/snippets/breadcrumb.liquid
|
|
3
|
+
// component=breadcrumb (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): the breadcrumb snippet builds its trail from the template
|
|
5
|
+
// (Home, the product's collection or the article's blog, the current page), so the Figma items map to nothing typed.
|
|
6
|
+
import figma from "figma";
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
example: figma.code`{% render 'breadcrumb' %}`,
|
|
10
|
+
id: "shopify-breadcrumb",
|
|
11
|
+
metadata: { nestable: true },
|
|
12
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Breadcrumb as a snippet (spec: components/breadcrumb/spec.md). Builds the trail from the current template:
|
|
3
|
+
Home, then the product's collection (when the visitor came through one, /collections/x/products/y) or the article's
|
|
4
|
+
blog, then the current page, which is not a link and carries aria-current="page". Separators are the active icon
|
|
5
|
+
set's chevron, mirrored in right-to-left text. Renders nothing on the home page.
|
|
6
|
+
|
|
7
|
+
@param {string} [current] - the current page's label, when the template's own title is not the right one
|
|
8
|
+
@param {string} [class] - extra classes
|
|
9
|
+
|
|
10
|
+
@example
|
|
11
|
+
{% render 'breadcrumb' %}
|
|
12
|
+
{% enddoc %}
|
|
13
|
+
|
|
14
|
+
{%- liquid
|
|
15
|
+
assign page_label = current
|
|
16
|
+
assign parent_url = ''
|
|
17
|
+
assign parent_label = ''
|
|
18
|
+
case template.name
|
|
19
|
+
when 'product'
|
|
20
|
+
if collection
|
|
21
|
+
assign parent_url = collection.url
|
|
22
|
+
assign parent_label = collection.title
|
|
23
|
+
endif
|
|
24
|
+
if page_label == blank
|
|
25
|
+
assign page_label = product.title
|
|
26
|
+
endif
|
|
27
|
+
when 'collection'
|
|
28
|
+
if page_label == blank
|
|
29
|
+
assign page_label = collection.title
|
|
30
|
+
endif
|
|
31
|
+
when 'article'
|
|
32
|
+
assign parent_url = blog.url
|
|
33
|
+
assign parent_label = blog.title
|
|
34
|
+
if page_label == blank
|
|
35
|
+
assign page_label = article.title
|
|
36
|
+
endif
|
|
37
|
+
when 'blog'
|
|
38
|
+
if page_label == blank
|
|
39
|
+
assign page_label = blog.title
|
|
40
|
+
endif
|
|
41
|
+
when 'page'
|
|
42
|
+
if page_label == blank
|
|
43
|
+
assign page_label = page.title
|
|
44
|
+
endif
|
|
45
|
+
when 'search'
|
|
46
|
+
if page_label == blank
|
|
47
|
+
assign page_label = 'search.title' | t
|
|
48
|
+
endif
|
|
49
|
+
when 'cart'
|
|
50
|
+
if page_label == blank
|
|
51
|
+
assign page_label = 'cart.title' | t
|
|
52
|
+
endif
|
|
53
|
+
endcase
|
|
54
|
+
-%}
|
|
55
|
+
{%- if template.name != 'index' and page_label != blank -%}
|
|
56
|
+
<nav class="bl-breadcrumb{% if class %} {{ class }}{% endif %}" aria-label="{{ 'breadcrumb.label' | t }}" data-slot="breadcrumb">
|
|
57
|
+
<ol class="bl-breadcrumb__list" data-slot="breadcrumb-list">
|
|
58
|
+
<li class="bl-breadcrumb__item" data-slot="breadcrumb-item">
|
|
59
|
+
<a class="bl-breadcrumb__link" href="{{ routes.root_url }}" data-slot="breadcrumb-link">{{ 'breadcrumb.home' | t }}</a>
|
|
60
|
+
</li>
|
|
61
|
+
<li class="bl-breadcrumb__separator" role="presentation" aria-hidden="true" data-slot="breadcrumb-separator">
|
|
62
|
+
{%- render 'icon', name: 'chevron-right' -%}
|
|
63
|
+
</li>
|
|
64
|
+
{%- if parent_url != blank -%}
|
|
65
|
+
<li class="bl-breadcrumb__item" data-slot="breadcrumb-item">
|
|
66
|
+
<a class="bl-breadcrumb__link" href="{{ parent_url }}" data-slot="breadcrumb-link">{{ parent_label | escape }}</a>
|
|
67
|
+
</li>
|
|
68
|
+
<li class="bl-breadcrumb__separator" role="presentation" aria-hidden="true" data-slot="breadcrumb-separator">
|
|
69
|
+
{%- render 'icon', name: 'chevron-right' -%}
|
|
70
|
+
</li>
|
|
71
|
+
{%- endif -%}
|
|
72
|
+
<li class="bl-breadcrumb__item" data-slot="breadcrumb-item">
|
|
73
|
+
<span class="bl-breadcrumb__page" role="link" aria-disabled="true" aria-current="page" data-slot="breadcrumb-page">
|
|
74
|
+
{{- page_label | escape -}}
|
|
75
|
+
</span>
|
|
76
|
+
</li>
|
|
77
|
+
</ol>
|
|
78
|
+
</nav>
|
|
79
|
+
{%- endif -%}
|
|
80
|
+
|
|
81
|
+
{% stylesheet %}
|
|
82
|
+
/* Mirrors registry/src/ui/breadcrumb/breadcrumb.tsx. Colours from the scheme; geometry from the breadcrumb/* tokens. */
|
|
83
|
+
.bl-breadcrumb__list {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-wrap: wrap;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: var(--bl-breadcrumb-gap);
|
|
88
|
+
margin: 0;
|
|
89
|
+
padding: 0;
|
|
90
|
+
list-style: none;
|
|
91
|
+
overflow-wrap: break-word;
|
|
92
|
+
color: var(--muted-foreground);
|
|
93
|
+
font-size: var(--bl-breadcrumb-font-size);
|
|
94
|
+
line-height: var(--bl-breadcrumb-line-height);
|
|
95
|
+
}
|
|
96
|
+
.bl-breadcrumb__item {
|
|
97
|
+
display: inline-flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
gap: var(--bl-breadcrumb-item-gap);
|
|
100
|
+
}
|
|
101
|
+
.bl-breadcrumb__link {
|
|
102
|
+
color: inherit;
|
|
103
|
+
text-decoration: none;
|
|
104
|
+
transition: color 150ms;
|
|
105
|
+
}
|
|
106
|
+
.bl-breadcrumb__link:hover { color: var(--foreground); }
|
|
107
|
+
.bl-breadcrumb__link:focus-visible {
|
|
108
|
+
border-radius: var(--bl-radius-sm);
|
|
109
|
+
outline: none;
|
|
110
|
+
box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring);
|
|
111
|
+
}
|
|
112
|
+
.bl-breadcrumb__page {
|
|
113
|
+
color: var(--foreground);
|
|
114
|
+
font-weight: normal;
|
|
115
|
+
}
|
|
116
|
+
.bl-breadcrumb__separator { display: inline-flex; }
|
|
117
|
+
.bl-breadcrumb__separator .bl-icon {
|
|
118
|
+
width: var(--bl-breadcrumb-separator-icon-size);
|
|
119
|
+
height: var(--bl-breadcrumb-separator-icon-size);
|
|
120
|
+
}
|
|
121
|
+
[dir='rtl'] .bl-breadcrumb__separator .bl-icon { transform: scaleX(-1); }
|
|
122
|
+
/* rendered at the top of a main section: the responsive spacing step separates it from the page title */
|
|
123
|
+
.bl-breadcrumb--page { margin-block-end: var(--bl-spacing-responsive-xs); }
|
|
124
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Button Group as a snippet (spec: components/button-group/spec.md). Joins buttons into one unit:
|
|
3
|
+
shared borders, square inner corners, rounded outer ones.
|
|
4
|
+
|
|
5
|
+
It owns no geometry. Every number comes from the buttons inside it — their heights, their padding, their
|
|
6
|
+
radius — so changing a button's size changes the group, corners included. It holds no state and chooses no
|
|
7
|
+
variant either; the buttons do that.
|
|
8
|
+
|
|
9
|
+
A group is not a toolbar: every button stays in the tab order and there is no arrow-key navigation. If the
|
|
10
|
+
buttons are a single-choice set, that is a different component.
|
|
11
|
+
|
|
12
|
+
@param {string} content - the buttons, captured from the `button` snippet (required)
|
|
13
|
+
@param {string} [orientation] - 'horizontal' (default) or 'vertical'
|
|
14
|
+
@param {string} [class] - extra classes
|
|
15
|
+
|
|
16
|
+
@example
|
|
17
|
+
{%- capture group_buttons -%}
|
|
18
|
+
{% render 'button', label: 'Left', variant: 'outline' %}
|
|
19
|
+
{% render 'button', label: 'Right', variant: 'outline' %}
|
|
20
|
+
{%- endcapture -%}
|
|
21
|
+
{% render 'button-group', content: group_buttons %}
|
|
22
|
+
{% enddoc %}
|
|
23
|
+
|
|
24
|
+
{%- liquid
|
|
25
|
+
assign bg_orientation = orientation | default: 'horizontal'
|
|
26
|
+
unless bg_orientation == 'vertical'
|
|
27
|
+
assign bg_orientation = 'horizontal'
|
|
28
|
+
endunless
|
|
29
|
+
assign classes = 'bl-button-group bl-button-group--' | append: bg_orientation
|
|
30
|
+
if class
|
|
31
|
+
assign classes = classes | append: ' ' | append: class
|
|
32
|
+
endif
|
|
33
|
+
-%}
|
|
34
|
+
<div class="{{ classes }}" data-slot="button-group" role="group" data-orientation="{{ bg_orientation }}">
|
|
35
|
+
{{ content }}
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
{% stylesheet %}
|
|
39
|
+
/* Mirrors registry/src/ui/button-group/button-group.tsx. No geometry of its own by design: the selectors
|
|
40
|
+
below only remove radii and collapse borders, and every value they leave behind belongs to the button. */
|
|
41
|
+
.bl-button-group {
|
|
42
|
+
display: flex;
|
|
43
|
+
width: fit-content;
|
|
44
|
+
align-items: stretch;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/* a focused child lifts above its neighbours so its ring is not clipped by the next button's border */
|
|
48
|
+
.bl-button-group > *:focus-visible {
|
|
49
|
+
position: relative;
|
|
50
|
+
z-index: 10;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Logical properties, not left and right. A joined group is exactly what breaks in RTL if the wrong end is
|
|
54
|
+
squared: the first button would keep its rounded leading corner and the last would lose it. */
|
|
55
|
+
.bl-button-group--horizontal > *:not(:first-child) {
|
|
56
|
+
border-start-start-radius: 0;
|
|
57
|
+
border-end-start-radius: 0;
|
|
58
|
+
border-inline-start-width: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.bl-button-group--horizontal > *:not(:last-child) {
|
|
62
|
+
border-start-end-radius: 0;
|
|
63
|
+
border-end-end-radius: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.bl-button-group--vertical {
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.bl-button-group--vertical > *:not(:first-child) {
|
|
71
|
+
border-start-start-radius: 0;
|
|
72
|
+
border-start-end-radius: 0;
|
|
73
|
+
border-top-width: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.bl-button-group--vertical > *:not(:last-child) {
|
|
77
|
+
border-end-start-radius: 0;
|
|
78
|
+
border-end-end-radius: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* a nested group is a group of groups: it gets a real gap rather than joined edges */
|
|
82
|
+
.bl-button-group:has(> .bl-button-group) {
|
|
83
|
+
gap: var(--bl-button-md-gap);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* A non-interactive segment — a unit, a label, a count. Not a button, but it has to line up with one
|
|
87
|
+
exactly, so every value is a button/<size>/* variable. md is the default; the modifiers below match the
|
|
88
|
+
other sizes. */
|
|
89
|
+
.bl-button-group__text {
|
|
90
|
+
display: flex;
|
|
91
|
+
align-items: center;
|
|
92
|
+
height: var(--bl-button-md-height);
|
|
93
|
+
gap: var(--bl-button-md-gap);
|
|
94
|
+
padding-inline: var(--bl-button-md-padding-x);
|
|
95
|
+
border: 1px solid var(--border);
|
|
96
|
+
border-radius: var(--bl-button-md-radius);
|
|
97
|
+
background-color: var(--muted);
|
|
98
|
+
color: var(--foreground);
|
|
99
|
+
font-family: var(--bl-font-sans);
|
|
100
|
+
font-size: var(--bl-button-md-font-size);
|
|
101
|
+
line-height: var(--bl-button-md-line-height);
|
|
102
|
+
font-weight: 500;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.bl-button-group__text--xs {
|
|
106
|
+
height: var(--bl-button-xs-height);
|
|
107
|
+
gap: var(--bl-button-xs-gap);
|
|
108
|
+
padding-inline: var(--bl-button-xs-padding-x);
|
|
109
|
+
border-radius: var(--bl-button-xs-radius);
|
|
110
|
+
font-size: var(--bl-button-xs-font-size);
|
|
111
|
+
line-height: var(--bl-button-xs-line-height);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.bl-button-group__text--sm {
|
|
115
|
+
height: var(--bl-button-sm-height);
|
|
116
|
+
gap: var(--bl-button-sm-gap);
|
|
117
|
+
padding-inline: var(--bl-button-sm-padding-x);
|
|
118
|
+
border-radius: var(--bl-button-sm-radius);
|
|
119
|
+
font-size: var(--bl-button-sm-font-size);
|
|
120
|
+
line-height: var(--bl-button-sm-line-height);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.bl-button-group__text--lg {
|
|
124
|
+
height: var(--bl-button-lg-height);
|
|
125
|
+
gap: var(--bl-button-lg-gap);
|
|
126
|
+
padding-inline: var(--bl-button-lg-padding-x);
|
|
127
|
+
border-radius: var(--bl-button-lg-radius);
|
|
128
|
+
font-size: var(--bl-button-lg-font-size);
|
|
129
|
+
line-height: var(--bl-button-lg-line-height);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* A rule between segments, for when the buttons share a fill and the collapsed border cannot be seen. It
|
|
133
|
+
runs ACROSS the group, so a horizontal group gets a vertical rule. */
|
|
134
|
+
.bl-button-group__separator {
|
|
135
|
+
flex: none;
|
|
136
|
+
align-self: stretch;
|
|
137
|
+
margin: 0;
|
|
138
|
+
background-color: var(--input);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.bl-button-group--horizontal > .bl-button-group__separator {
|
|
142
|
+
width: var(--bl-separator-thickness);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.bl-button-group--vertical > .bl-button-group__separator {
|
|
146
|
+
height: var(--bl-separator-thickness);
|
|
147
|
+
}
|
|
148
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Button as a snippet, usable from any section, block or form (spec: components/button/spec.md).
|
|
3
|
+
The `button` theme block is a thin wrapper around this snippet; product forms and the like call it directly.
|
|
4
|
+
|
|
5
|
+
@param {string} label - Visible text (accessible name for icon sizes)
|
|
6
|
+
@param {string} [href] - Renders an <a> when set; with disabled, an <a> with no href, role="link" and aria-disabled
|
|
7
|
+
@param {string} [type] - button type when not a link (default 'button'; 'submit' for forms)
|
|
8
|
+
@param {string} [variant] - default | secondary | outline | ghost | link | destructive
|
|
9
|
+
@param {string} [size] - xs | sm | md | lg
|
|
10
|
+
@param {boolean} [disabled] - disabled + aria-disabled
|
|
11
|
+
@param {string} [icon] - Baseline system icon name (snippets/icon.liquid)
|
|
12
|
+
@param {string} [icon_position] - start (default) | end
|
|
13
|
+
@param {boolean} [icon_only] - icon-only button: square, label becomes aria-label
|
|
14
|
+
@param {string} [badge] - a count badge, captured from the badge snippet with class: 'bl-button__count'; it floats on
|
|
15
|
+
the button's top-right corner (cart item count, unread messages). Put the count in `label` too: an icon-only
|
|
16
|
+
button's aria-label replaces its content for screen readers.
|
|
17
|
+
@param {string} [attrs] - extra attributes, e.g. block.shopify_attributes or 'name="add"'
|
|
18
|
+
@param {string} [class] - extra classes
|
|
19
|
+
|
|
20
|
+
@example
|
|
21
|
+
{% render 'button', label: 'Add to cart', type: 'submit', variant: 'default', disabled: product.available == false, attrs: 'name="add"' %}
|
|
22
|
+
{%- capture count -%}{% render 'badge', label: cart.item_count, size: 'sm', class: 'bl-button__count' %}{%- endcapture -%}
|
|
23
|
+
{% render 'button', label: 'Cart, 3 items', href: routes.cart_url, variant: 'ghost', icon: 'cart', icon_only: true, badge: count %}
|
|
24
|
+
{% enddoc %}
|
|
25
|
+
|
|
26
|
+
{%- liquid
|
|
27
|
+
assign v = variant | default: 'default'
|
|
28
|
+
assign s = size | default: 'md'
|
|
29
|
+
assign text = label | default: 'Button'
|
|
30
|
+
assign classes = 'bl-button bl-button--' | append: v | append: ' bl-button--' | append: s
|
|
31
|
+
if class
|
|
32
|
+
assign classes = classes | append: ' ' | append: class
|
|
33
|
+
endif
|
|
34
|
+
assign is_icon = false
|
|
35
|
+
if s contains 'icon-' or icon_only == true
|
|
36
|
+
assign is_icon = true
|
|
37
|
+
endif
|
|
38
|
+
if icon_only == true and icon != blank
|
|
39
|
+
assign classes = classes | append: ' bl-button--icon-only'
|
|
40
|
+
endif
|
|
41
|
+
if icon != blank and icon_position == 'end'
|
|
42
|
+
assign classes = classes | append: ' bl-button--icon-end'
|
|
43
|
+
elsif icon != blank and is_icon == false
|
|
44
|
+
assign classes = classes | append: ' bl-button--icon-start'
|
|
45
|
+
endif
|
|
46
|
+
-%}
|
|
47
|
+
{%- capture inner -%}
|
|
48
|
+
{%- if icon != blank and icon_position != 'end' -%}{% render 'icon', name: icon %}{%- endif -%}
|
|
49
|
+
{%- unless is_icon -%}<span class="bl-button__text">{{ text | escape }}</span>{%- endunless -%}
|
|
50
|
+
{%- if icon != blank and icon_position == 'end' -%}{% render 'icon', name: icon %}{%- endif -%}
|
|
51
|
+
{{- badge -}}
|
|
52
|
+
{%- endcapture -%}
|
|
53
|
+
{%- if href != blank and disabled == true -%}
|
|
54
|
+
{%- comment -%} a link that leads nowhere right now (Pagination's Previous on the first page): still a link, inert {%- endcomment -%}
|
|
55
|
+
<a class="{{ classes }}" role="link" aria-disabled="true" data-slot="button" data-variant="{{ v }}" data-size="{{ s }}"{% if is_icon %} aria-label="{{ text | escape }}"{% endif %} {{ attrs }}>{{ inner }}</a>
|
|
56
|
+
{%- elsif href != blank -%}
|
|
57
|
+
<a href="{{ href }}" class="{{ classes }}" data-slot="button" data-variant="{{ v }}" data-size="{{ s }}"{% if is_icon %} aria-label="{{ text | escape }}"{% endif %} {{ attrs }}>{{ inner }}</a>
|
|
58
|
+
{%- else -%}
|
|
59
|
+
<button type="{{ type | default: 'button' }}" class="{{ classes }}" data-slot="button" data-variant="{{ v }}" data-size="{{ s }}"{% if disabled %} disabled aria-disabled="true"{% endif %}{% if is_icon %} aria-label="{{ text | escape }}"{% endif %} {{ attrs }}>{{ inner }}</button>
|
|
60
|
+
{%- endif -%}
|
|
61
|
+
|
|
62
|
+
{% stylesheet %}
|
|
63
|
+
/* Mirrors registry/src/ui/button/button.tsx. Colors come from the scheme class (--primary ...); geometry from the
|
|
64
|
+
button/* component tokens in baseline-tokens.liquid (ADR-0017). */
|
|
65
|
+
.bl-button {
|
|
66
|
+
/* relative + --button-padding-x: a count badge inside the button floats on its corner (button spec) */
|
|
67
|
+
position: relative;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
user-select: none;
|
|
74
|
+
border: 1px solid transparent;
|
|
75
|
+
background: transparent;
|
|
76
|
+
background-clip: padding-box;
|
|
77
|
+
color: inherit;
|
|
78
|
+
font: inherit;
|
|
79
|
+
font-family: var(--bl-button-font-family);
|
|
80
|
+
font-weight: var(--bl-button-font-weight);
|
|
81
|
+
text-decoration: none;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
transition: all 150ms;
|
|
84
|
+
outline: none;
|
|
85
|
+
}
|
|
86
|
+
.bl-button:focus-visible { box-shadow: 0 0 0 var(--bl-control-ring-width) var(--ring); }
|
|
87
|
+
.bl-button:active:not([aria-haspopup]) { translate: 0 1px; }
|
|
88
|
+
.bl-button[aria-invalid='true'] { border-color: var(--destructive); box-shadow: 0 0 0 var(--bl-control-ring-width) color-mix(in oklab, var(--destructive) 20%, transparent); }
|
|
89
|
+
/* doubled class on purpose: .bl-button--icon-only alone ties with .bl-button--md (0,1,0) and the size rule
|
|
90
|
+
is declared later, so it won the padding. An icon-only button is square and has no padding-x. */
|
|
91
|
+
.bl-button.bl-button--icon-only { width: var(--bl-button-md-height); padding: 0; }
|
|
92
|
+
.bl-button--icon-only.bl-button--xs { width: var(--bl-button-xs-height); }
|
|
93
|
+
.bl-button--icon-only.bl-button--sm { width: var(--bl-button-sm-height); }
|
|
94
|
+
.bl-button--icon-only.bl-button--lg { width: var(--bl-button-lg-height); }
|
|
95
|
+
.bl-button:disabled,
|
|
96
|
+
.bl-button[aria-disabled='true'] { opacity: 0.5; pointer-events: none; }
|
|
97
|
+
.bl-button svg { flex-shrink: 0; pointer-events: none; }
|
|
98
|
+
/* A busy state needs JavaScript (no Liquid param: a server-rendered spinner has no use case, user 2026-09-30). When
|
|
99
|
+
a script inserts snippets/spinner.liquid's markup into a submitting button, the spinner box takes the button's
|
|
100
|
+
icon size and its svg fills it. Size the box, not the svg: an auto-sized box leaves the svg's 100% with nothing
|
|
101
|
+
to resolve against, so it falls back to its intrinsic size and overflows the button. */
|
|
102
|
+
.bl-button--xs .bl-spinner { width: var(--bl-button-xs-icon-size); height: var(--bl-button-xs-icon-size); }
|
|
103
|
+
.bl-button--sm .bl-spinner { width: var(--bl-button-sm-icon-size); height: var(--bl-button-sm-icon-size); }
|
|
104
|
+
.bl-button--md .bl-spinner { width: var(--bl-button-md-icon-size); height: var(--bl-button-md-icon-size); }
|
|
105
|
+
.bl-button--lg .bl-spinner { width: var(--bl-button-lg-icon-size); height: var(--bl-button-lg-icon-size); }
|
|
106
|
+
|
|
107
|
+
/* variants: upstream's (re-aligned 2026-10-01), except outline, which stays transparent (user decision) */
|
|
108
|
+
.bl-button--default { background-color: var(--primary); color: var(--primary-foreground); }
|
|
109
|
+
.bl-button--default:hover { background-color: color-mix(in oklab, var(--primary) 80%, transparent); }
|
|
110
|
+
.bl-button--secondary { background-color: var(--secondary); color: var(--secondary-foreground); }
|
|
111
|
+
.bl-button--secondary:hover { background-color: color-mix(in oklch, var(--secondary), var(--foreground) 5%); }
|
|
112
|
+
.bl-button--secondary[aria-expanded='true'] { background-color: var(--secondary); color: var(--secondary-foreground); }
|
|
113
|
+
.bl-button--outline { border-color: var(--border); color: var(--foreground); }
|
|
114
|
+
.bl-button--outline:hover, .bl-button--outline[aria-expanded='true'] { background-color: var(--muted); color: var(--foreground); }
|
|
115
|
+
.bl-button--ghost { color: var(--foreground); }
|
|
116
|
+
.bl-button--ghost:hover, .bl-button--ghost[aria-expanded='true'] { background-color: var(--muted); color: var(--foreground); }
|
|
117
|
+
.bl-button--link { color: var(--primary); text-underline-offset: 4px; }
|
|
118
|
+
.bl-button--link:hover { text-decoration: underline; }
|
|
119
|
+
.bl-button--destructive { background-color: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); }
|
|
120
|
+
.bl-button--destructive:hover { background-color: color-mix(in oklab, var(--destructive) 20%, transparent); }
|
|
121
|
+
.bl-button--destructive:focus-visible { border-color: color-mix(in oklab, var(--destructive) 40%, transparent); box-shadow: 0 0 0 var(--bl-control-ring-width) color-mix(in oklab, var(--destructive) 20%, transparent); }
|
|
122
|
+
|
|
123
|
+
/* sizes: one rule per Figma Size, every value a button/<size>/* variable */
|
|
124
|
+
.bl-button--xs { --button-padding-x: var(--bl-button-xs-padding-x); --button-gap: var(--bl-button-xs-gap); --button-padding-x-icon: var(--bl-button-xs-padding-x-icon); height: var(--bl-button-xs-height); padding: 0 var(--bl-button-xs-padding-x); gap: var(--bl-button-xs-gap); border-radius: var(--bl-button-xs-radius); font-size: var(--bl-button-xs-font-size); line-height: var(--bl-button-xs-line-height); }
|
|
125
|
+
.bl-button--sm { --button-padding-x: var(--bl-button-sm-padding-x); --button-gap: var(--bl-button-sm-gap); --button-padding-x-icon: var(--bl-button-sm-padding-x-icon); height: var(--bl-button-sm-height); padding: 0 var(--bl-button-sm-padding-x); gap: var(--bl-button-sm-gap); border-radius: var(--bl-button-sm-radius); font-size: var(--bl-button-sm-font-size); line-height: var(--bl-button-sm-line-height); }
|
|
126
|
+
.bl-button--md { --button-padding-x: var(--bl-button-md-padding-x); --button-gap: var(--bl-button-md-gap); --button-padding-x-icon: var(--bl-button-md-padding-x-icon); height: var(--bl-button-md-height); padding: 0 var(--bl-button-md-padding-x); gap: var(--bl-button-md-gap); border-radius: var(--bl-button-md-radius); font-size: var(--bl-button-md-font-size); line-height: var(--bl-button-md-line-height); }
|
|
127
|
+
.bl-button--lg { --button-padding-x: var(--bl-button-lg-padding-x); --button-gap: var(--bl-button-lg-gap); --button-padding-x-icon: var(--bl-button-lg-padding-x-icon); height: var(--bl-button-lg-height); padding: 0 var(--bl-button-lg-padding-x); gap: var(--bl-button-lg-gap); border-radius: var(--bl-button-lg-radius); font-size: var(--bl-button-lg-font-size); line-height: var(--bl-button-lg-line-height); }
|
|
128
|
+
.bl-button--xs svg { width: var(--bl-button-xs-icon-size); height: var(--bl-button-xs-icon-size); }
|
|
129
|
+
.bl-button--sm svg { width: var(--bl-button-sm-icon-size); height: var(--bl-button-sm-icon-size); }
|
|
130
|
+
.bl-button--md svg { width: var(--bl-button-md-icon-size); height: var(--bl-button-md-icon-size); }
|
|
131
|
+
.bl-button--lg svg { width: var(--bl-button-lg-icon-size); height: var(--bl-button-lg-icon-size); }
|
|
132
|
+
/* a count badge floats on the corner: it starts where the padding does, so it never covers the label or icon, and is
|
|
133
|
+
lifted by half its height; the shared overlap ring separates it from the button (button spec, "Count badge") */
|
|
134
|
+
.bl-button .bl-button__count {
|
|
135
|
+
position: absolute;
|
|
136
|
+
top: 0;
|
|
137
|
+
inset-inline-start: calc(100% - var(--button-padding-x));
|
|
138
|
+
translate: 0 -50%;
|
|
139
|
+
box-shadow: 0 0 0 var(--bl-overlap-ring-width) var(--background);
|
|
140
|
+
}
|
|
141
|
+
/* the icon side tightens by half the gap, as upstream's has-data-[icon=…] padding (doubled class beats the size rule) */
|
|
142
|
+
.bl-button.bl-button--icon-start { padding-inline-start: var(--button-padding-x-icon); }
|
|
143
|
+
.bl-button.bl-button--icon-end:not(.bl-button--icon-only) { padding-inline-end: var(--button-padding-x-icon); }
|
|
144
|
+
{% endstylesheet %}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// url=https://www.figma.com/design/ba28zZ49PAkXhE7PW5kyT9/Design-System?node-id=4358-14597
|
|
2
|
+
// source=platforms/shopify/theme/snippets/card.liquid
|
|
3
|
+
// component=card (snippet)
|
|
4
|
+
// Shopify Code Connect template (label "Shopify (Liquid)"): the card snippet. A merchant-built card is the Card theme
|
|
5
|
+
// block (blocks/card.liquid) with the same settings; code renders the snippet.
|
|
6
|
+
import figma from "figma";
|
|
7
|
+
const instance = figma.selectedInstance;
|
|
8
|
+
|
|
9
|
+
const size = instance.getEnum("Size", { md: "md", sm: "sm" });
|
|
10
|
+
// Show booleans map to CHILDREN, never to props (ADR-0013). Since 2026-10-02 every part lives on the Card itself: the
|
|
11
|
+
// header's Title / Description are text properties, Actions / Content / Footer are slots on the root.
|
|
12
|
+
const showMedia = instance.getBoolean("Show Media");
|
|
13
|
+
const showHeader = instance.getBoolean("Show Header");
|
|
14
|
+
const showFooter = instance.getBoolean("Show Footer");
|
|
15
|
+
const title = instance.getString("Title");
|
|
16
|
+
const description = instance.getBoolean("Show Description") ? instance.getString("Description") : "";
|
|
17
|
+
const showAction = instance.getBoolean("Show Actions");
|
|
18
|
+
const bordered = instance.getBoolean("Header Border");
|
|
19
|
+
const vertical = instance.getEnum("Footer Orientation", { horizontal: false, vertical: true }) === true;
|
|
20
|
+
|
|
21
|
+
const args = [
|
|
22
|
+
showMedia ? "image: card_image" : "",
|
|
23
|
+
showHeader ? `title: '${title}'` : "",
|
|
24
|
+
showHeader && description ? `description: '${description}'` : "",
|
|
25
|
+
showAction ? "action: card_action" : "",
|
|
26
|
+
bordered ? "bordered: true" : "",
|
|
27
|
+
"content: card_content",
|
|
28
|
+
showFooter ? "footer: card_footer" : "",
|
|
29
|
+
vertical ? "footer_vertical: true" : "",
|
|
30
|
+
size !== "md" ? `size: '${size}'` : "",
|
|
31
|
+
].filter(Boolean).join(", ");
|
|
32
|
+
|
|
33
|
+
const captures = [
|
|
34
|
+
showAction ? "{%- capture card_action -%}{% render 'button', label: 'Action', variant: 'link' %}{%- endcapture -%}" : "",
|
|
35
|
+
showFooter ? "{%- capture card_footer -%}{% render 'button', label: 'Action', size: 'sm' %}{%- endcapture -%}" : "",
|
|
36
|
+
].filter(Boolean).join("\n");
|
|
37
|
+
|
|
38
|
+
export default {
|
|
39
|
+
example: figma.code`${captures}
|
|
40
|
+
{% render 'card', ${args} %}`,
|
|
41
|
+
id: "shopify-card",
|
|
42
|
+
metadata: { nestable: true },
|
|
43
|
+
};
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
{% doc %}
|
|
2
|
+
Baseline Card as a snippet (spec: components/card/spec.md). Optional full-bleed media, a header (title, description,
|
|
3
|
+
corner action), content and a footer. Pass only the regions you need. Colours come from the enclosing scheme
|
|
4
|
+
(.color-<id>); `scheme` sets one on the card itself.
|
|
5
|
+
|
|
6
|
+
@param {image} [image] - full-bleed media from an image object
|
|
7
|
+
@param {string} [image_alt] - alt text for `image`; empty for a decorative picture
|
|
8
|
+
@param {string} [media] - ready media markup instead of `image` (a video, a placeholder_svg_tag)
|
|
9
|
+
@param {string} [title] - the card title
|
|
10
|
+
@param {string} [title_tag] - the title's element: div (default, as upstream) or h2-h6 when the card is a section
|
|
11
|
+
@param {string} [description] - muted text under the title
|
|
12
|
+
@param {string} [action] - ready markup for the header's top-right action, e.g. a captured button snippet
|
|
13
|
+
@param {boolean} [bordered] - a rule under the header (Figma's Bordered header)
|
|
14
|
+
@param {string} [content] - the content region; HTML is allowed
|
|
15
|
+
@param {string} [footer] - ready markup for the footer, e.g. captured button snippets
|
|
16
|
+
@param {boolean} [footer_vertical] - stack the footer's buttons full width
|
|
17
|
+
@param {string} [blocks] - theme blocks placed straight into the card (blocks/card.liquid): each one is a region
|
|
18
|
+
@param {string} [size] - md (default) | sm
|
|
19
|
+
@param {string} [scheme] - a color scheme id for the card itself
|
|
20
|
+
@param {string} [class] - extra classes
|
|
21
|
+
@param {string} [attrs] - extra attributes on the root (block.shopify_attributes)
|
|
22
|
+
|
|
23
|
+
@example
|
|
24
|
+
{%- capture card_footer -%}{% render 'button', label: 'View event', size: 'sm' %}{%- endcapture -%}
|
|
25
|
+
{% render 'card', image: article.image, title: article.title, title_tag: 'h3', description: article.excerpt, footer: card_footer %}
|
|
26
|
+
{% enddoc %}
|
|
27
|
+
|
|
28
|
+
{%- liquid
|
|
29
|
+
assign s = size | default: 'md'
|
|
30
|
+
unless s == 'sm'
|
|
31
|
+
assign s = 'md'
|
|
32
|
+
endunless
|
|
33
|
+
assign tag = title_tag | default: 'div'
|
|
34
|
+
case tag
|
|
35
|
+
when 'h2', 'h3', 'h4', 'h5', 'h6', 'div'
|
|
36
|
+
else
|
|
37
|
+
assign tag = 'div'
|
|
38
|
+
endcase
|
|
39
|
+
assign classes = 'bl-card bl-card--' | append: s
|
|
40
|
+
if scheme != blank
|
|
41
|
+
assign classes = classes | append: ' color-' | append: scheme
|
|
42
|
+
endif
|
|
43
|
+
if class
|
|
44
|
+
assign classes = classes | append: ' ' | append: class
|
|
45
|
+
endif
|
|
46
|
+
assign has_header = false
|
|
47
|
+
if title != blank or description != blank or action != blank
|
|
48
|
+
assign has_header = true
|
|
49
|
+
endif
|
|
50
|
+
-%}
|
|
51
|
+
<div class="{{ classes }}" data-slot="card" data-size="{{ s }}" {{ attrs }}>
|
|
52
|
+
{%- if media != blank -%}
|
|
53
|
+
<div class="bl-card__media">{{ media }}</div>
|
|
54
|
+
{%- elsif image != blank -%}
|
|
55
|
+
<div class="bl-card__media">
|
|
56
|
+
{{- image | image_url: width: 1200 | image_tag: alt: image_alt, loading: 'lazy', widths: '400, 600, 800, 1200' -}}
|
|
57
|
+
</div>
|
|
58
|
+
{%- endif -%}
|
|
59
|
+
{%- if has_header -%}
|
|
60
|
+
<div class="bl-card__header{% if bordered %} bl-card__header--bordered{% endif %}" data-slot="card-header">
|
|
61
|
+
{%- if title != blank -%}
|
|
62
|
+
<{{ tag }} class="bl-card__title" data-slot="card-title">{{ title | escape }}</{{ tag }}>
|
|
63
|
+
{%- endif -%}
|
|
64
|
+
{%- if description != blank -%}
|
|
65
|
+
<div class="bl-card__description" data-slot="card-description">{{ description }}</div>
|
|
66
|
+
{%- endif -%}
|
|
67
|
+
{%- if action != blank -%}
|
|
68
|
+
<div class="bl-card__action" data-slot="card-action">{{ action }}</div>
|
|
69
|
+
{%- endif -%}
|
|
70
|
+
</div>
|
|
71
|
+
{%- endif -%}
|
|
72
|
+
{%- if content != blank -%}
|
|
73
|
+
<div class="bl-card__content" data-slot="card-content">{{ content }}</div>
|
|
74
|
+
{%- endif -%}
|
|
75
|
+
{{- blocks -}}
|
|
76
|
+
{%- if footer != blank -%}
|
|
77
|
+
<div class="bl-card__footer{% if footer_vertical %} bl-card__footer--vertical{% endif %}" data-slot="card-footer">
|
|
78
|
+
{{- footer -}}
|
|
79
|
+
</div>
|
|
80
|
+
{%- endif -%}
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
{% stylesheet %}
|
|
84
|
+
/* Mirrors registry/src/ui/card/card.tsx. Colours from the scheme; geometry from the card/* tokens; the outline is the
|
|
85
|
+
card/border tint and the footer fill card/footer/background (both color-mix() over a scheme role). */
|
|
86
|
+
.bl-card {
|
|
87
|
+
--card-padding: var(--bl-card-md-padding);
|
|
88
|
+
--card-gap: var(--bl-card-md-gap);
|
|
89
|
+
--card-radius: var(--bl-card-md-radius);
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
gap: var(--card-gap);
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
padding: var(--card-padding) 0;
|
|
95
|
+
border-radius: var(--card-radius);
|
|
96
|
+
background-color: var(--card);
|
|
97
|
+
color: var(--card-foreground);
|
|
98
|
+
box-shadow: 0 0 0 var(--bl-card-border-width) var(--bl-card-border);
|
|
99
|
+
font-size: var(--bl-card-description-font-size);
|
|
100
|
+
line-height: var(--bl-card-description-line-height);
|
|
101
|
+
}
|
|
102
|
+
.bl-card--sm {
|
|
103
|
+
--card-padding: var(--bl-card-sm-padding);
|
|
104
|
+
--card-gap: var(--bl-card-sm-gap);
|
|
105
|
+
--card-radius: var(--bl-card-sm-radius);
|
|
106
|
+
}
|
|
107
|
+
/* every region pads itself horizontally; a theme block placed straight into the card is content */
|
|
108
|
+
.bl-card > * {
|
|
109
|
+
margin: 0;
|
|
110
|
+
padding-inline: var(--card-padding);
|
|
111
|
+
}
|
|
112
|
+
/* media as the first child goes full bleed: no top padding, the top corners */
|
|
113
|
+
.bl-card > .bl-card__media {
|
|
114
|
+
padding-inline: 0;
|
|
115
|
+
}
|
|
116
|
+
.bl-card__media > img,
|
|
117
|
+
.bl-card__media > svg,
|
|
118
|
+
.bl-card__media > video {
|
|
119
|
+
display: block;
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: auto;
|
|
122
|
+
}
|
|
123
|
+
.bl-card:has(> .bl-card__media:first-child) {
|
|
124
|
+
padding-top: 0;
|
|
125
|
+
}
|
|
126
|
+
.bl-card > .bl-card__media:first-child {
|
|
127
|
+
overflow: hidden;
|
|
128
|
+
border-start-start-radius: var(--card-radius);
|
|
129
|
+
border-start-end-radius: var(--card-radius);
|
|
130
|
+
}
|
|
131
|
+
/* a Media block (or snippet) placed straight into the card goes full bleed the same way */
|
|
132
|
+
.bl-card > .bl-media { padding-inline: 0; }
|
|
133
|
+
.bl-card:has(> .bl-media:first-child) { padding-top: 0; }
|
|
134
|
+
/* a footer removes the card's bottom padding; the footer pads all round */
|
|
135
|
+
.bl-card:has(> .bl-card__footer) {
|
|
136
|
+
padding-bottom: 0;
|
|
137
|
+
}
|
|
138
|
+
.bl-card__header {
|
|
139
|
+
display: grid;
|
|
140
|
+
grid-auto-rows: min-content;
|
|
141
|
+
align-items: start;
|
|
142
|
+
row-gap: var(--bl-card-header-gap);
|
|
143
|
+
column-gap: var(--bl-card-header-action-gap);
|
|
144
|
+
border-start-start-radius: var(--card-radius);
|
|
145
|
+
border-start-end-radius: var(--card-radius);
|
|
146
|
+
}
|
|
147
|
+
.bl-card__header:has(> .bl-card__action) {
|
|
148
|
+
grid-template-columns: 1fr auto;
|
|
149
|
+
}
|
|
150
|
+
.bl-card__header:has(> .bl-card__description) {
|
|
151
|
+
grid-template-rows: auto auto;
|
|
152
|
+
}
|
|
153
|
+
.bl-card__header--bordered {
|
|
154
|
+
padding-bottom: var(--card-padding);
|
|
155
|
+
border-bottom: var(--bl-card-border-width) solid var(--border);
|
|
156
|
+
}
|
|
157
|
+
.bl-card__title {
|
|
158
|
+
margin: 0;
|
|
159
|
+
font-size: var(--bl-card-title-md-font-size);
|
|
160
|
+
font-weight: var(--bl-card-title-font-weight);
|
|
161
|
+
line-height: var(--bl-card-title-md-line-height);
|
|
162
|
+
}
|
|
163
|
+
.bl-card--sm .bl-card__title {
|
|
164
|
+
font-size: var(--bl-card-title-sm-font-size);
|
|
165
|
+
line-height: var(--bl-card-title-sm-line-height);
|
|
166
|
+
}
|
|
167
|
+
.bl-card__description {
|
|
168
|
+
color: var(--muted-foreground);
|
|
169
|
+
font-size: var(--bl-card-description-font-size);
|
|
170
|
+
line-height: var(--bl-card-description-line-height);
|
|
171
|
+
}
|
|
172
|
+
.bl-card__action {
|
|
173
|
+
grid-column: 2;
|
|
174
|
+
grid-row: 1 / span 2;
|
|
175
|
+
align-self: start;
|
|
176
|
+
justify-self: end;
|
|
177
|
+
}
|
|
178
|
+
/* always bordered and muted, as upstream */
|
|
179
|
+
.bl-card__footer {
|
|
180
|
+
display: flex;
|
|
181
|
+
align-items: center;
|
|
182
|
+
gap: var(--bl-card-footer-gap);
|
|
183
|
+
padding: var(--card-padding);
|
|
184
|
+
border-top: var(--bl-card-border-width) solid var(--border);
|
|
185
|
+
border-end-start-radius: var(--card-radius);
|
|
186
|
+
border-end-end-radius: var(--card-radius);
|
|
187
|
+
background-color: var(--bl-card-footer-background);
|
|
188
|
+
}
|
|
189
|
+
.bl-card > .bl-card__footer {
|
|
190
|
+
padding: var(--card-padding);
|
|
191
|
+
}
|
|
192
|
+
.bl-card__footer--vertical {
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
align-items: stretch;
|
|
195
|
+
}
|
|
196
|
+
{% endstylesheet %}
|