@vuepress/theme-default 2.0.0-rc.43 → 2.0.0-rc.44

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.
@@ -97,7 +97,7 @@ useEventListener('keydown', (event): void => {
97
97
  border-radius: 0.25rem;
98
98
 
99
99
  &:hover {
100
- background: var(--c-bg-soft);
100
+ background: var(--vp-c-control-hover);
101
101
  }
102
102
 
103
103
  .hint {
@@ -60,18 +60,18 @@ defineSlots<{
60
60
  background-color var(--vp-t-color);
61
61
 
62
62
  &.tip {
63
- background-color: var(--c-badge-tip);
64
- color: var(--c-badge-tip-text);
63
+ background-color: var(--badge-c-tip);
64
+ color: var(--badge-c-tip-text);
65
65
  }
66
66
 
67
67
  &.warning {
68
- background-color: var(--c-badge-warning);
69
- color: var(--c-badge-warning-text);
68
+ background-color: var(--badge-c-warning);
69
+ color: var(--badge-c-warning-text);
70
70
  }
71
71
 
72
72
  &.danger {
73
- background-color: var(--c-badge-danger);
74
- color: var(--c-badge-danger-text);
73
+ background-color: var(--badge-c-danger);
74
+ color: var(--badge-c-danger-text);
75
75
  }
76
76
 
77
77
  // update the vertical align for the badge in toc
@@ -16,7 +16,7 @@
16
16
 
17
17
  background-color: var(--vp-c-code-tab-bg);
18
18
 
19
- transition: background-color var(--t-color);
19
+ transition: background-color var(--vp-t-color);
20
20
 
21
21
  @media (max-width: $MQMobileNarrow) {
22
22
  margin-right: -1.5rem;
@@ -1,70 +1,7 @@
1
- html,
2
1
  body {
3
- background-color: var(--vp-c-bg);
4
- accent-color: var(--vp-c-accent);
5
- transition: background-color var(--vp-t-color);
6
- }
7
-
8
- [data-theme='dark'] {
9
- color-scheme: dark;
10
- }
11
-
12
- body {
13
- color: var(--vp-c-text);
14
- font-size: 1rem;
15
2
  font-family: var(--font-family);
16
3
  }
17
4
 
18
- h2 {
19
- border-color: var(--vp-c-gutter);
20
- transition: border-color var(--vp-t-color);
21
- }
22
-
23
- a {
24
- color: var(--vp-c-accent);
25
- }
26
-
27
5
  code {
28
6
  font-family: var(--code-font-family);
29
-
30
- :not(pre) > & {
31
- background-color: var(--vp-c-grey-soft);
32
- color: var(--vp-c-text-mute);
33
- transition: background-color var(--vp-t-color);
34
- }
35
-
36
- p a & {
37
- color: var(--vp-c-accent);
38
- }
39
- }
40
-
41
- kbd {
42
- border-color: var(--vp-c-border-hard);
43
- transition: border-color var(--vp-t-color);
44
- }
45
-
46
- blockquote {
47
- border-color: var(--vp-c-border-hard);
48
- color: var(--vp-c-text-mute);
49
- transition: border-color var(--vp-t-color);
50
- }
51
-
52
- hr {
53
- border-color: var(--vp-c-gutter);
54
- transition: border-color var(--vp-t-color);
55
- }
56
-
57
- table {
58
- transition: border-color var(--vp-t-color);
59
- }
60
-
61
- tbody tr:nth-child(odd) {
62
- background-color: var(--vp-c-bg-alt);
63
- transition: background-color var(--vp-t-color);
64
- }
65
-
66
- th,
67
- td {
68
- border-color: var(--vp-c-border-hard);
69
- transition: border-color var(--vp-t-color);
70
7
  }
@@ -24,7 +24,7 @@
24
24
  --vp-c-shadow: rgb(0 0 0 / 30%);
25
25
 
26
26
  // control colors
27
- --vp-c-control: #2d3135;
28
- --vp-c-control-hover: #303640;
27
+ --vp-c-control: rgb(101 117 133 / 12%);
28
+ --vp-c-control-hover: rgb(101 117 133 / 18%);
29
29
  --vp-c-control-disabled: #363636;
30
30
  }
@@ -26,8 +26,8 @@
26
26
  --vp-c-shadow: rgb(0 0 0 / 15%);
27
27
 
28
28
  // control colors
29
- --vp-c-control: #f9fafb;
30
- --vp-c-control-hover: #f1f3f5;
29
+ --vp-c-control: rgb(142 150 170 / 10%);
30
+ --vp-c-control-hover: rgb(142 150 170 / 16%);
31
31
  --vp-c-control-disabled: #eaeaea;
32
32
 
33
33
  // layout colors
@@ -40,12 +40,12 @@
40
40
  --vp-c-code-tab-active: var(--vp-c-accent);
41
41
 
42
42
  // badge colors
43
- --c-badge-tip: var(--vp-c-green-soft);
44
- --c-badge-tip-text: var(--vp-c-green-text);
45
- --c-badge-warning: var(--vp-c-yellow-soft);
46
- --c-badge-warning-text: var(--vp-c-yellow-text);
47
- --c-badge-danger: var(--vp-c-red-soft);
48
- --c-badge-danger-text: var(--vp-c-red-text);
43
+ --badge-c-tip: var(--vp-c-green-soft);
44
+ --badge-c-tip-text: var(--vp-c-green-text);
45
+ --badge-c-warning: var(--vp-c-yellow-soft);
46
+ --badge-c-warning-text: var(--vp-c-yellow-text);
47
+ --badge-c-danger: var(--vp-c-red-soft);
48
+ --badge-c-danger-text: var(--vp-c-red-text);
49
49
 
50
50
  // font vars
51
51
  --font-family: -apple-system, 'BlinkMacSystemFont', 'Segoe UI', roboto, oxygen,
@@ -47,11 +47,9 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
47
47
  css: {
48
48
  preprocessorOptions: {
49
49
  sass: {
50
- api: 'modern-compiler',
51
50
  silenceDeprecations: ['mixed-decls'],
52
51
  },
53
52
  scss: {
54
- api: 'modern-compiler',
55
53
  silenceDeprecations: ['mixed-decls'],
56
54
  },
57
55
  },
@@ -65,7 +63,6 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
65
63
  ...options,
66
64
  // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
67
65
  sassOptions: {
68
- api: 'modern-compiler',
69
66
  silenceDeprecations: ['mixed-decls'],
70
67
  ...options.sassOptions,
71
68
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.43",
3
+ "version": "2.0.0-rc.44",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -37,27 +37,27 @@
37
37
  "templates"
38
38
  ],
39
39
  "dependencies": {
40
- "@vuepress/helper": "2.0.0-rc.43",
41
- "@vuepress/plugin-active-header-links": "2.0.0-rc.43",
42
- "@vuepress/plugin-back-to-top": "2.0.0-rc.43",
43
- "@vuepress/plugin-copy-code": "2.0.0-rc.43",
44
- "@vuepress/plugin-git": "2.0.0-rc.43",
45
- "@vuepress/plugin-links-check": "2.0.0-rc.43",
40
+ "@vuepress/helper": "2.0.0-rc.44",
41
+ "@vuepress/plugin-active-header-links": "2.0.0-rc.44",
42
+ "@vuepress/plugin-back-to-top": "2.0.0-rc.44",
43
+ "@vuepress/plugin-copy-code": "2.0.0-rc.44",
44
+ "@vuepress/plugin-git": "2.0.0-rc.44",
45
+ "@vuepress/plugin-links-check": "2.0.0-rc.44",
46
46
  "@vuepress/plugin-markdown-container": "2.0.0-rc.43",
47
- "@vuepress/plugin-markdown-hint": "2.0.0-rc.43",
48
- "@vuepress/plugin-medium-zoom": "2.0.0-rc.43",
49
- "@vuepress/plugin-nprogress": "2.0.0-rc.43",
50
- "@vuepress/plugin-palette": "2.0.0-rc.42",
51
- "@vuepress/plugin-prismjs": "2.0.0-rc.43",
52
- "@vuepress/plugin-seo": "2.0.0-rc.43",
53
- "@vuepress/plugin-sitemap": "2.0.0-rc.43",
54
- "@vuepress/plugin-theme-data": "2.0.0-rc.43",
55
- "@vueuse/core": "^11.0.3",
56
- "vue": "^3.5.4"
47
+ "@vuepress/plugin-markdown-hint": "2.0.0-rc.44",
48
+ "@vuepress/plugin-medium-zoom": "2.0.0-rc.44",
49
+ "@vuepress/plugin-nprogress": "2.0.0-rc.44",
50
+ "@vuepress/plugin-palette": "2.0.0-rc.44",
51
+ "@vuepress/plugin-prismjs": "2.0.0-rc.44",
52
+ "@vuepress/plugin-seo": "2.0.0-rc.44",
53
+ "@vuepress/plugin-sitemap": "2.0.0-rc.44",
54
+ "@vuepress/plugin-theme-data": "2.0.0-rc.44",
55
+ "@vueuse/core": "^11.1.0",
56
+ "vue": "^3.5.6"
57
57
  },
58
58
  "peerDependencies": {
59
- "sass": "^1.78.0",
60
- "sass-embedded": "^1.78.0",
59
+ "sass": "^1.79.0",
60
+ "sass-embedded": "^1.79.0",
61
61
  "sass-loader": "^16.0.1",
62
62
  "vuepress": "2.0.0-rc.15"
63
63
  },
@@ -75,5 +75,5 @@
75
75
  "publishConfig": {
76
76
  "access": "public"
77
77
  },
78
- "gitHead": "7c75a58f6aed788e2ee40e2b2f0451a76ec20a23"
78
+ "gitHead": "e450489799bbfbdd015ec52255576144185eb64f"
79
79
  }