dwjohnston / dwjohnston/ultimate-react-package-template

Create examle PR using CSS modules.

Open
#20 0 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
Dominant language
CSS
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The vanilla CSS solution we currently have is messy, leads to potential CSS clashes.

I don't want to use a CSS-in-JS solution, because that unnecessarily inflates the bundle size.

I want to know if CSS modules will solve the problem of:

1. Allowing a package to by default have its own opinionated styling
2. Not inflate the JS bundle with CSS.
3. Allow the default styling to be overridden
4. Have the CSS be cachable by the ultimate consuming code.

Instructions:

Create a comment outlining the problem space and approaches forward.
Create a demonstration PR that achieves these goals, or demonstrates why it's not possible.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.