package styled-ppx
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=c6eba770e9e9bb9002bf3f759f99ebcec6d7b4132c6c2ad562886c88b6839bab
sha512=8a1776181f6ef292518a0b96b1fae7927cf5767dee75dc04bc05d99d297866e45a5943455bea9ce500a04a635bd179d2b2bec8bccebc55dc1e696a23b3efad69
Description
styled-ppx is a ppx and a library that brings styled components to ReScript, Melange and OCaml. Create React Components or simply className with type-safe style definitions with only CSS.
Published: 23 Jan 2026
README


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:
- Install the VSCode Extension
- Install the vim plugin
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)
Dependencies (11)
-
reason-react
>= "0.14.0" -
server-reason-react
>= "0.4.1" -
melange
>= "3.0.0" -
sedlex
>= "3.5" -
ppxlib
>= "0.36.0" -
ppx_deriving_yojson
>= "3.7.0" -
ppx_deriving
>= "5.0" -
menhir
>= "20220210" -
reason
>= "3.17.3" -
ocaml
>= "4.14" -
dune
>= "3.16"
Dev Dependencies (6)
-
odoc
with-doc -
ocamlformat
with-dev-setup -
ocaml-lsp-server
with-dev-setup -
reason-react-ppx
with-dev-setup -
conf-npm
with-test -
alcotest
with-test
Used by
None
Conflicts
None