@sproutsocial/racine 9.1.1-theme-extension.0 → 10.0.0-dar105-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 (103) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/__flow__/Box/index.stories.js +1 -1
  3. package/__flow__/Breadcrumb/styles.js +0 -5
  4. package/__flow__/Button/styles.js +2 -2
  5. package/__flow__/Card/index.stories.js +0 -1
  6. package/__flow__/Card/styles.js +1 -1
  7. package/__flow__/Checkbox/styles.js +1 -1
  8. package/__flow__/Drawer/index.stories.js +3 -3
  9. package/__flow__/Drawer/styles.js +1 -1
  10. package/__flow__/KeyboardKey/styles.js +1 -1
  11. package/__flow__/Listbox/__snapshots__/index.test.js.snap +40 -34
  12. package/__flow__/Menu/__snapshots__/index.test.js.snap +15 -12
  13. package/__flow__/Menu/index.js +3 -7
  14. package/__flow__/Menu/index.stories.js +1 -1
  15. package/__flow__/Menu/styles.js +1 -18
  16. package/__flow__/Modal/index.test.js +0 -16
  17. package/__flow__/Modal/styles.js +1 -1
  18. package/__flow__/Popout/index.js +1 -1
  19. package/__flow__/Stack/index.js +1 -1
  20. package/__flow__/ThemeProvider/index.js +4 -4
  21. package/__flow__/Token/index.js +4 -1
  22. package/__flow__/Token/index.stories.js +11 -0
  23. package/__flow__/Token/styles.js +43 -33
  24. package/__flow__/Tooltip/index.js +1 -1
  25. package/__flow__/index.js +1 -2
  26. package/__flow__/themes/dark/_themed.scss +133 -0
  27. package/__flow__/themes/dark/theme.js +187 -157
  28. package/__flow__/themes/light/_themed.scss +133 -0
  29. package/__flow__/themes/{default → light}/dataviz-palette.js +0 -0
  30. package/__flow__/themes/{default → light}/decorative-palettes.js +0 -0
  31. package/__flow__/themes/{default → light}/literal-colors.js +0 -0
  32. package/__flow__/themes/{default → light}/theme.js +25 -8
  33. package/__flow__/themes/utils/interact.js +12 -0
  34. package/__flow__/types/system-props.flow.js +1 -2
  35. package/__flow__/types/theme.colors.flow.js +7 -1
  36. package/__flow__/types/theme.flow.js +2 -2
  37. package/__flow__/utils/mixins.js +1 -1
  38. package/__flow__/utils/responsiveProps/index.js +1 -1
  39. package/commonjs/Breadcrumb/styles.js +1 -1
  40. package/commonjs/Button/styles.js +2 -2
  41. package/commonjs/Card/styles.js +1 -1
  42. package/commonjs/Checkbox/styles.js +1 -1
  43. package/commonjs/Drawer/styles.js +1 -1
  44. package/commonjs/KeyboardKey/styles.js +1 -1
  45. package/commonjs/Menu/index.js +3 -1
  46. package/commonjs/Menu/styles.js +3 -16
  47. package/commonjs/Modal/styles.js +1 -1
  48. package/commonjs/Popout/index.js +1 -1
  49. package/commonjs/ThemeProvider/index.js +1 -1
  50. package/commonjs/Token/index.js +5 -2
  51. package/commonjs/Token/styles.js +19 -50
  52. package/commonjs/Tooltip/index.js +1 -1
  53. package/commonjs/index.js +2 -6
  54. package/commonjs/themes/dark/theme.js +186 -155
  55. package/commonjs/themes/{default → light}/dataviz-palette.js +0 -0
  56. package/commonjs/themes/{default → light}/decorative-palettes.js +0 -0
  57. package/commonjs/themes/{default → light}/literal-colors.js +0 -0
  58. package/commonjs/themes/{default → light}/theme.js +27 -10
  59. package/commonjs/themes/utils/interact.js +19 -0
  60. package/commonjs/types/theme.colors.flow.js +1 -1
  61. package/commonjs/types/theme.flow.js +1 -1
  62. package/commonjs/utils/mixins.js +1 -1
  63. package/commonjs/utils/responsiveProps/index.js +1 -1
  64. package/dist/themes/dark/_themed.scss +133 -0
  65. package/dist/themes/dark/dark.scss +607 -0
  66. package/dist/themes/light/_themed.scss +133 -0
  67. package/dist/themes/light/light.scss +698 -0
  68. package/lib/Breadcrumb/styles.js +1 -1
  69. package/lib/Button/styles.js +2 -2
  70. package/lib/Card/styles.js +1 -1
  71. package/lib/Checkbox/styles.js +1 -1
  72. package/lib/Drawer/styles.js +1 -1
  73. package/lib/KeyboardKey/styles.js +1 -1
  74. package/lib/Menu/index.js +4 -2
  75. package/lib/Menu/styles.js +2 -13
  76. package/lib/Modal/styles.js +1 -1
  77. package/lib/Popout/index.js +1 -1
  78. package/lib/ThemeProvider/index.js +1 -1
  79. package/lib/Token/index.js +5 -2
  80. package/lib/Token/styles.js +19 -50
  81. package/lib/Tooltip/index.js +1 -1
  82. package/lib/index.js +1 -2
  83. package/lib/themes/dark/theme.js +181 -154
  84. package/lib/themes/{default → light}/dataviz-palette.js +0 -0
  85. package/lib/themes/{default → light}/decorative-palettes.js +0 -0
  86. package/lib/themes/{default → light}/literal-colors.js +0 -0
  87. package/lib/themes/{default → light}/theme.js +26 -10
  88. package/lib/themes/utils/interact.js +13 -0
  89. package/lib/types/theme.colors.flow.js +1 -1
  90. package/lib/types/theme.flow.js +1 -1
  91. package/lib/utils/mixins.js +1 -1
  92. package/lib/utils/responsiveProps/index.js +1 -1
  93. package/package.json +7 -10
  94. package/__flow__/CustomThemeProvider/index.js +0 -16
  95. package/__flow__/Modal/__snapshots__/index.test.js.snap +0 -80
  96. package/__flow__/themes/sprout/theme.js +0 -22
  97. package/__flow__/utils/extendTheme.js +0 -17
  98. package/commonjs/CustomThemeProvider/index.js +0 -23
  99. package/commonjs/themes/sprout/theme.js +0 -29
  100. package/commonjs/utils/extendTheme.js +0 -22
  101. package/lib/CustomThemeProvider/index.js +0 -12
  102. package/lib/themes/sprout/theme.js +0 -19
  103. package/lib/utils/extendTheme.js +0 -12
