diff --git a/website/src/app.pcss b/website/src/app.pcss index 170292c5..35226838 100644 --- a/website/src/app.pcss +++ b/website/src/app.pcss @@ -65,6 +65,8 @@ --destructive: 0 62.8% 30.6%; --destructive-foreground: 210 40% 98%; + + --support: 255 110 190; --ring: hsl(212.7,26.8%,83.9); } diff --git a/website/src/lib/components/Logo.svelte b/website/src/lib/components/Logo.svelte index 5824bb10..9060e8cb 100644 --- a/website/src/lib/components/Logo.svelte +++ b/website/src/lib/components/Logo.svelte @@ -1,5 +1,11 @@ -Logo of gpx.studio. +Logo of gpx.studio. diff --git a/website/src/lib/components/Map.svelte b/website/src/lib/components/Map.svelte index bc9abfc1..aa369e2d 100644 --- a/website/src/lib/components/Map.svelte +++ b/website/src/lib/components/Map.svelte @@ -113,6 +113,12 @@ div :global(.mapboxgl-ctrl-top-right > .mapboxgl-ctrl) { @apply shadow-md; + @apply bg-background; + @apply text-foreground; + } + + div :global(.mapboxgl-ctrl-icon) { + @apply dark:brightness-[4.7]; } div :global(.mapboxgl-ctrl-geocoder) { @@ -126,10 +132,31 @@ div :global(.suggestions) { @apply shadow-md; + @apply bg-background; + @apply text-foreground; + } + + div :global(.mapboxgl-ctrl-geocoder .suggestions > li > a) { + @apply text-foreground; + @apply hover:text-accent-foreground; + @apply hover:bg-accent; + } + + div :global(.mapboxgl-ctrl-geocoder .suggestions > .active > a) { + @apply bg-background; + } + + div :global(.mapboxgl-ctrl-geocoder--button) { + @apply bg-transparent; + @apply hover:bg-transparent; + } + + div :global(.mapboxgl-ctrl-geocoder--icon) { + @apply fill-foreground; + @apply hover:fill-accent-foreground; } div :global(.mapboxgl-ctrl-geocoder--icon-search) { - @apply fill-inherit; @apply relative; @apply top-0; @apply left-0; @@ -145,6 +172,7 @@ @apply focus:outline-none; @apply transition-[width]; @apply duration-200; + @apply text-foreground; } div :global(.mapboxgl-ctrl-geocoder--collapsed .mapboxgl-ctrl-geocoder--input) { @@ -169,6 +197,26 @@ @apply bottom-[42px]; } + div :global(.mapboxgl-ctrl-attrib) { + @apply dark:bg-transparent; + } + + div :global(.mapboxgl-compact-show.mapboxgl-ctrl-attrib) { + @apply dark:bg-background; + } + + div :global(.mapboxgl-ctrl-attrib-button) { + @apply dark:bg-foreground; + } + + div :global(.mapboxgl-compact-show .mapboxgl-ctrl-attrib-button) { + @apply dark:bg-foreground; + } + + div :global(.mapboxgl-ctrl-attrib a) { + @apply text-foreground; + } + div :global(.mapboxgl-popup) { @apply w-fit; @apply z-20; @@ -182,5 +230,6 @@ div :global(.mapboxgl-popup-tip) { @apply drop-shadow-md; + @apply border-t-background; } diff --git a/website/static/logo-dark.svg b/website/static/logo-dark.svg new file mode 100644 index 00000000..3ad31ff3 --- /dev/null +++ b/website/static/logo-dark.svg @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +