Skip to content

Diverging palette does not handle darker middle colors #253

@enbo

Description

@enbo

Description

When using a middle color that is darker than the start/end colors, the gradient result is not smooth.

Steps to reproduce

  1. Enter start colors that are light, such as 5BBDDA and E47DFB.
  2. Enter middle color that is darker, such as 2C2EDC.

Expected behavior

A smooth gradient/palette without wild kinks in the model should be generated.

Screenshots

Image

Environment

  • Firefox 138.3 on iPadOS

Additional context

This functionality is crucial for dark mode diverging palettes.

This seems to be purely an issue of lightness, not disjointed hue combinations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    UIIssues related to the Leonardo web interfacebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions