A next-generation tool to create blazing-fast documentation sites
API
created:12/30/2020
updated:12/30/2020
loc
182
comments
5%

BoltColor

avatar of atanasster

Color item displaying the color as a block with AA color contrast tests. Design inspired by Bolt.

Overview

Brand
#2270ee
var(--bolt-color-navy)
Text sizeAaAa
#ffffff (4.55)
pass
pass
#000000 (4.62)
pass
pass
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

Brand
#2270ee
var(--bolt-color-navy)
Text sizeAaAa
#ffffff (4.55)
pass
pass
#000000 (4.62)
pass
pass

Viewport

Brand
#2270ee
var(--bolt-color-navy)
Text sizeAaAa
#ffffff (4.55)
pass
pass
#000000 (4.62)
pass
pass
320px
Brand
#2270ee
var(--bolt-color-navy)
Text sizeAaAa
#ffffff (4.55)
pass
pass
#000000 (4.62)
pass
pass
375px
Brand
#2270ee
var(--bolt-color-navy)
Text sizeAaAa
#ffffff (4.55)
pass
pass
#000000 (4.62)
pass
pass
768px
Brand
#2270ee
var(--bolt-color-navy)
Text sizeAaAa
#ffffff (4.55)
pass
pass
#000000 (4.62)
pass
pass
1024px