@sproutsocial/seeds-react-theme 1.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.
Files changed (101) hide show
  1. package/__flow__/dark/dataviz-palette.flow.js +3 -0
  2. package/__flow__/dark/decorative-palettes.flow.js +13 -0
  3. package/__flow__/dark/theme.flow.js +5 -0
  4. package/__flow__/extendedThemes/sproutTheme/dark/theme.flow.js +10 -0
  5. package/__flow__/extendedThemes/sproutTheme/index.flow.js +3 -0
  6. package/__flow__/extendedThemes/sproutTheme/light/theme.flow.js +10 -0
  7. package/__flow__/index.js +3 -0
  8. package/__flow__/light/dataviz-palette.flow.js +29 -0
  9. package/__flow__/light/decorative-palettes.flow.js +17 -0
  10. package/__flow__/light/literal-colors.flow.js +31 -0
  11. package/__flow__/light/theme.flow.js +16 -0
  12. package/__flow__/types/theme.colors.flow.js +358 -0
  13. package/__flow__/types/theme.flow.js +372 -0
  14. package/commonjs/dark/dataviz-palette.flow.js +1 -0
  15. package/commonjs/dark/dataviz-palette.js +33 -0
  16. package/commonjs/dark/decorative-palettes.flow.js +1 -0
  17. package/commonjs/dark/decorative-palettes.js +63 -0
  18. package/commonjs/dark/theme.flow.js +1 -0
  19. package/commonjs/dark/theme.js +268 -0
  20. package/commonjs/extendedThemes/sproutTheme/dark/theme.flow.js +7 -0
  21. package/commonjs/extendedThemes/sproutTheme/dark/theme.js +240 -0
  22. package/commonjs/extendedThemes/sproutTheme/index.flow.js +20 -0
  23. package/commonjs/extendedThemes/sproutTheme/index.js +20 -0
  24. package/commonjs/extendedThemes/sproutTheme/light/theme.flow.js +1 -0
  25. package/commonjs/extendedThemes/sproutTheme/light/theme.js +237 -0
  26. package/commonjs/index.js +51 -0
  27. package/commonjs/index.js.flow +3 -0
  28. package/commonjs/light/dataviz-palette.flow.js +1 -0
  29. package/commonjs/light/dataviz-palette.js +33 -0
  30. package/commonjs/light/decorative-palettes.flow.js +1 -0
  31. package/commonjs/light/decorative-palettes.js +63 -0
  32. package/commonjs/light/literal-colors.flow.js +1 -0
  33. package/commonjs/light/literal-colors.js +167 -0
  34. package/commonjs/light/theme.flow.js +1 -0
  35. package/commonjs/light/theme.js +416 -0
  36. package/commonjs/types/theme.colors.flow.js +1 -0
  37. package/commonjs/types/theme.colors.js +5 -0
  38. package/commonjs/types/theme.flow.js +1 -0
  39. package/commonjs/types/theme.js +5 -0
  40. package/dist/themes/dark/_themed.scss +119 -0
  41. package/dist/themes/dark/theme.scss +678 -0
  42. package/dist/themes/extendedThemes/sproutTheme/dark/_themed.scss +119 -0
  43. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +1091 -0
  44. package/dist/themes/extendedThemes/sproutTheme/light/_themed.scss +119 -0
  45. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +1091 -0
  46. package/dist/themes/light/_themed.scss +119 -0
  47. package/dist/themes/light/theme.scss +800 -0
  48. package/dist/themes/types/_themed.scss +119 -0
  49. package/dist/types/dark/dataviz-palette.d.ts +26 -0
  50. package/dist/types/dark/dataviz-palette.d.ts.map +1 -0
  51. package/dist/types/dark/decorative-palettes.d.ts +56 -0
  52. package/dist/types/dark/decorative-palettes.d.ts.map +1 -0
  53. package/dist/types/dark/theme.d.ts +671 -0
  54. package/dist/types/dark/theme.d.ts.map +1 -0
  55. package/dist/types/extendedThemes/sproutTheme/dark/theme.d.ts +213 -0
  56. package/dist/types/extendedThemes/sproutTheme/dark/theme.d.ts.map +1 -0
  57. package/dist/types/extendedThemes/sproutTheme/index.d.ts +3 -0
  58. package/dist/types/extendedThemes/sproutTheme/index.d.ts.map +1 -0
  59. package/dist/types/extendedThemes/sproutTheme/light/theme.d.ts +213 -0
  60. package/dist/types/extendedThemes/sproutTheme/light/theme.d.ts.map +1 -0
  61. package/dist/types/index.d.ts +5 -0
  62. package/dist/types/index.d.ts.map +1 -0
  63. package/dist/types/light/dataviz-palette.d.ts +26 -0
  64. package/dist/types/light/dataviz-palette.d.ts.map +1 -0
  65. package/dist/types/light/decorative-palettes.d.ts +56 -0
  66. package/dist/types/light/decorative-palettes.d.ts.map +1 -0
  67. package/dist/types/light/literal-colors.d.ts +160 -0
  68. package/dist/types/light/literal-colors.d.ts.map +1 -0
  69. package/dist/types/light/theme.d.ts +794 -0
  70. package/dist/types/light/theme.d.ts.map +1 -0
  71. package/dist/types/types/theme.colors.d.ts +292 -0
  72. package/dist/types/types/theme.colors.d.ts.map +1 -0
  73. package/dist/types/types/theme.d.ts +43 -0
  74. package/dist/types/types/theme.d.ts.map +1 -0
  75. package/lib/dark/dataviz-palette.flow.js +0 -0
  76. package/lib/dark/dataviz-palette.js +26 -0
  77. package/lib/dark/decorative-palettes.flow.js +0 -0
  78. package/lib/dark/decorative-palettes.js +56 -0
  79. package/lib/dark/theme.flow.js +0 -0
  80. package/lib/dark/theme.js +263 -0
  81. package/lib/extendedThemes/sproutTheme/dark/theme.flow.js +1 -0
  82. package/lib/extendedThemes/sproutTheme/dark/theme.js +235 -0
  83. package/lib/extendedThemes/sproutTheme/index.flow.js +2 -0
  84. package/lib/extendedThemes/sproutTheme/index.js +2 -0
  85. package/lib/extendedThemes/sproutTheme/light/theme.flow.js +0 -0
  86. package/lib/extendedThemes/sproutTheme/light/theme.js +232 -0
  87. package/lib/index.js +4 -0
  88. package/lib/index.js.flow +3 -0
  89. package/lib/light/dataviz-palette.flow.js +0 -0
  90. package/lib/light/dataviz-palette.js +26 -0
  91. package/lib/light/decorative-palettes.flow.js +0 -0
  92. package/lib/light/decorative-palettes.js +56 -0
  93. package/lib/light/literal-colors.flow.js +0 -0
  94. package/lib/light/literal-colors.js +160 -0
  95. package/lib/light/theme.flow.js +0 -0
  96. package/lib/light/theme.js +410 -0
  97. package/lib/types/theme.colors.flow.js +0 -0
  98. package/lib/types/theme.colors.js +1 -0
  99. package/lib/types/theme.flow.js +0 -0
  100. package/lib/types/theme.js +1 -0
  101. package/package.json +40 -0