@@ -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({
@@ -13,7 +13,7 @@ var Container = styled.div.withConfig({
13
13
  }, function (props) {
14
14
  return props.theme.colors.container.background.base;
15
15
  }, function (props) {
16
- return props.theme.shadows[400];
16
+ return props.theme.shadows.high;
17
17
  }, function (props) {
18
18
  return css(["", ":", "px;"], props.direction, props.offset);
19
19
  }, COMMON);
@@ -12,7 +12,7 @@ var Container = styled.div.withConfig({
12
12
  }, function (props) {
13
13
  return props.theme.radii[500];
14
14
  }, function (props) {
15
- return props.theme.shadows[100];
15
+ return props.theme.shadows.low;
16
16
  }, function (props) {
17
17
  return props.theme.space[200];
18
18
  }, COMMON);
package/lib/Menu/index.js CHANGED
@@ -8,7 +8,7 @@ import * as React from "react";
8
8
  import styled from "styled-components";
9
9
  import { useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
10
10
  import uniqueId from "lodash.uniqueid";
11
- import { MenuGroupContainer, MenuItemContainer, MenuItemsContainer } from "./styles";
11
+ import { MenuItemContainer, MenuItemsContainer } from "./styles";
12
12
  import { MENU_ITEM_ROLES, MENU_ROLES } from "./constants";
13
13
  import Box from "../Box";
14
14
  import Button from "../Button";
@@ -244,7 +244,9 @@ export var MenuGroup = function MenuGroup(_ref2) {
244
244
  mt: 350,
245
245
  color: "text.headline",
246
246
  _css: isDisabled && disabled
247
- }, title)), /*#__PURE__*/React.createElement(MenuGroupContainer, _extends({}, props, {
247
+ }, title)), /*#__PURE__*/React.createElement(Box, _extends({}, props, {
248
+ m: 300,
249
+ p: 300,
248
250
  role: "group"
249
251
  }), children));
