Differentiate secondary color from primary

This commit is contained in:
Héctor Ramón Jiménez 2025-08-06 19:37:14 +02:00
parent af3125842d
commit 53c059bf88
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
26 changed files with 70 additions and 45 deletions

View file

@ -530,8 +530,8 @@ impl Secondary {
/// Generates a set of [`Secondary`] colors from the base and text colors.
pub fn generate(base: Color, text: Color) -> Self {
let weak = mix(deviate(base, 0.1), text, 0.2);
let base = mix(deviate(base, 0.3), text, 0.3);
let strong = mix(deviate(base, 0.5), text, 0.4);
let strong = mix(deviate(base, 0.3), text, 0.2);
let base = mix(deviate(base, 0.2), text, 0.2);
Self {
base: Pair::new(base, text),