Sha256: 3f4cac591d9018fc42c4d4d55ed6b1d8e37de96c7794425cb15179f998ae1b20

Contents?: true

Size: 955 Bytes

Versions: 23

Compression:

Stored size: 955 Bytes

Contents

## Keyword Arguments

 Stylus supports keyword arguments, or "kwargs", allowing you to key
 arguments by their associated parameter name.

 The examples shown below are functionally equivalent, however we can
 place keyword arguments anywhere within the list. The remaining arguments
 that are _not_ keyed will be applied to the parameters that have not
 been satisfied.

      body {
        color: rgba(255, 200, 100, 0.5);
        color: rgba(red: 255, green: 200, blue: 100, alpha: 0.5);
        color: rgba(alpha: 0.5, blue: 100, red: 255, 200);
        color: rgba(alpha: 0.5, blue: 100, 255, 200);
      }

 yielding:
 
       body {
         color: rgba(255,200,100,0.5);
         color: rgba(255,200,100,0.5);
         color: rgba(255,200,100,0.5);
         color: rgba(255,200,100,0.5);
       }


 To see what parameters a function or mixin accept, use the `p()` function:
 
    p(rgba)

 yielding:

    inspect: rgba(red, green, blue, alpha)

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
stylus-source-0.22.6 vendor/docs/kwargs.md
stylus-source-0.22.5 vendor/docs/kwargs.md
stylus-source-0.22.4 vendor/docs/kwargs.md
stylus-source-0.22.3 vendor/docs/kwargs.md
stylus-source-0.22.2 vendor/docs/kwargs.md
stylus-source-0.22.1 vendor/docs/kwargs.md
stylus-source-0.22.0 vendor/docs/kwargs.md
stylus-source-0.21.2 vendor/docs/kwargs.md
stylus-source-0.21.1 vendor/docs/kwargs.md
stylus-source-0.21.0 vendor/docs/kwargs.md
stylus-source-0.20.1 vendor/docs/kwargs.md
stylus-source-0.20.0 vendor/docs/kwargs.md
stylus-source-0.19.8 vendor/docs/kwargs.md
stylus-source-0.19.7 vendor/docs/kwargs.md
stylus-source-0.19.6 vendor/docs/kwargs.md
stylus-source-0.19.5 vendor/docs/kwargs.md
stylus-source-0.19.4 vendor/docs/kwargs.md
stylus-source-0.19.3 vendor/docs/kwargs.md
stylus-source-0.19.2 vendor/docs/kwargs.md
stylus-source-0.19.1 vendor/docs/kwargs.md