Skip to content

Create HTML elements in OCaml using Material Design (MaterializeCSS)

License

Notifications You must be signed in to change notification settings

dannywillems/ocaml-materializecss

Repository files navigation

ocaml-materializecss

ocaml-materializecss will be rewritten entirely with Eliom. This is WIP.

screenshot.png

Create HTML elements in OCaml using Material Design with MaterializeCSS.

How to install?

ocaml-materializecss depends on jsoo_lib, a set of functions to use js_of_ocaml easier. You need to pin the opam repository:

opam pin add jsoo_lib https://github.com/dannywillems/jsoo-lib.git
opam pin add ocaml-materializecss https://github.com/dannywillems/ocaml-materializecss.git

Example

See the test directory to see an example.

How to use it?

All functions is in Css_materiliaze module. This main module contains submodules depending on the purpose of their content. For example, the submodule Css_materialize.Head contains functions to add automatically the css and javascript files. If you use bower, you can use

Css_materiliaze.Head.add_css_link Css_materialize.Head.Bower_css

to add the css in the head tag. Else, you can pass the entire path to the files.

Head

Icon

Grid

Button

About

Create HTML elements in OCaml using Material Design (MaterializeCSS)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published