Skip to content

Support for inline theming? #1648

@teddyward

Description

@teddyward

The Carbon design spec has recommendations about using an inline theme to essentially apply a different theme to one part of the app vs. the global theme. The storybook for React implements that kind of behavior here. All the theme examples in Svelte, however, only apply a single theme, and from my own testing, I don't believe that it is possible to do the following in Svelte:

<Theme theme="g10">
      <p>g10 theme</p>
</Theme>
<Theme theme="white">
      <p>white theme</p>
</Theme>

Before making any proposals, I'm seeking to verify:

  • If it is true that Inline Theming isn't currently supported by this library
  • If it is true that Inline Theming isn't supported, whether or not that is an intentional design decision

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions