Skip to content

[feature request] Be more accurate with the color defined by the user for the background color of elements #2101

@Kiiv

Description

@Kiiv

Is your feature request related to a problem? Please describe.
For now, the background color (fill) is always the 6th color of the array generated by mantine.
Unfortunately, it rarely correspond to the color specified by the user, bringing to an inconsistent experience.

Exemple :
Choosing #ffe0bd wil result in the following array :
[
"#fff5e5",
"#ffe0bd",
"#fed19e",
"#fdb769",
"#fda13c",
"#fd9422",
"#fd8c14",
"#e27907",
"#c96b00",
"#af5b00"
]

6th element is way darker the the original.

Describe the solution you'd like
We could find the index of the specified value in the array and use it as the reference color for the backgoundn. We can then use surrounding ones for others attributes (stroke).

Metadata

Metadata

Assignees

Labels

No fields configured for feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions