diff --git a/README.md b/README.md index e3a2d04..3646174 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ See `.env.example` for an example of the required keys and values. - `PUBLIC_OBA_REGION_NAME` - string: (required) displayed in the header. - `PUBLIC_OBA_LOGO_URL` - string: (required) The URL of your transit agency's logo. - `PUBLIC_NAV_BAR_LINKS` - JSON string: (required) A dictionary of the links displayed across the navigation bar. +- `PUBLIC_APP_PRIMARY_COLOR` - string: (required) The hex color code for the application's primary brand color. Must be wrapped in quotes (e.g., "#214666"). +- `PUBLIC_APP_SECONDARY_COLOR` - string: (required) The hex color code for the application's secondary brand color. Must be wrapped in quotes (e.g., "#486621"). ### OBA Server diff --git a/package-lock.json b/package-lock.json index a074611..d694cc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@googlemaps/js-api-loader": "^1.16.8", "@maplibre/maplibre-gl-leaflet": "^0.0.22", "@tailwindcss/forms": "^0.5.9", - "dotenv": "^16.4.5", + "dotenv": "^16.4.7", "gtfs-realtime-bindings": "^1.1.1", "leaflet": "^1.9.4", "leaflet-polylinedecorator": "^1.6.0", @@ -2563,9 +2563,9 @@ "license": "MIT" }, "node_modules/dotenv": { - "version": "16.4.5", - "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz", - "integrity": "sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==", + "version": "16.4.7", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.4.7.tgz", + "integrity": "sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==", "license": "BSD-2-Clause", "engines": { "node": ">=12" diff --git a/package.json b/package.json index b5c71e9..23ede08 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "@googlemaps/js-api-loader": "^1.16.8", "@maplibre/maplibre-gl-leaflet": "^0.0.22", "@tailwindcss/forms": "^0.5.9", - "dotenv": "^16.4.5", + "dotenv": "^16.4.7", "gtfs-realtime-bindings": "^1.1.1", "leaflet": "^1.9.4", "leaflet-polylinedecorator": "^1.6.0", diff --git a/src/app.css b/src/app.css index 91088bd..6a4385b 100644 --- a/src/app.css +++ b/src/app.css @@ -28,7 +28,7 @@ } .tab-container__item--active { - @apply border-b-2 border-green-500 text-green-500; + @apply border-b-2 border-brand-secondary text-brand-secondary; } .button { @@ -36,7 +36,7 @@ } .button--primary { - @apply rounded-md bg-green-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-green-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-green-600; + @apply rounded-md bg-brand-secondary px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-brand focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-brand-secondary; } .rtl { diff --git a/src/components/ArrivalDeparture.svelte b/src/components/ArrivalDeparture.svelte index 8cba661..8b62d24 100644 --- a/src/components/ArrivalDeparture.svelte +++ b/src/components/ArrivalDeparture.svelte @@ -36,7 +36,7 @@ return { status: `${$t('status.on_time')}`, text: `${$t('status.arrives_on_time')}`, - color: 'text-green-500' + color: 'text-brand' }; } else { return { diff --git a/src/components/map/StopMarker.svelte b/src/components/map/StopMarker.svelte index b993847..b95ca61 100644 --- a/src/components/map/StopMarker.svelte +++ b/src/components/map/StopMarker.svelte @@ -40,7 +40,7 @@ } .highlight { - @apply scale-125 border-green-600 drop-shadow-md; + @apply scale-125 border-brand-secondary drop-shadow-md; } .custom-marker:hover { diff --git a/src/components/map/VehiclePopupContent.svelte b/src/components/map/VehiclePopupContent.svelte index be858b2..305c27a 100644 --- a/src/components/map/VehiclePopupContent.svelte +++ b/src/components/map/VehiclePopupContent.svelte @@ -14,7 +14,7 @@