@scalar/nextjs-api-reference 0.12.4 → 0.12.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @scalar/nextjs-api-reference
2
2
 
3
+ ## 0.12.6
4
+
5
+ ## 0.12.5
6
+
7
+ ### Patch Changes
8
+
9
+ - [#10375](https://github.com/scalar/scalar/pull/10375): Raise muted text, code-string blue and the deprecated schema row to the 4.5:1 text contrast minimum across the shipped themes
10
+
11
+ An accessibility audit turned up text that is legible in the default theme but not in several of the presets, which pair the default greys and blues with an off-white page background. Nine presets and four integration themes get a hue-preserving nudge:
12
+ - Light `--scalar-color-2` now clears 4.5:1 on both the page background and the grey card background in every preset. That covers `alternate`, `bluePlanet`, `mars` and `saturn`, which paired the default grey with an off-white page, and `custom-theme-starter`, `deepSpace`, `elysiajs`, `fastify`, `kepler` and `purple`, which copied the default grey and were left behind when the default moved.
13
+ - Light `--scalar-color-blue`, which colours code strings, now clears 4.5:1 on the grey example background in `alternate`, `bluePlanet`, `deepSpace`, `elysiajs`, `fastify`, `kepler` and `moon`, and in the Docusaurus, NestJS, Next.js and SvelteKit themes.
14
+ - Dark `--scalar-color-blue` now clears 4.5:1 in `purple` and `saturn`, and in the Hono and Docusaurus dark themes.
15
+ - Deprecated schema rows no longer fade their contents to 75% opacity, which had dropped their muted text to 3.0:1. The diagonal stripes, the strikethrough on the property name and the Deprecated badge still mark the row.
16
+ - The AsyncAPI send and receive pills blend their label further toward the body text colour, so they read against the tinted fill in every preset but `laserwave`.
17
+ - `--scalar-focus-color` sits further from the accent so a keyboard focus ring clears 3:1 on `--scalar-background-3` as well, which some presets use for the selected sidebar item.
18
+
19
+ `laserwave` still misses in light mode, where it reuses its dark accents unchanged; bringing it up is a redesign of the preset rather than a nudge.
20
+
3
21
  ## 0.12.4
4
22
 
5
23
  ## 0.12.3
package/dist/index.cjs CHANGED
@@ -23,7 +23,7 @@ var customTheme = `
23
23
  .light-mode .dark-mode,
24
24
  .light-mode {
25
25
  --scalar-color-1: #1b1b1b;
26
- --scalar-color-2: #757575;
26
+ --scalar-color-2: #707070;
27
27
  --scalar-color-3: #8e8e8e;
28
28
  --scalar-color-accent: #3070ec;
29
29
 
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ var customTheme = `
22
22
  .light-mode .dark-mode,
23
23
  .light-mode {
24
24
  --scalar-color-1: #1b1b1b;
25
- --scalar-color-2: #757575;
25
+ --scalar-color-2: #707070;
26
26
  --scalar-color-3: #8e8e8e;
27
27
  --scalar-color-accent: #3070ec;
28
28
 
@@ -25,7 +25,7 @@
25
25
  .light-mode .dark-mode,
26
26
  .light-mode {
27
27
  --scalar-color-1: #1b1b1b;
28
- --scalar-color-2: #757575;
28
+ --scalar-color-2: #707070;
29
29
  --scalar-color-3: #8e8e8e;
30
30
  --scalar-color-accent: #3070ec;
31
31
 
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "openapi",
19
19
  "swagger"
20
20
  ],
21
- "version": "0.12.4",
21
+ "version": "0.12.6",
22
22
  "engines": {
23
23
  "node": ">=22"
24
24
  },
@@ -54,7 +54,7 @@
54
54
  }
55
55
  },
56
56
  "dependencies": {
57
- "@scalar/client-side-rendering": "0.4.5"
57
+ "@scalar/client-side-rendering": "0.4.7"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/node": "^24.1.0",