Skip to content

There's no error when using sp-theme without importing a color/scale #800

@adixon-adobe

Description

@adixon-adobe

Expected Behaviour

It would be nice for newer users to add a console error when trying to use sp-theme and only importing '@spectrum-web-components/theme/sp-theme' (without removing the ability to delay-load or not load them).

Actual Behaviour

There's no error to indicate you need to load more for it to properly show up.

Sample Code that illustrates the problem

import '@spectrum-web-components/theme/sp-theme'
...
return html`
  <sp-theme color="light" scale="large">
  {...}
  </sp-theme>`

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions