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

API to access the theme in the runtime #207

Open
oliviertassinari opened this issue Aug 16, 2024 · 0 comments
Open

API to access the theme in the runtime #207

oliviertassinari opened this issue Aug 16, 2024 · 0 comments
Assignees
Labels
new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@oliviertassinari
Copy link
Member

oliviertassinari commented Aug 16, 2024

Summary

Provide an API to access the theme at runtime.

Examples

  1. Apparently, it's possible today with a private API:
import theme from '@pigment-css/react/theme';
  1. In [system] Remove createUseThemeProps, RtlProvider, and DefaultPropsProvider API material-ui#43443 I developing the idea to make this possible natively with the regular useTheme() API.

Motivation

There are use cases to access the theme in RSC at runtime:

Search keywords: -

@oliviertassinari oliviertassinari added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Aug 16, 2024
@oliviertassinari oliviertassinari changed the title Accessing the theme in the runtime API to access the theme in the runtime Aug 16, 2024
@oliviertassinari oliviertassinari added the new feature New feature or request label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants