Skip to content

Commit 1082fd0

Browse files
authored
Merge pull request 0l1v3rr#466 from rahulkumarpahwa/master
New Theme-Slack
2 parents 297223a + 658ed89 commit 1082fd0

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

docs/THEMES.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,4 +337,10 @@ If you have a cool new theme in mind, or want to add one for yourself and others
337337
<img src="https://github-readme-tech-stack.vercel.app/api/cards?lineCount=1&bg=%23211f27&badge=%233b3a44&border=%23b9b9c0&titleColor=%2385bef7&line1=node.js,node.js,auto;typescript,typescript,auto;express,express.js,auto">
338338
</td>
339339
</tr>
340-
</table>
340+
<tr>
341+
<td align="center"><code>slack</code></td>
342+
<td>
343+
<img src="https://github-readme-tech-stack.vercel.app/api/cards?title=slack&lineCount=1&bg=%232a072c&badge=%237d3986&border=%233e1043&titleColor=%23d8e7f8&line1=typescript%2CTYPESCRIPT%2C3178c6%3Bexpress%2CEXPRESS.JS%2C4f9cb6%3B">
344+
</td>
345+
</tr>
346+
</table>

src/const/themes.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { type Theme } from "@/types";
22

3-
43
/**
54
* This `Map` stores all the themes that are currently available.
65
* In order to add a new theme, use the `set` method.
@@ -141,9 +140,9 @@ themes.set("blood_dark", {
141140
});
142141
themes.set("hacker", {
143142
backgroundColor: "#101010",
144-
borderColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
143+
borderColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
145144
titleColor: "#1DDB07",
146-
badgeColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
145+
badgeColor: "#222222", // this one is creating a bug if we write #222 instead of #222222.
147146
});
148147
themes.set("android", {
149148
backgroundColor: "#101010",
@@ -295,11 +294,17 @@ themes.set("dark_minimalist", {
295294
titleColor: "#85bef7",
296295
badgeColor: "#3b3a44",
297296
});
297+
themes.set("slack", {
298+
backgroundColor: "#2a072c",
299+
borderColor: "#3e1043",
300+
titleColor: "#d8e7f8",
301+
badgeColor: "#7d3986",
302+
});
298303
/**
299304
* Searches for the specified theme in the themes map.
300305
* If the theme is not present in the map, then
301306
* the default github_dark theme gets returned.
302307
*/
303308
export const getThemeByName = (name: string): Theme => {
304309
return themes.get(name.toLowerCase()) ?? Array.from(themes).at(0)![1];
305-
};
310+
};

0 commit comments

Comments
 (0)