rtfeldman/elm-css/8.1.0

NOTE: this package is not compatible with Elm 0.19.1

Css.File

Functions for writing CSS files from elm-css.

List Stylesheet
-> { css : String
, warnings : List String
}

Convenience re-export of Css.compile

(CssFileStructure -> Cmd Never)
-> CssFileStructure
-> CssCompilerProgram

Create a program that compiles an elm-css stylesheet to a CSS file.

port module Stylesheets exposing (..)


import Css.File exposing (CssFileStructure, CssCompilerProgram)
import HomepageCss as Homepage




port files : CssFileStructure -> Cmd msg




fileStructure : CssFileStructure
fileStructure =
    Css.File.toFileStructure
        [ ( "homepage.css", Css.File.compile [ Homepage.css ] ) ]




main : CssCompilerProgram
main =
    Css.File.compiler files fileStructure
List
( String
, { css : String
, warnings : List String
}
)
-> CssFileStructure

Translate a list of filenames and prettyPrint results to a list of tuples suitable for being sent to a port in a Stylesheets.elm file.

type alias CssFileStructure =
List
{ filename : String
, content : String
, success : Bool
}

A description of CSS files that will be created by elm-css.

type alias CssCompilerProgram =
Program Never () Never

A prorgam that compiles a CSS file.

See compiler.