mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 07:56:11 +02:00
feat: implement dark mode
This commit is contained in:
@@ -0,0 +1,51 @@
|
||||
interface ISet {
|
||||
background: string
|
||||
foreground: string
|
||||
}
|
||||
|
||||
export interface ITheme {
|
||||
name: "dark" | "light"
|
||||
sidebar: ISet & { active: string }
|
||||
main: ISet & { link: string }
|
||||
discord: {
|
||||
base: string
|
||||
darker: string
|
||||
}
|
||||
}
|
||||
|
||||
const baseColors = {
|
||||
discord: {
|
||||
base: "#7289DA",
|
||||
darker: "#5265AD",
|
||||
},
|
||||
}
|
||||
|
||||
export const darkTheme: ITheme = {
|
||||
...baseColors,
|
||||
name: "dark",
|
||||
sidebar: {
|
||||
background: "#293845",
|
||||
foreground: "#FFFFFF",
|
||||
active: "#00FCFF",
|
||||
},
|
||||
main: {
|
||||
background: "#1F2A34",
|
||||
foreground: "#FFFFFF",
|
||||
link: "#04B0A6",
|
||||
},
|
||||
}
|
||||
|
||||
export const lightTheme: ITheme = {
|
||||
...baseColors,
|
||||
name: "light",
|
||||
sidebar: {
|
||||
background: "#F9F9F9",
|
||||
foreground: "#000000",
|
||||
active: "#499DEF",
|
||||
},
|
||||
main: {
|
||||
background: "#FFFFFF",
|
||||
foreground: "#000000",
|
||||
link: "#04B0A6",
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user