Stylus API Manual
Guide
Function
- red(color[, value])
- green(color[, value])
- blue(color[, value])
- alpha(color[, value])
- dark(color)
- light(color)
- hue(color[, value])
- saturation(color[, value])
- lightness(color[, value])
- push(expr, args...)
- pop(expr)
- shift(expr)
- unshift(expr, args...)
- keys(pairs)
- values(pairs)
- list-separator(list)
- typeof(node)
- unit(unit[, type])
- match(pattern, string)
- abs(unit)
- ceil(unit)
- floor(unit)
- round(unit)
- sin(angle)
- cos(angle)
- tan(angle)
- min(a, b)
- max(a, b)
- even(unit)
- odd(unit)
- sum(nums)
- avg(nums)
- range(start, stop[, step])
- base-convert(num, base, width)
- join(delim, vals...)
- hsla(color | h,s,l,a)
- hsl(color | h,s,l)
- rgba(color | r,g,b,a)
- rgb(color | r,g,b)
- blend(top[, bottom])
- lighten(color, amount)
- darken(color, amount)
- desaturate(color, amount)
- saturate(color, amount)
- complement(color)
- invert(color)
- grayscale(color)
- tint(color, amount)
- shade(color, amount)
- luminosity(color)
- contrast(top[, bottom])
- transparentify(top[, bottom, alpha])
- unquote(str | ident)
- convert(str)
- s(fmt, ...)
- basename(path[, ext])
- dirname(path)
- extname(path)
- pathjoin(...)
- called-from property
- current-media()
- +cache(keys...)
- +prefix-classes(prefix)
- lookup(name)
- define(name, expr)
- operate(op, left, right)
- length([expr])
- selector()
- selector-exists(selector)
- warn(msg)
- error(msg)
- last(expr)
- p(expr)
- opposite-position(positions)
- image-size(path)
- add-property(name, expr)
- json(path)
- use(path)
- @block
- @extend
- @font-face
- url()
- @import and @require
- @keyframes
- @media
Variable
Method