This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

CssFrameworks

This package provides access to popular CSS frameworks and feature libraries as (long) strings of CSS code. The toStyleNode function below can be used to embed any of these frameworks between HTML <style> tags.

toStyleNode : String -> Html msg

Convenience function to insert CSS code between HTML <style> tags so that it can be embedded in an Elm program's view.

Insert the resulting style node as the first child of your view's root node.

module CssFrameworks exposing (toStyleNode)

{-|

This package provides access to popular CSS frameworks and feature libraries as
(long) strings of CSS code. The
[`toStyleNode`](http://package.elm-lang.org/packages/danielnarey/elm-css-frameworks/latest/CssFrameworks#toStyleNode)
function below can be used to embed any of these frameworks between HTML
`<style>` tags.

@docs toStyleNode

-}

import Html exposing (Html)


{-| Convenience function to insert CSS code between HTML `<style>` tags so
that it can be embedded in an Elm program's view.

Insert the resulting style node as the first child of your view's root node.
-}
toStyleNode : String -> Html msg
toStyleNode css =
  css
    |> Html.text
    |> List.singleton
    |> Html.node "style" []