@artsy/palette-mobile 17.1.0 → 17.2.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.
@@ -41,10 +41,8 @@ const colors = {
41
41
  },
42
42
  info: {
43
43
  background: "blue10",
44
- title: "blue100",
45
- // The text should be black regardless of the theme
46
- // @ts-expect-error
47
- text: "black",
44
+ title: "blue150",
45
+ text: "mono100",
48
46
  icon: "mono100",
49
47
  },
50
48
  success: {
@@ -27,5 +27,10 @@ const color = (theme) => (colorName) => {
27
27
  if (colorName === undefined) {
28
28
  return undefined;
29
29
  }
30
- return theme.colors[colorName];
30
+ const themeColor = theme.colors[colorName];
31
+ // return the color that was passed if it's not supported by the theme (e.g., for a theme-independent `white`).
32
+ if (!themeColor) {
33
+ return colorName;
34
+ }
35
+ return themeColor;
31
36
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette-mobile",
3
- "version": "17.1.0",
3
+ "version": "17.2.1",
4
4
  "description": "Artsy's design system for React Native",
5
5
  "scripts": {
6
6
  "android": "RCT_METRO_PORT=8082 react-native run-android --port 8082 --terminal terminal",