250
252
  };
@@ -41,18 +41,7 @@ export var MenuItemContainer = styled(Box).withConfig({
41
41
  }, function (props) {
42
42
  return props.disabled && disabled;
43
43
  });
44
- export var MenuGroupContainer = styled(Box).withConfig({
45
- displayName: "styles__MenuGroupContainer",
46
- componentId: "fjvae4-1"
47
- })(["", ";"], function (props) {
48
- return props.appearance === "flush" ? css(["margin:0 -", ";"], function (props) {
49
- return props.theme.space[300];
50
- }) : css(["padding:", ";"], function (props) {
51
- return props.theme.space[300];
52
- });
53
- });
54
44
  export var MenuItemsContainer = styled(Box).withConfig({
55
45
  displayName: "styles__MenuItemsContainer",
56
- componentId: "fjvae4-2"
57
- })(["list-style-type:none;outline:0;"]);
58
- export default MenuGroupContainer;
46
+ componentId: "fjvae4-1"
47
+ })(["list-style-type:none;outline:0;"]);
@@ -53,7 +53,7 @@ export var Container = styled(ReactModalAdapter).withConfig({
53
53
  }, function (props) {
54
54
  return props.theme.radii[500];
55
55
  }, function (props) {
56
- return props.theme.shadows[300];
56
+ return props.theme.shadows.medium;
57
57
  }, function (props) {
58
58
  return props.theme.colors.text.body;
59
59
  }, BODY_PADDING, BODY_PADDING, BODY_PADDING, width, COMMON);
@@ -267,7 +267,7 @@ Popout.Content = function (_ref4) {
267
267
  border: 500,
268
268
  borderColor: "container.border.base",
269
269
  borderRadius: "outer",
270
- boxShadow: 300,
270
+ boxShadow: "medium",
271
271
  p: 400,
272
272
  m: 300
273
273
  }, rest), children);
@@ -2,7 +2,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
2
2
 
3
3
  import * as React from "react";
4
4
  import { ThemeProvider as BaseThemeProvider } from "styled-components";
5
- import theme from "../themes/default/theme";
5
+ import theme from "../themes/light/theme";
6
6
 
