Skip to content

Commit d1a3bd8

Browse files
Release 1.4.4: admonition card tints follow --adt-admonition-* tokens.
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 83d9676 commit d1a3bd8

5 files changed

Lines changed: 35 additions & 13 deletions

File tree

CHANGELOG.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Entries below are in **chronological order** by date: prior release, then the **
1414
* *Docs:* Clarify product roles — Valentus release bundle already includes dark mode; overlay / ui-module examples use Default UI (do not stack this package on Valentus `ui-bundle.zip`).
1515
* *CI:* Release workflow fixes (`v*.*.*` tag filter, `workflow_dispatch`, lockfile); npm publish via trusted publishing (OIDC) — no `NPM_TOKEN`.
1616

17+
== [1.4.4] - 2026-08-08
18+
19+
* *Fix:* Admonition card tints/borders use `var(--adt-admonition-*, …)` so TIP (etc.) match site tokens / Valentus pills instead of a second hardcoded green. See link:changelog-details/2026-08-08%20-%20admonition%20tint%20uses%20tokens.adoc[Detailed notes].
20+
1721
== [1.4.3] - 2026-08-08
1822

1923
* *Fix:* Admonitions — bordered card wraps TIP/NOTE label + body (`table` chrome; cells transparent). Corrects 1.4.1 which only cleared the label wash while leaving TIP outside the border. See link:changelog-details/2026-08-08%20-%20admonition%20card%20wraps%20tip%20label.adoc[Detailed notes].
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
= 2026-08-08 — Admonition card tint uses tokens
2+
3+
Dark-mode tip/note/… table tints and left borders read
4+
`var(--adt-admonition-*, <Antora fallback>)` so they track the same tokens
5+
Valentus uses for TIP pills and card chrome. Sites override once; do not hardcode
6+
a second tip green in overlay CSS.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "antora-dark-mode",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "Dark mode supplemental UI for Antora — slot-based overlay, toggle, FOUC prevention, and CSS overrides.",
55
"keywords": [
66
"antora",

supplemental-ui/css/site-extra.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,30 +249,36 @@ html.dark-theme .doc .admonitionblock .title {
249249
color: #ffffff;
250250
}
251251

252-
/* Specific admonition types: tint the outer card (table), not the TIP label cell */
252+
/* Specific admonition types: tint the outer card (table), not the TIP label cell.
253+
Use the same --adt-admonition-* tokens as Valentus pill/card chrome (fallback = Antora defaults). */
253254
html.dark-theme .doc .admonitionblock.tip > table {
254255
background-color: #1a2a1a !important;
255-
background: color-mix(in srgb, #41af46 14%, #25262b) !important;
256+
background: color-mix(in srgb, var(--adt-admonition-tip, #41af46) 14%, #25262b) !important;
257+
border-left-color: var(--adt-admonition-tip, #41af46) !important;
256258
}
257259

258260
html.dark-theme .doc .admonitionblock.note > table {
259261
background-color: #1a1a2a !important;
260-
background: #1a1a2a !important;
262+
background: color-mix(in srgb, var(--adt-admonition-note, #217ee7) 14%, #25262b) !important;
263+
border-left-color: var(--adt-admonition-note, #217ee7) !important;
261264
}
262265

263266
html.dark-theme .doc .admonitionblock.warning > table {
264267
background-color: #2a2a1a !important;
265-
background: #2a2a1a !important;
268+
background: color-mix(in srgb, var(--adt-admonition-warning, #e18114) 14%, #25262b) !important;
269+
border-left-color: var(--adt-admonition-warning, #e18114) !important;
266270
}
267271

268272
html.dark-theme .doc .admonitionblock.caution > table {
269273
background-color: #2a1a1a !important;
270-
background: #2a1a1a !important;
274+
background: color-mix(in srgb, var(--adt-admonition-caution, #a0439c) 14%, #25262b) !important;
275+
border-left-color: var(--adt-admonition-caution, #a0439c) !important;
271276
}
272277

273278
html.dark-theme .doc .admonitionblock.important > table {
274279
background-color: #2a1a2a !important;
275-
background: #2a1a2a !important;
280+
background: color-mix(in srgb, var(--adt-admonition-important, #d32f2f) 14%, #25262b) !important;
281+
border-left-color: var(--adt-admonition-important, #d32f2f) !important;
276282
}
277283

278284
html.dark-theme .quoteblock blockquote,

ui-modules/packages/dark-mode/ui/css/site-extra.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -249,30 +249,36 @@ html.dark-theme .doc .admonitionblock .title {
249249
color: #ffffff;
250250
}
251251

252-
/* Specific admonition types: tint the outer card (table), not the TIP label cell */
252+
/* Specific admonition types: tint the outer card (table), not the TIP label cell.
253+
Use the same --adt-admonition-* tokens as Valentus pill/card chrome (fallback = Antora defaults). */
253254
html.dark-theme .doc .admonitionblock.tip > table {
254255
background-color: #1a2a1a !important;
255-
background: color-mix(in srgb, #41af46 14%, #25262b) !important;
256+
background: color-mix(in srgb, var(--adt-admonition-tip, #41af46) 14%, #25262b) !important;
257+
border-left-color: var(--adt-admonition-tip, #41af46) !important;
256258
}
257259

258260
html.dark-theme .doc .admonitionblock.note > table {
259261
background-color: #1a1a2a !important;
260-
background: #1a1a2a !important;
262+
background: color-mix(in srgb, var(--adt-admonition-note, #217ee7) 14%, #25262b) !important;
263+
border-left-color: var(--adt-admonition-note, #217ee7) !important;
261264
}
262265

263266
html.dark-theme .doc .admonitionblock.warning > table {
264267
background-color: #2a2a1a !important;
265-
background: #2a2a1a !important;
268+
background: color-mix(in srgb, var(--adt-admonition-warning, #e18114) 14%, #25262b) !important;
269+
border-left-color: var(--adt-admonition-warning, #e18114) !important;
266270
}
267271

268272
html.dark-theme .doc .admonitionblock.caution > table {
269273
background-color: #2a1a1a !important;
270-
background: #2a1a1a !important;
274+
background: color-mix(in srgb, var(--adt-admonition-caution, #a0439c) 14%, #25262b) !important;
275+
border-left-color: var(--adt-admonition-caution, #a0439c) !important;
271276
}
272277

273278
html.dark-theme .doc .admonitionblock.important > table {
274279
background-color: #2a1a2a !important;
275-
background: #2a1a2a !important;
280+
background: color-mix(in srgb, var(--adt-admonition-important, #d32f2f) 14%, #25262b) !important;
281+
border-left-color: var(--adt-admonition-important, #d32f2f) !important;
276282
}
277283

278284
html.dark-theme .quoteblock blockquote,

0 commit comments

Comments
 (0)