@@ -0,0 +1,416 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.typography = exports.space = exports.shadows = exports.radii = exports.lineHeights = exports.fontWeights = exports.fontSizes = exports.fontFamily = exports.easing = exports.duration = exports.default = exports.breakpoints = exports.borders = exports.borderWidths = void 0;
7
+ var _polished = require("polished");
8
+ var _seedsColor = _interopRequireDefault(require("@sproutsocial/seeds-color"));
9
+ var _seedsNetworkcolor = _interopRequireDefault(require("@sproutsocial/seeds-networkcolor"));
10
+ var TYPOGRAPHY = _interopRequireWildcard(require("@sproutsocial/seeds-typography"));
11
+ var _seedsSpace = _interopRequireDefault(require("@sproutsocial/seeds-space"));
12
+ var _seedsDepth = _interopRequireDefault(require("@sproutsocial/seeds-depth"));
13
+ var _seedsMotion = _interopRequireDefault(require("@sproutsocial/seeds-motion"));
14
+ var _seedsBorder = _interopRequireDefault(require("@sproutsocial/seeds-border"));
15
+ var _literalColors = _interopRequireDefault(require("./literal-colors"));
16
+ var _datavizPalette = require("./dataviz-palette");
17
+ var _decorativePalettes = require("./decorative-palettes");
18
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
22
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
23
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
24
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
25
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
26
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /* eslint-disable no-restricted-imports */ // eslint-disable-next-line no-restricted-syntax
27
+ // json-to-scss is not working with the alias right now
28
+ //import {TypeThemeMode} from '@src/types/theme';
29
+ var breakpoints = exports.breakpoints = ["900px", "1200px", "1500px", "1800px"];
30
+ var MODE = "light";
31
+
32
+ // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
33
+
34
+ var colors = _objectSpread(_objectSpread({
35
+ app: {
36
+ background: {
37
+ base: _seedsColor.default.COLOR_NEUTRAL_100
38
+ }
39
+ },
40
+ container: {
41
+ background: {
42
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
43
+ success: _decorativePalettes.green.background,
44
+ warning: _decorativePalettes.yellow.background,
45
+ error: _decorativePalettes.red.background,
46
+ info: _decorativePalettes.blue.background,
47
+ opportunity: _decorativePalettes.purple.background,
48
+ /** @deprecated Use "error" instead of "danger" */
49
+ danger: _decorativePalettes.red.background,
50
+ decorative: {
51
+ green: _decorativePalettes.green.background,
52
+ blue: _decorativePalettes.blue.background,
53
+ purple: _decorativePalettes.purple.background,
54
+ yellow: _decorativePalettes.yellow.background,
55
+ orange: _decorativePalettes.orange.background,
56
+ red: _decorativePalettes.red.background,
57
+ neutral: _decorativePalettes.neutral.background,
58
+ magenta: _decorativePalettes.magenta.background,
59
+ pink: _decorativePalettes.pink.background,
60
+ aqua: _decorativePalettes.aqua.background,
61
+ teal: _decorativePalettes.teal.background
62
+ },
63
+ selected: _seedsColor.default.COLOR_NEUTRAL_800,
64
+ positive_sentiment: _seedsColor.default.COLOR_BLUE_500,
65
+ negative_sentiment: _seedsColor.default.COLOR_RED_500,
66
+ neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_300
67
+ },
68
+ border: {
69
+ base: _seedsColor.default.COLOR_NEUTRAL_200,
70
+ success: _decorativePalettes.green.highlight,
71
+ warning: _decorativePalettes.yellow.highlight,
72
+ error: _decorativePalettes.red.highlight,
73
+ /** @deprecated Use "error" instead of "danger" */
74
+ danger: _decorativePalettes.red.highlight,
75
+ info: _decorativePalettes.blue.highlight,
76
+ opportunity: _decorativePalettes.purple.highlight,
77
+ decorative: {
78
+ green: _decorativePalettes.green.highlight,
79
+ blue: _decorativePalettes.blue.highlight,
80
+ purple: _decorativePalettes.purple.highlight,
81
+ yellow: _decorativePalettes.yellow.highlight,
82
+ orange: _decorativePalettes.orange.highlight,
83
+ red: _decorativePalettes.red.highlight,
84
+ neutral: _decorativePalettes.neutral.highlight,
85
+ magenta: _decorativePalettes.magenta.highlight,
86
+ pink: _decorativePalettes.pink.highlight,
87
+ aqua: _decorativePalettes.aqua.highlight,
88
+ teal: _decorativePalettes.teal.highlight
89
+ },
90
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
91
+ }
92
+ },
93
+ button: {
94
+ primary: {
95
+ background: {
96
+ base: _seedsColor.default.COLOR_BLUE_700,
97
+ hover: _seedsColor.default.COLOR_BLUE_800,
98
+ active: _seedsColor.default.COLOR_BLUE_900
99
+ },
100
+ border: {
101
+ base: "transparent"
102
+ },
103
+ text: {
104
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
105
+ hover: _seedsColor.default.COLOR_NEUTRAL_0
106
+ }
107
+ },
108
+ secondary: {
109
+ background: {
110
+ base: "transparent",
111
+ hover: _seedsColor.default.COLOR_NEUTRAL_800,
112
+ active: _seedsColor.default.COLOR_NEUTRAL_900
113
+ },
114
+ border: {
115
+ base: _seedsColor.default.COLOR_NEUTRAL_800
116
+ },
117
+ text: {
118
+ base: _seedsColor.default.COLOR_NEUTRAL_800,
119
+ hover: _seedsColor.default.COLOR_NEUTRAL_0
120
+ }
121
+ },
122
+ pill: {
123
+ background: {
124
+ base: "transparent",
125
+ hover: _seedsColor.default.COLOR_NEUTRAL_100,
126
+ active: _seedsColor.default.COLOR_NEUTRAL_200
127
+ },
128
+ border: {
129
+ base: "transparent",
130
+ hover: _seedsColor.default.COLOR_NEUTRAL_800
131
+ },
132
+ text: {
133
+ base: _seedsColor.default.COLOR_NEUTRAL_800,
134
+ hover: _seedsColor.default.COLOR_NEUTRAL_900
135
+ }
136
+ },
137
+ destructive: {
138
+ background: {
139
+ base: _seedsColor.default.COLOR_RED_800,
140
+ hover: _seedsColor.default.COLOR_RED_900,
141
+ active: _seedsColor.default.COLOR_RED_1000
142
+ },
143
+ border: {
144
+ base: "transparent"
145
+ },
146
+ text: {
147
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
148
+ hover: _seedsColor.default.COLOR_NEUTRAL_0
149
+ }
150
+ },
151
+ placeholder: {
152
+ background: {
153
+ base: "transparent",
154
+ hover: _seedsColor.default.COLOR_NEUTRAL_0,
155
+ active: _seedsColor.default.COLOR_NEUTRAL_0
156
+ },
157
+ border: {
158
+ base: _seedsColor.default.COLOR_NEUTRAL_500
159
+ },
160
+ text: {
161
+ base: _seedsColor.default.COLOR_BLUE_700,
162
+ hover: _seedsColor.default.COLOR_BLUE_800
163
+ }
164
+ },
165
+ unstyled: {
166
+ background: {
167
+ base: "transparent"
168
+ },
169
+ border: {
170
+ base: "transparent"
171
+ },
172
+ text: {
173
+ base: _seedsColor.default.COLOR_NEUTRAL_700,
174
+ hover: _seedsColor.default.COLOR_NEUTRAL_900
175
+ }
176
+ }
177
+ },
178
+ link: {
179
+ base: _seedsColor.default.COLOR_BLUE_800,
180
+ hover: _seedsColor.default.COLOR_BLUE_900
181
+ },
182
+ text: {
183
+ headline: _seedsColor.default.COLOR_NEUTRAL_900,
184
+ subtext: _seedsColor.default.COLOR_NEUTRAL_700,
185
+ body: _seedsColor.default.COLOR_NEUTRAL_800,
186
+ inverse: _seedsColor.default.COLOR_NEUTRAL_0,
187
+ error: _decorativePalettes.red.foreground,
188
+ background: {
189
+ highlight: _seedsColor.default.COLOR_YELLOW_200,
190
+ selection: _seedsColor.default.COLOR_BLUE_300
191
+ },
192
+ decorative: {
193
+ green: _decorativePalettes.green.foreground,
194
+ blue: _decorativePalettes.blue.foreground,
195
+ purple: _decorativePalettes.purple.foreground,
196
+ yellow: _decorativePalettes.yellow.foreground,
197
+ orange: _decorativePalettes.orange.foreground,
198
+ red: _decorativePalettes.red.foreground,
199
+ neutral: _decorativePalettes.neutral.foreground,
200
+ magenta: _decorativePalettes.magenta.foreground,
201
+ pink: _decorativePalettes.pink.foreground,
202
+ aqua: _decorativePalettes.aqua.foreground,
203
+ teal: _decorativePalettes.teal.foreground
204
+ }
205
+ },
206
+ icon: {
207
+ base: _seedsColor.default.COLOR_NEUTRAL_800,
208
+ inverse: _seedsColor.default.COLOR_NEUTRAL_0,
209
+ success: _decorativePalettes.green.foreground,
210
+ warning: _decorativePalettes.yellow.foreground,
211
+ error: _decorativePalettes.red.foreground,
212
+ /** @deprecated Use "error" instead of "danger" */
213
+ danger: _decorativePalettes.red.foreground,
214
+ info: _decorativePalettes.blue.foreground,
215
+ opportunity: _decorativePalettes.purple.foreground,
216
+ applied: _seedsColor.default.COLOR_BLUE_700,
217
+ positive_sentiment: _seedsColor.default.COLOR_BLUE_600,
218
+ negative_sentiment: _seedsColor.default.COLOR_RED_600,
219
+ neutral_sentiment: _seedsColor.default.COLOR_NEUTRAL_500
220
+ },
221
+ form: {
222
+ background: {
223
+ base: _seedsColor.default.COLOR_NEUTRAL_0,
224
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
225
+ },
226
+ border: {
227
+ base: _seedsColor.default.COLOR_NEUTRAL_600,
228
+ error: _decorativePalettes.red.highlight,
229
+ warning: _decorativePalettes.yellow.highlight,
230
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
231
+ },
232
+ placeholder: {
233
+ base: _seedsColor.default.COLOR_NEUTRAL_700
234
+ }
235
+ },
236
+ listItem: {
237
+ background: {
238
+ base: "transparent",
239
+ hover: _seedsColor.default.COLOR_NEUTRAL_100,
240
+ selected: _seedsColor.default.COLOR_NEUTRAL_800
241
+ }
242
+ },
243
+ overlay: {
244
+ background: {
245
+ base: (0, _polished.transparentize)(0.44, _seedsColor.default.COLOR_NEUTRAL_1000)
246
+ },
247
+ text: {
248
+ base: _seedsColor.default.COLOR_NEUTRAL_0
249
+ },
250
+ icon: {
251
+ base: _seedsColor.default.COLOR_NEUTRAL_0
252
+ }
253
+ },
254
+ elevation: {
255
+ base: "".concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D")
256
+ },
257
+ illustration: {
258
+ fill: _seedsColor.default.COLOR_BLUE_400,
259
+ stroke: _decorativePalettes.neutral.foreground
260
+ },
261
+ network: {
262
+ twitter: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER,
263
+ twitter_like: _seedsNetworkcolor.default.NETWORK_COLOR_TWITTER_LIKE,
264
+ facebook: _seedsNetworkcolor.default.NETWORK_COLOR_FACEBOOK,
265
+ facebook_audience_network: _seedsNetworkcolor.default.NETWORK_COLOR_FACEBOOK_AUDIENCE_NETWORK,
266
+ linkedin: _seedsNetworkcolor.default.NETWORK_COLOR_LINKEDIN,
267
+ instagram: _seedsNetworkcolor.default.NETWORK_COLOR_INSTAGRAM,
268
+ feedly: _seedsNetworkcolor.default.NETWORK_COLOR_FEEDLY,
269
+ analytics: _seedsNetworkcolor.default.NETWORK_COLOR_ANALYTICS,
270
+ youtube: _seedsNetworkcolor.default.NETWORK_COLOR_YOUTUBE,
271
+ messenger: _seedsNetworkcolor.default.NETWORK_COLOR_MESSENGER,
272
+ snapchat: _seedsNetworkcolor.default.NETWORK_COLOR_SNAPCHAT,
273
+ pinterest: _seedsNetworkcolor.default.NETWORK_COLOR_PINTEREST,
274
+ tumblr: _seedsNetworkcolor.default.NETWORK_COLOR_TUMBLR,
275
+ reddit: _seedsNetworkcolor.default.NETWORK_COLOR_REDDIT,
276
+ tripadvisor: _seedsNetworkcolor.default.NETWORK_COLOR_TRIPADVISOR,
277
+ glassdoor: _seedsNetworkcolor.default.NETWORK_COLOR_GLASSDOOR,
278
+ google_my_business: _seedsNetworkcolor.default.NETWORK_COLOR_GOOGLE_MY_BUSINESS,
279
+ google_business_messages: _seedsNetworkcolor.default.NETWORK_COLOR_GOOGLE_BUSINESS_MESSAGES,
280
+ google_play_store: _seedsNetworkcolor.default.NETWORK_COLOR_GOOGLE_PLAY_STORE,
281
+ apple_app_store: _seedsNetworkcolor.default.NETWORK_COLOR_APPLE_APP_STORE,
282
+ salesforce: _seedsNetworkcolor.default.NETWORK_COLOR_SALESFORCE,
283
+ zendesk: _seedsNetworkcolor.default.NETWORK_COLOR_ZENDESK,
284
+ hubspot: _seedsNetworkcolor.default.NETWORK_COLOR_HUBSPOT,
285
+ microsoft_dynamics: _seedsNetworkcolor.default.NETWORK_COLOR_MICROSOFT_DYNAMICS,
286
+ yelp: _seedsNetworkcolor.default.NETWORK_COLOR_YELP,
287
+ whatsapp: _seedsNetworkcolor.default.NETWORK_COLOR_WHATSAPP,
288
+ tiktok: _seedsNetworkcolor.default.NETWORK_COLOR_TIKTOK,
289
+ threads: _seedsNetworkcolor.default.NETWORK_COLOR_THREADS,
290
+ trustpilot: _seedsNetworkcolor.default.NETWORK_COLOR_TRUSTPILOT
291
+ },
292
+ dataviz: {
293
+ map: _datavizPalette.datavizPalette.DATAVIZ_COLORS_MAP,
294
+ list: _datavizPalette.datavizPalette.DATAVIZ_COLORS_LIST
295
+ }
296
+ }, _literalColors.default), _datavizPalette.datavizPalette);
297
+ var typography = exports.typography = {
298
+ 100: TYPOGRAPHY.TYPOGRAPHY_SIZE_100,
299
+ 200: TYPOGRAPHY.TYPOGRAPHY_SIZE_200,
300
+ 300: TYPOGRAPHY.TYPOGRAPHY_SIZE_300,
301
+ 400: TYPOGRAPHY.TYPOGRAPHY_SIZE_400,
302
+ 500: TYPOGRAPHY.TYPOGRAPHY_SIZE_500,
303
+ 600: TYPOGRAPHY.TYPOGRAPHY_SIZE_600,
304
+ 700: TYPOGRAPHY.TYPOGRAPHY_SIZE_700,
305
+ 800: TYPOGRAPHY.TYPOGRAPHY_SIZE_800,
306
+ 900: TYPOGRAPHY.TYPOGRAPHY_SIZE_900,
307
+ 1000: TYPOGRAPHY.TYPOGRAPHY_SIZE_1000,
308
+ 1100: TYPOGRAPHY.TYPOGRAPHY_SIZE_1100,
309
+ 1200: TYPOGRAPHY.TYPOGRAPHY_SIZE_1200
310
+ };
311
+ var fontSizes = exports.fontSizes = {
312
+ 100: TYPOGRAPHY.TYPOGRAPHY_SIZE_100.fontSize,
313
+ 200: TYPOGRAPHY.TYPOGRAPHY_SIZE_200.fontSize,
314
+ 300: TYPOGRAPHY.TYPOGRAPHY_SIZE_300.fontSize,
315
+ 400: TYPOGRAPHY.TYPOGRAPHY_SIZE_400.fontSize,
316
+ 500: TYPOGRAPHY.TYPOGRAPHY_SIZE_500.fontSize,
317
+ 600: TYPOGRAPHY.TYPOGRAPHY_SIZE_600.fontSize,
318
+ 700: TYPOGRAPHY.TYPOGRAPHY_SIZE_700.fontSize,
319
+ 800: TYPOGRAPHY.TYPOGRAPHY_SIZE_800.fontSize,
320
+ 900: TYPOGRAPHY.TYPOGRAPHY_SIZE_900.fontSize,
321
+ 1000: TYPOGRAPHY.TYPOGRAPHY_SIZE_1000.fontSize,
322
+ 1100: TYPOGRAPHY.TYPOGRAPHY_SIZE_1100.fontSize,
323
+ 1200: TYPOGRAPHY.TYPOGRAPHY_SIZE_1200.fontSize
324
+ };
325
+ var lineHeights = exports.lineHeights = {
326
+ 100: TYPOGRAPHY.TYPOGRAPHY_SIZE_100.lineHeight,
327
+ 200: TYPOGRAPHY.TYPOGRAPHY_SIZE_200.lineHeight,
328
+ 300: TYPOGRAPHY.TYPOGRAPHY_SIZE_300.lineHeight,
329
+ 400: TYPOGRAPHY.TYPOGRAPHY_SIZE_400.lineHeight,
330
+ 500: TYPOGRAPHY.TYPOGRAPHY_SIZE_500.lineHeight,
331
+ 600: TYPOGRAPHY.TYPOGRAPHY_SIZE_600.lineHeight,
332
+ 700: TYPOGRAPHY.TYPOGRAPHY_SIZE_700.lineHeight,
333
+ 800: TYPOGRAPHY.TYPOGRAPHY_SIZE_800.lineHeight,
334
+ 900: TYPOGRAPHY.TYPOGRAPHY_SIZE_900.lineHeight,
335
+ 1000: TYPOGRAPHY.TYPOGRAPHY_SIZE_1000.lineHeight,
336
+ 1100: TYPOGRAPHY.TYPOGRAPHY_SIZE_1100.lineHeight,
337
+ 1200: TYPOGRAPHY.TYPOGRAPHY_SIZE_1200.lineHeight
338
+ };
339
+ var fontFamily = exports.fontFamily = TYPOGRAPHY.TYPOGRAPHY_FAMILY;
340
+ var fontWeights = exports.fontWeights = {
341
+ normal: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_NORMAL,
342
+ semibold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_SEMIBOLD,
343
+ bold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_BOLD,
344
+ extrabold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_EXTRA_BOLD
345
+ };
346
+ var space = exports.space = {
347
+ 0: _seedsSpace.default.SPACE_SIZE_0,
348
+ 100: _seedsSpace.default.SPACE_SIZE_100,
349
+ 200: _seedsSpace.default.SPACE_SIZE_200,
350
+ 300: _seedsSpace.default.SPACE_SIZE_300,
351
+ 350: _seedsSpace.default.SPACE_SIZE_350,
352
+ 400: _seedsSpace.default.SPACE_SIZE_400,
353
+ 450: _seedsSpace.default.SPACE_SIZE_450,
354
+ 500: _seedsSpace.default.SPACE_SIZE_500,
355
+ 600: _seedsSpace.default.SPACE_SIZE_600
356
+ };
357
+ var radii = exports.radii = {
358
+ 400: _seedsBorder.default.BORDER_RADIUS_400,
359
+ 500: _seedsBorder.default.BORDER_RADIUS_500,
360
+ 600: _seedsBorder.default.BORDER_RADIUS_600,
361
+ 1000: _seedsBorder.default.BORDER_RADIUS_1000,
362
+ inner: _seedsBorder.default.BORDER_RADIUS_500,
363
+ outer: _seedsBorder.default.BORDER_RADIUS_600,
364
+ pill: _seedsBorder.default.BORDER_RADIUS_1000
365
+ };
366
+ var borders = exports.borders = {
367
+ 500: "".concat(_seedsBorder.default.BORDER_WIDTH_500, " solid")
368
+ };
369
+ var borderWidths = exports.borderWidths = {
370
+ 500: _seedsBorder.default.BORDER_WIDTH_500
371
+ };
372
+ var shadows = exports.shadows = {
373
+ low: "".concat(_seedsDepth.default.ELEVATION_LEVEL_100, " ").concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D"),
374
+ medium: "".concat(_seedsDepth.default.ELEVATION_LEVEL_300, " ").concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D"),
375
+ high: "".concat(_seedsDepth.default.ELEVATION_LEVEL_400, " ").concat(_seedsColor.default.COLOR_NEUTRAL_900, "3D")
376
+ };
377
+ var easing = exports.easing = {
378
+ ease_in: _seedsMotion.default.MOTION_EASE_IN,
379
+ ease_out: _seedsMotion.default.MOTION_EASE_OUT,
380
+ ease_inout: _seedsMotion.default.MOTION_EASE_INOUT
381
+ };
382
+ var duration = exports.duration = {
383
+ fast: _seedsMotion.default.MOTION_DURATION_FAST,
384
+ medium: _seedsMotion.default.MOTION_DURATION_MEDIUM,
385
+ slow: _seedsMotion.default.MOTION_DURATION_SLOW
386
+ };
387
+ var theme = {
388
+ breakpoints: breakpoints,
389
+ colors: colors,
390
+ typography: _objectSpread(_objectSpread({}, typography), {}, {
391
+ typography: typography
392
+ }),
393
+ fontSizes: fontSizes,
394
+ lineHeights: lineHeights,
395
+ fontFamily: fontFamily,
396
+ fontWeights: fontWeights,
397
+ space: _objectSpread(_objectSpread({}, space), {}, {
398
+ space: space,
399
+ "-space": Object.keys(space).reduce(function (negativeSpace, key) {
400
+ // The values are strings (eg 24px) so we concatenate a negative sign
401
+ // @ts-ignore: no explicit any
402
+ negativeSpace[key] = "-".concat(space[key]);
403
+ return negativeSpace;
404
+ }, {})
405
+ }),
406
+ radii: _objectSpread(_objectSpread({}, radii), {}, {
407
+ radii: radii
408
+ }),
409
+ borders: borders,
410
+ borderWidths: borderWidths,
411
+ shadows: shadows,
412
+ easing: easing,
413
+ duration: duration,
414
+ mode: MODE
415
+ };
416
+ var _default = exports.default = theme;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -0,0 +1,119 @@
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
+ // theme.scss is auto-generated based on the JS theme file, ensuring our SCSS theme variables stay in sync.
6
+ // _themed.scss will be copied to each theme folder in /dist, where the theme.scss file for that theme will be.
7
+ @import "./theme.scss";
8
+
9
+ // In the JS theme file, the theme object is exported as "default" (i.e., using "export default"),
10
+ // so we need to map-get "default" to access it.
11
+ $theme: map-get($theme, "default");
12
+
13
+ // FUNCTIONS
14
+ // This function will allow you to get any value from the theme.
15
+ // @param {string} $key - the period-separated path to the value in the theme object. e.g., "colors.text.body"
16
+ @function t($key) {
17
+ $keys: _str-split($key, ".");
18
+ @return _map-deep-get($theme, $keys);
19
+ }
20
+
21
+ // The rest of the functions are convenience methods to get theme values for subsets of the theme.
22
+ // @param {string} $key - the period-separated path to the value in the theme object, with "colors." omitted. e.g., "text.body"
23
+ @function colors($key) {
24
+ $keys: _str-split($key, ".");
25
+ @return _map-deep-get($theme, join("colors", $keys));
26
+ }
27
+
28
+ // @param {string} $key - the period-separated path to the value in the theme object, with "typography." omitted. e.g., "100.fontSize"
29
+ @function typography($key) {
30
+ $keys: _str-split($key, ".");
31
+ @return _map-deep-get($theme, join("typography", $keys));
32
+ }
33
+
34
+ // @param {string} $key - the period-separated path to the value in the theme object, with "fontWeights." omitted. e.g., "normal"
35
+ @function fontWeights($key) {
36
+ $keys: _str-split($key, ".");
37
+ @return _map-deep-get($theme, join("fontWeights", $keys));
38
+ }
39
+
40
+ // @param {string} $key - the period-separated path to the value in the theme object, with "space." omitted. e.g., "100"
41
+ @function space($key) {
42
+ $keys: _str-split($key, ".");
43
+ @return _map-deep-get($theme, join("space", $keys));
44
+ }
45
+
46
+ // @param {string} $key - the period-separated path to the value in the theme object, with "radii." omitted. e.g., "inner"
47
+ @function radii($key) {
48
+ $keys: _str-split($key, ".");
49
+ @return _map-deep-get($theme, join("radii", $keys));
50
+ }
51
+
52
+ // @param {string} $key - the period-separated path to the value in the theme object, with "borders." omitted. e.g., "500"
53
+ @function borders($key) {
54
+ $keys: _str-split($key, ".");
55
+ @return _map-deep-get($theme, join("borders", $keys));
56
+ }
57
+
58
+ // @param {string} $key - the period-separated path to the value in the theme object, with "borderWidths." omitted. e.g., "500"
59
+ @function borderWidths($key) {
60
+ $keys: _str-split($key, ".");
61
+ @return _map-deep-get($theme, join("borderWidths", $keys));
62
+ }
63
+
64
+ // @param {string} $key - the period-separated path to the value in the theme object, with "shadows." omitted. e.g., "low"
65
+ @function shadows($key) {
66
+ $keys: _str-split($key, ".");
67
+ @return _map-deep-get($theme, join("shadows", $keys));
68
+ }
69
+
70
+ // @param {string} $key - the period-separated path to the value in the theme object, with "easing." omitted. e.g., "ease_in"
71
+ @function easing($key) {
72
+ $keys: _str-split($key, ".");
73
+ @return _map-deep-get($theme, join("easing", $keys));
74
+ }
75
+
76
+ // @param {string} $key - the period-separated path to the value in the theme object, with "duration." omitted. e.g., "fast"
77
+ @function duration($key) {
78
+ $keys: _str-split($key, ".");
79
+ @return _map-deep-get($theme, join("duration", $keys));
80
+ }
81
+
82
+ // UTILITIES
83
+ // Helper functions that power the functions above. Not relevant to the theme.
84
+ // If you import this file with @use, these functions will be excluded because they are private.
85
+
86
+ // Via https://stackoverflow.com/a/42295154
87
+ // Used to split period-separated object keys, e.g. "colors.text.body" => ["colors", "text", "body"]
88
+ // Only works with a single-character separator.
89
+ @function _str-split($string, $separator) {
90
+ // empty array/list
91
+ $split-arr: ();
92
+ // first index of separator in string
93
+ $index: str-index($string, $separator);
94
+ // loop through string
95
+ @while $index != null {
96
+ // get the substring from the first character to the separator
97
+ $item: str-slice($string, 1, $index - 1);
98
+ // push item to array
99
+ $split-arr: append($split-arr, $item);
100
+ // remove item and separator from string
101
+ $string: str-slice($string, $index + 1);
102
+ // find new index of separator
103
+ $index: str-index($string, $separator);
104
+ }
105
+ // add the remaining string to list (the last item)
106
+ $split-arr: append($split-arr, $string);
107
+
108
+ @return $split-arr;
109
+ }
110
+
111
+ // Adapted from https://css-tricks.com/snippets/sass/deep-getset-maps/
112
+ // Iterates over a list of keys to read multi-level maps.
113
+ // e.g., _map-deep-get((colors: (text: (body: "#364141"))), ["colors", "text", "body"]) => "#364141"
114
+ @function _map-deep-get($map, $keys) {
115
+ @each $key in $keys {
116
+ $map: map-get($map, $key);
117
+ }
118
+ @return $map;
119
+ }