@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,410 @@
1
+ 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); }
2
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ 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); }
7
+ /* eslint-disable no-restricted-imports */
8
+ import { transparentize } from "polished";
9
+ import COLORS from "@sproutsocial/seeds-color";
10
+ import NETWORKCOLORS from "@sproutsocial/seeds-networkcolor";
11
+ // eslint-disable-next-line no-restricted-syntax
12
+ import * as TYPOGRAPHY from "@sproutsocial/seeds-typography";
13
+ import SPACE from "@sproutsocial/seeds-space";
14
+ import DEPTH from "@sproutsocial/seeds-depth";
15
+ import MOTION from "@sproutsocial/seeds-motion";
16
+ import BORDER from "@sproutsocial/seeds-border";
17
+ // json-to-scss is not working with the alias right now
18
+ //import {TypeThemeMode} from '@src/types/theme';
19
+
20
+ import literalColors from "./literal-colors";
21
+ import { datavizPalette } from "./dataviz-palette";
22
+ import { green, blue, purple, yellow, orange, red, neutral, magenta, pink, aqua, teal } from "./decorative-palettes";
23
+ export var breakpoints = ["900px", "1200px", "1500px", "1800px"];
24
+ var MODE = "light";
25
+
26
+ // If you are making changes to the colors in the theme file tag the Design Systems team on your PR! Thank you!!
27
+
28
+ var colors = _objectSpread(_objectSpread({
29
+ app: {
30
+ background: {
31
+ base: COLORS.COLOR_NEUTRAL_100
32
+ }
33
+ },
34
+ container: {
35
+ background: {
36
+ base: COLORS.COLOR_NEUTRAL_0,
37
+ success: green.background,
38
+ warning: yellow.background,
39
+ error: red.background,
40
+ info: blue.background,
41
+ opportunity: purple.background,
42
+ /** @deprecated Use "error" instead of "danger" */
43
+ danger: red.background,
44
+ decorative: {
45
+ green: green.background,
46
+ blue: blue.background,
47
+ purple: purple.background,
48
+ yellow: yellow.background,
49
+ orange: orange.background,
50
+ red: red.background,
51
+ neutral: neutral.background,
52
+ magenta: magenta.background,
53
+ pink: pink.background,
54
+ aqua: aqua.background,
55
+ teal: teal.background
56
+ },
57
+ selected: COLORS.COLOR_NEUTRAL_800,
58
+ positive_sentiment: COLORS.COLOR_BLUE_500,
59
+ negative_sentiment: COLORS.COLOR_RED_500,
60
+ neutral_sentiment: COLORS.COLOR_NEUTRAL_300
61
+ },
62
+ border: {
63
+ base: COLORS.COLOR_NEUTRAL_200,
64
+ success: green.highlight,
65
+ warning: yellow.highlight,
66
+ error: red.highlight,
67
+ /** @deprecated Use "error" instead of "danger" */
68
+ danger: red.highlight,
69
+ info: blue.highlight,
70
+ opportunity: purple.highlight,
71
+ decorative: {
72
+ green: green.highlight,
73
+ blue: blue.highlight,
74
+ purple: purple.highlight,
75
+ yellow: yellow.highlight,
76
+ orange: orange.highlight,
77
+ red: red.highlight,
78
+ neutral: neutral.highlight,
79
+ magenta: magenta.highlight,
80
+ pink: pink.highlight,
81
+ aqua: aqua.highlight,
82
+ teal: teal.highlight
83
+ },
84
+ selected: COLORS.COLOR_NEUTRAL_800
85
+ }
86
+ },
87
+ button: {
88
+ primary: {
89
+ background: {
90
+ base: COLORS.COLOR_BLUE_700,
91
+ hover: COLORS.COLOR_BLUE_800,
92
+ active: COLORS.COLOR_BLUE_900
93
+ },
94
+ border: {
95
+ base: "transparent"
96
+ },
97
+ text: {
98
+ base: COLORS.COLOR_NEUTRAL_0,
99
+ hover: COLORS.COLOR_NEUTRAL_0
100
+ }
101
+ },
102
+ secondary: {
103
+ background: {
104
+ base: "transparent",
105
+ hover: COLORS.COLOR_NEUTRAL_800,
106
+ active: COLORS.COLOR_NEUTRAL_900
107
+ },
108
+ border: {
109
+ base: COLORS.COLOR_NEUTRAL_800
110
+ },
111
+ text: {
112
+ base: COLORS.COLOR_NEUTRAL_800,
113
+ hover: COLORS.COLOR_NEUTRAL_0
114
+ }
115
+ },
116
+ pill: {
117
+ background: {
118
+ base: "transparent",
119
+ hover: COLORS.COLOR_NEUTRAL_100,
120
+ active: COLORS.COLOR_NEUTRAL_200
121
+ },
122
+ border: {
123
+ base: "transparent",
124
+ hover: COLORS.COLOR_NEUTRAL_800
125
+ },
126
+ text: {
127
+ base: COLORS.COLOR_NEUTRAL_800,
128
+ hover: COLORS.COLOR_NEUTRAL_900
129
+ }
130
+ },
131
+ destructive: {
132
+ background: {
133
+ base: COLORS.COLOR_RED_800,
134
+ hover: COLORS.COLOR_RED_900,
135
+ active: COLORS.COLOR_RED_1000
136
+ },
137
+ border: {
138
+ base: "transparent"
139
+ },
140
+ text: {
141
+ base: COLORS.COLOR_NEUTRAL_0,
142
+ hover: COLORS.COLOR_NEUTRAL_0
143
+ }
144
+ },
145
+ placeholder: {
146
+ background: {
147
+ base: "transparent",
148
+ hover: COLORS.COLOR_NEUTRAL_0,
149
+ active: COLORS.COLOR_NEUTRAL_0
150
+ },
151
+ border: {
152
+ base: COLORS.COLOR_NEUTRAL_500
153
+ },
154
+ text: {
155
+ base: COLORS.COLOR_BLUE_700,
156
+ hover: COLORS.COLOR_BLUE_800
157
+ }
158
+ },
159
+ unstyled: {
160
+ background: {
161
+ base: "transparent"
162
+ },
163
+ border: {
164
+ base: "transparent"
165
+ },
166
+ text: {
167
+ base: COLORS.COLOR_NEUTRAL_700,
168
+ hover: COLORS.COLOR_NEUTRAL_900
169
+ }
170
+ }
171
+ },
172
+ link: {
173
+ base: COLORS.COLOR_BLUE_800,
174
+ hover: COLORS.COLOR_BLUE_900
175
+ },
176
+ text: {
177
+ headline: COLORS.COLOR_NEUTRAL_900,
178
+ subtext: COLORS.COLOR_NEUTRAL_700,
179
+ body: COLORS.COLOR_NEUTRAL_800,
180
+ inverse: COLORS.COLOR_NEUTRAL_0,
181
+ error: red.foreground,
182
+ background: {
183
+ highlight: COLORS.COLOR_YELLOW_200,
184
+ selection: COLORS.COLOR_BLUE_300
185
+ },
186
+ decorative: {
187
+ green: green.foreground,
188
+ blue: blue.foreground,
189
+ purple: purple.foreground,
190
+ yellow: yellow.foreground,
191
+ orange: orange.foreground,
192
+ red: red.foreground,
193
+ neutral: neutral.foreground,
194
+ magenta: magenta.foreground,
195
+ pink: pink.foreground,
196
+ aqua: aqua.foreground,
197
+ teal: teal.foreground
198
+ }
199
+ },
200
+ icon: {
201
+ base: COLORS.COLOR_NEUTRAL_800,
202
+ inverse: COLORS.COLOR_NEUTRAL_0,
203
+ success: green.foreground,
204
+ warning: yellow.foreground,
205
+ error: red.foreground,
206
+ /** @deprecated Use "error" instead of "danger" */
207
+ danger: red.foreground,
208
+ info: blue.foreground,
209
+ opportunity: purple.foreground,
210
+ applied: COLORS.COLOR_BLUE_700,
211
+ positive_sentiment: COLORS.COLOR_BLUE_600,
212
+ negative_sentiment: COLORS.COLOR_RED_600,
213
+ neutral_sentiment: COLORS.COLOR_NEUTRAL_500
214
+ },
215
+ form: {
216
+ background: {
217
+ base: COLORS.COLOR_NEUTRAL_0,
218
+ selected: COLORS.COLOR_NEUTRAL_800
219
+ },
220
+ border: {
221
+ base: COLORS.COLOR_NEUTRAL_600,
222
+ error: red.highlight,
223
+ warning: yellow.highlight,
224
+ selected: COLORS.COLOR_NEUTRAL_800
225
+ },
226
+ placeholder: {
227
+ base: COLORS.COLOR_NEUTRAL_700
228
+ }
229
+ },
230
+ listItem: {
231
+ background: {
232
+ base: "transparent",
233
+ hover: COLORS.COLOR_NEUTRAL_100,
234
+ selected: COLORS.COLOR_NEUTRAL_800
235
+ }
236
+ },
237
+ overlay: {
238
+ background: {
239
+ base: transparentize(0.44, COLORS.COLOR_NEUTRAL_1000)
240
+ },
241
+ text: {
242
+ base: COLORS.COLOR_NEUTRAL_0
243
+ },
244
+ icon: {
245
+ base: COLORS.COLOR_NEUTRAL_0
246
+ }
247
+ },
248
+ elevation: {
249
+ base: "".concat(COLORS.COLOR_NEUTRAL_900, "3D")
250
+ },
251
+ illustration: {
252
+ fill: COLORS.COLOR_BLUE_400,
253
+ stroke: neutral.foreground
254
+ },
255
+ network: {
256
+ twitter: NETWORKCOLORS.NETWORK_COLOR_TWITTER,
257
+ twitter_like: NETWORKCOLORS.NETWORK_COLOR_TWITTER_LIKE,
258
+ facebook: NETWORKCOLORS.NETWORK_COLOR_FACEBOOK,
259
+ facebook_audience_network: NETWORKCOLORS.NETWORK_COLOR_FACEBOOK_AUDIENCE_NETWORK,
260
+ linkedin: NETWORKCOLORS.NETWORK_COLOR_LINKEDIN,
261
+ instagram: NETWORKCOLORS.NETWORK_COLOR_INSTAGRAM,
262
+ feedly: NETWORKCOLORS.NETWORK_COLOR_FEEDLY,
263
+ analytics: NETWORKCOLORS.NETWORK_COLOR_ANALYTICS,
264
+ youtube: NETWORKCOLORS.NETWORK_COLOR_YOUTUBE,
265
+ messenger: NETWORKCOLORS.NETWORK_COLOR_MESSENGER,
266
+ snapchat: NETWORKCOLORS.NETWORK_COLOR_SNAPCHAT,
267
+ pinterest: NETWORKCOLORS.NETWORK_COLOR_PINTEREST,
268
+ tumblr: NETWORKCOLORS.NETWORK_COLOR_TUMBLR,
269
+ reddit: NETWORKCOLORS.NETWORK_COLOR_REDDIT,
270
+ tripadvisor: NETWORKCOLORS.NETWORK_COLOR_TRIPADVISOR,
271
+ glassdoor: NETWORKCOLORS.NETWORK_COLOR_GLASSDOOR,
272
+ google_my_business: NETWORKCOLORS.NETWORK_COLOR_GOOGLE_MY_BUSINESS,
273
+ google_business_messages: NETWORKCOLORS.NETWORK_COLOR_GOOGLE_BUSINESS_MESSAGES,
274
+ google_play_store: NETWORKCOLORS.NETWORK_COLOR_GOOGLE_PLAY_STORE,
275
+ apple_app_store: NETWORKCOLORS.NETWORK_COLOR_APPLE_APP_STORE,
276
+ salesforce: NETWORKCOLORS.NETWORK_COLOR_SALESFORCE,
277
+ zendesk: NETWORKCOLORS.NETWORK_COLOR_ZENDESK,
278
+ hubspot: NETWORKCOLORS.NETWORK_COLOR_HUBSPOT,
279
+ microsoft_dynamics: NETWORKCOLORS.NETWORK_COLOR_MICROSOFT_DYNAMICS,
280
+ yelp: NETWORKCOLORS.NETWORK_COLOR_YELP,
281
+ whatsapp: NETWORKCOLORS.NETWORK_COLOR_WHATSAPP,
282
+ tiktok: NETWORKCOLORS.NETWORK_COLOR_TIKTOK,
283
+ threads: NETWORKCOLORS.NETWORK_COLOR_THREADS,
284
+ trustpilot: NETWORKCOLORS.NETWORK_COLOR_TRUSTPILOT
285
+ },
286
+ dataviz: {
287
+ map: datavizPalette.DATAVIZ_COLORS_MAP,
288
+ list: datavizPalette.DATAVIZ_COLORS_LIST
289
+ }
290
+ }, literalColors), datavizPalette);
291
+ export var typography = {
292
+ 100: TYPOGRAPHY.TYPOGRAPHY_SIZE_100,
293
+ 200: TYPOGRAPHY.TYPOGRAPHY_SIZE_200,
294
+ 300: TYPOGRAPHY.TYPOGRAPHY_SIZE_300,
295
+ 400: TYPOGRAPHY.TYPOGRAPHY_SIZE_400,
296
+ 500: TYPOGRAPHY.TYPOGRAPHY_SIZE_500,
297
+ 600: TYPOGRAPHY.TYPOGRAPHY_SIZE_600,
298
+ 700: TYPOGRAPHY.TYPOGRAPHY_SIZE_700,
299
+ 800: TYPOGRAPHY.TYPOGRAPHY_SIZE_800,
300
+ 900: TYPOGRAPHY.TYPOGRAPHY_SIZE_900,
301
+ 1000: TYPOGRAPHY.TYPOGRAPHY_SIZE_1000,
302
+ 1100: TYPOGRAPHY.TYPOGRAPHY_SIZE_1100,
303
+ 1200: TYPOGRAPHY.TYPOGRAPHY_SIZE_1200
304
+ };
305
+ export var fontSizes = {
306
+ 100: TYPOGRAPHY.TYPOGRAPHY_SIZE_100.fontSize,
307
+ 200: TYPOGRAPHY.TYPOGRAPHY_SIZE_200.fontSize,
308
+ 300: TYPOGRAPHY.TYPOGRAPHY_SIZE_300.fontSize,
309
+ 400: TYPOGRAPHY.TYPOGRAPHY_SIZE_400.fontSize,
310
+ 500: TYPOGRAPHY.TYPOGRAPHY_SIZE_500.fontSize,
311
+ 600: TYPOGRAPHY.TYPOGRAPHY_SIZE_600.fontSize,
312
+ 700: TYPOGRAPHY.TYPOGRAPHY_SIZE_700.fontSize,
313
+ 800: TYPOGRAPHY.TYPOGRAPHY_SIZE_800.fontSize,
314
+ 900: TYPOGRAPHY.TYPOGRAPHY_SIZE_900.fontSize,
315
+ 1000: TYPOGRAPHY.TYPOGRAPHY_SIZE_1000.fontSize,
316
+ 1100: TYPOGRAPHY.TYPOGRAPHY_SIZE_1100.fontSize,
317
+ 1200: TYPOGRAPHY.TYPOGRAPHY_SIZE_1200.fontSize
318
+ };
319
+ export var lineHeights = {
320
+ 100: TYPOGRAPHY.TYPOGRAPHY_SIZE_100.lineHeight,
321
+ 200: TYPOGRAPHY.TYPOGRAPHY_SIZE_200.lineHeight,
322
+ 300: TYPOGRAPHY.TYPOGRAPHY_SIZE_300.lineHeight,
323
+ 400: TYPOGRAPHY.TYPOGRAPHY_SIZE_400.lineHeight,
324
+ 500: TYPOGRAPHY.TYPOGRAPHY_SIZE_500.lineHeight,
325
+ 600: TYPOGRAPHY.TYPOGRAPHY_SIZE_600.lineHeight,
326
+ 700: TYPOGRAPHY.TYPOGRAPHY_SIZE_700.lineHeight,
327
+ 800: TYPOGRAPHY.TYPOGRAPHY_SIZE_800.lineHeight,
328
+ 900: TYPOGRAPHY.TYPOGRAPHY_SIZE_900.lineHeight,
329
+ 1000: TYPOGRAPHY.TYPOGRAPHY_SIZE_1000.lineHeight,
330
+ 1100: TYPOGRAPHY.TYPOGRAPHY_SIZE_1100.lineHeight,
331
+ 1200: TYPOGRAPHY.TYPOGRAPHY_SIZE_1200.lineHeight
332
+ };
333
+ export var fontFamily = TYPOGRAPHY.TYPOGRAPHY_FAMILY;
334
+ export var fontWeights = {
335
+ normal: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_NORMAL,
336
+ semibold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_SEMIBOLD,
337
+ bold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_BOLD,
338
+ extrabold: TYPOGRAPHY.TYPOGRAPHY_WEIGHT_EXTRA_BOLD
339
+ };
340
+ export var space = {
341
+ 0: SPACE.SPACE_SIZE_0,
342
+ 100: SPACE.SPACE_SIZE_100,
343
+ 200: SPACE.SPACE_SIZE_200,
344
+ 300: SPACE.SPACE_SIZE_300,
345
+ 350: SPACE.SPACE_SIZE_350,
346
+ 400: SPACE.SPACE_SIZE_400,
347
+ 450: SPACE.SPACE_SIZE_450,
348
+ 500: SPACE.SPACE_SIZE_500,
349
+ 600: SPACE.SPACE_SIZE_600
350
+ };
351
+ export var radii = {
352
+ 400: BORDER.BORDER_RADIUS_400,
353
+ 500: BORDER.BORDER_RADIUS_500,
354
+ 600: BORDER.BORDER_RADIUS_600,
355
+ 1000: BORDER.BORDER_RADIUS_1000,
356
+ inner: BORDER.BORDER_RADIUS_500,
357
+ outer: BORDER.BORDER_RADIUS_600,
358
+ pill: BORDER.BORDER_RADIUS_1000
359
+ };
360
+ export var borders = {
361
+ 500: "".concat(BORDER.BORDER_WIDTH_500, " solid")
362
+ };
363
+ export var borderWidths = {
364
+ 500: BORDER.BORDER_WIDTH_500
365
+ };
366
+ export var shadows = {
367
+ low: "".concat(DEPTH.ELEVATION_LEVEL_100, " ").concat(COLORS.COLOR_NEUTRAL_900, "3D"),
368
+ medium: "".concat(DEPTH.ELEVATION_LEVEL_300, " ").concat(COLORS.COLOR_NEUTRAL_900, "3D"),
369
+ high: "".concat(DEPTH.ELEVATION_LEVEL_400, " ").concat(COLORS.COLOR_NEUTRAL_900, "3D")
370
+ };
371
+ export var easing = {
372
+ ease_in: MOTION.MOTION_EASE_IN,
373
+ ease_out: MOTION.MOTION_EASE_OUT,
374
+ ease_inout: MOTION.MOTION_EASE_INOUT
375
+ };
376
+ export var duration = {
377
+ fast: MOTION.MOTION_DURATION_FAST,
378
+ medium: MOTION.MOTION_DURATION_MEDIUM,
379
+ slow: MOTION.MOTION_DURATION_SLOW
380
+ };
381
+ var theme = {
382
+ breakpoints: breakpoints,
383
+ colors: colors,
384
+ typography: _objectSpread(_objectSpread({}, typography), {}, {
385
+ typography: typography
386
+ }),
387
+ fontSizes: fontSizes,
388
+ lineHeights: lineHeights,
389
+ fontFamily: fontFamily,
390
+ fontWeights: fontWeights,
391
+ space: _objectSpread(_objectSpread({}, space), {}, {
392
+ space: space,
393
+ "-space": Object.keys(space).reduce(function (negativeSpace, key) {
394
+ // The values are strings (eg 24px) so we concatenate a negative sign
395
+ // @ts-ignore: no explicit any
396
+ negativeSpace[key] = "-".concat(space[key]);
397
+ return negativeSpace;
398
+ }, {})
399
+ }),
400
+ radii: _objectSpread(_objectSpread({}, radii), {}, {
401
+ radii: radii
402
+ }),
403
+ borders: borders,
404
+ borderWidths: borderWidths,
405
+ shadows: shadows,
406
+ easing: easing,
407
+ duration: duration,
408
+ mode: MODE
409
+ };
410
+ export default theme;
File without changes
@@ -0,0 +1 @@
1
+ export {};
File without changes
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@sproutsocial/seeds-react-theme",
3
+ "version": "1.0.0",
4
+ "description": "Seeds Theme",
5
+ "main": "commonjs/index.js",
6
+ "module": "lib/index.mjs",
7
+ "types": "dist/types/index.d.ts",
8
+ "author": "Sprout Social, Inc.",
9
+ "license": "MIT",
10
+ "files": [
11
+ "__flow__",
12
+ "commonjs",
13
+ "dist",
14
+ "lib"
15
+ ],
16
+ "scripts": {
17
+ "build": "yarn build:ts-declarations && tsx buildScript.ts",
18
+ "build:ts-declarations": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json"
19
+ },
20
+ "dependencies": {
21
+ "@sproutsocial/seeds-color": "*",
22
+ "@sproutsocial/seeds-networkcolor": "*",
23
+ "@sproutsocial/seeds-typography": "*",
24
+ "@sproutsocial/seeds-space": "*",
25
+ "@sproutsocial/seeds-depth": "*",
26
+ "@sproutsocial/seeds-motion": "*",
27
+ "@sproutsocial/seeds-border": "*",
28
+ "polished": "^3.4.1"
29
+ },
30
+ "devDependencies": {
31
+ "@sproutsocial/seeds-build-flow": "*",
32
+ "glob": "^10.3.10",
33
+ "json-to-scss": "^1.6.2",
34
+ "typescript": "^5.1.6",
35
+ "tsx": "3.13.0"
36
+ },
37
+ "engines": {
38
+ "node": ">=18"
39
+ }
40
+ }