UNPKG

2.77 kBJavaScriptView Raw
1import { injectGlobal } from 'styled-components';
2import styledNormalize from 'styled-normalize';
3
4// global css; only add to this if there are no other options
5// Note regarding `.slick-dots` stuff:
6// margin was done for design to pull dots together more than default CSS
7// li button stuff avoids bug with default `:focus` looking continually active
8//
9// Note regarding h2 and below:
10// This is styling for html that comes over from Drupal for KC
11export const globalCSS = injectGlobal`
12 @import url("https://use.typekit.net/yqf3dfe.css");
13 @import url("https://cloud.typography.com/7455036/7907792/css/fonts.css");
14 @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css");
15 @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css");
16 @import url("https://unpkg.com/react-select@1.2.1/dist/react-select.css");
17 ${styledNormalize}
18 .slick-dots li {
19 margin: 0;
20 }
21 .slick-dots li button:focus:before {
22 opacity: 0.25;
23 }
24 .slick-dots li.slick-active button:before {
25 opacity: 0.75;
26 }
27`;
28
29const colors = {
30 orange: '#E9573E',
31 white: '#FFFFFF',
32 black: '#202020',
33 // TODO: Post merging all projects into 1 repository,
34 // do a grep and replace all gray.X that have been
35 // deprecated
36 gray: Object.values({
37 0: '#F8F8F8',
38 1: '#F2F2F2',
39 2: 'pink', // #808285 deprecated
40 3: 'pink', // #434A54 deprecated
41 4: 'pink', // #414042 deprecated
42 5: 'pink', // #A7A9AC deprecated
43 6: 'pink', // #E6E7E8 deprecated
44 7: '#777777',
45 8: '#202020',
46 9: '#171717',
47 10: '#9b9b9b',
48 11: 'pink', // #bebebe deprecated
49 12: '#ededed',
50 }),
51 blue: Object.values({
52 0: '#176DB6', // #4B89DC deprecated
53 1: '#176DB6',
54 2: '#A4C2D5',
55 3: '#1D89E5',
56 }),
57 transparent: 'transparent',
58};
59
60const fontSizes = [
61];
62
63const breakpoints = Object.values({
64 0: '40em', // 640px
65 1: '52em', // 832px
66 2: '64em', // 1024px
67 3: '120em', // 1920px
68});
69
70const space = [
71 0,
72 1,
73 2,
74 3,
75 4,
76 5,
77];
78
79const fontWeights = {
80 extraLight: 200,
81 light: 300,
82 book: 400,
83 medium: 500,
84 bold: 700,
85};
86
87const borders = [
88 0,
89 '1px solid',
90];
91
92const letterSpacings = {
93 normal: 'normal',
94 large: '0.1em',
95 xlarge: '0.2em',
96};
97
98const radii = Object.values({
99 0: 0,
100 1: 2,
101 2: 4,
102 3: 8,
103});
104
105const lineHeights = Object.values({
106 0: 1,
107 1: 1.125,
108 2: 1.25,
109 3: 1.5,
110});
111
112const fontFamily = {
113 serif: 'mrs-eaves-xl-serif-narrow, serif',
114 sansSerif: '"Gotham SSm A", "Gotham SSm B", Helvetica, Arial, sans-serif',
115};
116
117const fadeInDelay = 75;
118
119
120const Theme = {
121 colors,
122 fontSizes,
123 breakpoints,
124 space,
125 fontWeights,
126 borders,
127 letterSpacings,
128 radii,
129 lineHeights,
130 fontFamily,
131 fadeInDelay,
132};
133
134export default Theme;