File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,10 +19,10 @@ function reset() {
1919const color = computed (() => {
2020 return {
2121 ' --vp-c-brand-1' : state .value === 1
22- ? ' #66ba1c '
22+ ? ' var(--vp-c-brand-1) '
2323 : state .value === 2
24- ? ' rgba(248, 113, 113 )'
25- : ' rgba(250, 204, 21 )' ,
24+ ? ' var(--vp-c-red-1 )'
25+ : ' var(--vp-c-yellow-1 )' ,
2626 } as any
2727})
2828
@@ -79,11 +79,11 @@ onMounted(async () => {
7979
8080.icon-spinner {
8181 animation : spin 1s linear infinite ;
82- color : rgb ( 250 , 204 , 21 );
82+ color : var ( --vp-c-yellow-1 );
8383}
8484
8585.icon-error {
86- color : rgb ( 248 , 113 , 113 );
86+ color : var ( --vp-c-red-1 );
8787}
8888
8989.icon-success {
Original file line number Diff line number Diff line change 55/* Vitest */
66: root[data-variant = "vitest" ] {
77 --color-brand : # 008039 ;
8+ /* TODO: home page wcag-aa color contrast (remove this once fixed at void0 theme):
9+ * - why vitest section and texts
10+ * - vitest, resources, versions and social
11+ * - footer
12+ */
13+ --color-grey : # 867e8e ;
14+ /* TODO: code block (remove this once fixed at void0 theme) */
15+ --vp-code-color : # 007d38 ;
816}
917
1018: root .dark : not ([data-theme ])[data-variant = "vitest" ],
1119: root [data-theme = "dark" ][data-variant = "vitest" ] {
1220 --color-brand : var (--color-zest );
21+ /* TODO: code block is fine on dark mode (remove this once fixed at void0 theme) */
22+ --vp-code-color : var (--vp-c-brand-1 );
1323}
1424
1525: root [data-theme = "light" ][data-variant = "vitest" ] {
@@ -48,4 +58,4 @@ html:not(.dark) .VPContent kbd {
4858 padding : 2px 5px ;
4959 position : relative;
5060 top : -1px ;
51- }
61+ }
You can’t perform that action at this time.
0 commit comments