Stylus Documentation
Functions
- +cache(keys...)
- +prefix-classes(prefix)
- @block
- @extend
- @font-face
- @import and @require
- @keyframes
- @media
- Color Functions
- Console Functions
- External File Functions
- List / Hash Functions
- Math Functions
- Path Functions
- String Functions
- Unit Functions
- Utility Functions
- abs(unit)
- add-property(name, expr)
- alpha(color[, value])
- avg(nums)
- base-convert(num, base, width)
- basename(path[, ext])
- blend(top[, bottom])
- blue(color[, value])
- called-from property
- ceil(unit)
- complement(color)
- contrast(top[, bottom])
- convert(str)
- cos(angle)
- current-media()
- dark(color)
- darken(color, amount)
- define(name, expr[, global])
- desaturate(color, amount)
- dirname(path)
- embedurl(path[, encoding])
- error(msg)
- even(unit)
- extname(path)
- floor(unit)
- grayscale(color)
- green(color[, value])
- hsl(color | h,s,l)
- hsla(color | h,s,l,a)
- hue(color[, value])
- image-size(path)
- index(list, value)
- invert(color)
- join(delim, vals...)
- json(path[, options])
- keys(pairs)
- last(expr)
- length([expr])
- light(color)
- lighten(color, amount)
- lightness(color[, value])
- list-separator(list)
- lookup(name)
- luminosity(color)
- match(pattern, string[, flags])
- max(a, b)
- min(a, b)
- mix(color1, color2[, amount])
- odd(unit)
- operate(op, left, right)
- opposite-position(positions)
- p(expr)
- pathjoin(...)
- percentage(num)
- pop(expr)
- push(expr, args...)
- range(start, stop[, step])
- red(color[, value])
- replace(pattern, replacement, val)
- rgb(color | r,g,b)
- rgba(color | r,g,b,a)
- round(unit)
- s(fmt, ...)
- saturate(color, amount)
- saturation(color[, value])
- selector()
- selector-exists(selector)
- shade(color, amount)
- shift(expr)
- sin(angle)
- slice(val, start[, end])
- spin(color, amount)
- split(delim, val)
- substr(val, start, length)
- sum(nums)
- tan(angle)
- tint(color, amount)
- transparentify(top[, bottom, alpha])
- typeof(node)
- unit(val[, type])
- unquote(str | ident)
- unshift(expr, args...)
- url()
- use(path)
- values(pairs)
- warn(msg)
Guides
Methods
Variables