diff --git a/docs/.vitepress/components/ListItem.vue b/docs/.vitepress/components/ListItem.vue index 46eaf9d39b14..281549715c7c 100644 --- a/docs/.vitepress/components/ListItem.vue +++ b/docs/.vitepress/components/ListItem.vue @@ -19,10 +19,10 @@ function reset() { const color = computed(() => { return { '--vp-c-brand-1': state.value === 1 - ? '#66ba1c' + ? 'var(--color-brand)' : state.value === 2 - ? 'rgba(248, 113, 113)' - : 'rgba(250, 204, 21)', + ? 'var(--vp-c-red-1)' + : 'var(--vp-c-yellow-1)', } as any }) @@ -42,7 +42,9 @@ onMounted(async () => {
  • - + + +
    @@ -79,15 +81,15 @@ onMounted(async () => { .icon-spinner { animation: spin 1s linear infinite; - color: rgb(250, 204, 21); + color: var(--vp-c-yellow-1); } .icon-error { - color: rgb(248, 113, 113); + color: var(--vp-c-red-1); } .icon-success { - color: var(--vp-c-brand-1); + color: var(--color-brand); } @keyframes spin { diff --git a/docs/.vitepress/theme/styles.css b/docs/.vitepress/theme/styles.css index 79dfe6bcca65..fceffc766178 100644 --- a/docs/.vitepress/theme/styles.css +++ b/docs/.vitepress/theme/styles.css @@ -5,6 +5,12 @@ /* Vitest */ :root[data-variant="vitest"] { --color-brand: #008039; + /* TODO: home page wcag-aa color contrast (remove this once fixed at void0 theme): + * - why vitest section and texts + * - vitest, resources, versions and social + * - footer + */ + --color-grey: #867e8e; } :root.dark:not([data-theme])[data-variant="vitest"], @@ -12,8 +18,11 @@ --color-brand: var(--color-zest); } +:root[data-variant="vitest"]:not(.dark):not([data-theme="light"]), :root[data-theme="light"][data-variant="vitest"] { --color-brand: #008039; + /* TODO: code block (remove this once fixed at void0 theme) */ + --vp-code-color: #007d38; } @@ -48,4 +57,4 @@ html:not(.dark) .VPContent kbd { padding: 2px 5px; position: relative; top: -1px; -} \ No newline at end of file +}