created:12/30/2020
updated:12/30/2020
loc
56
comments
18%

VanillaColor

avatar of atanasster

Color item displaying the color as a color block with sass variable name and hex color value. Design inspired by Vanilla.

Overview

$color-negative
#C7162B

Controls

Name
Description
Default
Controls
name

name of the color, If none, or same as the color value, some color blocks will not display it

string
-
color

color value as a string. accepted hex, rgb, hsl color strings

ColorValue
-

A11y tests

$color-negative
#C7162B
 
id
description
avoid-inline-spacing

Ensure that text spacing set through style attributes can be adjusted with custom stylesheets...

color-contrast

Ensures the contrast between foreground and background colors meets WCAG 2 AA contrast ratio thresholds...

Viewport

$color-negative
#C7162B
320px
$color-negative
#C7162B
375px
$color-negative
#C7162B
768px
$color-negative
#C7162B
1024px