aboutsummaryrefslogtreecommitdiff
path: root/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/theme.js
blob: 51985a54ee023638e9e0da50b756eb35312c8f8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import * as Themes from "./themes";
import * as Pywal from "./pywal/pywal-colors";

const WITH_PYWAL = false;

const overrideColors = WITH_PYWAL ? Pywal.colors : {};

/**
 * Generates color themes by merging the specified themes with override colors.
 *
 * @param {Object} themes - An object containing the light and dark theme names.
 * @param {string} themes.lightTheme - The name of the light theme.
 * @param {string} themes.darkTheme - The name of the dark theme.
 * @returns {Object} An object containing the light and dark color themes.
 */
export function colors(themes) {
  return {
    light: { ...Themes.collection[themes.lightTheme], ...overrideColors },
    dark: { ...Themes.collection[themes.darkTheme], ...overrideColors },
  };
}