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

AtlassianColor

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

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

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

Rgba

AFAIL
AFAIL
APASS
APASS
NAME
shadow
HEX
#000000
RGB
0, 0, 0, 0.1
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

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
*
theme-ui
^0.8.4
jsx
tinycolor
file
imports
"../utils"
colorToStr
"../../types"
ColorBlockPropsColorValuecolorContrastdefaultBlackTextColordefaultWhiteTextColorThemeColorProps
"../../containers"
GridContainerPropsGridContainer

Stories

Overview

APASS
APASS
APASS
APASS
NAME
Blue400
HEX
#2270EE
RGB
34, 112, 238

Name

APASS
APASS
APASS
AFAIL
NAME
brand - Critical
HEX
#F94D32
RGB
249, 77, 50

Rgb

AFAIL
AFAIL
APASS
APASS
NAME
text
HEX
#000000
RGB
0, 0, 0

Hsl

APASS
APASS
APASS
AFAIL
NAME
accent
HEX
#8C7873
RGB
140, 120, 115

Hsla

APASS
APASS
APASS
AFAIL
NAME
accent
HEX
#8C7873
RGB
140, 120, 115

Palette

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