add dark theme
This commit is contained in:
parent
8102466304
commit
cd0b36fbb4
32
src/theme/DarkTheme.ts
Normal file
32
src/theme/DarkTheme.ts
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
import { Theme } from "./Theme";
|
||||||
|
|
||||||
|
// from https://colorhunt.co/palette/0f0e0e5412128b9a46eeeeee
|
||||||
|
const colors = {
|
||||||
|
primary: "#541212",
|
||||||
|
secondary: "#0F0E0E",
|
||||||
|
tertiary: "#8B9A46",
|
||||||
|
quaternary: "#EEEEEE",
|
||||||
|
};
|
||||||
|
|
||||||
|
const colorSpecial = "#990000";
|
||||||
|
|
||||||
|
const darkTheme: Theme = {
|
||||||
|
id: "2",
|
||||||
|
name: "Dark Theme",
|
||||||
|
background: colors.primary,
|
||||||
|
appBarBgColor: colors.secondary,
|
||||||
|
primary: colors.primary,
|
||||||
|
primaryLight: colors.quaternary,
|
||||||
|
playerTurnColor: colors.secondary,
|
||||||
|
boardColor: colors.secondary,
|
||||||
|
holeColor: colors.tertiary,
|
||||||
|
pitSelectedColor: colors.tertiary,
|
||||||
|
stoneColor: colors.primary,
|
||||||
|
stoneLightColor: colors.tertiary,
|
||||||
|
pitGameMoveAnimateColor: colors.quaternary,
|
||||||
|
pitEmptyPitAnimateColor: colorSpecial,
|
||||||
|
pitLastStoneInBankPitAnimateColor: colorSpecial,
|
||||||
|
pitGetRivalStonePitAnimateColor: colorSpecial,
|
||||||
|
};
|
||||||
|
|
||||||
|
export default darkTheme;
|
||||||
@ -1,8 +1,9 @@
|
|||||||
|
import darkTheme from "./DarkTheme";
|
||||||
import defaultTheme from "./DefaultTheme";
|
import defaultTheme from "./DefaultTheme";
|
||||||
import oldTheme from "./OldTheme";
|
import oldTheme from "./OldTheme";
|
||||||
import { Theme } from "./Theme";
|
import { Theme } from "./Theme";
|
||||||
|
|
||||||
export const themes = [defaultTheme, oldTheme];
|
export const themes = [defaultTheme, darkTheme, oldTheme];
|
||||||
|
|
||||||
const THEME_ID = "theme_id";
|
const THEME_ID = "theme_id";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user