Improve the accessibility of the default colors used for graphs (#21839)

* Update the first 10 colors to match the Observable10 scheme

* Add darker and lighter variants
This commit is contained in:
Bart Mesuere 2024-09-30 10:59:13 +02:00 committed by GitHub
parent 23c21a35d8
commit b6efedfc8d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,36 +1,36 @@
import { theme2hex } from "./convert-color"; import { theme2hex } from "./convert-color";
export const COLORS = [ export const COLORS = [
"#44739e", "#4269d0",
"#984ea3", "#f4bd4a",
"#00d2d5", "#ff725c",
"#ff7f00", "#6cc5b0",
"#af8d00", "#a463f2",
"#7f80cd", "#ff8ab7",
"#b3e900", "#9c6b4e",
"#c42e60", "#97bbf5",
"#a65628", "#01ab63",
"#f781bf", "#9498a0",
"#8dd3c7", "#094bad",
"#bebada", "#c99000",
"#fb8072", "#d84f3e",
"#80b1d3", "#49a28f",
"#fdb462", "#048732",
"#fccde5", "#d96895",
"#bc80bd", "#8043ce",
"#ffed6f", "#7599d1",
"#c4eaff", "#7a4c31",
"#cf8c00", "#74787f",
"#1b9e77", "#6989f4",
"#d95f02", "#ffd444",
"#e7298a", "#ff957c",
"#e6ab02", "#8fe9d3",
"#a6761d", "#62cc71",
"#0097ff", "#ffadda",
"#00d067", "#c884ff",
"#f43600", "#badeff",
"#4ba93b", "#bf8b6d",
"#5779bb", "#b6bac2",
"#927acc", "#927acc",
"#97ee3f", "#97ee3f",
"#bf3947", "#bf3947",