GOX / LIBRARY

Examples

Go libraries. GOX components. Code for your next project.

components / sass /sass.gox

Sass

Compile styles into files for the browser.

Live example

Source

content/examples/card.scss
 1$accent: #8250df;
 2$space: 20px;
 3
 4.sass-demo {
 5  padding: $space;
 6  border: 2px solid $accent;
 7  border-radius: 12px;
 8
 9  strong {
10    color: $accent;
11  }
12}

Result

Hello, Sass!

Variables + nesting.

Compilation runs in the background and writes a static file under public/generated. On the first visit the browser may receive a 404 before it is ready; reload after compilation. Errors are logged on the server.

Live exampleGOX / Go