From dd59240fcccbbdf46febf509874ae1f0bc7f1d75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rahul=20Kumar=20=F0=9F=9A=80?= Date: Sun, 1 Sep 2024 04:37:18 +0530 Subject: [PATCH 1/2] new theme-slack --- src/const/themes.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/const/themes.ts b/src/const/themes.ts index 1c52a32..0db5bfa 100644 --- a/src/const/themes.ts +++ b/src/const/themes.ts @@ -141,9 +141,9 @@ themes.set("blood_dark", { }); themes.set("hacker", { backgroundColor: "#101010", - borderColor: "#222222", // this one is creating a bug if we write #222 instead of #222222. + borderColor: "#222222", // this one is creating a bug if we write #222 instead of #222222. titleColor: "#1DDB07", - badgeColor: "#222222", // this one is creating a bug if we write #222 instead of #222222. + badgeColor: "#222222", // this one is creating a bug if we write #222 instead of #222222. }); themes.set("android", { backgroundColor: "#101010", @@ -295,6 +295,12 @@ themes.set("dark_minimalist", { titleColor: "#85bef7", badgeColor: "#3b3a44", }); +themes.set("slack", { + backgroundColor: "#2a072c", + borderColor: "#3e1043", + titleColor: "#d8e7f8", + badgeColor: "#7d3986", +}); /** * Searches for the specified theme in the themes map. * If the theme is not present in the map, then From 658ed899cb64f8b854b92193121b84cd08e95ecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rahul=20Kumar=20=F0=9F=9A=80?= Date: Sun, 1 Sep 2024 04:59:02 +0530 Subject: [PATCH 2/2] created slack in Themes.md --- docs/THEMES.md | 8 +++++++- src/const/themes.ts | 3 +-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/THEMES.md b/docs/THEMES.md index 9da8223..2cfac40 100644 --- a/docs/THEMES.md +++ b/docs/THEMES.md @@ -337,4 +337,10 @@ If you have a cool new theme in mind, or want to add one for yourself and others - \ No newline at end of file + + slack + + + + + diff --git a/src/const/themes.ts b/src/const/themes.ts index 0db5bfa..527b3c4 100644 --- a/src/const/themes.ts +++ b/src/const/themes.ts @@ -1,6 +1,5 @@ import { type Theme } from "@/types"; - /** * This `Map` stores all the themes that are currently available. * In order to add a new theme, use the `set` method. @@ -308,4 +307,4 @@ themes.set("slack", { */ export const getThemeByName = (name: string): Theme => { return themes.get(name.toLowerCase()) ?? Array.from(themes).at(0)![1]; -}; \ No newline at end of file +};