Generate color themes and palettes based on a primary color using a variety of algorithms and color manipulation techniques.
To install the color theme generator, run the following command in your terminal:
npm install color-theme-generator
After installing, you can use the library in your JavaScript projects to generate color themes.
Here's a simple example to get you started:
const { generateComplementaryTheme } = require('color-theme-generator');
// Generate a theme using a base color
const baseColor = '#3498db'; // A nice shade of blue
const theme = generateComplementaryTheme(baseColor);
console.log(theme);
This will output a complementary color theme based on the provided base color.
Generates a complementary color theme.
-
baseColor
: String - A color in hex, rgb, or hsl format that will be used as the base of the theme.
Contributions are welcome! If you have an idea for an improvement or find a bug, please open an issue or submit a pull request.