@expo/styleguide 6.1.1 → 6.1.3

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.
@@ -42,10 +42,10 @@ function setInitialColorMode() {
42
42
  const colorMode = getInitialColorMode();
43
43
  // add HTML attribute if dark mode
44
44
  if (colorMode === 'dark') {
45
- document.body.classList.add('dark-theme');
45
+ document.documentElement.classList.add('dark-theme');
46
46
  }
47
47
  else {
48
- document.body.classList.remove('dark-theme');
48
+ document.documentElement.classList.remove('dark-theme');
49
49
  }
50
50
  }
51
51
  // our function needs to be a string so that we can call it
@@ -77,10 +77,10 @@ function ThemeProvider(props) {
77
77
  if (disabled)
78
78
  return;
79
79
  if (themeName === Themes.DARK) {
80
- document.body.classList.add('dark-theme');
80
+ document.documentElement.classList.add('dark-theme');
81
81
  }
82
82
  else {
83
- document.body.classList.remove('dark-theme');
83
+ document.documentElement.classList.remove('dark-theme');
84
84
  }
85
85
  }
86
86
  function onThemeChange(event) {
@@ -47,7 +47,7 @@
47
47
  --expo-theme-text-secondary: var(--slate11);
48
48
  --expo-theme-text-tertiary: var(--slate10);
49
49
  --expo-theme-text-quaternary: var(--slate9);
50
- --expo-theme-text-link: var(--blue10);
50
+ --expo-theme-text-link: var(--blue11);
51
51
  --expo-theme-text-success: var(--green11);
52
52
  --expo-theme-text-warning: var(--yellow11);
53
53
  --expo-theme-text-danger: var(--red11);
@@ -169,7 +169,7 @@
169
169
  --expo-theme-text-secondary: var(--slate11);
170
170
  --expo-theme-text-tertiary: var(--slate10);
171
171
  --expo-theme-text-quaternary: var(--slate9);
172
- --expo-theme-text-link: var(--blue10);
172
+ --expo-theme-text-link: var(--blue11);
173
173
  --expo-theme-text-success: var(--green11);
174
174
  --expo-theme-text-warning: var(--yellow11);
175
175
  --expo-theme-text-danger: var(--red11);
@@ -258,7 +258,7 @@ exports.lightTheme = {
258
258
  secondary: palette_1.palette.light.gray11,
259
259
  tertiary: palette_1.palette.light.gray10,
260
260
  quaternary: palette_1.palette.light.gray9,
261
- link: palette_1.palette.light.blue10,
261
+ link: palette_1.palette.light.blue11,
262
262
  success: palette_1.palette.light.green11,
263
263
  warning: palette_1.palette.light.yellow11,
264
264
  danger: palette_1.palette.light.red11,
@@ -376,7 +376,7 @@ exports.darkTheme = {
376
376
  secondary: palette_1.palette.dark.gray11,
377
377
  tertiary: palette_1.palette.dark.gray10,
378
378
  quaternary: palette_1.palette.dark.gray9,
379
- link: palette_1.palette.dark.blue10,
379
+ link: palette_1.palette.dark.blue11,
380
380
  success: palette_1.palette.dark.green11,
381
381
  warning: palette_1.palette.dark.yellow11,
382
382
  danger: palette_1.palette.dark.red11,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/styleguide",
3
- "version": "6.1.1",
3
+ "version": "6.1.3",
4
4
  "description": "Foundational styles for Expo interfaces.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",