@sproutsocial/racine 8.8.0-beta-shadows.0 → 8.8.0-dar35-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/__flow__/Breadcrumb/styles.js +0 -5
  3. package/__flow__/Button/styles.js +1 -1
  4. package/__flow__/Card/styles.js +1 -1
  5. package/__flow__/Drawer/styles.js +1 -1
  6. package/__flow__/KeyboardKey/styles.js +1 -1
  7. package/__flow__/Menu/index.stories.js +1 -1
  8. package/__flow__/Modal/__snapshots__/index.test.js.snap +1 -1
  9. package/__flow__/Modal/styles.js +1 -1
  10. package/__flow__/Popout/index.js +1 -1
  11. package/__flow__/Tooltip/index.js +1 -1
  12. package/__flow__/themes/_themes.scss +140 -0
  13. package/__flow__/themes/dark/theme.js +158 -171
  14. package/__flow__/themes/default/theme.js +8 -7
  15. package/__flow__/types/system-props.flow.js +2 -1
  16. package/commonjs/Breadcrumb/styles.js +1 -1
  17. package/commonjs/Button/styles.js +1 -1
  18. package/commonjs/Card/styles.js +1 -1
  19. package/commonjs/Drawer/styles.js +1 -1
  20. package/commonjs/KeyboardKey/styles.js +1 -1
  21. package/commonjs/Modal/styles.js +1 -1
  22. package/commonjs/Popout/index.js +1 -1
  23. package/commonjs/Tooltip/index.js +1 -1
  24. package/commonjs/themes/dark/theme.js +156 -171
  25. package/commonjs/themes/default/theme.js +7 -7
  26. package/dist/themes/_themes.scss +140 -0
  27. package/dist/themes/dark.scss +10 -11
  28. package/dist/themes/default.scss +14 -9
  29. package/lib/Breadcrumb/styles.js +1 -1
  30. package/lib/Button/styles.js +1 -1
  31. package/lib/Card/styles.js +1 -1
  32. package/lib/Drawer/styles.js +1 -1
  33. package/lib/KeyboardKey/styles.js +1 -1
  34. package/lib/Modal/styles.js +1 -1
  35. package/lib/Popout/index.js +1 -1
  36. package/lib/Tooltip/index.js +1 -1
  37. package/lib/themes/dark/theme.js +155 -167
  38. package/lib/themes/default/theme.js +7 -7
  39. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 8.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1cf97da: Remove font weight rule from Breadcrumbs styles
8
+
3
9
  ## 8.7.0
4
10
 
5
11
  ### Minor Changes
@@ -42,11 +42,6 @@ const Nav: StyledComponent<{ ... }, TypeTheme, *> = styled.nav`
42
42
  font-weight: bold;
43
43
  }
44
44
 
45
- li:not(:last-child) a,
46
- li:not(:last-child) button {
47
- font-weight: normal;
48
- }
49
-
50
45
  li:not(:last-child)::after {
51
46
  content: "/";
52
47
  color: ${(props) => props.theme.colors.text.body};
@@ -51,7 +51,7 @@ const Container: StyledComponent<any, TypeTheme, *> = styled.button`
51
51
  props.theme.colors.button[props.appearance].background.hover};
52
52
  text-decoration: none;
53
53
  box-shadow: ${(props) =>
54
- props.appearance === "placeholder" ? props.theme.shadows.low : "none"};
54
+ props.appearance === "placeholder" ? props.theme.shadows[100] : "none"};
55
55
  }
56
56
 
57
57
  &:active {
@@ -19,7 +19,7 @@ const Container = styled<typeof Box, *>(Box)`
19
19
  width: 100%;
20
20
  height: 100%;
21
21
  opacity: 0;
22
- box-shadow: ${(props) => props.theme.shadows.low};
22
+ box-shadow: ${(props) => props.theme.shadows[100]};
23
23
  transition: opacity ${(props) => props.theme.duration.medium}
24
24
  ${(props) => props.theme.easing.ease_inout};
25
25
  }
@@ -17,7 +17,7 @@ const Container: StyledComponent<any, TypeTheme, *> = styled.div`
17
17
  height: 100%;
18
18
  width: ${(props) => props.width}px;
19
19
  background-color: ${(props) => props.theme.colors.container.background.base};
20
- box-shadow: ${(props) => props.theme.shadows.high};
20
+ box-shadow: ${(props) => props.theme.shadows[400]};
21
21
  filter: blur(0);
22
22
 
23
23
  ${(props) => css`
@@ -10,7 +10,7 @@ const Container: StyledComponent<{ ... }, TypeTheme, *> = styled.div`
10
10
  background-color: ${(props) => props.theme.colors.container.background.base};
11
11
  border: 1px solid ${(props) => props.theme.colors.container.border.base};
12
12
  border-radius: ${(props) => props.theme.radii[500]};
13
- box-shadow: ${(props) => props.theme.shadows.low};
13
+ box-shadow: ${(props) => props.theme.shadows[100]};
14
14
  padding: 0 ${(props) => props.theme.space[200]};
15
15
  min-width: 20px;
16
16
  justify-content: center;
@@ -213,7 +213,7 @@ export const MenuWithIcons = (props) => {
213
213
  border={500}
214
214
  borderRadius="outer"
215
215
  borderColor="container.border.base"
216
- boxShadow="medium"
216
+ boxShadow={300}
217
217
  backgroundColor="container.background.base"
218
218
  >
219
219
  <Menu {...props}>
@@ -45,7 +45,7 @@ exports[`Modal should render properly 1`] = `
45
45
  flex-direction: column;
46
46
  background: #FFFFFF;
47
47
  border-radius: 6px;
48
- box-shadow: 0px 8px 16px #2733333D;
48
+ box-shadow: 0px 8px 16px rgba(39,51,51,.24);
49
49
  -webkit-filter: blur(0);
50
50
  filter: blur(0);
51
51
  color: #364141;
@@ -84,7 +84,7 @@ export const Container: StyledComponent<any, TypeTheme, *> = styled(ReactModalAd
84
84
  flex-direction: column;
85
85
  background: ${(props) => props.theme.colors.container.background.base};
86
86
  border-radius: ${(props) => props.theme.radii[500]};
87
- box-shadow: ${(props) => props.theme.shadows.medium};
87
+ box-shadow: ${(props) => props.theme.shadows[300]};
88
88
  filter: blur(0);
89
89
  color: ${(props) => props.theme.colors.text.body};
90
90
 
@@ -395,7 +395,7 @@ Popout.Content = ({ children, ...rest }: TypePopoutContentProps) => (
395
395
  border={500}
396
396
  borderColor="container.border.base"
397
397
  borderRadius="outer"
398
- boxShadow="medium"
398
+ boxShadow={300}
399
399
  p={400}
400
400
  m={300}
401
401
  {...rest}
@@ -159,7 +159,7 @@ const Content = ({
159
159
  m={200}
160
160
  color="text.body"
161
161
  bg="container.background.base"
162
- boxShadow="medium"
162
+ boxShadow={300}
163
163
  border={500}
164
164
  borderColor="container.border.base"
165
165
  // $FlowIssue - upgrade v0.112.0
@@ -0,0 +1,140 @@
1
+ // Inspired by https://medium.com/@katiemctigue/how-to-create-a-dark-mode-in-sass-609f131a3995
2
+ // This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
3
+
4
+ // SET-UP
5
+ // These files are auto-generated based on JS theme files, ensuring our SCSS theme variables stay in sync.
6
+ @import "dist/themes/default.scss";
7
+ @import "dist/themes/dark.scss";
8
+
9
+ // In the JS theme files, the theme object is exported as "default" (i.e., using "export default"),
10
+ // so we need to map-get "default" to access it.
11
+ $themes: (
12
+ default: map-get($default, "default"),
13
+ dark: map-get($dark, "default")
14
+ );
15
+
16
+ // MIXIN
17
+ // CSS properties that are theme-dependent must be wrapped in this mixin
18
+ @mixin themed() {
19
+ @each $theme, $map in $themes {
20
+ // ~ selects siblings to the specified selector, * selects all children of those siblings,
21
+ // which makes ~ * a kind of nephew selector. Thus we can target all elements on the page even if they are
22
+ // not a direct descendent of the element that we apply the theme classname to.
23
+ // This is important for pop-ups and modals, since they are often mounted directly to the body.
24
+ .theme--#{$theme} ~ * & {
25
+ $theme-map: () !global;
26
+ @each $key, $submap in $map {
27
+ $value: map-get(map-get($themes, $theme), "#{$key}");
28
+ $theme-map: map-merge($theme-map, ($key: $value)) !global;
29
+ }
30
+ @content;
31
+ $theme-map: null !global;
32
+ }
33
+ }
34
+ }
35
+
36
+ // FUNCTIONS
37
+ // This function will allow you to get any value from the theme.
38
+ // @param {string} $key - the period-separated path to the value in the theme object. e.g., "colors.text.body"
39
+ @function t($key) {
40
+ $keys: _string-split($key, ".");
41
+ @return _map-deep-get($theme-map, $keys);
42
+ }
43
+
44
+ // These functions are convenience methods to get theme values for subsets of the theme.
45
+ // @param {string} $key - the period-separated path to the value in the theme object, with "colors." omitted. e.g., "text.body"
46
+ @function colors($key) {
47
+ $keys: _string-split($key, ".");
48
+ @return _map-deep-get($theme-map, join("colors", $keys));
49
+ }
50
+
51
+ // @param {string} $key - the period-separated path to the value in the theme object, with "typography." omitted. e.g., "100.fontSize"
52
+ @function typography($key) {
53
+ $keys: _string-split($key, ".");
54
+ @return _map-deep-get($theme-map, join("typography", $keys));
55
+ }
56
+
57
+ // @param {string} $key - the period-separated path to the value in the theme object, with "fontWeights." omitted. e.g., "normal"
58
+ @function fontWeights($key) {
59
+ $keys: _string-split($key, ".");
60
+ @return _map-deep-get($theme-map, join("fontWeights", $keys));
61
+ }
62
+
63
+ // @param {string} $key - the period-separated path to the value in the theme object, with "space." omitted. e.g., "100"
64
+ @function space($key) {
65
+ $keys: _string-split($key, ".");
66
+ @return _map-deep-get($theme-map, join("space", $keys));
67
+ }
68
+
69
+ // @param {string} $key - the period-separated path to the value in the theme object, with "radii." omitted. e.g., "inner"
70
+ @function radii($key) {
71
+ $keys: _string-split($key, ".");
72
+ @return _map-deep-get($theme-map, join("radii", $keys));
73
+ }
74
+
75
+ // @param {string} $key - the period-separated path to the value in the theme object, with "borders." omitted. e.g., "500"
76
+ @function borders($key) {
77
+ $keys: _string-split($key, ".");
78
+ @return _map-deep-get($theme-map, join("borders", $keys));
79
+ }
80
+
81
+ // @param {string} $key - the period-separated path to the value in the theme object, with "borderWidths." omitted. e.g., "500"
82
+ @function borderWidths($key) {
83
+ $keys: _string-split($key, ".");
84
+ @return _map-deep-get($theme-map, join("borderWidths", $keys));
85
+ }
86
+
87
+ // @param {string} $key - the period-separated path to the value in the theme object, with "shadows." omitted. e.g., "low"
88
+ @function shadows($key) {
89
+ $keys: _string-split($key, ".");
90
+ @return _map-deep-get($theme-map, join("shadows", $keys));
91
+ }
92
+
93
+ // @param {string} $key - the period-separated path to the value in the theme object, with "easing." omitted. e.g., "ease_in"
94
+ @function easing($key) {
95
+ $keys: _string-split($key, ".");
96
+ @return _map-deep-get($theme-map, join("easing", $keys));
97
+ }
98
+
99
+ // @param {string} $key - the period-separated path to the value in the theme object, with "duration." omitted. e.g., "fast"
100
+ @function duration($key) {
101
+ $keys: _string-split($key, ".");
102
+ @return _map-deep-get($theme-map, join("duration", $keys));
103
+ }
104
+
105
+ // UTILITIES
106
+ // Helper functions that power the functions above. Not relevant to the theme.
107
+ // If you import this file with @use, they will not be included.
108
+
109
+ // Via https://stackoverflow.com/a/42295154
110
+ // Only works with a single-character separator
111
+ @function _string-split($string, $separator) {
112
+ // empty array/list
113
+ $split-arr: ();
114
+ // first index of separator in string
115
+ $index : str-index($string, $separator);
116
+ // loop through string
117
+ @while $index != null {
118
+ // get the substring from the first character to the separator
119
+ $item: str-slice($string, 1, $index - 1);
120
+ // push item to array
121
+ $split-arr: append($split-arr, $item);
122
+ // remove item and separator from string
123
+ $string: str-slice($string, $index + 1);
124
+ // find new index of separator
125
+ $index : str-index($string, $separator);
126
+ }
127
+ // add the remaining string to list (the last item)
128
+ $split-arr: append($split-arr, $string);
129
+
130
+ @return $split-arr;
131
+ }
132
+
133
+ // Adapted from https://css-tricks.com/snippets/sass/deep-getset-maps/
134
+ // Iterates over a list of keys to read multi-level maps
135
+ @function _map-deep-get($map, $keys) {
136
+ @each $key in $keys {
137
+ $map: map-get($map, $key);
138
+ }
139
+ @return $map;
140
+ }
@@ -1,7 +1,6 @@
1
1
  // @flow strict-local
2
2
 
3
3
  import COLORS from "@sproutsocial/seeds-color";
4
- import DEPTH from "@sproutsocial/seeds-depth";
5
4
  import defaultTheme from "../default/theme";
6
5
  import { datavizPalette } from "./dataviz-palette";
7
6
  import {
@@ -14,200 +13,188 @@ import {
14
13
  neutral,
15
14
  } from "./decorative-palettes";
16
15
 
17
- export const shadows = {
18
- low: `${DEPTH.ELEVATION_LEVEL_100} ${COLORS.COLOR_NEUTRAL_1100}FF`,
19
- medium: `${DEPTH.ELEVATION_LEVEL_300} ${COLORS.COLOR_NEUTRAL_1100}FF`,
20
- high: `${DEPTH.ELEVATION_LEVEL_400} ${COLORS.COLOR_NEUTRAL_1100}FF`,
21
- };
22
-
23
- const colors = {
24
- ...defaultTheme.colors,
25
- app: {
26
- background: {
27
- base: COLORS.COLOR_NEUTRAL_1000,
28
- },
29
- },
30
- container: {
31
- background: {
32
- base: COLORS.COLOR_NEUTRAL_900,
33
- success: green.background,
34
- warning: yellow.background,
35
- error: red.background,
36
- info: blue.background,
37
- opportunity: purple.background,
38
- danger: red.background,
39
- decorative: {
40
- green: green.background,
41
- blue: blue.background,
42
- purple: purple.background,
43
- yellow: yellow.background,
44
- orange: orange.background,
45
- red: red.background,
46
- neutral: neutral.background,
47
- },
48
- selected: COLORS.COLOR_NEUTRAL_0,
49
- },
50
- border: {
51
- base: COLORS.COLOR_NEUTRAL_1100,
52
- success: green.highlight,
53
- warning: yellow.highlight,
54
- error: red.highlight,
55
- danger: red.highlight,
56
- info: blue.highlight,
57
- opportunity: purple.highlight,
58
- decorative: {
59
- green: green.highlight,
60
- blue: blue.highlight,
61
- purple: purple.highlight,
62
- yellow: yellow.highlight,
63
- orange: orange.highlight,
64
- red: red.highlight,
65
- neutral: neutral.highlight,
66
- },
67
- selected: COLORS.COLOR_NEUTRAL_0,
68
- },
69
- },
70
- button: {
71
- primary: {
16
+ const darkTheme = {
17
+ ...defaultTheme,
18
+ colors: {
19
+ ...defaultTheme.colors,
20
+ app: {
72
21
  background: {
73
- base: COLORS.COLOR_BLUE_400,
74
- hover: COLORS.COLOR_BLUE_300,
75
- active: COLORS.COLOR_BLUE_200,
76
- },
77
- border: {
78
- base: "transparent",
79
- },
80
- text: {
81
- base: COLORS.COLOR_NEUTRAL_900,
82
- hover: COLORS.COLOR_NEUTRAL_1000,
22
+ base: COLORS.COLOR_NEUTRAL_1000,
83
23
  },
84
24
  },
85
- secondary: {
25
+ container: {
86
26
  background: {
87
- base: "transparent",
88
- hover: COLORS.COLOR_NEUTRAL_100,
89
- active: COLORS.COLOR_NEUTRAL_0,
27
+ base: COLORS.COLOR_NEUTRAL_900,
28
+ success: green.background,
29
+ warning: yellow.background,
30
+ error: red.background,
31
+ info: blue.background,
32
+ opportunity: purple.background,
33
+ danger: red.background,
34
+ decorative: {
35
+ green: green.background,
36
+ blue: blue.background,
37
+ purple: purple.background,
38
+ yellow: yellow.background,
39
+ orange: orange.background,
40
+ red: red.background,
41
+ neutral: neutral.background,
42
+ },
43
+ selected: COLORS.COLOR_NEUTRAL_0,
90
44
  },
91
45
  border: {
92
- base: COLORS.COLOR_NEUTRAL_0,
93
- },
94
- text: {
95
- base: COLORS.COLOR_NEUTRAL_0,
96
- hover: COLORS.COLOR_NEUTRAL_800,
46
+ base: COLORS.COLOR_NEUTRAL_1100,
47
+ success: green.highlight,
48
+ warning: yellow.highlight,
49
+ error: red.highlight,
50
+ danger: red.highlight,
51
+ info: blue.highlight,
52
+ opportunity: purple.highlight,
53
+ decorative: {
54
+ green: green.highlight,
55
+ blue: blue.highlight,
56
+ purple: purple.highlight,
57
+ yellow: yellow.highlight,
58
+ orange: orange.highlight,
59
+ red: red.highlight,
60
+ neutral: neutral.highlight,
61
+ },
62
+ selected: COLORS.COLOR_NEUTRAL_0,
97
63
  },
98
64
  },
99
- pill: {
100
- background: {
101
- base: "transparent",
102
- hover: COLORS.COLOR_NEUTRAL_1000,
103
- active: COLORS.COLOR_NEUTRAL_900,
104
- },
105
- border: {
106
- base: "transparent",
107
- },
108
- text: {
109
- base: COLORS.COLOR_NEUTRAL_100,
110
- hover: COLORS.COLOR_NEUTRAL_0,
65
+ button: {
66
+ primary: {
67
+ background: {
68
+ base: COLORS.COLOR_BLUE_400,
69
+ hover: COLORS.COLOR_BLUE_300,
70
+ active: COLORS.COLOR_BLUE_200,
71
+ },
72
+ border: {
73
+ base: "transparent",
74
+ },
75
+ text: {
76
+ base: COLORS.COLOR_NEUTRAL_900,
77
+ hover: COLORS.COLOR_NEUTRAL_1000,
78
+ },
79
+ },
80
+ secondary: {
81
+ background: {
82
+ base: "transparent",
83
+ hover: COLORS.COLOR_NEUTRAL_100,
84
+ active: COLORS.COLOR_NEUTRAL_0,
85
+ },
86
+ border: {
87
+ base: COLORS.COLOR_NEUTRAL_0,
88
+ },
89
+ text: {
90
+ base: COLORS.COLOR_NEUTRAL_0,
91
+ hover: COLORS.COLOR_NEUTRAL_800,
92
+ },
93
+ },
94
+ pill: {
95
+ background: {
96
+ base: "transparent",
97
+ hover: COLORS.COLOR_NEUTRAL_1000,
98
+ active: COLORS.COLOR_NEUTRAL_900,
99
+ },
100
+ border: {
101
+ base: "transparent",
102
+ },
103
+ text: {
104
+ base: COLORS.COLOR_NEUTRAL_100,
105
+ hover: COLORS.COLOR_NEUTRAL_0,
106
+ },
107
+ },
108
+ destructive: {
109
+ background: {
110
+ base: COLORS.COLOR_RED_400,
111
+ hover: COLORS.COLOR_RED_300,
112
+ active: COLORS.COLOR_RED_200,
113
+ },
114
+ border: {
115
+ base: "transparent",
116
+ },
117
+ text: {
118
+ base: COLORS.COLOR_NEUTRAL_900,
119
+ hover: COLORS.COLOR_NEUTRAL_1000,
120
+ },
121
+ },
122
+ placeholder: {
123
+ background: {
124
+ base: "transparent",
125
+ hover: COLORS.COLOR_NEUTRAL_1100,
126
+ active: COLORS.COLOR_NEUTRAL_1100,
127
+ },
128
+ border: {
129
+ base: COLORS.COLOR_NEUTRAL_500,
130
+ },
131
+ text: {
132
+ base: COLORS.COLOR_BLUE_400,
133
+ hover: COLORS.COLOR_BLUE_300,
134
+ },
135
+ },
136
+ unstyled: {
137
+ background: {
138
+ base: "transparent",
139
+ },
140
+ border: {
141
+ base: "transparent",
142
+ },
143
+ text: {
144
+ base: COLORS.COLOR_NEUTRAL_300,
145
+ hover: COLORS.COLOR_NEUTRAL_200,
146
+ },
111
147
  },
112
148
  },
113
- destructive: {
114
- background: {
115
- base: COLORS.COLOR_RED_400,
116
- hover: COLORS.COLOR_RED_300,
117
- active: COLORS.COLOR_RED_200,
118
- },
119
- border: {
120
- base: "transparent",
121
- },
122
- text: {
123
- base: COLORS.COLOR_NEUTRAL_900,
124
- hover: COLORS.COLOR_NEUTRAL_1000,
125
- },
149
+ link: {
150
+ base: COLORS.COLOR_BLUE_400,
151
+ hover: COLORS.COLOR_BLUE_300,
126
152
  },
127
- placeholder: {
153
+ text: {
154
+ headline: COLORS.COLOR_NEUTRAL_0,
155
+ subtext: COLORS.COLOR_NEUTRAL_300,
156
+ body: COLORS.COLOR_NEUTRAL_100,
157
+ inverse: COLORS.COLOR_NEUTRAL_900,
158
+ error: COLORS.COLOR_RED_400,
159
+ },
160
+ icon: {
161
+ base: COLORS.COLOR_NEUTRAL_100,
162
+ inverse: COLORS.COLOR_NEUTRAL_900,
163
+ success: green.foreground,
164
+ warning: yellow.foreground,
165
+ error: red.foreground,
166
+ danger: red.foreground,
167
+ info: blue.foreground,
168
+ opportunity: purple.foreground,
169
+ },
170
+ form: {
128
171
  background: {
129
- base: "transparent",
130
- hover: COLORS.COLOR_NEUTRAL_1100,
131
- active: COLORS.COLOR_NEUTRAL_1100,
172
+ base: COLORS.COLOR_NEUTRAL_900,
173
+ selected: COLORS.COLOR_NEUTRAL_0,
132
174
  },
133
175
  border: {
134
176
  base: COLORS.COLOR_NEUTRAL_500,
177
+ error: red.highlight,
178
+ warning: yellow.highlight,
179
+ selected: COLORS.COLOR_NEUTRAL_0,
135
180
  },
136
- text: {
137
- base: COLORS.COLOR_BLUE_400,
138
- hover: COLORS.COLOR_BLUE_300,
181
+ placeholder: {
182
+ base: COLORS.COLOR_NEUTRAL_500,
139
183
  },
140
184
  },
141
- unstyled: {
185
+ listItem: {
142
186
  background: {
143
187
  base: "transparent",
144
- },
145
- border: {
146
- base: "transparent",
147
- },
148
- text: {
149
- base: COLORS.COLOR_NEUTRAL_300,
150
- hover: COLORS.COLOR_NEUTRAL_200,
188
+ hover: COLORS.COLOR_NEUTRAL_800,
189
+ selected: COLORS.COLOR_NEUTRAL_0,
151
190
  },
152
191
  },
153
- },
154
- link: {
155
- base: COLORS.COLOR_BLUE_400,
156
- hover: COLORS.COLOR_BLUE_300,
157
- },
158
- text: {
159
- headline: COLORS.COLOR_NEUTRAL_0,
160
- subtext: COLORS.COLOR_NEUTRAL_300,
161
- body: COLORS.COLOR_NEUTRAL_100,
162
- inverse: COLORS.COLOR_NEUTRAL_900,
163
- error: COLORS.COLOR_RED_400,
164
- },
165
- icon: {
166
- base: COLORS.COLOR_NEUTRAL_100,
167
- inverse: COLORS.COLOR_NEUTRAL_900,
168
- success: green.foreground,
169
- warning: yellow.foreground,
170
- error: red.foreground,
171
- danger: red.foreground,
172
- info: blue.foreground,
173
- opportunity: purple.foreground,
174
- },
175
- form: {
176
- background: {
177
- base: COLORS.COLOR_NEUTRAL_900,
178
- selected: COLORS.COLOR_NEUTRAL_0,
179
- },
180
- border: {
181
- base: COLORS.COLOR_NEUTRAL_500,
182
- error: red.highlight,
183
- warning: yellow.highlight,
184
- selected: COLORS.COLOR_NEUTRAL_0,
185
- },
186
- placeholder: {
187
- base: COLORS.COLOR_NEUTRAL_500,
188
- },
189
- },
190
- listItem: {
191
- background: {
192
- base: "transparent",
193
- hover: COLORS.COLOR_NEUTRAL_800,
194
- selected: COLORS.COLOR_NEUTRAL_0,
192
+ dataviz: {
193
+ map: datavizPalette.DATAVIZ_COLORS_MAP,
194
+ list: datavizPalette.DATAVIZ_COLORS_LIST,
195
195
  },
196
+ ...datavizPalette,
196
197
  },
197
- elevation: {
198
- base: COLORS.COLOR_NEUTRAL_1100,
199
- },
200
- dataviz: {
201
- map: datavizPalette.DATAVIZ_COLORS_MAP,
202
- list: datavizPalette.DATAVIZ_COLORS_LIST,
203
- },
204
- ...datavizPalette,
205
- };
206
-
207
- const darkTheme = {
208
- ...defaultTheme,
209
- colors,
210
- shadows,
211
198
  mode: "dark",
212
199
  };
213
200
 
@@ -194,9 +194,6 @@ const colors = {
194
194
  selected: COLORS.COLOR_NEUTRAL_800,
195
195
  },
196
196
  },
197
- elevation: {
198
- base: `${COLORS.COLOR_NEUTRAL_900}3D`,
199
- },
200
197
  network: {
201
198
  twitter: NETWORKCOLORS.NETWORK_COLOR_TWITTER,
202
199
  twitter_like: NETWORKCOLORS.NETWORK_COLOR_TWITTER_LIKE,
@@ -303,9 +300,10 @@ export const borderWidths = {
303
300
  };
304
301
 
305
302
  export const shadows = {
306
- low: `${DEPTH.ELEVATION_LEVEL_100} ${COLORS.COLOR_NEUTRAL_900}3D`,
307
- medium: `${DEPTH.ELEVATION_LEVEL_300} ${COLORS.COLOR_NEUTRAL_900}3D`,
308
- high: `${DEPTH.ELEVATION_LEVEL_400} ${COLORS.COLOR_NEUTRAL_900}3D`,
303
+ "100": DEPTH.ELEVATION_LEVEL_100,
304
+ "200": DEPTH.ELEVATION_LEVEL_200,
305
+ "300": DEPTH.ELEVATION_LEVEL_300,
306
+ "400": DEPTH.ELEVATION_LEVEL_400,
309
307
  };
310
308
 
311
309
  export const easing = {
@@ -344,7 +342,10 @@ const theme = {
344
342
  },
345
343
  borders,
346
344
  borderWidths,
347
- shadows,
345
+ shadows: {
346
+ ...shadows,
347
+ shadows,
348
+ },
348
349
  easing,
349
350
  duration,
350
351
  };
@@ -67,6 +67,7 @@ export type TypeSystemCommonProps = $ReadOnly<{|
67
67
  ...TypeSpaceProps,
68
68
  cursor?: TypeResponsiveBase<>,
69
69
  |}>;
70
+
70
71
  export type TypeSystemBorderProps = $ReadOnly<{|
71
72
  border?: TypeResponsiveBase<>,
72
73
  borderWidth?: TypeResponsiveBase<>,
@@ -84,7 +85,7 @@ export type TypeSystemBorderProps = $ReadOnly<{|
84
85
  borderX?: TypeResponsiveBase<>,
85
86
  borderY?: TypeResponsiveBase<>,
86
87
  boxShadow?: TypeResponsiveBase<>,
87
- textShadow?: TypeResponsiveBase<>
88
+ textShadow?: TypeResponsiveBase<>,
88
89
  |}>;
89
90
 
90
91
  type TypeResponsiveTypeographySize = TypeResponsiveString<TypeTypography>;
@@ -10,7 +10,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
10
10
  var Nav = _styledComponents.default.nav.withConfig({
11
11
  displayName: "styles__Nav",
12
12
  componentId: "sc-1ub1apc-0"
13
- })(["ol{", ";margin:0;font-family:", ";padding:0;display:flex;}li{margin-right:", ";display:flex;}a,button{", ";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:not(.overflow--menu){margin:0;padding:0;}}ol > div + li::before{content:\"/\";margin-right:", ";}li:last-child a,li:last-child button{color:", ";font-weight:bold;}li:not(:last-child) a,li:not(:last-child) button{font-weight:normal;}li:not(:last-child)::after{content:\"/\";color:", ";margin-left:", ";}"], function (props) {
13
+ })(["ol{", ";margin:0;font-family:", ";padding:0;display:flex;}li{margin-right:", ";display:flex;}a,button{", ";max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;&:not(.overflow--menu){margin:0;padding:0;}}ol > div + li::before{content:\"/\";margin-right:", ";}li:last-child a,li:last-child button{color:", ";font-weight:bold;}li:not(:last-child)::after{content:\"/\";color:", ";margin-left:", ";}"], function (props) {
14
14
  return props.theme.typography[200];
15
15
  }, function (props) {
16
16
  return props.theme.fontFamily;