Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

550 B
Raw Blame
import { useMapPaint } from '../../Map/mapPaint';

/**
 * The colours a ride's horse routes are drawn in on a map (styles/horse.css):
 * the sections of a route in its brown, the one chosen in the accent, both on
 * a rim. The cards take the CSS variables directly; a map needs them resolved.
 */
const HORSE_PAINT_TOKENS = {
  section: '--horse-route',
  chosen: '--accent',
  casing: '--horse-route-casing',
} as const;

export function useHorsePaint(): Record<keyof typeof HORSE_PAINT_TOKENS, string> {
  return useMapPaint(HORSE_PAINT_TOKENS);
}