Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/UI.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import closeIcon from '@/public/close-circle-stroke.svg'
import Image from 'next/image'
import { styled, css } from 'next-yak'
import { oceanColor } from './styles/france'
import { getOceanColor } from './styles/france'

export const MapContainer = styled.div`
${(p) =>
!p.$isMapLoaded
? css`
background: ${oceanColor};
background: ${getOceanColor(p.$darkMode)};
`
: css`
background: black;
Expand Down
8 changes: 4 additions & 4 deletions app/styles/cycleHighwayLayers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const cycleHighwaysLineWidth = (outline = false) => [
outline ? 5 : 3,
]

export const cycleHighwayLayers = [
export const cycleHighwayLayers = (dark = false) => [
{
id: 'Cycle highways outline',
type: 'line',
Expand All @@ -28,7 +28,7 @@ export const cycleHighwayLayers = [
'line-join': 'round',
},
paint: {
'line-color': 'hsl(240, 71%, 72%)',
'line-color': dark ? 'hsl(240, 20%, 30%)' : 'hsl(240, 71%, 72%)',
'line-width': cycleHighwaysLineWidth(true),
},
},
Expand All @@ -44,7 +44,7 @@ export const cycleHighwayLayers = [
'line-join': 'round',
},
paint: {
'line-color': 'hsl(0,0%,97%)',
'line-color': dark ? 'hsl(240,40%,60%)' : 'hsl(0,0%,97%)',
'line-width': cycleHighwaysLineWidth(),
},
},
Expand Down Expand Up @@ -87,7 +87,7 @@ export const cycleHighwayLayers = [
'text-rotation-alignment': 'viewport',
},
paint: {
'icon-color': 'red',
'icon-color': dark ? '#aa3333' : 'red',
},
},
]
Loading