Skip to content

[chore] Expand Emotion CSS bindings for complete API coverage #40

Description

@acald-creator

Description

The Emotion CSS bindings in src/bindings/Emotion.res were incomplete and have been updated to include the full API for better usability and future-proofing.

Changes Made

  • Fixed keyframes binding (was incorrectly pointing to "css", now "keyframes").
  • Added missing core APIs: cache, hydrate, getRegisteredStyles, flush.
  • Added server-side API: extractCritical for SSR support.

Files Changed

  • src/bindings/Emotion.res

Why This Matters

This ensures comprehensive bindings for the Emotion CSS library, allowing for advanced features like hydration, caching, and SSR if needed in future development. The project currently uses only css and injectGlobal, but these additions provide completeness without breaking changes.

Testing

  • Verified existing usage (css, injectGlobal) still works.
  • No runtime errors introduced.

Related

  • Closes any future needs for Emotion API expansions.
  • Part of ongoing binding improvements for JS interop.

Labels: chore, enhancement, bindings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions