Format styles
directory with prettier.
This commit is contained in:
parent
45ea412d2c
commit
668af83cd6
30 changed files with 527 additions and 496 deletions
|
@ -60,10 +60,7 @@ export interface Player {
|
|||
selection: string;
|
||||
};
|
||||
}
|
||||
export function player(
|
||||
theme: Theme,
|
||||
playerNumber: PlayerIndex,
|
||||
): Player {
|
||||
export function player(theme: Theme, playerNumber: PlayerIndex): Player {
|
||||
return {
|
||||
selection: {
|
||||
cursor: theme.player[playerNumber].cursorColor,
|
||||
|
@ -77,7 +74,7 @@ export type BackgroundState = keyof BackgroundColorSet;
|
|||
export function backgroundColor(
|
||||
theme: Theme,
|
||||
name: BackgroundColor,
|
||||
state?: BackgroundState,
|
||||
state?: BackgroundState
|
||||
): string {
|
||||
return theme.backgroundColor[name][state || "base"];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue