@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.
- package/CHANGELOG.md +6 -0
- package/__flow__/Breadcrumb/styles.js +0 -5
- package/__flow__/Button/styles.js +1 -1
- package/__flow__/Card/styles.js +1 -1
- package/__flow__/Drawer/styles.js +1 -1
- package/__flow__/KeyboardKey/styles.js +1 -1
- package/__flow__/Menu/index.stories.js +1 -1
- package/__flow__/Modal/__snapshots__/index.test.js.snap +1 -1
- package/__flow__/Modal/styles.js +1 -1
- package/__flow__/Popout/index.js +1 -1
- package/__flow__/Tooltip/index.js +1 -1
- package/__flow__/themes/_themes.scss +140 -0
- package/__flow__/themes/dark/theme.js +158 -171
- package/__flow__/themes/default/theme.js +8 -7
- package/__flow__/types/system-props.flow.js +2 -1
- package/commonjs/Breadcrumb/styles.js +1 -1
- package/commonjs/Button/styles.js +1 -1
- package/commonjs/Card/styles.js +1 -1
- package/commonjs/Drawer/styles.js +1 -1
- package/commonjs/KeyboardKey/styles.js +1 -1
- package/commonjs/Modal/styles.js +1 -1
- package/commonjs/Popout/index.js +1 -1
- package/commonjs/Tooltip/index.js +1 -1
- package/commonjs/themes/dark/theme.js +156 -171
- package/commonjs/themes/default/theme.js +7 -7
- package/dist/themes/_themes.scss +140 -0
- package/dist/themes/dark.scss +10 -11
- package/dist/themes/default.scss +14 -9
- package/lib/Breadcrumb/styles.js +1 -1
- package/lib/Button/styles.js +1 -1
- package/lib/Card/styles.js +1 -1
- package/lib/Drawer/styles.js +1 -1
- package/lib/KeyboardKey/styles.js +1 -1
- package/lib/Modal/styles.js +1 -1
- package/lib/Popout/index.js +1 -1
- package/lib/Tooltip/index.js +1 -1
- package/lib/themes/dark/theme.js +155 -167
- package/lib/themes/default/theme.js +7 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -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
|
|
54
|
+
props.appearance === "placeholder" ? props.theme.shadows[100] : "none"};
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
&:active {
|
package/__flow__/Card/styles.js
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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;
|
|
@@ -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
|
|
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;
|
package/__flow__/Modal/styles.js
CHANGED
|
@@ -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
|
|
87
|
+
box-shadow: ${(props) => props.theme.shadows[300]};
|
|
88
88
|
filter: blur(0);
|
|
89
89
|
color: ${(props) => props.theme.colors.text.body};
|
|
90
90
|
|
package/__flow__/Popout/index.js
CHANGED
|
@@ -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
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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.
|
|
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
|
-
|
|
25
|
+
container: {
|
|
86
26
|
background: {
|
|
87
|
-
base:
|
|
88
|
-
|
|
89
|
-
|
|
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.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
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:
|
|
130
|
-
|
|
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
|
-
|
|
137
|
-
base: COLORS.
|
|
138
|
-
hover: COLORS.COLOR_BLUE_300,
|
|
181
|
+
placeholder: {
|
|
182
|
+
base: COLORS.COLOR_NEUTRAL_500,
|
|
139
183
|
},
|
|
140
184
|
},
|
|
141
|
-
|
|
185
|
+
listItem: {
|
|
142
186
|
background: {
|
|
143
187
|
base: "transparent",
|
|
144
|
-
|
|
145
|
-
|
|
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
|
-
|
|
155
|
-
|
|
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
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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)
|
|
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;
|