From ec96c5f1fc4745f252c6b85fd44cab298ddab0b2 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 8 Jan 2015 14:50:48 -0800 Subject: [PATCH] :memo: Add color docs --- src/config.coffee | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/config.coffee b/src/config.coffee index 15c2b0aa7..01b05ef53 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -217,6 +217,21 @@ ScopeDescriptor = require './scope-descriptor' # maximum: 11.5 # ``` # +# #### color +# +# Values will be coerced into an object with `red`, `green`, `blue`, and `alpha` +# properties that all have numeric values. `red`, `green`, `blue` will be in +# the range 0 to 255 and `value` will be in the range 0 to 1. Values can be any +# valid CSS color format such as `#abc`, `#abcdef`, `white`, +# `rgb(50, 100, 150)`, and `rgba(25, 75, 125, .75)`. +# +# ```coffee +# config: +# someSetting: +# type: 'color' +# default: 'white' +# ``` +# # ### Other Supported Keys # # #### enum