diff --git a/packages/party-data/utils.ts b/packages/party-data/utils.ts index 40a6d1eec..573048ce1 100644 --- a/packages/party-data/utils.ts +++ b/packages/party-data/utils.ts @@ -11,13 +11,16 @@ export const partyNames: Record = { [Party.V]: "Vänsterpartiet", }; -export const partyColors = { - [Party.C]: "#1e824c", - [Party.KD]: "#22a7f0", - [Party.L]: "#5c97bf", - [Party.M]: "#3a539b", - [Party.MP]: "#26a65b", - [Party.S]: "#c0392b", - [Party.SD]: "#f4d03f", - [Party.V]: "#cf000f", +/** + * Needs to not be referencing enums in object since tailwind will not respect the key otherwise. + */ +export const partyColors: Record = { + C: "#1e824c", + KD: "#22a7f0", + L: "#5c97bf", + M: "#3a539b", + MP: "#26a65b", + S: "#c0392b", + SD: "#f4d03f", + V: "#cf000f", };