Skip to content

Commit

Permalink
fix: bright dark mode elements
Browse files Browse the repository at this point in the history
  • Loading branch information
brownben committed Mar 30, 2024
1 parent 40ee277 commit 67f2f42
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion frontend/components/Button.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defineProps({

<template>
<button
class="flex select-none rounded bg-gradient-to-r from-main-500 to-main-600 font-medium text-white ring-main-600 ring-offset-2 transition hover:from-main-600 hover:to-main-700 hover:shadow focus:outline-none focus-visible:ring dark:ring-offset-gray-800"
class="flex select-none rounded bg-gradient-to-r from-main-500 to-main-600 font-medium text-white ring-main-600 ring-offset-2 transition hover:from-main-600 hover:to-main-700 hover:shadow focus:outline-none focus-visible:ring dark:from-main-600 dark:to-main-700 dark:ring-offset-gray-800 dark:hover:from-main-700 dark:hover:to-main-800"
:class="{ 'px-4 py-2 text-sm': small, 'px-6 py-2': !small }"
:disabled="loading"
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/ButtonSmall.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defineProps({
v-if="link"
:to="link"
:external="external"
class="inline-flex items-center gap-2 rounded border px-2 py-1 text-sm font-medium leading-tight transition duration-100 hover:border-main-300 hover:bg-main-100 hover:text-main-800 dark:hover:border-main-600 dark:hover:bg-main-800 dark:hover:text-main-100"
class="inline-flex select-none items-center gap-2 rounded border px-2 py-1 text-sm font-medium leading-tight transition duration-100 hover:border-main-300 hover:bg-main-100 hover:text-main-800 dark:hover:border-main-600 dark:hover:bg-main-800 dark:hover:text-main-100"
:class="{
'border-gray-200 bg-gray-50 text-gray-500 dark:border-gray-600 dark:bg-gray-800 dark:text-gray-300 ':
!coloured,
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/Home/HeroImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ svg {
@media (prefers-color-scheme: dark) {
svg {
--hero-document: var(--gray-800);
--hero-document: var(--gray-900);
--hero-hills: var(--gray-800);
--hero-trees: var(--gray-500);
--hero-clouds: var(--main-700);
--hero-row: var(--main-900);
--hero-row: var(--gray-700);
}
}
</style>
2 changes: 1 addition & 1 deletion frontend/components/Home/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { MagnifyingGlassIcon } from '@heroicons/vue/24/outline'
</script>
<template>
<section class="bg-main-600 text-white">
<section class="bg-main-600 text-white dark:bg-main-800">
<div
class="mx-auto flex max-w-screen-lg flex-col gap-2 px-6 py-10 text-center sm:py-16 lg:px-8"
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Home/Upload.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<aside class="relative bg-main-800 text-main-600">
<aside class="relative bg-main-800 text-main-600 dark:bg-main-900">
<svg aria-hidden="true" class="absolute inset-0 z-0 h-full w-full">
<defs>
<pattern
Expand Down
4 changes: 2 additions & 2 deletions frontend/components/LinksSection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ defineProps({
<section
class="w-full print:hidden"
:class="{
'bg-gradient-to-r from-main-500 to-main-700 dark:from-main-600 dark:to-main-800':
'bg-gradient-to-r from-main-500 to-main-700 dark:from-main-700 dark:to-main-900':
!dark,
'bg-main-800': dark,
}"
Expand All @@ -31,7 +31,7 @@ defineProps({
v-for="link in links"
:key="link.location"
:to="link.location"
class="flex items-center justify-center rounded-md bg-white/10 px-7 py-2 font-medium text-white ring-white ring-opacity-40 transition hover:bg-white/25 focus:outline-none focus-visible:ring"
class="flex select-none items-center justify-center rounded-md bg-white/10 px-7 py-2 font-medium text-white ring-white ring-opacity-40 transition hover:bg-white/25 focus:outline-none focus-visible:ring"
>
{{ link.text }}
</NuxtLink>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const links: Link[] = [
<div class="absolute inset-y-0 right-0 flex items-center px-2 sm:hidden">
<PopoverButton
v-slot="{ open }"
class="ring-primary-light items-center justify-center rounded p-2 text-gray-500 outline-none ring-main-500 transition hover:bg-main-100 hover:text-main-700 focus:bg-main-100 focus:text-main-700 focus:ring-2 dark:text-gray-200 dark:ring-offset-gray-800 dark:hover:bg-gray-700 dark:hover:text-main-600 dark:focus:bg-gray-700 dark:focus:text-main-600"
class="ring-primary-light items-center justify-center rounded p-2 text-gray-500 outline-none ring-main-500 transition hover:bg-main-100 hover:text-main-700 focus:bg-main-100 focus:text-main-700 focus:ring-2 dark:text-gray-200 dark:ring-offset-gray-800 dark:hover:bg-gray-700 dark:hover:text-gray-200 dark:focus:bg-gray-700 dark:focus:text-gray-200"
>
<span class="sr-only">Open main menu</span>

Expand Down

0 comments on commit 67f2f42

Please sign in to comment.