@sproutsocial/racine 8.0.0-beta-dark-mode.0 → 8.0.0-beta-dark-mode.1

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.
@@ -15,8 +15,6 @@ const colors = {
15
15
  suggestion: "colors.neutral.900",
16
16
  };
17
17
 
18
- console.log(themeGet(colors["secondary"]));
19
-
20
18
  const backgroundColors = {
21
19
  primary: "colors.blue.700",
22
20
  secondary: "colors.yellow.500",
@@ -239,6 +239,8 @@ export const typography = {
239
239
  "1200": TYPOGRAPHY.TYPOGRAPHY_SIZE_1200,
240
240
  };
241
241
 
242
+ export type TypeFontFamilyString = string;
243
+
242
244
  export const fontFamily = TYPOGRAPHY.TYPOGRAPHY_FAMILY;
243
245
 
244
246
  export const fontWeights = {
@@ -1,5 +1,7 @@
1
1
  // @flow strict-local
2
2
 
3
+ import literalColors from "../themes/default/literal-colors";
4
+
3
5
  type TypeAppColors = {|
4
6
  app: {
5
7
  background: {
@@ -225,6 +227,8 @@ type TypeNetworkColors = {|
225
227
  },
226
228
  |};
227
229
 
230
+ type TypeLiteralColors = typeof literalColors;
231
+
228
232
  export type TypeColors = {
229
233
  ...TypeAppColors,
230
234
  ...TypeContainerColors,
@@ -236,4 +240,5 @@ export type TypeColors = {
236
240
  ...TypeFormColors,
237
241
  ...TypeListItemColors,
238
242
  ...TypeNetworkColors,
243
+ ...TypeLiteralColors,
239
244
  };
@@ -3,7 +3,6 @@ import {
3
3
  breakpoints,
4
4
  typography,
5
5
  fontWeights,
6
- fontFamily,
7
6
  space,
8
7
  radii,
9
8
  borders,
@@ -13,12 +12,13 @@ import {
13
12
  duration,
14
13
  } from "../themes/default/theme";
15
14
  import type { TypeColors } from "./theme.colors.flow.js";
15
+ import type { TypeFontFamilyString } from "../themes/default/theme";
16
16
 
17
17
  export type TypeBreakpoint = typeof breakpoints;
18
18
  export type TypeTypography = typeof typography;
19
19
  export type TypeFontWeight = typeof fontWeights;
20
- export type TypeFontFamily = typeof fontFamily;
21
- export type TypeSpace = typeof space;
20
+ export type TypeFontFamily = TypeFontFamilyString;
21
+ export type TypeSpace = $Keys<typeof space>;
22
22
  export type TypeColor = TypeColors;
23
23
  export type TypeRadii = typeof radii;
24
24
  export type TypeBorder = typeof borders;
@@ -22,7 +22,6 @@ var colors = {
22
22
  default: "colors.neutral.0",
23
23
  suggestion: "colors.neutral.900"
24
24
  };
25
- console.log((0, _themeGet.themeGet)(colors["secondary"]));
26
25
  var backgroundColors = {
27
26
  primary: "colors.blue.700",
28
27
  secondary: "colors.yellow.500",
@@ -1 +1,5 @@
1
- "use strict";
1
+ "use strict";
2
+
3
+ var _literalColors = _interopRequireDefault(require("../themes/default/literal-colors"));
4
+
5
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -10,7 +10,6 @@ var colors = {
10
10
  default: "colors.neutral.0",
11
11
  suggestion: "colors.neutral.900"
12
12
  };
13
- console.log(themeGet(colors["secondary"]));
14
13
  var backgroundColors = {
15
14
  primary: "colors.blue.700",
16
15
  secondary: "colors.yellow.500",
@@ -0,0 +1 @@
1
+ import literalColors from "../themes/default/literal-colors";
@@ -1 +1 @@
1
- import { breakpoints, typography, fontWeights, fontFamily, space, radii, borders, borderWidths, shadows, easing, duration } from "../themes/default/theme";
1
+ import { breakpoints, typography, fontWeights, space, radii, borders, borderWidths, shadows, easing, duration } from "../themes/default/theme";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "8.0.0-beta-dark-mode.0",
3
+ "version": "8.0.0-beta-dark-mode.1",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",