Skip to content

feat(ssr): add reusable CSS scoping utilities#50

Merged
pateketrueke merged 3 commits intomasterfrom
feat/ssr-css-scope-utils
Mar 4, 2026
Merged

feat(ssr): add reusable CSS scoping utilities#50
pateketrueke merged 3 commits intomasterfrom
feat/ssr-css-scope-utils

Conversation

@pateketrueke
Copy link
Collaborator

@pateketrueke pateketrueke commented Mar 4, 2026

Summary

  • add SSR CSS helper module at src/ssr/css.js
  • export style, rulify, specify, classify, scopify, and cssify from somedom/ssr
  • add unit tests for selector scoping and CSS formatting behavior
  • add css dependency in package.json for parser/stringifier support

Validation

  • npm run lint
  • npm run test:ssr
  • npm run build

Notes

  • classify(..., useClass=true, ...) currently preserves existing selector behavior where single-token selectors become duplicated classes (for example a.z-9.z-9). This keeps compatibility with current Jamrock expectations.

@pateketrueke pateketrueke force-pushed the feat/ssr-css-scope-utils branch from b4dafc4 to 9e86b80 Compare March 4, 2026 08:57
@pateketrueke pateketrueke merged commit 4b2147c into master Mar 4, 2026
1 check passed
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