InioX/matugen

Question: Is it possible to "lock-in" a color?

mkstowe opened this issue · 3 comments

I'd like to generate a palette with some predefined colors. For example, have the primary and secondary colors locked-in, and generate the rest of the palette around those. Is this possible?

You mean definining a custom static color for primary and secondary, and generate the rest of the scheme based on the source color?

Either that or have the source color be the same as primary.

You can now overwrite colors by adding a color into custom_colors, naming it the same as the color you want to overwrite.

Example:

[config.custom_colors]
primary = "#00FF00"

When you use {{ colors.primary.default.hex }}, it will be the defined color.