@riebeckite/plugin-color-mode 0.0.31 → 0.0.32

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/dist/index.js CHANGED
@@ -190,7 +190,9 @@ function colorModePlugin() {
190
190
  createClientEntry(
191
191
  "color-mode",
192
192
  "@riebeckite/plugin-color-mode/client",
193
- "initColorMode"
193
+ "initColorMode",
194
+ void 0,
195
+ "app"
194
196
  )
195
197
  ]
196
198
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-color-mode",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "hono": "^4.12.25",
25
- "@riebeckite/core": "0.0.31"
25
+ "@riebeckite/core": "0.0.32"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
package/style.css CHANGED
@@ -4,6 +4,8 @@
4
4
  --rr-color-mode-muted: var(--rb-color-muted);
5
5
  --rr-color-mode-surface: var(--rb-color-surface);
6
6
  --rr-color-mode-surface-hover: var(--rb-color-surface-hover);
7
+ --rr-color-mode-selected: var(--rb-color-selected);
8
+ --rr-color-mode-focus: var(--rb-color-focus);
7
9
  --rr-color-mode-border: var(--rb-color-border);
8
10
  --rr-color-mode-border-radius: 999px;
9
11
 
@@ -60,10 +62,15 @@
60
62
 
61
63
  .rr-color-mode__button[aria-pressed="true"] {
62
64
  color: var(--rr-color-mode-ink);
63
- background: var(--rr-color-mode-surface);
65
+ background: var(--rr-color-mode-selected);
64
66
  box-shadow: inset 0 0 0 1px var(--rr-color-mode-border);
65
67
  }
66
68
 
69
+ .rr-color-mode__button:focus-visible {
70
+ outline: 2px solid var(--rr-color-mode-focus);
71
+ outline-offset: 2px;
72
+ }
73
+
67
74
  .rr-color-mode__icon {
68
75
  display: block;
69
76
  width: 1rem;