@riebeckite/plugin-highlight 0.0.19 → 0.0.20

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.
package/README.md CHANGED
@@ -88,5 +88,5 @@ the appearance.
88
88
 
89
89
  ## See also
90
90
 
91
- - [Plugin guide](../../../docs/docs/reference/plugin-api.en.md)
91
+ - [Plugin guide](../../../docs/docs/reference/plugin-api.md)
92
92
 
package/README_ja.md CHANGED
@@ -88,5 +88,5 @@ highlight({ className: "my-highlight", tag: "span" });
88
88
 
89
89
  ## 関連資料
90
90
 
91
- - [プラグインガイド](../../../docs/docs/reference/plugin-api.md)
91
+ - [プラグインガイド](../../../docs/docs/reference/plugin-api.ja.md)
92
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-highlight",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -17,11 +17,11 @@
17
17
  "dependencies": {
18
18
  "@types/mdast": "^4.0.4",
19
19
  "unist-util-visit": "^5.1.0",
20
- "@riebeckite/core": "0.0.19"
20
+ "@riebeckite/core": "0.0.20"
21
21
  },
22
22
  "devDependencies": {
23
23
  "tsx": "^4.22.4",
24
- "@riebeckite/test": "0.0.19"
24
+ "@riebeckite/test": "0.0.20"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
package/style.css CHANGED
@@ -6,8 +6,14 @@
6
6
  color: inherit;
7
7
  }
8
8
 
9
- html[data-theme="dark"] .rb-highlight,
10
- html.dark .rb-highlight {
9
+ :is(:root, .rb-theme-root)[data-theme="dark"] .rb-highlight {
11
10
  --rb-highlight-accent: var(--rb-color-accent, #ffd166);
12
11
  background: color-mix(in srgb, var(--rb-highlight-accent) 32%, transparent);
13
12
  }
13
+
14
+ @media (prefers-color-scheme: dark) {
15
+ :is(:root, .rb-theme-root):not([data-theme]) .rb-highlight {
16
+ --rb-highlight-accent: var(--rb-color-accent, #ffd166);
17
+ background: color-mix(in srgb, var(--rb-highlight-accent) 32%, transparent);
18
+ }
19
+ }