Skip to content

Commit ef87514

Browse files
authored
refactor(themes): group themes into solid and gradient categories (#928)
1 parent c699086 commit ef87514

1 file changed

Lines changed: 19 additions & 7 deletions

File tree

themes/index.ts

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ type Themes = {
2323
};
2424

2525
/**
26-
* Themes object stores theme collection for the card.
26+
* List of solid themes collection for the card.
2727
*
2828
* @type {Themes}
2929
*/
30-
const themes: Themes = {
31-
// Solid themes
30+
const solidThemes: Themes = {
3231
default: {
3332
title_color: "2f80ed",
3433
text_color: "434d58",
@@ -530,9 +529,15 @@ const themes: Themes = {
530529
border_color: "6b518d",
531530
username_color: "e6d9a2",
532531
bg_color: "4a3b66",
533-
},
532+
}
533+
};
534534

535-
// Gradient themes
535+
/**
536+
* List of gradient themes collection for the card.
537+
*
538+
* @type {Themes}
539+
*/
540+
const gradientThemes: Themes = {
536541
"sunset-gradient": {
537542
title_color: "FFFFFF",
538543
text_color: "FFFFFF",
@@ -594,8 +599,15 @@ const themes: Themes = {
594599
icon_color: "bbafd9",
595600
border_color: "8c7bbf",
596601
bg_color: "20,6441a5,2a0845",
597-
},
602+
}
598603
};
599604

600-
export { Themes, themes };
605+
/**
606+
* Themes object stores theme collection for the card.
607+
*
608+
* @type {Themes}
609+
*/
610+
const themes: Themes = { ...solidThemes, ...gradientThemes };
611+
612+
export { Themes, solidThemes, gradientThemes, themes };
601613
export default themes;

0 commit comments

Comments
 (0)