Skip to content
Discussion options

You must be logged in to vote

The first thing that comes to mind is to create wrappers around some components in case the responsive behavior is the same. For example, create an internal Text component that uses Reshaped Text and has a predefined mapping of responsive sizes.

In case you want to really switch the theme completely and change colors or other tokens, you can try using the same approach we suggest for dark mode detection: https://reshaped.so/docs/getting-started/react/installation#system-dark-mode. Instead of checking the media queries, you can check the user agent or any other data source for the current platform as a default value and then change it on screen resize

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by erickcelio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants