- From: Jared White <notifications@github.com>
- Date: Mon, 08 Apr 2024 12:18:24 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 8 April 2024 19:18:28 UTC
@mayank99 I really like the adoption aspect of this via `@sheet`, and I imagine this could be a way to configure a whole third-party design system, aka: ```js // in an application: import { designSystemConfig} from "some-design-system" designSystemConfig.adoptPageStyles("sheet1 sheet2") import { lotsof, components, here } from "some-design-system" ``` and in a component: ```js // within the design system import { designSystemConfig} from "../config.js" this.attachShadow({ mode: "open", adoptPageStyles: designSystemConfig.getPageStyles() }); ``` Or of course in server-rendering there could be a mechanism to specify/inject the right values for DSD templates. -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/909#issuecomment-2043488156 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/909/2043488156@github.com>
Received on Monday, 8 April 2024 19:18:28 UTC