Functions for writing CSS files from elm-css.
Create a program that compiles an elm-css stylesheet to a CSS file.
import Css.File exposing (CssCompilerProgram, CssFileStructure)
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 fileStructureTranslate a list of filenames and prettyPrint results
to a list of tuples suitable for being sent to a port in a Stylesheets.elm file.
A description of CSS files that will be created by elm-css.
A prorgam that compiles a CSS file.
See compiler.
Styles scoped under an automatically-generated class.
Create a style scoped under an automatically-generated class that is guaranteed to be unique - at least relative to other class names generated using this function!
Convenience re-export of Css.compile