import type { BuildingType } from '~/types/game' /** Icon tile colours per building type, flat and muted: a parchment-toned fill and a dark line for border and glyph. */ export const BUILDING_COLORS: Record = { headquarters: { fill: '#e6c98f', line: '#6e3a12' }, storage: { fill: '#dcc497', line: '#57391f' }, farm: { fill: '#d9cf8c', line: '#556b1e' }, timber_camp: { fill: '#c9cf9a', line: '#3d5a26' }, clay_pit: { fill: '#e2b897', line: '#7b2e16' }, iron_mine: { fill: '#c8c6bd', line: '#43484c' }, hiding_place: { fill: '#d4c2a8', line: '#4b3622' }, wall: { fill: '#cfc7b6', line: '#4f4a42' }, rally_point: { fill: '#e2b8a6', line: '#7b1e16' }, barracks: { fill: '#d9b9a0', line: '#5c140f' }, stable: { fill: '#d8c49a', line: '#5a3d24' }, workshop: { fill: '#cbbfa8', line: '#3e2b1a' }, academy: { fill: '#e6d29a', line: '#6e5a1f' }, } export const buildingTileStyle = (type: BuildingType) => ({ backgroundColor: BUILDING_COLORS[type].fill, borderColor: BUILDING_COLORS[type].line, color: BUILDING_COLORS[type].line, })