shopware / meteor

Meteor is Shopware’s open-source design system that drives our commerce solutions. Extend and customise every aspect of Shopware – create elegant, delightful, and accessible experiences. There are no limits to your imagination.
https://shopware.design
MIT License
18 stars 3 forks source link

add theme provider #283

Closed Haberkamp closed 1 week ago

Haberkamp commented 1 week ago

What?

This PR adds a mt-theme-provider component. With this component we're able to configure the design system as a whole or only for parts of the application by placing the theme provider lower in the DOM tree.

Why?

Having future flags allows us to ship features early. Teams and users than can test out the features on their projects and give feedback. They're also able to incrementally migrate to new features without breaking the application.

How?

<template>
  <mt-theme-provider>
    <!-- Your content -->
  </mt-theme-provider>
</template>

Testing?

Test it on your local machine. Instructions are in the "How" section.

Anything Else?

Right now we do not provide any future flags, but we have some planned for the 4.0.0 release.

vercel[bot] commented 1 week ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
meteor-component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 6:25am
1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **meteor-admin-sdk-docs** | ⬜️ Ignored ([Inspect](https://vercel.com/shopware-frontends/meteor-admin-sdk-docs/5YujpQsSNzhwwTm2uaJG5opYbL7U)) | [Visit Preview](https://meteor-admin-sdk-docs-git-add-theme-provider-shopware-frontends.vercel.app) | | Sep 12, 2024 6:25am |
pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-admin-sdk@283
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-component-library@283
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-icon-kit@283
pnpm add https://pkg.pr.new/shopware/meteor/@shopware-ag/meteor-tokens@283

commit: b69fd55