app/helpers/styleguide_helper.rb
# ### kss_swatch
# Renders a type specimen. This is great for demoing colors.
#
#     = kss_block '2.1' do
#       = kss_swatch 'red', '#ff3322', description: 'for error text'
kss_swatch
Renders a type specimen. This is great for demoing colors.


kss_swatch Renders a type specimen . This is great for demoing colors .
def kss_swatch(name, color, options={})
    render partial: 'styleguides/swatch', locals: {
      name: name,
      identifier: name,
      color: color,
      dark: options[:dark],
      description: options[:description]
    }
  end
def kss_swatch ( name , color , options = { } ) render partial : 'styleguides/swatch' , locals : { name : name , identifier : name , color : color , dark : options [ :dark ] , description : options [ :description ] } end
kss_swatch
Renders a type specimen.
kss_swatch Renders a type specimen .
name
<not_specific>
color
<not_specific>
options
<not_specific>