This is the Elixir version of EXPLO's CSS Helper library. Generally it's preferred to use the JS library, but when using Phoenix LiveView it doesn't always place nice with the JS. It's also faster to keep CSS styles within Elixir :)
If available in Hex, the package can be installed
by adding ex_css_helper
to your list of dependencies in mix.exs
:
def deps do
[
{:ex_css_helper, git: "https://bitbucket.org/explo/ex_css_helper.git"},
]
end
Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/ex_css_helper.
Run bin/fetch_styles
to grab the latest defaults into lib/ex_css_helper/definitions.ex
.