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

feat: map styled-components dynamic class name #2207

Merged
merged 10 commits into from Mar 26, 2023
Merged

Conversation

kyrie25
Copy link
Member

@kyrie25 kyrie25 commented Mar 21, 2023

styled-components generates a hashed class name dynamically using a seed that is unique for each version. making it incredibly difficult for theme devs to maintain their work. This PR aims to make the class name readable and somewhat consistent between versions.
This would also help devs use Spotify's stylings on their components.

image
image

Example usage:
image

Works on 1.1.90 and higher, have not tested below

@kyrie25 kyrie25 changed the title feat: map styled-components dynamic classname feat: map styled-components dynamic class name Mar 21, 2023
@kyrie25 kyrie25 marked this pull request as ready for review March 22, 2023 13:07
@kyrie25 kyrie25 requested a review from a team as a code owner March 22, 2023 13:07
@rxri rxri merged commit bd2b8bf into master Mar 26, 2023
10 checks passed
@rxri rxri deleted the feat/map-dynamic-classnames branch March 26, 2023 19:38
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

Successfully merging this pull request may close these issues.

None yet

3 participants