Skip to content

Latest commit

 

History

History
56 lines (42 loc) · 800 Bytes

stylus.md

File metadata and controls

56 lines (42 loc) · 800 Bytes

Jeet - Stylus

Installation

  • Install NodeJS
  • npm install -D jeet

Usage Example

$ stylus -w style.styl
// style.styl
@import 'node_modules/jeet/jeet'

debug()

section
  center()

aside
  column(1/3)

article
  column(2/3)
<html>
  <head>
    <link rel="stylesheet" href="style.css">
  </head>
  <body>
    <section>
      <aside>Sidebar</aside>
      <article>Content</article>
    </section>
  </body>
</html>

Namespacing and Aliases

Jeet doesn't namespace or alias by default anymore (to keep the API simple/clean). If you need namespacing or aliasing, you can wrap mixins within namespace/alias mixins.

// Namespace Example
jeet-column()
  column(arguments)

// Alias Example
col()
  column(arguments)