created:12/30/2020
updated:12/30/2020
loc
114
comments
10%
BackpackColor
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.
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 | - | |
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 | - |
package | imports | peer |
---|---|---|
CopyContainer | ||
react ^17.0.1 | FC | * |
simple-color-converter ^2.1.9 | simpleColorConverter | |
theme-ui ^0.8.4 | jsx |
file | imports |
---|---|
"../utils" | colorToStrmostReadable |
"../../types" | ColorBlockPropsColorValue |
"../../containers" | GridContainerPropsGridContainer |
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