davesnx/styled-ppx

styled components for Reason/OCaml with type-safe CSS and static extraction

413

stars

1,954

commits

OCaml

primary language

Sep 3, 2026

updated

styled-ppx.vercel.app
css
melange
ocaml
reason
reasonml
reason-react
rescript
styled
vscode-extension

README

styled-ppx-header-lightstyled-ppx-header-dark

Typed styled components for Melange and OCaml

styled-ppx is a ppx and a library that brings styled components to Melange and OCaml. Create React Components or simply className with type-safe style definitions with only CSS.

It allows you to style apps safely, quickly, and performantly - just as you always done it.

Documentation

For the entire documentation, visit styled-ppx.vercel.app

Editor Support

We provide an editor extension that brings syntax highlighting:

If you are interested on another editor, please file an issue

Contributing

We would love your help improving styled-ppx! Please see our contributing and community guidelines; they'll help you get set up locally and explain the whole process: CONTRIBUTING.md

License

This project is licensed under the Simplified BSD License (BSD 2-Clause License)

Contributors

davesnx

1,561 commits

EduardoRFS

195 commits

joseemds

91 commits

zakybilfagih

36 commits

davesnx/styled-ppx

styled components for Reason/OCaml with type-safe CSS and static extraction

413

stars

1,954

commits

OCaml

primary language

Sep 3, 2026

updated

styled-ppx.vercel.app
css
melange
ocaml
reason
reasonml
reason-react
rescript
styled
vscode-extension

README

styled-ppx-header-lightstyled-ppx-header-dark

Typed styled components for Melange and OCaml

styled-ppx is a ppx and a library that brings styled components to Melange and OCaml. Create React Components or simply className with type-safe style definitions with only CSS.

It allows you to style apps safely, quickly, and performantly - just as you always done it.

Documentation

For the entire documentation, visit styled-ppx.vercel.app

Editor Support

We provide an editor extension that brings syntax highlighting:

If you are interested on another editor, please file an issue

Contributing

We would love your help improving styled-ppx! Please see our contributing and community guidelines; they'll help you get set up locally and explain the whole process: CONTRIBUTING.md

License

This project is licensed under the Simplified BSD License (BSD 2-Clause License)

Contributors

davesnx

1,561 commits

EduardoRFS

195 commits

joseemds

91 commits

zakybilfagih

36 commits

Languages

OCaml

42.8%

Reason

36.5%

JavaScript

9.3%

TypeScript

5.8%

MDX

4.3%