Skip to content

Commit

Permalink
refactor: move dark mode styles for leaflet layer to globals.css
Browse files Browse the repository at this point in the history
  • Loading branch information
fityannugroho committed Nov 12, 2024
1 parent 83bcfff commit ce3a6c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,9 @@
@apply bg-card text-card-foreground;
}
}

/* Tile layer */
.leaflet-layer {
@apply dark:hue-rotate-180 dark:invert dark:contrast-[.90] dark:brightness-90;
}
}
1 change: 0 additions & 1 deletion components/map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default function Map({
<TileLayer
attribution='<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a>'
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
className="dark:hue-rotate-180 dark:invert dark:contrast-[.90] dark:brightness-90"
/>
{children}
</MapContainer>
Expand Down

0 comments on commit ce3a6c1

Please sign in to comment.