Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to use custom theme (SCSS) #1248

Open
hatsforclowns opened this issue Jun 23, 2022 · 0 comments
Open

Ability to use custom theme (SCSS) #1248

hatsforclowns opened this issue Jun 23, 2022 · 0 comments

Comments

@hatsforclowns
Copy link

Summary

Currently, we are only able to theme the app using one of three presets (white, dark and g10).

Although it is possible to introduce custom styles in index.scss, this feels like a rather counter-intuitive workaround as opposed to editing the theme tokens directly.

It would be great if we could write custom themes according to this schema and use these instead of the presets, if desired.

Apologies if there's already a way of doing this and I've simply missed it.

Justification

The limited number of theme presets and inability(?) to edit tokens directly either in a preset/custom theme makes it difficult to efficiently apply alternative styles to the theme.

Desired UX and success metrics

Alongside the existing documentation for configuring the theme, users should be:

  • informed that they have the ability to create a custom theme using the existing Carbon tokens (i.e. $background, $interactive)
  • provided with instructions or a recipe for how this theme can be used in their Gatsby app

Must-have functionality

The ability to supersede a preset theme with a custom one, or to granually supersede individual tokens.

Specific timeline issues / requests

None.

Available extra resources

Testing, documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant