Skip to content

setup hybrid CSS: CSS modules + copy CSS to the end#74

Merged
severo merged 3 commits intomasterfrom
switch-to-css-module
Mar 18, 2025
Merged

setup hybrid CSS: CSS modules + copy CSS to the end#74
severo merged 3 commits intomasterfrom
switch-to-css-module

Conversation

@severo
Copy link
Copy Markdown
Contributor

@severo severo commented Mar 18, 2025

Super slim PR that allows specifying styles in a CSS module file while keeping global styles:

  • styles can be put inside .hightable {} in HighTable.module.css, to ensure they are scoped to the component
  • the component HighTable accepts a new prop className aimed at overriding the styles

The PR does not change any behavior or styling.

Follow-up PRs will try to reduce the number of global CSS classes, moving to attribute selectors. See #17.

@severo severo marked this pull request as ready for review March 18, 2025 12:27
@severo severo merged commit 8aa25c1 into master Mar 18, 2025
8 checks passed
@severo severo deleted the switch-to-css-module branch March 18, 2025 12:28
@severo
Copy link
Copy Markdown
Contributor Author

severo commented Mar 18, 2025

cc @platypii

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.

1 participant