CSS in Reason/OCaml
summary
Parses CSS strings in OCaml/Reason with a ppx preprocessor that emits React components via a bs-emotion binding, implementing the styled-components API so CSS composes as code. Claims: completed in about two months, supports hot reload in the browser, and surfaces compile‑time type errors (example: misspelled color names are rejected before running). Not all CSS is supported yet but uploader reports using it in production and relying on the compiler to catch invalid properties.
AI-written summary · about
chapters (8)
- 0:00Intro
- 8:47Reason
- 14:15Trend
- 15:50Components
- 18:15CSS in Reason
- 20:23Downside of CSS
- 23:43PPX
- 25:30Motion
related talks
34mstyled-ppx: How to mimic a JavaScript feature and over-engineering CSS
34mCSS in React
23mCSS-in-JS
33mThe past, present and future of CSS-in-JS
25mCSS is dead, long live CSS but in modules, please!
38mA Unified Styling Language
31mThe road to <💅> styled-components" CSS in component-based systems"
28mSee the Past, Present, and Future of CSS-in-JS
