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

BackpackColor

avatar of atanasster
@component-controls/design-tokens
3.15.0

Color item displaying the color as a color block and the values for RGB, CMYK and Pantone. If specified, will display the dark color as a bottom-right side triangle. Design inspired by Backpack.

import { BackpackColor } from '@component-controls/design-tokens';

Name

Critical brand
RGB 249, 77, 50
HEX #f94d32
CMYK: 0, 69, 80, 2
PMS 171C
Name
Description
Default
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
-
hover

hover prop

boolean
-
blackTextColor

text color for the theme. this property is used for AA contrast testing. by default, this is black = #000000

string
-
whiteTextColor

dark mode text color for the theme. this property is used for AA contrast testing. by default, this is white = #ffffff

string
-

Commits

Date
Author
Commit Message
12/25/2021

atanasster

avatar of atanasster
chore: upgrade eslint, gatsby, next
10/5/2020

atanasster

avatar of atanasster
feat: clean up color tokens and add table color
10/1/2020

atanasster

avatar of atanasster
fix: spelling updates
9/26/2020

atanasster

avatar of atanasster
chore: refactor colors
9/23/2020

atanasster

avatar of atanasster
feat: added bolt color token
5 commits
package
imports
peer
CopyContainer
react
^17.0.1
FC
*
simpleColorConverter
theme-ui
^0.8.4
jsx
file
imports
"../utils"
colorToStrmostReadable
"../../types"
ColorBlockPropsColorValue
"../../containers"
GridContainerPropsGridContainer

Stories

Overview

Brand
light: Blue400
dark: Blue800

Rgb

text
RGB 0, 0, 0
HEX #000000
CMYK: 0, 0, 0, 100
PMS 419C

Rgba

shadow
RGB 0, 0, 0, 0.1
HEX #000000
CMYK: 0, 0, 0, 100
PMS 419C

Hsl

accent
RGB 140, 120, 115
HEX #8c7873
CMYK: 0, 14, 18, 45
PMS 409C

Hsla

accent
RGB 140, 120, 115
HEX #8c7873
CMYK: 0, 14, 18, 45
PMS 409C

Palette

Poppy surprise R300
RGB 255, 86, 48
HEX #ff5630
CMYK: 0, 66, 81, 0
PMS 171C
Golden state Y300
RGB 255, 171, 0
HEX #ffab00
CMYK: 0, 33, 100, 0
PMS 137C
Fine pine G300
RGB 54, 179, 126
HEX #36b37e
CMYK: 70, 0, 30, 30
PMS 339C
Tamarama
light: T300
dark: #084eb2
Da' juice P300
RGB 101, 84, 192
HEX #6554c0
CMYK: 47, 56, 0, 25
PMS 2725C
Critical Red400
RGB 249, 77, 50
HEX #f94d32
CMYK: 0, 69, 80, 2
PMS 171C