UNPKG

4 kBJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.globalCSS = undefined;
7
8var _templateObject = _taggedTemplateLiteral(['\n @import url("https://use.typekit.net/yqf3dfe.css");\n @import url("https://cloud.typography.com/7455036/7907792/css/fonts.css");\n @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css");\n @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css");\n @import url("https://unpkg.com/react-select@1.2.1/dist/react-select.css");\n ', '\n .slick-dots li {\n margin: 0;\n }\n .slick-dots li button:focus:before {\n opacity: 0.25;\n }\n .slick-dots li.slick-active button:before {\n opacity: 0.75;\n }\n'], ['\n @import url("https://use.typekit.net/yqf3dfe.css");\n @import url("https://cloud.typography.com/7455036/7907792/css/fonts.css");\n @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css");\n @import url("https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css");\n @import url("https://unpkg.com/react-select@1.2.1/dist/react-select.css");\n ', '\n .slick-dots li {\n margin: 0;\n }\n .slick-dots li button:focus:before {\n opacity: 0.25;\n }\n .slick-dots li.slick-active button:before {\n opacity: 0.75;\n }\n']);
9
10var _styledComponents = require('styled-components');
11
12var _styledNormalize = require('styled-normalize');
13
14var _styledNormalize2 = _interopRequireDefault(_styledNormalize);
15
16function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
18function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
19
20// global css; only add to this if there are no other options
21// Note regarding `.slick-dots` stuff:
22// margin was done for design to pull dots together more than default CSS
23// li button stuff avoids bug with default `:focus` looking continually active
24//
25// Note regarding h2 and below:
26// This is styling for html that comes over from Drupal for KC
27var globalCSS = exports.globalCSS = (0, _styledComponents.injectGlobal)(_templateObject, _styledNormalize2.default);
28
29var 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
60var fontSizes = [];
61
62var breakpoints = Object.values({
63 0: '40em', // 640px
64 1: '52em', // 832px
65 2: '64em', // 1024px
66 3: '120em' // 1920px
67});
68
69var space = [0, 1, 2, 3, 4, 5];
70
71var fontWeights = {
72 extraLight: 200,
73 light: 300,
74 book: 400,
75 medium: 500,
76 bold: 700
77};
78
79var borders = [0, '1px solid'];
80
81var letterSpacings = {
82 normal: 'normal',
83 large: '0.1em',
84 xlarge: '0.2em'
85};
86
87var radii = Object.values({
88 0: 0,
89 1: 2,
90 2: 4,
91 3: 8
92});
93
94var lineHeights = Object.values({
95 0: 1,
96 1: 1.125,
97 2: 1.25,
98 3: 1.5
99});
100
101var fontFamily = {
102 serif: 'mrs-eaves-xl-serif-narrow, serif',
103 sansSerif: '"Gotham SSm A", "Gotham SSm B", Helvetica, Arial, sans-serif'
104};
105
106var fadeInDelay = 75;
107
108var Theme = {
109 colors: colors,
110 fontSizes: fontSizes,
111 breakpoints: breakpoints,
112 space: space,
113 fontWeights: fontWeights,
114 borders: borders,
115 letterSpacings: letterSpacings,
116 radii: radii,
117 lineHeights: lineHeights,
118 fontFamily: fontFamily,
119 fadeInDelay: fadeInDelay
120};
121
122exports.default = Theme;
\No newline at end of file