Skip to content

Instantly share code, notes, and snippets.

col ?= blue;
num ?= 10%;
html
background darken(col, num)
var render = function(){
require('./index.jade');
require('./index.js');
require('./index.styl');
}
@mndvns
mndvns / nav-index.jade
Created January 13, 2015 00:02
importing js in template
import Scroll from './scroll'
.nav
h1 item
h1 item
import Style from './index.styl'
.masthead(style={height: window.innerHeight})
h2.masthead-description foo
@mndvns
mndvns / test.jade
Last active August 29, 2015 14:13
.testing
h1 testing
export var rootTag = '.testing'
@mndvns
mndvns / constructor.ess
Created February 7, 2015 01:13
ESS dream interface from the future
var color = props.color || 'red'
button
color: =color
yield
@media
yield mobile
@mndvns
mndvns / colors
Created February 8, 2015 01:15
Color swatches
# Colors
red
yellow
blue
orange
green
purple
yellow-orange
red-orange
app pls
do styles pls that are like whaaaaaaaaaa
also fast as fuuuuuuuuck
srsly no wwwwwwwwaaaay
and good back end and big data
i mean big
PS no bugs
@mndvns
mndvns / colors.styl
Last active August 29, 2015 14:15
Programmatic stylus
colors = {
'black': #000,
'white': #fff
}
shades = {
'light': 20%,
'lighter': 40%,
'lightest': 60%
}
.test {}
.test:hover {
color: blue
}
.test {}
.test:hover {
color: blue
}
.test {}
.test:hover {