188
0%
MIT
unpublishedneglectedcss-in-reason

(work in progress)

nice

css-in-reason. just because.

  • RE
  • ML
open Nice;

let className = css([|
  Display(Flex),
  AlignItems(Center),
  Color(Red),
  Select(":hover", [Color(Blue)])
|]);
open Nice
let className =
  css
    [|((Display (Flex))[@explicit_arity ]);((AlignItems (Center))[@explicit_arity
                                                                   ]);((
      Color (Red))[@explicit_arity ]);((Select
                                          (":hover",
                                            [((Color (Blue))[@explicit_arity
                                                              ])]))[@explicit_arity
                                                                    ])|]

some nice features

  • pure reason
  • typed css
  • glamor-style composition
  • escape hatch - Raw(key, value)

todo

  • vendor prefixing
  • keyframes / animations
  • font-faces
  • better types
  • ~ hot reloading
  • benchmarks / tests