7
7
  var ThemeProvider = function ThemeProvider(props) {
8
8
  return /*#__PURE__*/React.createElement(BaseThemeProvider, _extends({}, props, {
@@ -18,14 +18,17 @@ var Token = function Token(_ref) {
18
18
  valid = _ref$valid === void 0 ? true : _ref$valid,
19
19
  _ref$disabled = _ref.disabled,
20
20
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
21
- rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled"]);
21
+ _ref$palette = _ref.palette,
22
+ palette = _ref$palette === void 0 ? "neutral" : _ref$palette,
23
+ rest = _objectWithoutPropertiesLoose(_ref, ["children", "closeable", "onClick", "qa", "valid", "disabled", "palette"]);
22
24
 
23
25
  var textContainer = useTextContent("");
24
26
  return /*#__PURE__*/React.createElement(Container, _extends({
25
27
  ref: textContainer,
26
28
  valid: valid,
27
- as: closeable || onClick ? "button" : "div",
29
+ palette: palette,
28
30
  type: closeable || onClick ? "button" : undefined,
31
+ as: closeable || onClick ? "button" : "div",
29
32
  closeable: closeable || onClick,
30
33
  disabled: disabled,
31
34
  onClick: onClick,
@@ -4,55 +4,24 @@ import { focusRing } from "../utils/mixins";
4
4
  var Container = styled.button.withConfig({
5
5
  displayName: "styles__Container",
6
6
  componentId: "nyn5zy-0"
7
- })(["font-family:", ";", ";position:relative;display:inline-block;padding:", " ", ";margin:0;color:", ";background:", ";border:1px solid ", ";font-weight:", ";line-height:1;vertical-align:middle;border-radius:", ";outline:none;transition:all ", " ", ";&:focus{", "}", " ", " ", " ", ""], function (props) {
8
- return props.theme.fontFamily;
9
- }, function (props) {
10
- return props.theme.typography[200];
11
- }, function (props) {
12
- return props.theme.space[200];
13
- }, function (props) {
14
- return props.theme.space[300];
15
- }, function (props) {
16
- return props.theme.colors.text.body;
17
- }, function (props) {
18
- return props.theme.colors.container.background.base;
19
- }, function (props) {
20
- return props.theme.colors.container.border.base;
21
- }, function (props) {
22
- return props.theme.fontWeights.normal;
23
- }, function (props) {
24
- return props.theme.radii[500];
25
- }, function (props) {
26
- return props.theme.duration.fast;
27
- }, function (props) {
28
- return props.theme.easing.ease_inout;
29
- }, focusRing, function (props) {
30
- return props.closeable && css(["cursor:pointer;&:hover,&:active{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
31
- return props.theme.colors.text.body;
32
- }, function (props) {
33
- return props.theme.colors.container.border.decorative.neutral;
34
- }, function (props) {
35
- return props.theme.colors.container.background.decorative.neutral;
36
- });
37
- }, function (props) {
38
- return props.disabled && css(["opacity:0.4;cursor:not-allowed;&:hover,&:active{background:", ";border:1px solid ", ";}"], function (props) {
39
- return props.theme.colors.container.background.base;
40
- }, function (props) {
41
- return props.theme.colors.container.border.base;
42
- });
43
- }, function (props) {
44
- return !props.valid && css(["color:", ";border-color:", ";background:", ";&:hover{color:", ";border:1px solid ", ";background-color:", ";}"], function (props) {
45
- return props.theme.colors.text.body;
46
- }, function (props) {
47
- return props.theme.colors.container.border.error;
48
- }, function (props) {
49
- return props.theme.colors.container.background.error;
50
- }, function (props) {
51
- return props.theme.colors.text.body;
52
- }, function (props) {
53
- return props.theme.colors.container.border.error;
54
- }, function (props) {
55
- return props.theme.colors.container.background.error;
56
- });
7
+ })(["position:relative;display:inline-block;margin:0;line-height:1;vertical-align:middle;outline:none;", " &:focus{", "}", " ", " ", " ", " ", ""], function (_ref) {
8
+ var theme = _ref.theme;
9
+ return css(["", " font-family:", ";font-weight:", ";border:1px solid ", ";border-radius:", ";color:", ";background:", ";padding:", " ", ";transition:all ", " ", ";"], theme.typography[200], theme.fontFamily, theme.fontWeights.normal, theme.colors.container.border.base, theme.radii[500], theme.colors.text.body, theme.colors.container.background.base, theme.space[200], theme.space[300], theme.duration.fast, theme.easing.ease_inout);
10
+ }, focusRing, function (_ref2) {
11
+ var theme = _ref2.theme,
12
+ palette = _ref2.palette;
13
+ return palette === "blue" && css(["color:", ";background:", ";border:1px solid ", ";&:hover,&:active{cursor:pointer;box-shadow:", ";border:1px solid ", ";}"], theme.colors.text.body, theme.colors.container.background.decorative.blue, theme.colors.container.border.decorative.blue, theme.shadows.low, theme.utils.interact(theme.colors.container.border.decorative.blue));
14
+ }, function (_ref3) {
15
+ var closeable = _ref3.closeable,
16
+ theme = _ref3.theme;
17
+ return closeable && css(["cursor:pointer;&:hover,&:active{box-shadow:", ";border:1px solid ", ";}"], theme.shadows.low, theme.utils.interact(theme.colors.container.border.base));
18
+ }, function (_ref4) {
19
+ var disabled = _ref4.disabled,
20
+ theme = _ref4.theme;
21
+ return disabled && css(["opacity:0.4;cursor:not-allowed;&:hover,&:active{box-shadow:none;border:1px solid ", ";}"], theme.colors.container.border.base);
22
+ }, function (_ref5) {
23
+ var valid = _ref5.valid,
24
+ theme = _ref5.theme;
25
+ return !valid && css(["color:", ";background:", ";border:1px solid ", ";&:hover{box-shadow:", ";border:1px solid ", ";}"], theme.colors.text.error, theme.colors.container.background.error, theme.colors.container.border.error, theme.shadows.low, theme.utils.interact(theme.colors.container.border.error));
57
26
  }, COMMON);
58
27
  export default Container;
@@ -118,7 +118,7 @@ var Content = function Content(_ref2) {
118
118
  m: 200,
119
119
  color: "text.body",
120
120
  bg: "container.background.base",
121
- boxShadow: 300,
121
+ boxShadow: "medium",
122
122
  border: 500,
123
123
  borderColor: "container.border.base" // $FlowIssue - upgrade v0.112.0
124
124
 
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { visuallyHidden, focusRing, disabled } from "./utils/mixins";
2
2
  export { useSelect, useMultiselect, useTextContent } from "./utils/hooks";
3
- export { default as theme } from "./themes/default/theme";
3
+ export { default as theme } from "./themes/light/theme";
4
4
  export { default as darkTheme } from "./themes/dark/theme";
5
5
  export { default as Icon } from "./Icon"; // DEPRECATED: Alert has been renamed to Banner
6
6
 
@@ -36,7 +36,6 @@ export { default as Tabs } from "./Tabs";
36
36
  export { default as Modal } from "./Modal";
37
37
  export { default as Popout } from "./Popout";
38
38
  export { default as ThemeProvider } from "./ThemeProvider";
39
- export { default as CustomThemeProvider } from "./CustomThemeProvider";
40
39
  export { default as Tooltip } from "./Tooltip";
41
40
  export { default as Drawer } from "./Drawer";
42
41
  export { default as LoaderButton } from "./LoaderButton";
@@ -1,186 +1,213 @@
1
1
  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); }
2
2
 
3
3
  import COLORS from "@sproutsocial/seeds-color";
4
- import defaultTheme from "../default/theme";
4
+ import DEPTH from "@sproutsocial/seeds-depth";
5
+ import lightTheme from "../light/theme";
5
6
  import { datavizPalette } from "./dataviz-palette";
6
7
  import { green, blue, purple, yellow, orange, red, neutral } from "./decorative-palettes";
8
+ import interact from "../utils/interact";
9
+ var MODE = "dark";
10
+ export var shadows = {
11
+ low: DEPTH.ELEVATION_LEVEL_100 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
12
+ medium: DEPTH.ELEVATION_LEVEL_300 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF",
13
+ high: DEPTH.ELEVATION_LEVEL_400 + " " + COLORS.COLOR_NEUTRAL_1100 + "FF"
14
+ };
7
15
 
8
- var darkTheme = _extends({}, defaultTheme, {
9
- colors: _extends({}, defaultTheme.colors, {
10
- app: {
16
+ var colors = _extends({}, lightTheme.colors, {
17
+ utils: {
18
+ interact: interact(MODE)
19
+ },
20
+ app: {
21
+ background: {
22
+ base: COLORS.COLOR_NEUTRAL_1000
23
+ }
24
+ },
25
+ container: {
26
+ background: {
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,
44
+ positive_sentiment: COLORS.COLOR_BLUE_500,
45
+ negative_sentiment: COLORS.COLOR_RED_500,
46
+ neutral_sentiment: COLORS.COLOR_NEUTRAL_300
47
+ },
48
+ border: {
49
+ base: COLORS.COLOR_NEUTRAL_1100,
50
+ success: green.highlight,
51
+ warning: yellow.highlight,
52
+ error: red.highlight,
53
+ danger: red.highlight,
54
+ info: blue.highlight,
55
+ opportunity: purple.highlight,
56
+ decorative: {
57
+ green: green.highlight,
58
+ blue: blue.highlight,
59
+ purple: purple.highlight,
60
+ yellow: yellow.highlight,
61
+ orange: orange.highlight,
62
+ red: red.highlight,
63
+ neutral: neutral.highlight
64
+ },
65
+ selected: COLORS.COLOR_NEUTRAL_0
66
+ }
67
+ },
68
+ button: {
69
+ primary: {
11
70
  background: {
12
- base: COLORS.COLOR_NEUTRAL_1000
71
+ base: COLORS.COLOR_BLUE_400,
72
+ hover: COLORS.COLOR_BLUE_300,
73
+ active: COLORS.COLOR_BLUE_200
74
+ },
75
+ border: {
76
+ base: "transparent"
77
+ },
78
+ text: {
79
+ base: COLORS.COLOR_NEUTRAL_900,
80
+ hover: COLORS.COLOR_NEUTRAL_1000
13
81
  }
14
82
  },
15
- container: {
83
+ secondary: {
16
84
  background: {
17
- base: COLORS.COLOR_NEUTRAL_900,
18
- success: green.background,
19
- warning: yellow.background,
20
- error: red.background,
21
- info: blue.background,
22
- opportunity: purple.background,
23
- danger: red.background,
24
- decorative: {
25
- green: green.background,
26
- blue: blue.background,
27
- purple: purple.background,
28
- yellow: yellow.background,
29
- orange: orange.background,
30
- red: red.background,
31
- neutral: neutral.background
32
- },
33
- selected: COLORS.COLOR_NEUTRAL_0
85
+ base: "transparent",
86
+ hover: COLORS.COLOR_NEUTRAL_100,
87
+ active: COLORS.COLOR_NEUTRAL_0
34
88
  },
35
89
  border: {
36
- base: COLORS.COLOR_NEUTRAL_1100,
37
- success: green.highlight,
38
- warning: yellow.highlight,
39
- error: red.highlight,
40
- danger: red.highlight,
41
- info: blue.highlight,
42
- opportunity: purple.highlight,
43
- decorative: {
44
- green: green.highlight,
45
- blue: blue.highlight,
46
- purple: purple.highlight,
47
- yellow: yellow.highlight,
48
- orange: orange.highlight,
49
- red: red.highlight,
50
- neutral: neutral.highlight
51
- },
52
- selected: COLORS.COLOR_NEUTRAL_0
90
+ base: COLORS.COLOR_NEUTRAL_0
91
+ },
92
+ text: {
93
+ base: COLORS.COLOR_NEUTRAL_0,
94
+ hover: COLORS.COLOR_NEUTRAL_800
53
95
  }
54
96
  },
55
- button: {
56
- primary: {
57
- background: {
58
- base: COLORS.COLOR_BLUE_400,
59
- hover: COLORS.COLOR_BLUE_300,
60
- active: COLORS.COLOR_BLUE_200
61
- },
62
- border: {
63
- base: "transparent"
64
- },
65
- text: {
66
- base: COLORS.COLOR_NEUTRAL_900,
67
- hover: COLORS.COLOR_NEUTRAL_1000
68
- }
69
- },
70
- secondary: {
71
- background: {
72
- base: "transparent",
73
- hover: COLORS.COLOR_NEUTRAL_100,
74
- active: COLORS.COLOR_NEUTRAL_0
75
- },
76
- border: {
77
- base: COLORS.COLOR_NEUTRAL_0
78
- },
79
- text: {
80
- base: COLORS.COLOR_NEUTRAL_0,
81
- hover: COLORS.COLOR_NEUTRAL_800
82
- }
97
+ pill: {
98
+ background: {
99
+ base: "transparent",
100
+ hover: COLORS.COLOR_NEUTRAL_1000,
101
+ active: COLORS.COLOR_NEUTRAL_900
83
102
  },
84
- pill: {
85
- background: {
86
- base: "transparent",
87
- hover: COLORS.COLOR_NEUTRAL_1000,
88
- active: COLORS.COLOR_NEUTRAL_900
89
- },
90
- border: {
91
- base: "transparent"
92
- },
93
- text: {
94
- base: COLORS.COLOR_NEUTRAL_100,
95
- hover: COLORS.COLOR_NEUTRAL_0
96
- }
103
+ border: {
104
+ base: "transparent"
97
105
  },
98
- destructive: {
99
- background: {
100
- base: COLORS.COLOR_RED_400,
101
- hover: COLORS.COLOR_RED_300,
102
- active: COLORS.COLOR_RED_200
103
- },
104
- border: {
105
- base: "transparent"
106
- },
107
- text: {
108
- base: COLORS.COLOR_NEUTRAL_900,
109
- hover: COLORS.COLOR_NEUTRAL_1000
110
- }
106
+ text: {
107
+ base: COLORS.COLOR_NEUTRAL_100,
108
+ hover: COLORS.COLOR_NEUTRAL_0
109
+ }
110
+ },
111
+ destructive: {
112
+ background: {
113
+ base: COLORS.COLOR_RED_400,
114
+ hover: COLORS.COLOR_RED_300,
115
+ active: COLORS.COLOR_RED_200
111
116
  },
112
- placeholder: {
113
- background: {
114
- base: "transparent",
115
- hover: COLORS.COLOR_NEUTRAL_1100,
116
- active: COLORS.COLOR_NEUTRAL_1100
117
- },
118
- border: {
119
- base: COLORS.COLOR_NEUTRAL_500
120
- },
121
- text: {
122
- base: COLORS.COLOR_BLUE_400,
123
- hover: COLORS.COLOR_BLUE_300
124
- }
117
+ border: {
118
+ base: "transparent"
125
119
  },
126
- unstyled: {
127
- background: {
128
- base: "transparent"
129
- },
130
- border: {
131
- base: "transparent"
132
- },
133
- text: {
134
- base: COLORS.COLOR_NEUTRAL_300,
135
- hover: COLORS.COLOR_NEUTRAL_200
136
- }
120
+ text: {
121
+ base: COLORS.COLOR_NEUTRAL_900,
122
+ hover: COLORS.COLOR_NEUTRAL_1000
137
123
  }
138
124
  },
139
- link: {
140
- base: COLORS.COLOR_BLUE_400,
141
- hover: COLORS.COLOR_BLUE_300
142
- },
143
- text: {
144
- headline: COLORS.COLOR_NEUTRAL_0,
145
- subtext: COLORS.COLOR_NEUTRAL_300,
146
- body: COLORS.COLOR_NEUTRAL_100,
147
- inverse: COLORS.COLOR_NEUTRAL_900,
148
- error: COLORS.COLOR_RED_400
149
- },
150
- icon: {
151
- base: COLORS.COLOR_NEUTRAL_100,
152
- inverse: COLORS.COLOR_NEUTRAL_900,
153
- success: green.foreground,
154
- warning: yellow.foreground,
155
- error: red.foreground,
156
- danger: red.foreground,
157
- info: blue.foreground,
158
- opportunity: purple.foreground
159
- },
160
- form: {
125
+ placeholder: {
161
126
  background: {
162
- base: COLORS.COLOR_NEUTRAL_900,
163
- selected: COLORS.COLOR_NEUTRAL_0
127
+ base: "transparent",
128
+ hover: COLORS.COLOR_NEUTRAL_1100,
129
+ active: COLORS.COLOR_NEUTRAL_1100
164
130
  },
165
131
  border: {
166
- base: COLORS.COLOR_NEUTRAL_500,
167
- error: red.highlight,
168
- warning: yellow.highlight,
169
- selected: COLORS.COLOR_NEUTRAL_0
170
- },
171
- placeholder: {
172
132
  base: COLORS.COLOR_NEUTRAL_500
133
+ },
134
+ text: {
135
+ base: COLORS.COLOR_BLUE_400,
136
+ hover: COLORS.COLOR_BLUE_300
173
137
  }
174
138
  },
175
- listItem: {
139
+ unstyled: {
176
140
  background: {
177
- base: "transparent",
178
- hover: COLORS.COLOR_NEUTRAL_800,
179
- selected: COLORS.COLOR_NEUTRAL_0
141
+ base: "transparent"
142
+ },
143
+ border: {
144
+ base: "transparent"
145
+ },
146
+ text: {
147
+ base: COLORS.COLOR_NEUTRAL_300,
148
+ hover: COLORS.COLOR_NEUTRAL_200
180
149
  }
181
150
  }
182
- }, datavizPalette),
183
- mode: "dark"
151
+ },
152
+ link: {
153
+ base: COLORS.COLOR_BLUE_400,
154
+ hover: COLORS.COLOR_BLUE_300
155
+ },
156
+ text: {
157
+ headline: COLORS.COLOR_NEUTRAL_0,
158
+ subtext: COLORS.COLOR_NEUTRAL_300,
159
+ body: COLORS.COLOR_NEUTRAL_100,
160
+ inverse: COLORS.COLOR_NEUTRAL_900,
161
+ error: COLORS.COLOR_RED_400
162
+ },
163
+ icon: {
164
+ base: COLORS.COLOR_NEUTRAL_100,
165
+ inverse: COLORS.COLOR_NEUTRAL_900,
166
+ success: green.foreground,
167
+ warning: yellow.foreground,
168
+ error: red.foreground,
169
+ danger: red.foreground,
170
+ info: blue.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
175
+ },
176
+ form: {
177
+ background: {
178
+ base: COLORS.COLOR_NEUTRAL_900,
179
+ selected: COLORS.COLOR_NEUTRAL_0
180
+ },
181
+ border: {
182
+ base: COLORS.COLOR_NEUTRAL_500,
183
+ error: red.highlight,
184
+ warning: yellow.highlight,
185
+ selected: COLORS.COLOR_NEUTRAL_0
186
+ },
187
+ placeholder: {
188
+ base: COLORS.COLOR_NEUTRAL_500
189
+ }
190
+ },
191
+ listItem: {
192
+ background: {
193
+ base: "transparent",
194
+ hover: COLORS.COLOR_NEUTRAL_800,
195
+ selected: COLORS.COLOR_NEUTRAL_0
196
+ }
197
+ },
198
+ elevation: {
199
+ base: COLORS.COLOR_NEUTRAL_1100
200
+ },
201
+ dataviz: {
202
+ map: datavizPalette.DATAVIZ_COLORS_MAP,
203
+ list: datavizPalette.DATAVIZ_COLORS_LIST
204
+ }
205
+ }, datavizPalette);
206
+
207
+ var darkTheme = _extends({}, lightTheme, {
208
+ colors: colors,
209
+ shadows: shadows,
210
+ mode: MODE
184
211
  });
185
212
 
186
213
  export default darkTheme;
File without changes
File without changes