@sproutsocial/racine 10.0.0-dar97-beta.2 → 10.0.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 +24 -0
- package/__flow__/Button/styles.js +1 -1
- package/__flow__/Checkbox/styles.js +1 -1
- package/__flow__/themes/dark/_themed.scss +4 -3
- package/__flow__/themes/dark/theme.js +10 -4
- package/__flow__/themes/light/_themed.scss +12 -11
- package/__flow__/themes/light/theme.js +7 -1
- package/__flow__/themes/utils/interact.js +1 -1
- package/__flow__/types/theme.colors.flow.js +6 -0
- package/commonjs/Button/styles.js +1 -1
- package/commonjs/Checkbox/styles.js +1 -1
- package/commonjs/themes/dark/theme.js +9 -3
- package/commonjs/themes/light/theme.js +9 -3
- package/commonjs/themes/utils/interact.js +1 -1
- package/dist/themes/dark/_themed.scss +4 -3
- package/dist/themes/dark/dark.scss +9 -3
- package/dist/themes/light/_themed.scss +12 -11
- package/dist/themes/light/light.scss +9 -3
- package/lib/Button/styles.js +1 -1
- package/lib/Checkbox/styles.js +1 -1
- package/lib/themes/dark/theme.js +12 -6
- package/lib/themes/light/theme.js +9 -3
- package/lib/themes/utils/interact.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 10.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 98f063a: Make theme names consistent by removing references to "default-light" and "default-dark"
|
|
8
|
+
- We no longer refer to the "light" theme as "default-light" in the theme object.
|
|
9
|
+
- We no longer refer to the "dark" theme as "default-dark" in the theme object.
|
|
10
|
+
- 98f063a: Change "themed" SCSS mixin setup
|
|
11
|
+
- A parent theme classname of 'theme--light' or 'theme--dark' is no longer required to use the mixin.
|
|
12
|
+
- A separate mixin is offered per theme, instead of a single mixin for all themes.
|
|
13
|
+
- 98f063a: Rename "default" theme to "light"
|
|
14
|
+
|
|
15
|
+
## 9.0.3
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- a9a06a6: Added aliases for sentiment colors
|
|
20
|
+
|
|
21
|
+
## 9.0.2
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- 3215099: bug fix for mix blend mode
|
|
26
|
+
|
|
3
27
|
## 9.0.1
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
|
@@ -87,7 +87,7 @@ const Container: StyledComponent<any, TypeTheme, *> = styled.button`
|
|
|
87
87
|
align-items: center;
|
|
88
88
|
justify-content: center;
|
|
89
89
|
/* This solution is temporary. DS-1095 */
|
|
90
|
-
mix-blend-mode: ${props.theme.mode ? "screen" : "multiply"};
|
|
90
|
+
mix-blend-mode: ${props.theme.mode === "dark" ? "screen" : "multiply"};
|
|
91
91
|
|
|
92
92
|
${pill}
|
|
93
93
|
`}
|
|
@@ -35,7 +35,7 @@ export const InputWrapper = styled<typeof Box, TypeTheme, any>(Box)`
|
|
|
35
35
|
transition: all ${(props) => props.theme.duration.fast}
|
|
36
36
|
${(props) => props.theme.easing.ease_inout};
|
|
37
37
|
/* This solution is temporary. DS-1095 */
|
|
38
|
-
mix-blend-mode: ${props.theme.mode ? "screen" : "multiply"};
|
|
38
|
+
mix-blend-mode: ${props.theme.mode === "dark" ? "screen" : "multiply"};
|
|
39
39
|
${pill}
|
|
40
40
|
|
|
41
41
|
&:hover {
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
|
-
//
|
|
5
|
+
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
6
|
@import "../../../dist/themes/dark/dark.scss";
|
|
7
7
|
|
|
8
|
-
// In the JS theme
|
|
8
|
+
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
10
10
|
$theme: map-get($dark, 'default');
|
|
11
11
|
|
|
12
12
|
// MIXIN
|
|
13
|
-
// CSS properties that are theme-dependent must be wrapped in this mixin
|
|
13
|
+
// CSS properties that are theme-dependent must be wrapped in this mixin.
|
|
14
|
+
// It will convert semantic tokens to the appropriate theme-dependent CSS property.
|
|
14
15
|
@mixin themed() {
|
|
15
16
|
& {
|
|
16
17
|
$theme-map: () !global;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import COLORS from "@sproutsocial/seeds-color";
|
|
4
4
|
import DEPTH from "@sproutsocial/seeds-depth";
|
|
5
|
-
import
|
|
5
|
+
import lightTheme from "../light/theme";
|
|
6
6
|
import { datavizPalette } from "./dataviz-palette";
|
|
7
7
|
import {
|
|
8
8
|
green,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
|
|
17
17
|
import interact from "../utils/interact";
|
|
18
18
|
|
|
19
|
-
const MODE = "
|
|
19
|
+
const MODE = "dark";
|
|
20
20
|
|
|
21
21
|
export const shadows = {
|
|
22
22
|
low: `${DEPTH.ELEVATION_LEVEL_100} ${COLORS.COLOR_NEUTRAL_1100}FF`,
|
|
@@ -25,7 +25,7 @@ export const shadows = {
|
|
|
25
25
|
};
|
|
26
26
|
|
|
27
27
|
const colors = {
|
|
28
|
-
...
|
|
28
|
+
...lightTheme.colors,
|
|
29
29
|
utils: {
|
|
30
30
|
interact: interact(MODE),
|
|
31
31
|
},
|
|
@@ -53,6 +53,9 @@ const colors = {
|
|
|
53
53
|
neutral: neutral.background,
|
|
54
54
|
},
|
|
55
55
|
selected: COLORS.COLOR_NEUTRAL_0,
|
|
56
|
+
positive_sentiment: COLORS.COLOR_BLUE_500,
|
|
57
|
+
negative_sentiment: COLORS.COLOR_RED_500,
|
|
58
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_300,
|
|
56
59
|
},
|
|
57
60
|
border: {
|
|
58
61
|
base: COLORS.COLOR_NEUTRAL_1100,
|
|
@@ -178,6 +181,9 @@ const colors = {
|
|
|
178
181
|
danger: red.foreground,
|
|
179
182
|
info: blue.foreground,
|
|
180
183
|
opportunity: purple.foreground,
|
|
184
|
+
positive_sentiment: COLORS.COLOR_BLUE_700,
|
|
185
|
+
negative_sentiment: COLORS.COLOR_RED_600,
|
|
186
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_600,
|
|
181
187
|
},
|
|
182
188
|
form: {
|
|
183
189
|
background: {
|
|
@@ -212,7 +218,7 @@ const colors = {
|
|
|
212
218
|
};
|
|
213
219
|
|
|
214
220
|
const darkTheme = {
|
|
215
|
-
...
|
|
221
|
+
...lightTheme,
|
|
216
222
|
colors,
|
|
217
223
|
shadows,
|
|
218
224
|
mode: MODE,
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
// This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
|
-
//
|
|
5
|
+
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
6
|
@import "../../../dist/themes/light/light.scss";
|
|
7
7
|
|
|
8
|
-
// In the JS theme
|
|
8
|
+
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
10
10
|
$theme: map-get($light, 'default');
|
|
11
11
|
|
|
12
12
|
// MIXIN
|
|
13
|
-
// CSS properties that are theme-dependent must be wrapped in this mixin
|
|
13
|
+
// CSS properties that are theme-dependent must be wrapped in this mixin.
|
|
14
|
+
// It will convert semantic tokens to the appropriate theme-dependent CSS property.
|
|
14
15
|
@mixin themed() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
& {
|
|
17
|
+
$theme-map: () !global;
|
|
18
|
+
@each $key, $submap in $theme {
|
|
19
|
+
$value: map-get($theme, "#{$key}");
|
|
20
|
+
$theme-map: map-merge($theme-map, ($key: $value)) !global;
|
|
21
|
+
}
|
|
22
|
+
@content;
|
|
23
|
+
$theme-map: null !global;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -23,7 +23,7 @@ import interact from "../utils/interact";
|
|
|
23
23
|
|
|
24
24
|
export const breakpoints = ["900px", "1200px", "1500px", "1800px"];
|
|
25
25
|
|
|
26
|
-
const MODE = "
|
|
26
|
+
const MODE = "light";
|
|
27
27
|
|
|
28
28
|
const colors = {
|
|
29
29
|
app: {
|
|
@@ -50,6 +50,9 @@ const colors = {
|
|
|
50
50
|
neutral: neutral.background,
|
|
51
51
|
},
|
|
52
52
|
selected: COLORS.COLOR_NEUTRAL_800,
|
|
53
|
+
positive_sentiment: COLORS.COLOR_BLUE_500,
|
|
54
|
+
negative_sentiment: COLORS.COLOR_RED_500,
|
|
55
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_300,
|
|
53
56
|
},
|
|
54
57
|
border: {
|
|
55
58
|
base: COLORS.COLOR_NEUTRAL_200,
|
|
@@ -175,6 +178,9 @@ const colors = {
|
|
|
175
178
|
danger: red.foreground,
|
|
176
179
|
info: blue.foreground,
|
|
177
180
|
opportunity: purple.foreground,
|
|
181
|
+
positive_sentiment: COLORS.COLOR_BLUE_700,
|
|
182
|
+
negative_sentiment: COLORS.COLOR_RED_600,
|
|
183
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_600,
|
|
178
184
|
},
|
|
179
185
|
form: {
|
|
180
186
|
background: {
|
|
@@ -30,6 +30,9 @@ type TypeContainerColors = {|
|
|
|
30
30
|
neutral: string,
|
|
31
31
|
},
|
|
32
32
|
selected: string,
|
|
33
|
+
positive_sentiment: string,
|
|
34
|
+
negative_sentiment: string,
|
|
35
|
+
neutral_sentiment: string,
|
|
33
36
|
},
|
|
34
37
|
border: {
|
|
35
38
|
base: string,
|
|
@@ -167,6 +170,9 @@ type TypeIconColors = {|
|
|
|
167
170
|
danger: string,
|
|
168
171
|
info: string,
|
|
169
172
|
opportunity: string,
|
|
173
|
+
positive_sentiment: string,
|
|
174
|
+
negative_sentiment: string,
|
|
175
|
+
neutral_sentiment: string,
|
|
170
176
|
},
|
|
171
177
|
|};
|
|
172
178
|
|
|
@@ -57,7 +57,7 @@ var Container = _styledComponents.default.button.withConfig({
|
|
|
57
57
|
}, function (props) {
|
|
58
58
|
return props.disabled && _mixins.disabled;
|
|
59
59
|
}, function (props) {
|
|
60
|
-
return props.appearance === "pill" && (0, _styledComponents.css)(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode ? "screen" : "multiply", _mixins.pill);
|
|
60
|
+
return props.appearance === "pill" && (0, _styledComponents.css)(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode === "dark" ? "screen" : "multiply", _mixins.pill);
|
|
61
61
|
}, _styles.default, _systemProps.LAYOUT, _systemProps.COMMON);
|
|
62
62
|
|
|
63
63
|
var _default = Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
|
|
@@ -40,7 +40,7 @@ var InputWrapper = (0, _styledComponents.default)(_Box.default).withConfig({
|
|
|
40
40
|
return props.theme.duration.fast;
|
|
41
41
|
}, function (props) {
|
|
42
42
|
return props.theme.easing.ease_inout;
|
|
43
|
-
}, props.theme.mode ? "screen" : "multiply", _mixins.pill, props.theme.colors.app.background.base, PillInput, _mixins.pill);
|
|
43
|
+
}, props.theme.mode === "dark" ? "screen" : "multiply", _mixins.pill, props.theme.colors.app.background.base, PillInput, _mixins.pill);
|
|
44
44
|
});
|
|
45
45
|
exports.InputWrapper = InputWrapper;
|
|
46
46
|
InputWrapper.displayName = "InputWrapper";
|
|
@@ -19,7 +19,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
19
|
|
|
20
20
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
21
|
|
|
22
|
-
var MODE = "
|
|
22
|
+
var MODE = "dark";
|
|
23
23
|
var shadows = {
|
|
24
24
|
low: _seedsDepth.default.ELEVATION_LEVEL_100 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF",
|
|
25
25
|
medium: _seedsDepth.default.ELEVATION_LEVEL_300 + " " + _seedsColor.default.COLOR_NEUTRAL_1100 + "FF",
|
|
@@ -54,7 +54,10 @@ var colors = _extends({}, _theme.default.colors, {
|
|
|
54
54
|
red: _decorativePalettes.red.background,
|
|
55
55
|
neutral: _decorativePalettes.neutral.background
|
|
56
56
|
},
|
|
57
|
-
selected: _seedsColor.default.COLOR_NEUTRAL_0
|
|
57
|
+
selected: _seedsColor.default.COLOR_NEUTRAL_0,
|
|
58
|
+
positive_sentiment: _seedsColor.default.COLOR_BLUE_500,
|
|
59
|
+
negative_sentiment: _seedsColor.default.COLOR_RED_500,
|
|
60
|
+
neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_300
|
|
58
61
|
},
|
|
59
62
|
border: {
|
|
60
63
|
base: _seedsColor.default.COLOR_NEUTRAL_1100,
|
|
@@ -179,7 +182,10 @@ var colors = _extends({}, _theme.default.colors, {
|
|
|
179
182
|
error: _decorativePalettes.red.foreground,
|
|
180
183
|
danger: _decorativePalettes.red.foreground,
|
|
181
184
|
info: _decorativePalettes.blue.foreground,
|
|
182
|
-
opportunity: _decorativePalettes.purple.foreground
|
|
185
|
+
opportunity: _decorativePalettes.purple.foreground,
|
|
186
|
+
positive_sentiment: _seedsColor.default.COLOR_BLUE_700,
|
|
187
|
+
negative_sentiment: _seedsColor.default.COLOR_RED_600,
|
|
188
|
+
neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_600
|
|
183
189
|
},
|
|
184
190
|
form: {
|
|
185
191
|
background: {
|
|
@@ -31,7 +31,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
31
31
|
|
|
32
32
|
var breakpoints = ["900px", "1200px", "1500px", "1800px"];
|
|
33
33
|
exports.breakpoints = breakpoints;
|
|
34
|
-
var MODE = "
|
|
34
|
+
var MODE = "light";
|
|
35
35
|
|
|
36
36
|
var colors = _extends({
|
|
37
37
|
app: {
|
|
@@ -57,7 +57,10 @@ var colors = _extends({
|
|
|
57
57
|
red: _decorativePalettes.red.background,
|
|
58
58
|
neutral: _decorativePalettes.neutral.background
|
|
59
59
|
},
|
|
60
|
-
selected: _seedsColor.default.COLOR_NEUTRAL_800
|
|
60
|
+
selected: _seedsColor.default.COLOR_NEUTRAL_800,
|
|
61
|
+
positive_sentiment: _seedsColor.default.COLOR_BLUE_500,
|
|
62
|
+
negative_sentiment: _seedsColor.default.COLOR_RED_500,
|
|
63
|
+
neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_300
|
|
61
64
|
},
|
|
62
65
|
border: {
|
|
63
66
|
base: _seedsColor.default.COLOR_NEUTRAL_200,
|
|
@@ -182,7 +185,10 @@ var colors = _extends({
|
|
|
182
185
|
error: _decorativePalettes.red.foreground,
|
|
183
186
|
danger: _decorativePalettes.red.foreground,
|
|
184
187
|
info: _decorativePalettes.blue.foreground,
|
|
185
|
-
opportunity: _decorativePalettes.purple.foreground
|
|
188
|
+
opportunity: _decorativePalettes.purple.foreground,
|
|
189
|
+
positive_sentiment: _seedsColor.default.COLOR_BLUE_700,
|
|
190
|
+
negative_sentiment: _seedsColor.default.COLOR_RED_600,
|
|
191
|
+
neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_600
|
|
186
192
|
},
|
|
187
193
|
form: {
|
|
188
194
|
background: {
|
|
@@ -7,7 +7,7 @@ var _polished = require("polished");
|
|
|
7
7
|
|
|
8
8
|
var interact = function interact(mode) {
|
|
9
9
|
return function (themeValue) {
|
|
10
|
-
if (mode === "
|
|
10
|
+
if (mode === "dark") {
|
|
11
11
|
return (0, _polished.lighten)(0.2, themeValue);
|
|
12
12
|
} else {
|
|
13
13
|
return (0, _polished.darken)(0.2, themeValue);
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
// This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
|
-
//
|
|
5
|
+
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
6
|
@import "../../../dist/themes/dark/dark.scss";
|
|
7
7
|
|
|
8
|
-
// In the JS theme
|
|
8
|
+
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
10
10
|
$theme: map-get($dark, 'default');
|
|
11
11
|
|
|
12
12
|
// MIXIN
|
|
13
|
-
// CSS properties that are theme-dependent must be wrapped in this mixin
|
|
13
|
+
// CSS properties that are theme-dependent must be wrapped in this mixin.
|
|
14
|
+
// It will convert semantic tokens to the appropriate theme-dependent CSS property.
|
|
14
15
|
@mixin themed() {
|
|
15
16
|
& {
|
|
16
17
|
$theme-map: () !global;
|
|
@@ -34,7 +34,10 @@ $dark: (
|
|
|
34
34
|
red: #992222,
|
|
35
35
|
neutral: #273333
|
|
36
36
|
),
|
|
37
|
-
selected: #FFFFFF
|
|
37
|
+
selected: #FFFFFF,
|
|
38
|
+
positive_sentiment: #3896e3,
|
|
39
|
+
negative_sentiment: #f76054,
|
|
40
|
+
neutral_sentiment: #c8cccc
|
|
38
41
|
),
|
|
39
42
|
border: (
|
|
40
43
|
base: #040404,
|
|
@@ -159,7 +162,10 @@ $dark: (
|
|
|
159
162
|
error: #ffd5d2,
|
|
160
163
|
danger: #ffd5d2,
|
|
161
164
|
info: #dcf2ff,
|
|
162
|
-
opportunity: #eaeaf9
|
|
165
|
+
opportunity: #eaeaf9,
|
|
166
|
+
positive_sentiment: #2079c3,
|
|
167
|
+
negative_sentiment: #ed4c42,
|
|
168
|
+
neutral_sentiment: #6e797a
|
|
163
169
|
),
|
|
164
170
|
form: (
|
|
165
171
|
background: (
|
|
@@ -596,6 +602,6 @@ $dark: (
|
|
|
596
602
|
medium: .3s,
|
|
597
603
|
slow: .6s
|
|
598
604
|
),
|
|
599
|
-
mode:
|
|
605
|
+
mode: dark
|
|
600
606
|
)
|
|
601
607
|
);
|
|
@@ -2,24 +2,25 @@
|
|
|
2
2
|
// This file is excluded from stylelint, because stylelint is only set up to lint styled-components at the moment.
|
|
3
3
|
|
|
4
4
|
// SET-UP
|
|
5
|
-
//
|
|
5
|
+
// This file is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
|
|
6
6
|
@import "../../../dist/themes/light/light.scss";
|
|
7
7
|
|
|
8
|
-
// In the JS theme
|
|
8
|
+
// In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
|
|
9
9
|
// so we need to map-get "default" to access it.
|
|
10
10
|
$theme: map-get($light, 'default');
|
|
11
11
|
|
|
12
12
|
// MIXIN
|
|
13
|
-
// CSS properties that are theme-dependent must be wrapped in this mixin
|
|
13
|
+
// CSS properties that are theme-dependent must be wrapped in this mixin.
|
|
14
|
+
// It will convert semantic tokens to the appropriate theme-dependent CSS property.
|
|
14
15
|
@mixin themed() {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
& {
|
|
17
|
+
$theme-map: () !global;
|
|
18
|
+
@each $key, $submap in $theme {
|
|
19
|
+
$value: map-get($theme, "#{$key}");
|
|
20
|
+
$theme-map: map-merge($theme-map, ($key: $value)) !global;
|
|
21
|
+
}
|
|
22
|
+
@content;
|
|
23
|
+
$theme-map: null !global;
|
|
23
24
|
}
|
|
24
25
|
}
|
|
25
26
|
|
|
@@ -128,7 +128,10 @@ $light: (
|
|
|
128
128
|
red: #ffd5d2,
|
|
129
129
|
neutral: #f3f4f4
|
|
130
130
|
),
|
|
131
|
-
selected: #364141
|
|
131
|
+
selected: #364141,
|
|
132
|
+
positive_sentiment: #3896e3,
|
|
133
|
+
negative_sentiment: #f76054,
|
|
134
|
+
neutral_sentiment: #c8cccc
|
|
132
135
|
),
|
|
133
136
|
border: (
|
|
134
137
|
base: #dee1e1,
|
|
@@ -253,7 +256,10 @@ $light: (
|
|
|
253
256
|
error: #992222,
|
|
254
257
|
danger: #992222,
|
|
255
258
|
info: #0c5689,
|
|
256
|
-
opportunity: #5e4eba
|
|
259
|
+
opportunity: #5e4eba,
|
|
260
|
+
positive_sentiment: #2079c3,
|
|
261
|
+
negative_sentiment: #ed4c42,
|
|
262
|
+
neutral_sentiment: #6e797a
|
|
257
263
|
),
|
|
258
264
|
form: (
|
|
259
265
|
background: (
|
|
@@ -687,6 +693,6 @@ $light: (
|
|
|
687
693
|
medium: .3s,
|
|
688
694
|
slow: .6s
|
|
689
695
|
),
|
|
690
|
-
mode:
|
|
696
|
+
mode: light
|
|
691
697
|
)
|
|
692
698
|
);
|
package/lib/Button/styles.js
CHANGED
|
@@ -42,6 +42,6 @@ var Container = styled.button.withConfig({
|
|
|
42
42
|
}, function (props) {
|
|
43
43
|
return props.disabled && disabled;
|
|
44
44
|
}, function (props) {
|
|
45
|
-
return props.appearance === "pill" && css(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode ? "screen" : "multiply", pill);
|
|
45
|
+
return props.appearance === "pill" && css(["display:inline-flex;align-items:center;justify-content:center;mix-blend-mode:", ";", ""], props.theme.mode === "dark" ? "screen" : "multiply", pill);
|
|
46
46
|
}, Icon, LAYOUT, COMMON);
|
|
47
47
|
export default Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
|
package/lib/Checkbox/styles.js
CHANGED
|
@@ -22,7 +22,7 @@ export var InputWrapper = styled(Box).withConfig({
|
|
|
22
22
|
return props.theme.duration.fast;
|
|
23
23
|
}, function (props) {
|
|
24
24
|
return props.theme.easing.ease_inout;
|
|
25
|
-
}, props.theme.mode ? "screen" : "multiply", pill, props.theme.colors.app.background.base, PillInput, pill);
|
|
25
|
+
}, props.theme.mode === "dark" ? "screen" : "multiply", pill, props.theme.colors.app.background.base, PillInput, pill);
|
|
26
26
|
});
|
|
27
27
|
InputWrapper.displayName = "InputWrapper";
|
|
28
28
|
export var CheckboxBox = styled.div.withConfig({
|
package/lib/themes/dark/theme.js
CHANGED
|
@@ -2,18 +2,18 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
|
2
2
|
|
|
3
3
|
import COLORS from "@sproutsocial/seeds-color";
|
|
4
4
|
import DEPTH from "@sproutsocial/seeds-depth";
|
|
5
|
-
import
|
|
5
|
+
import lightTheme from "../light/theme";
|
|
6
6
|
import { datavizPalette } from "./dataviz-palette";
|
|
7
7
|
import { green, blue, purple, yellow, orange, red, neutral } from "./decorative-palettes";
|
|
8
8
|
import interact from "../utils/interact";
|
|
9
|
-
var MODE = "
|
|
9
|
+
var MODE = "dark";
|
|
10
10
|
export var shadows = {
|
|
11
11
|
low: DEPTH.ELEVATION_LEVEL_100 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
|
|
12
12
|
medium: DEPTH.ELEVATION_LEVEL_300 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
|
|
13
13
|
high: DEPTH.ELEVATION_LEVEL_400 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF"
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
var colors = _extends({},
|
|
16
|
+
var colors = _extends({}, lightTheme.colors, {
|
|
17
17
|
utils: {
|
|
18
18
|
interact: interact(MODE)
|
|
19
19
|
},
|
|
@@ -40,7 +40,10 @@ var colors = _extends({}, defaultTheme.colors, {
|
|
|
40
40
|
red: red.background,
|
|
41
41
|
neutral: neutral.background
|
|
42
42
|
},
|
|
43
|
-
selected: COLORS.COLOR_NEUTRAL_0
|
|
43
|
+
selected: COLORS.COLOR_NEUTRAL_0,
|
|
44
|
+
positive_sentiment: COLORS.COLOR_BLUE_500,
|
|
45
|
+
negative_sentiment: COLORS.COLOR_RED_500,
|
|
46
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_300
|
|
44
47
|
},
|
|
45
48
|
border: {
|
|
46
49
|
base: COLORS.COLOR_NEUTRAL_1100,
|
|
@@ -165,7 +168,10 @@ var colors = _extends({}, defaultTheme.colors, {
|
|
|
165
168
|
error: red.foreground,
|
|
166
169
|
danger: red.foreground,
|
|
167
170
|
info: blue.foreground,
|
|
168
|
-
opportunity: purple.foreground
|
|
171
|
+
opportunity: purple.foreground,
|
|
172
|
+
positive_sentiment: COLORS.COLOR_BLUE_700,
|
|
173
|
+
negative_sentiment: COLORS.COLOR_RED_600,
|
|
174
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_600
|
|
169
175
|
},
|
|
170
176
|
form: {
|
|
171
177
|
background: {
|
|
@@ -198,7 +204,7 @@ var colors = _extends({}, defaultTheme.colors, {
|
|
|
198
204
|
}
|
|
199
205
|
}, datavizPalette);
|
|
200
206
|
|
|
201
|
-
var darkTheme = _extends({},
|
|
207
|
+
var darkTheme = _extends({}, lightTheme, {
|
|
202
208
|
colors: colors,
|
|
203
209
|
shadows: shadows,
|
|
204
210
|
mode: MODE
|
|
@@ -12,7 +12,7 @@ import MOTION from "@sproutsocial/seeds-motion";
|
|
|
12
12
|
import BORDER from "@sproutsocial/seeds-border";
|
|
13
13
|
import interact from "../utils/interact";
|
|
14
14
|
export var breakpoints = ["900px", "1200px", "1500px", "1800px"];
|
|
15
|
-
var MODE = "
|
|
15
|
+
var MODE = "light";
|
|
16
16
|
|
|
17
17
|
var colors = _extends({
|
|
18
18
|
app: {
|
|
@@ -38,7 +38,10 @@ var colors = _extends({
|
|
|
38
38
|
red: red.background,
|
|
39
39
|
neutral: neutral.background
|
|
40
40
|
},
|
|
41
|
-
selected: COLORS.COLOR_NEUTRAL_800
|
|
41
|
+
selected: COLORS.COLOR_NEUTRAL_800,
|
|
42
|
+
positive_sentiment: COLORS.COLOR_BLUE_500,
|
|
43
|
+
negative_sentiment: COLORS.COLOR_RED_500,
|
|
44
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_300
|
|
42
45
|
},
|
|
43
46
|
border: {
|
|
44
47
|
base: COLORS.COLOR_NEUTRAL_200,
|
|
@@ -163,7 +166,10 @@ var colors = _extends({
|
|
|
163
166
|
error: red.foreground,
|
|
164
167
|
danger: red.foreground,
|
|
165
168
|
info: blue.foreground,
|
|
166
|
-
opportunity: purple.foreground
|
|
169
|
+
opportunity: purple.foreground,
|
|
170
|
+
positive_sentiment: COLORS.COLOR_BLUE_700,
|
|
171
|
+
negative_sentiment: COLORS.COLOR_RED_600,
|
|
172
|
+
neutral_sentiment: COLORS.COLOR_NEUTRAL_600
|
|
167
173
|
},
|
|
168
174
|
form: {
|
|
169
175
|
background: {
|