Skip to content

Commit e2598ea

Browse files
author
Dave Ferris
committed
2 parents 9c57c42 + b206ed8 commit e2598ea

File tree

5 files changed

+102
-11
lines changed

5 files changed

+102
-11
lines changed

scss/palette.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
$ux-black: #000000;
44
$ux-blue: #337ab7;
5-
$ux-dark-blue: #639BB8;
65
$ux-gray: #A1A1A1;
76
$ux-green: #6DBD63;
87
$ux-light-blue: #7CCBF2;

src/Styles/index.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import palette from './palette';
2+
import zStack from './zStack';
3+
4+
export {
5+
palette,
6+
zStack,
7+
};

src/Styles/palette.js

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,62 @@
22

33
export default {
44
uxBlack: '#000000',
5-
uxBlue: '#337ab7',
5+
uxBlue: '#337AB7',
6+
uxGray: '#A1A1A1',
7+
uxGreen: '#6DBD63',
8+
uxOrange: '#F59C27',
9+
uxPurple: '#8B008B',
10+
uxRed: '#FF4E00',
11+
uxYellow: '#F6D810',
12+
uxWhite: '#FFFFFF',
613

7-
uxGreen100: '#F3FFF2',
8-
uxGreen200: '#E3FDE0',
9-
uxGreen500: '#6DBD63',
10-
uxGreen600: '#47A13B',
14+
uxBlue100: '#EBF6FF',
15+
uxBlue200: '#C9E5FC',
16+
uxBlue300: '#92CBFC',
17+
uxBlue400: '#5AA4E5',
18+
uxBlue500: '#337AB7', // uxBlue
19+
uxBlue600: '#155B99',
20+
uxBlue700: '#0D4473',
21+
uxBlue800: '#083054',
22+
uxBlue900: '#032847',
1123

1224
uxGray100: '#F9F9F9',
1325
uxGray200: '#F1F1F1',
14-
uxGray500: '#A1A1A1',
26+
uxGray300: '#E1E1E1',
27+
uxGray400: '#D1D1D1',
28+
uxGray500: '#A1A1A1', // uxGray
1529
uxGray600: '#818181',
30+
uxGray700: '#616161',
31+
uxGray800: '#444444',
32+
uxGray900: '#222222',
33+
34+
uxGreen100: '#F3FFF2',
35+
uxGreen200: '#E3FDE0',
36+
uxGreen300: '#BFFEB8',
37+
uxGreen400: '#85DC7A',
38+
uxGreen500: '#6DBD63', // uxGreen
39+
uxGreen600: '#47A13B',
40+
uxGreen700: '#297021',
41+
uxGreen800: '#1A5313',
42+
uxGreen900: '#0E4207',
1643

1744
uxOrange100: '#FDEAD2',
1845
uxOrange200: '#FCDFB9',
19-
uxOrange500: '#F59C27',
46+
uxOrange300: '#FAC988',
47+
uxOrange400: '#F7B258',
48+
uxOrange500: '#F59C27', // uxOrange
2049
uxOrange600: '#E18C28',
50+
uxOrange700: '#AE6608',
51+
uxOrange800: '#7D4A06',
52+
uxOrange900: '#653B05',
2153

2254
uxRed100: '#F0D9D9',
2355
uxRed200: '#E8C5CB',
24-
uxRed500: '#FF4E00',
56+
uxRed300: '#EB7A7A',
57+
uxRed400: '#E44E4E',
58+
uxRed500: '#FF4E00', // uxRed
2559
uxRed600: '#C71F1F',
26-
27-
uxWhite: '#FFFFFF',
60+
uxRed700: '#B11B1B',
61+
uxRed800: '#9B1818',
62+
uxRed900: '#851414',
2863
};

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import Card from './Card/Card';
22
import CopyToClipboard from './CopyToClipboard/CopyToClipboard';
3+
import FadeTransition from './FadeTransition/FadeTransition';
34
import {
45
Flash, MessageTypes, withFlash, withFlashPropTypes, useFlash,
56
} from './Flash';
@@ -16,6 +17,7 @@ import TrackedButton from './TrackedButton/TrackedButton';
1617
export {
1718
Card,
1819
CopyToClipboard,
20+
FadeTransition,
1921
Flash,
2022
Form,
2123
FormControlLabel,

stories/Palette.stories.jsx

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
import React from 'react';
2+
3+
import palette from '../src/Styles/palette';
4+
5+
import { withPadding } from './decorators';
6+
7+
const renderColor = (colorName) => (
8+
<div style={{ display: 'flex', height: '20rem', width: '100%' }}>
9+
{
10+
[...Array(9)].map((_, i) => {
11+
const colorNameKey = `ux${colorName}${i + 1}00`;
12+
13+
return (
14+
<div
15+
style={{
16+
backgroundColor: palette[colorNameKey],
17+
height: '100%',
18+
flexBasis: '11%',
19+
}}
20+
>
21+
<p
22+
style={{
23+
backgroundColor: '#FFF',
24+
color: '#000',
25+
fontSize: '1rem',
26+
margin: '1rem',
27+
textAlign: 'center',
28+
}}
29+
>
30+
{colorNameKey}
31+
</p>
32+
</div>
33+
);
34+
})
35+
}
36+
</div>
37+
);
38+
39+
export default {
40+
title: 'Design System/Color Palette',
41+
decorators: [withPadding],
42+
};
43+
44+
export const Blue = renderColor('Blue');
45+
export const Gray = renderColor('Gray');
46+
export const Green = renderColor('Green');
47+
export const Orange = renderColor('Orange');
48+
export const Red = renderColor('Red');

0 commit comments

Comments
 (0)