Skip to content

Commit

Permalink
docs: fix contrast between lang name and code block (#1996)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Sep 7, 2022
1 parent e5c40cf commit 08feae1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/.vitepress/style/vars.css
Expand Up @@ -17,6 +17,8 @@
--vp-custom-block-tip-bg: rgba(18, 181, 157, 0.1);
/* fix contrast on gray cards: used by --vp-c-text-2 */
--vp-c-text-light-2: rgba(56 56 56 / 70%);
/* fix contrast: lang name on gray code block */
--vp-c-text-dark-3: rgba(180, 180, 180, 0.7);
}

.dark {
Expand All @@ -28,6 +30,8 @@
--vp-custom-block-tip-bg: rgba(18, 181, 157, 0.1);
/* fix contrast on gray cards: check the same above (this is the default) */
--vp-c-text-dark-2: rgba(235, 235, 235, 0.60);
/* fix lang name: check the same above (this is the default) */
--vp-c-text-dark-3: rgba(235, 235, 235, 0.38);
}

/**
Expand Down

0 comments on commit 08feae1

Please sign in to comment.