Skip to content

Commit

Permalink
Fix party colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ackuq committed Sep 30, 2023
1 parent 8dda763 commit a63a613
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
80 changes: 40 additions & 40 deletions apps/web/lib/styles/party.ts
Original file line number Diff line number Diff line change
@@ -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",
};
4 changes: 2 additions & 2 deletions packages/party-data/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Party } from "./types";

export const partyNames: Record<Party, string> = {
export const partyName: Record<Party, string> = {
[Party.S]: "Socialdemokraterna",
[Party.SD]: "Sverigedemokraterna",
[Party.M]: "Moderaterna",
Expand All @@ -11,7 +11,7 @@ export const partyNames: Record<Party, string> = {
[Party.V]: "Vänsterpartiet",
};

export const partyColors = {
export const partyColors: Record<Party, string> = {
[Party.C]: "#1e824c",
[Party.KD]: "#22a7f0",
[Party.L]: "#5c97bf",
Expand Down

0 comments on commit a63a613

Please sign in to comment.