Skip to content

islonely/cssml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cssml

CSS and HTML in one language.

Quick Start

To get started create a file that ends with the .cssml extension; index.cssml for this example. Save this code to index.cssml (or to whatever you named the file on your system).

html {
    > head {}
    > body {
        > h1 {
            font-family: "Comic Sans MS", Cursive, serif;
            "Hello World!"
        }
    }
}

Next compile the CSSML to an HTML file with the cssml index.cssml command. The above code will output this HTML to index.html.

<!DOCTYPE html>
<html>
    <head>
        <style type="text/css">
            html {
                > body {
                    > h1 {
                        font-family: "Comic Sans MS", Cursive, serif;
                    }
                }
            }
        </style>
    </head>
    <body>
        <h1>
            Hello World
        </h1>
    </body>
</html>

About

CSS and HTML in one language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published