docs: change code color for better accessibility

This commit is contained in:
Phan An 2024-09-03 18:25:43 +02:00
parent c3e5e8ac5a
commit 4ec274d1a6

View file

@ -1,13 +1,18 @@
:root {
--vp-c-brand-1: #e541b6;
--vp-c-brand-2: #d80693;
--vp-code-color: #985906;
}
html.dark {
--vp-code-color: #e5a44f;
}
.vp-doc {
kbd {
background-color: var(--vp-code-bg);
font-size: var(--vp-code-font-size);
border-bottom: 1px solid var(--vp-code-bg);
border-bottom: 2px solid var(--vp-code-bg);
padding: 3px 6px;
border-radius: 4px;
}