phthhieu / Re Tailwind
Licence: mit
Brings TailwindCSS https://tailwindcss.com to ReasonML
Stars: ✭ 118
Programming Languages
reason
219 projects
Labels
Projects that are alternatives of or similar to Re Tailwind
Routes
typed bidirectional routes for OCaml/ReasonML web applications
Stars: ✭ 102 (-13.56%)
Mutual labels: reasonml
Reason Calculator
A calculator built with Reason and reason-react.
Stars: ✭ 110 (-6.78%)
Mutual labels: reasonml
Reason
Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems
Stars: ✭ 9,545 (+7988.98%)
Mutual labels: reasonml
Dmmf
Implementing Scott Wlaschin's “Domain Modeling Made Functional” in Rust, Elm, F♯, and ReasonML
Stars: ✭ 103 (-12.71%)
Mutual labels: reasonml
Introduce Reason Example
An example app made with Create React App which introduces a Reason component
Stars: ✭ 82 (-30.51%)
Mutual labels: reasonml
Rescript Recoil
Zero-cost bindings to Facebook's Recoil library
Stars: ✭ 115 (-2.54%)
Mutual labels: reasonml
Jsoo React
js_of_ocaml bindings for ReactJS. Based on ReasonReact.
Stars: ✭ 101 (-14.41%)
Mutual labels: reasonml
A Reason React Tutorial
included code for A ReasonReact Tutorial
Stars: ✭ 94 (-20.34%)
Mutual labels: reasonml
Reason React Native Web Example
Razzle + Reason-React + React-Native-Web. Damn that's a lot of R's.
Stars: ✭ 98 (-16.95%)
Mutual labels: reasonml
Awesome Reasonml
A collection of awesome things regarding Reason/OCaml ecosystem.
Stars: ✭ 1,473 (+1148.31%)
Mutual labels: reasonml
Reason Reactify
🚀 Transform a mutable tree into a functional React-like API
Stars: ✭ 102 (-13.56%)
Mutual labels: reasonml
Ocamlverse.github.io
Documentation of everything relevant in the OCaml world
Stars: ✭ 117 (-0.85%)
Mutual labels: reasonml
re-tailwind
ReasonML utility to generate Tailwind classes
Install
npm install --save re-tailwind
Add re-tailwind to bs-dependencies
in bsconfig.json
Usage
- Ensure your app already import tailwind css
[%bs.raw {|require("tailwindcss/dist/tailwind.min.css")|}];
- Use function TW.make to construct your tailwind classnames:
module Example = {
[@react.component]
let make = () => {
<div className=TW.([Display(Flex), Float(FloatRight)] |> make)>
{ReasonReact.string("Hello Example")}
</div>;
};
};
Credits
- Typed tailwind which has the same purpose to this project but in TypeScript
Next works:
- Tailwind PPX
- Auto generate ReasonML code for Tailwind CSS by user config
License
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].