diff --git a/apps/web/lib/styles/party.ts b/apps/web/lib/styles/party.ts index 7be0394a7..ade9e6f44 100644 --- a/apps/web/lib/styles/party.ts +++ b/apps/web/lib/styles/party.ts @@ -1,56 +1,56 @@ import { Party } from "@partiguiden/party-data/types"; export const borderBottom = { - [Party.C]: "border-b-party-c", - [Party.KD]: "border-b-party-kd", - [Party.L]: "border-b-party-l", - [Party.M]: "border-b-party-m", - [Party.MP]: "border-b-party-mp", - [Party.S]: "border-b-party-s", - [Party.SD]: "border-b-party-sd", - [Party.V]: "border-b-party-v", + [Party.C]: "border-b-party-C", + [Party.KD]: "border-b-party-KD", + [Party.L]: "border-b-party-L", + [Party.M]: "border-b-party-M", + [Party.MP]: "border-b-party-MP", + [Party.S]: "border-b-party-S", + [Party.SD]: "border-b-party-SD", + [Party.V]: "border-b-party-V", } as const; export const textColor = { - [Party.C]: "text-party-c", - [Party.KD]: "text-party-kd", - [Party.L]: "text-party-l", - [Party.M]: "text-party-m", - [Party.MP]: "text-party-mp", - [Party.S]: "text-party-s", - [Party.SD]: "text-party-sd", - [Party.V]: "text-party-v", + [Party.C]: "text-party-C", + [Party.KD]: "text-party-KD", + [Party.L]: "text-party-L", + [Party.M]: "text-party-M", + [Party.MP]: "text-party-MP", + [Party.S]: "text-party-S", + [Party.SD]: "text-party-SD", + [Party.V]: "text-party-V", } as const; export const background = { - [Party.C]: "bg-party-c", - [Party.KD]: "bg-party-kd", - [Party.L]: "bg-party-l", - [Party.M]: "bg-party-m", - [Party.MP]: "bg-party-mp", - [Party.S]: "bg-party-s", - [Party.SD]: "bg-party-sd", - [Party.V]: "bg-party-v", + [Party.C]: "bg-party-C", + [Party.KD]: "bg-party-KD", + [Party.L]: "bg-party-L", + [Party.M]: "bg-party-M", + [Party.MP]: "bg-party-MP", + [Party.S]: "bg-party-S", + [Party.SD]: "bg-party-SD", + [Party.V]: "bg-party-V", } as const; export const backgroundHover = { - [Party.C]: "hover:bg-party-c/25", - [Party.KD]: "hover:bg-party-kd/25", - [Party.L]: "hover:bg-party-l/25", - [Party.M]: "hover:bg-party-m/25", - [Party.MP]: "hover:bg-party-mp/25", - [Party.S]: "hover:bg-party-s/25", - [Party.SD]: "hover:bg-party-sd/25", - [Party.V]: "hover:bg-party-v/25", + [Party.C]: "hover:bg-party-C/25", + [Party.KD]: "hover:bg-party-KD/25", + [Party.L]: "hover:bg-party-L/25", + [Party.M]: "hover:bg-party-M/25", + [Party.MP]: "hover:bg-party-MP/25", + [Party.S]: "hover:bg-party-S/25", + [Party.SD]: "hover:bg-party-SD/25", + [Party.V]: "hover:bg-party-V/25", } as const; export const marker = { - [Party.C]: "marker:text-party-c", - [Party.KD]: "marker:text-party-kd", - [Party.L]: "marker:text-party-l", - [Party.M]: "marker:text-party-m", - [Party.MP]: "marker:text-party-mp", - [Party.S]: "marker:text-party-s", - [Party.SD]: "marker:text-party-sd", - [Party.V]: "marker:text-party-v", + [Party.C]: "marker:text-party-C", + [Party.KD]: "marker:text-party-KD", + [Party.L]: "marker:text-party-L", + [Party.M]: "marker:text-party-M", + [Party.MP]: "marker:text-party-MP", + [Party.S]: "marker:text-party-S", + [Party.SD]: "marker:text-party-SD", + [Party.V]: "marker:text-party-V", }; diff --git a/packages/party-data/utils.ts b/packages/party-data/utils.ts index 40a6d1eec..1c5436342 100644 --- a/packages/party-data/utils.ts +++ b/packages/party-data/utils.ts @@ -1,6 +1,6 @@ import { Party } from "./types"; -export const partyNames: Record = { +export const partyName: Record = { [Party.S]: "Socialdemokraterna", [Party.SD]: "Sverigedemokraterna", [Party.M]: "Moderaterna", @@ -11,7 +11,7 @@ export const partyNames: Record = { [Party.V]: "Vänsterpartiet", }; -export const partyColors = { +export const partyColors: Record = { [Party.C]: "#1e824c", [Party.KD]: "#22a7f0", [Party.L]: "#5c97bf",