created:12/30/2020
updated:12/30/2020
loc
155
comments
6%
AtlassianColor
Color item displaying the color as a block with AA color contrast tests. Design inspired by Atlassian Design System.
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 | #000000 |
whiteTextColor | dark mode text color for the theme. this property is used for AA contrast testing. by default, this is white = #ffffff string | #ffffff |
package | imports | peer |
---|---|---|
CopyContainer | ||
react ^17.0.1 | FC | * |
theme-ui ^0.8.4 | jsx | |
tinycolor2 ^1.4.1 | tinycolor |
file | imports |
---|---|
"../utils" | colorToStr |
"../../types" | ColorBlockPropsColorValuecolorContrastdefaultBlackTextColordefaultWhiteTextColorThemeColorProps |
"../../containers" | GridContainerPropsGridContainer |
APASS
APASS
APASS
AFAIL
NAME
R300 - Poppy surprise
HEX
#FF5630
RGB
255, 86, 48
APASS
APASS
AFAIL
AFAIL
NAME
Y300 - Golden state
HEX
#FFAB00
RGB
255, 171, 0
APASS
APASS
AFAIL
AFAIL
NAME
G300 - Fine pine
HEX
#36B37E
RGB
54, 179, 126
APASS
APASS
AFAIL
AFAIL
NAME
T300 - Tamarama
HEX
#00B8D9
RGB
0, 184, 217
APASS
AFAIL
APASS
APASS
NAME
P300 - Da' juice
HEX
#6554C0
RGB
101, 84, 192
APASS
APASS
APASS
AFAIL
NAME
Red400 - Critical
HEX
#F94D32
RGB
249, 77, 50