summaryrefslogtreecommitdiff
path: root/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
commit0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch)
tree6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js')
-rwxr-xr-xusers/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js
new file mode 100755
index 0000000..51985a5
--- /dev/null
+++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js
@@ -0,0 +1,21 @@
1import * as Themes from "./themes";
2import * as Pywal from "./pywal/pywal-colors";
3
4const WITH_PYWAL = false;
5
6const overrideColors = WITH_PYWAL ? Pywal.colors : {};
7
8/**
9 * Generates color themes by merging the specified themes with override colors.
10 *
11 * @param {Object} themes - An object containing the light and dark theme names.
12 * @param {string} themes.lightTheme - The name of the light theme.
13 * @param {string} themes.darkTheme - The name of the dark theme.
14 * @returns {Object} An object containing the light and dark color themes.
15 */
16export function colors(themes) {
17 return {
18 light: { ...Themes.collection[themes.lightTheme], ...overrideColors },
19 dark: { ...Themes.collection[themes.darkTheme], ...overrideColors },
20 };
21}