From 26f2c897e5177930b8a8d29050dd669248b6698c Mon Sep 17 00:00:00 2001 From: Danielle Huisman Date: Wed, 8 May 2024 12:40:19 +0200 Subject: [PATCH] Add script for colors package --- Cargo.toml | 7 +- packages/colors/Cargo.toml | 9 + packages/colors/README.md | 13 + packages/colors/src/black_a.rs | 29 + packages/colors/src/dark.rs | 1549 ++++++++++++++++++++++++++++++++ packages/colors/src/lib.rs | 9 + packages/colors/src/light.rs | 1549 ++++++++++++++++++++++++++++++++ packages/colors/src/white_a.rs | 29 + scripts/Cargo.toml | 18 + scripts/src/bin/colors.rs | 105 +++ scripts/src/lib.rs | 1 + 11 files changed, 3317 insertions(+), 1 deletion(-) create mode 100644 packages/colors/Cargo.toml create mode 100644 packages/colors/README.md create mode 100644 packages/colors/src/black_a.rs create mode 100644 packages/colors/src/dark.rs create mode 100644 packages/colors/src/lib.rs create mode 100644 packages/colors/src/light.rs create mode 100644 packages/colors/src/white_a.rs create mode 100644 scripts/Cargo.toml create mode 100644 scripts/src/bin/colors.rs create mode 100644 scripts/src/lib.rs diff --git a/Cargo.toml b/Cargo.toml index 9facf59..d700acc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,10 @@ [workspace] -members = ["packages/primitives/*/*", "packages/primitives/*/*/example"] +members = [ + "packages/colors", + "packages/primitives/*/*", + "packages/primitives/*/*/example", + "scripts", +] resolver = "2" [workspace.package] diff --git a/packages/colors/Cargo.toml b/packages/colors/Cargo.toml new file mode 100644 index 0000000..27b65c2 --- /dev/null +++ b/packages/colors/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "radix-colors" +description = "Rust port of Radix Colors." + +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +version.workspace = true diff --git a/packages/colors/README.md b/packages/colors/README.md new file mode 100644 index 0000000..640f855 --- /dev/null +++ b/packages/colors/README.md @@ -0,0 +1,13 @@ +

+ + + +

+ +

radix-colors

+ +A gorgeous, accessible color system. + +## Rust Radix + +[Rust Radix](https://github.com/NixySoftware/radix) is a Rust port of [Radix](https://www.radix-ui.com/colors). diff --git a/packages/colors/src/black_a.rs b/packages/colors/src/black_a.rs new file mode 100644 index 0000000..69e863e --- /dev/null +++ b/packages/colors/src/black_a.rs @@ -0,0 +1,29 @@ +pub const BLACK_A: [&str; 12] = [ + "rgba(0, 0, 0, 0.05)", + "rgba(0, 0, 0, 0.1)", + "rgba(0, 0, 0, 0.15)", + "rgba(0, 0, 0, 0.2)", + "rgba(0, 0, 0, 0.3)", + "rgba(0, 0, 0, 0.4)", + "rgba(0, 0, 0, 0.5)", + "rgba(0, 0, 0, 0.6)", + "rgba(0, 0, 0, 0.7)", + "rgba(0, 0, 0, 0.8)", + "rgba(0, 0, 0, 0.9)", + "rgba(0, 0, 0, 0.95)", +]; + +pub const BLACK_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0.05)", + "color(display-p3 0 0 0 / 0.1)", + "color(display-p3 0 0 0 / 0.15)", + "color(display-p3 0 0 0 / 0.2)", + "color(display-p3 0 0 0 / 0.3)", + "color(display-p3 0 0 0 / 0.4)", + "color(display-p3 0 0 0 / 0.5)", + "color(display-p3 0 0 0 / 0.6)", + "color(display-p3 0 0 0 / 0.7)", + "color(display-p3 0 0 0 / 0.8)", + "color(display-p3 0 0 0 / 0.9)", + "color(display-p3 0 0 0 / 0.95)", +]; diff --git a/packages/colors/src/dark.rs b/packages/colors/src/dark.rs new file mode 100644 index 0000000..68a833c --- /dev/null +++ b/packages/colors/src/dark.rs @@ -0,0 +1,1549 @@ +pub const GRAY_DARK: [&str; 12] = [ + "#111111", "#191919", "#222222", "#2a2a2a", "#313131", "#3a3a3a", "#484848", "#606060", + "#6e6e6e", "#7b7b7b", "#b4b4b4", "#eeeeee", +]; + +pub const GRAY_DARK_A: [&str; 12] = [ + "#00000000", + "#ffffff09", + "#ffffff12", + "#ffffff1b", + "#ffffff22", + "#ffffff2c", + "#ffffff3b", + "#ffffff55", + "#ffffff64", + "#ffffff72", + "#ffffffaf", + "#ffffffed", +]; + +pub const GRAY_DARK_P3: [&str; 12] = [ + "color(display-p3 0.067 0.067 0.067)", + "color(display-p3 0.098 0.098 0.098)", + "color(display-p3 0.135 0.135 0.135)", + "color(display-p3 0.163 0.163 0.163)", + "color(display-p3 0.192 0.192 0.192)", + "color(display-p3 0.228 0.228 0.228)", + "color(display-p3 0.283 0.283 0.283)", + "color(display-p3 0.375 0.375 0.375)", + "color(display-p3 0.431 0.431 0.431)", + "color(display-p3 0.484 0.484 0.484)", + "color(display-p3 0.706 0.706 0.706)", + "color(display-p3 0.933 0.933 0.933)", +]; + +pub const GRAY_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0)", + "color(display-p3 1 1 1 / 0.034)", + "color(display-p3 1 1 1 / 0.071)", + "color(display-p3 1 1 1 / 0.105)", + "color(display-p3 1 1 1 / 0.134)", + "color(display-p3 1 1 1 / 0.172)", + "color(display-p3 1 1 1 / 0.231)", + "color(display-p3 1 1 1 / 0.332)", + "color(display-p3 1 1 1 / 0.391)", + "color(display-p3 1 1 1 / 0.445)", + "color(display-p3 1 1 1 / 0.685)", + "color(display-p3 1 1 1 / 0.929)", +]; + +pub const MAUVE_DARK: [&str; 12] = [ + "#121113", "#1a191b", "#232225", "#2b292d", "#323035", "#3c393f", "#49474e", "#625f69", + "#6f6d78", "#7c7a85", "#b5b2bc", "#eeeef0", +]; + +pub const MAUVE_DARK_A: [&str; 12] = [ + "#00000000", + "#f5f4f609", + "#ebeaf814", + "#eee5f81d", + "#efe6fe25", + "#f1e6fd30", + "#eee9ff40", + "#eee7ff5d", + "#eae6fd6e", + "#ece9fd7c", + "#f5f1ffb7", + "#fdfdffef", +]; + +pub const MAUVE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.07 0.067 0.074)", + "color(display-p3 0.101 0.098 0.105)", + "color(display-p3 0.138 0.134 0.144)", + "color(display-p3 0.167 0.161 0.175)", + "color(display-p3 0.196 0.189 0.206)", + "color(display-p3 0.232 0.225 0.245)", + "color(display-p3 0.286 0.277 0.302)", + "color(display-p3 0.383 0.373 0.408)", + "color(display-p3 0.434 0.428 0.467)", + "color(display-p3 0.487 0.48 0.519)", + "color(display-p3 0.707 0.7 0.735)", + "color(display-p3 0.933 0.933 0.94)", +]; + +pub const MAUVE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0)", + "color(display-p3 0.996 0.992 1 / 0.034)", + "color(display-p3 0.937 0.933 0.992 / 0.077)", + "color(display-p3 0.957 0.918 0.996 / 0.111)", + "color(display-p3 0.937 0.906 0.996 / 0.145)", + "color(display-p3 0.953 0.925 0.996 / 0.183)", + "color(display-p3 0.945 0.929 1 / 0.246)", + "color(display-p3 0.937 0.918 1 / 0.361)", + "color(display-p3 0.933 0.918 1 / 0.424)", + "color(display-p3 0.941 0.925 1 / 0.479)", + "color(display-p3 0.965 0.961 1 / 0.712)", + "color(display-p3 0.992 0.992 1 / 0.937)", +]; + +pub const SLATE_DARK: [&str; 12] = [ + "#111113", "#18191b", "#212225", "#272a2d", "#2e3135", "#363a3f", "#43484e", "#5a6169", + "#696e77", "#777b84", "#b0b4ba", "#edeef0", +]; + +pub const SLATE_DARK_A: [&str; 12] = [ + "#00000000", + "#d8f4f609", + "#ddeaf814", + "#d3edf81d", + "#d9edfe25", + "#d6ebfd30", + "#d9edff40", + "#d9edff5d", + "#dfebfd6d", + "#e5edfd7b", + "#f1f7feb5", + "#fcfdffef", +]; + +pub const SLATE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.067 0.067 0.074)", + "color(display-p3 0.095 0.098 0.105)", + "color(display-p3 0.13 0.135 0.145)", + "color(display-p3 0.156 0.163 0.176)", + "color(display-p3 0.183 0.191 0.206)", + "color(display-p3 0.215 0.226 0.244)", + "color(display-p3 0.265 0.28 0.302)", + "color(display-p3 0.357 0.381 0.409)", + "color(display-p3 0.415 0.431 0.463)", + "color(display-p3 0.469 0.483 0.514)", + "color(display-p3 0.692 0.704 0.728)", + "color(display-p3 0.93 0.933 0.94)", +]; + +pub const SLATE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0)", + "color(display-p3 0.875 0.992 1 / 0.034)", + "color(display-p3 0.882 0.933 0.992 / 0.077)", + "color(display-p3 0.882 0.953 0.996 / 0.111)", + "color(display-p3 0.878 0.929 0.996 / 0.145)", + "color(display-p3 0.882 0.949 0.996 / 0.183)", + "color(display-p3 0.882 0.929 1 / 0.246)", + "color(display-p3 0.871 0.937 1 / 0.361)", + "color(display-p3 0.898 0.937 1 / 0.42)", + "color(display-p3 0.918 0.945 1 / 0.475)", + "color(display-p3 0.949 0.969 0.996 / 0.708)", + "color(display-p3 0.988 0.992 1 / 0.937)", +]; + +pub const SAGE_DARK: [&str; 12] = [ + "#101211", "#171918", "#202221", "#272a29", "#2e3130", "#373b39", "#444947", "#5b625f", + "#63706b", "#717d79", "#adb5b2", "#eceeed", +]; + +pub const SAGE_DARK_A: [&str; 12] = [ + "#00000000", + "#f0f2f108", + "#f3f5f412", + "#f2fefd1a", + "#f1fbfa22", + "#edfbf42d", + "#edfcf73c", + "#ebfdf657", + "#dffdf266", + "#e5fdf674", + "#f4fefbb0", + "#fdfffeed", +]; + +pub const SAGE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.064 0.07 0.067)", + "color(display-p3 0.092 0.098 0.094)", + "color(display-p3 0.128 0.135 0.131)", + "color(display-p3 0.155 0.164 0.159)", + "color(display-p3 0.183 0.193 0.188)", + "color(display-p3 0.218 0.23 0.224)", + "color(display-p3 0.269 0.285 0.277)", + "color(display-p3 0.362 0.382 0.373)", + "color(display-p3 0.398 0.438 0.421)", + "color(display-p3 0.453 0.49 0.474)", + "color(display-p3 0.685 0.709 0.697)", + "color(display-p3 0.927 0.933 0.93)", +]; + +pub const SAGE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0)", + "color(display-p3 0.976 0.988 0.984 / 0.03)", + "color(display-p3 0.992 0.945 0.941 / 0.072)", + "color(display-p3 0.988 0.996 0.992 / 0.102)", + "color(display-p3 0.992 1 0.996 / 0.131)", + "color(display-p3 0.973 1 0.976 / 0.173)", + "color(display-p3 0.957 1 0.976 / 0.233)", + "color(display-p3 0.957 1 0.984 / 0.334)", + "color(display-p3 0.902 1 0.957 / 0.397)", + "color(display-p3 0.929 1 0.973 / 0.452)", + "color(display-p3 0.969 1 0.988 / 0.688)", + "color(display-p3 0.992 1 0.996 / 0.929)", +]; + +pub const OLIVE_DARK: [&str; 12] = [ + "#111210", "#181917", "#212220", "#282a27", "#2f312e", "#383a36", "#454843", "#5c625b", + "#687066", "#767d74", "#afb5ad", "#eceeec", +]; + +pub const OLIVE_DARK_A: [&str; 12] = [ + "#00000000", + "#f1f2f008", + "#f4f5f312", + "#f3fef21a", + "#f2fbf122", + "#f4faed2c", + "#f2fced3b", + "#edfdeb57", + "#ebfde766", + "#f0fdec74", + "#f6fef4b0", + "#fdfffded", +]; + +pub const OLIVE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.067 0.07 0.063)", + "color(display-p3 0.095 0.098 0.091)", + "color(display-p3 0.131 0.135 0.126)", + "color(display-p3 0.158 0.163 0.153)", + "color(display-p3 0.186 0.192 0.18)", + "color(display-p3 0.221 0.229 0.215)", + "color(display-p3 0.273 0.284 0.266)", + "color(display-p3 0.365 0.382 0.359)", + "color(display-p3 0.414 0.438 0.404)", + "color(display-p3 0.467 0.49 0.458)", + "color(display-p3 0.69 0.709 0.682)", + "color(display-p3 0.927 0.933 0.926)", +]; + +pub const OLIVE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0)", + "color(display-p3 0.984 0.988 0.976 / 0.03)", + "color(display-p3 0.992 0.996 0.988 / 0.068)", + "color(display-p3 0.953 0.996 0.949 / 0.102)", + "color(display-p3 0.969 1 0.965 / 0.131)", + "color(display-p3 0.973 1 0.969 / 0.169)", + "color(display-p3 0.98 1 0.961 / 0.228)", + "color(display-p3 0.961 1 0.957 / 0.334)", + "color(display-p3 0.949 1 0.922 / 0.397)", + "color(display-p3 0.953 1 0.941 / 0.452)", + "color(display-p3 0.976 1 0.965 / 0.688)", + "color(display-p3 0.992 1 0.992 / 0.929)", +]; + +pub const SAND_DARK: [&str; 12] = [ + "#111110", "#191918", "#222221", "#2a2a28", "#31312e", "#3b3a37", "#494844", "#62605b", + "#6f6d66", "#7c7b74", "#b5b3ad", "#eeeeec", +]; + +pub const SAND_DARK_A: [&str; 12] = [ + "#00000000", + "#f4f4f309", + "#f6f6f513", + "#fefef31b", + "#fbfbeb23", + "#fffaed2d", + "#fffbed3c", + "#fff9eb57", + "#fffae965", + "#fffdee73", + "#fffcf4b0", + "#fffffded", +]; + +pub const SAND_DARK_P3: [&str; 12] = [ + "color(display-p3 0.067 0.067 0.063)", + "color(display-p3 0.098 0.098 0.094)", + "color(display-p3 0.135 0.135 0.129)", + "color(display-p3 0.164 0.163 0.156)", + "color(display-p3 0.193 0.192 0.183)", + "color(display-p3 0.23 0.229 0.217)", + "color(display-p3 0.285 0.282 0.267)", + "color(display-p3 0.384 0.378 0.357)", + "color(display-p3 0.434 0.428 0.403)", + "color(display-p3 0.487 0.481 0.456)", + "color(display-p3 0.707 0.703 0.68)", + "color(display-p3 0.933 0.933 0.926)", +]; + +pub const SAND_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0)", + "color(display-p3 0.992 0.992 0.988 / 0.034)", + "color(display-p3 0.996 0.996 0.992 / 0.072)", + "color(display-p3 0.992 0.992 0.953 / 0.106)", + "color(display-p3 1 1 0.965 / 0.135)", + "color(display-p3 1 0.976 0.929 / 0.177)", + "color(display-p3 1 0.984 0.929 / 0.236)", + "color(display-p3 1 0.976 0.925 / 0.341)", + "color(display-p3 1 0.98 0.925 / 0.395)", + "color(display-p3 1 0.992 0.933 / 0.45)", + "color(display-p3 1 0.996 0.961 / 0.685)", + "color(display-p3 1 1 0.992 / 0.929)", +]; + +pub const TOMATO_DARK: [&str; 12] = [ + "#181111", "#1f1513", "#391714", "#4e1511", "#5e1c16", "#6e2920", "#853a2d", "#ac4d39", + "#e54d2e", "#ec6142", "#ff977d", "#fbd3cb", +]; + +pub const TOMATO_DARK_A: [&str; 12] = [ + "#f1121208", + "#ff55330f", + "#ff35232b", + "#fd201142", + "#fe332153", + "#ff4f3864", + "#fd644a7d", + "#fe6d4ea7", + "#fe5431e4", + "#ff6847eb", + "#ff977d", + "#ffd6cefb", +]; + +pub const TOMATO_DARK_P3: [&str; 12] = [ + "color(display-p3 0.09 0.068 0.067)", + "color(display-p3 0.115 0.084 0.076)", + "color(display-p3 0.205 0.097 0.083)", + "color(display-p3 0.282 0.099 0.077)", + "color(display-p3 0.339 0.129 0.101)", + "color(display-p3 0.398 0.179 0.141)", + "color(display-p3 0.487 0.245 0.194)", + "color(display-p3 0.629 0.322 0.248)", + "color(display-p3 0.831 0.345 0.231)", + "color(display-p3 0.862 0.415 0.298)", + "color(display-p3 1 0.585 0.455)", + "color(display-p3 0.959 0.833 0.802)", +]; + +pub const TOMATO_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.973 0.071 0.071 / 0.026)", + "color(display-p3 0.992 0.376 0.224 / 0.051)", + "color(display-p3 0.996 0.282 0.176 / 0.148)", + "color(display-p3 1 0.204 0.118 / 0.232)", + "color(display-p3 1 0.286 0.192 / 0.29)", + "color(display-p3 1 0.392 0.278 / 0.353)", + "color(display-p3 1 0.459 0.349 / 0.45)", + "color(display-p3 1 0.49 0.369 / 0.601)", + "color(display-p3 1 0.408 0.267 / 0.82)", + "color(display-p3 1 0.478 0.341 / 0.853)", + "color(display-p3 1 0.585 0.455)", + "color(display-p3 0.959 0.833 0.802)", +]; + +pub const RED_DARK: [&str; 12] = [ + "#191111", "#201314", "#3b1219", "#500f1c", "#611623", "#72232d", "#8c333a", "#b54548", + "#e5484d", "#ec5d5e", "#ff9592", "#ffd1d9", +]; + +pub const RED_DARK_A: [&str; 12] = [ + "#f4121209", + "#f22f3e11", + "#ff173f2d", + "#fe0a3b44", + "#ff204756", + "#ff3e5668", + "#ff536184", + "#ff5d61b0", + "#fe4e54e4", + "#ff6465eb", + "#ff9592", + "#ffd1d9", +]; + +pub const RED_DARK_P3: [&str; 12] = [ + "color(display-p3 0.093 0.068 0.067)", + "color(display-p3 0.118 0.077 0.079)", + "color(display-p3 0.211 0.081 0.099)", + "color(display-p3 0.287 0.079 0.113)", + "color(display-p3 0.348 0.11 0.142)", + "color(display-p3 0.414 0.16 0.183)", + "color(display-p3 0.508 0.224 0.236)", + "color(display-p3 0.659 0.298 0.297)", + "color(display-p3 0.83 0.329 0.324)", + "color(display-p3 0.861 0.403 0.387)", + "color(display-p3 1 0.57 0.55)", + "color(display-p3 0.971 0.826 0.852)", +]; + +pub const RED_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.984 0.071 0.071 / 0.03)", + "color(display-p3 0.996 0.282 0.282 / 0.055)", + "color(display-p3 1 0.169 0.271 / 0.156)", + "color(display-p3 1 0.118 0.267 / 0.236)", + "color(display-p3 1 0.212 0.314 / 0.303)", + "color(display-p3 1 0.318 0.38 / 0.374)", + "color(display-p3 1 0.4 0.424 / 0.475)", + "color(display-p3 1 0.431 0.431 / 0.635)", + "color(display-p3 1 0.388 0.384 / 0.82)", + "color(display-p3 1 0.463 0.447 / 0.853)", + "color(display-p3 1 0.57 0.55)", + "color(display-p3 0.971 0.826 0.852)", +]; + +pub const RUBY_DARK: [&str; 12] = [ + "#191113", "#1e1517", "#3a141e", "#4e1325", "#5e1a2e", "#6f2539", "#883447", "#b3445a", + "#e54666", "#ec5a72", "#ff949d", "#fed2e1", +]; + +pub const RUBY_DARK_A: [&str; 12] = [ + "#f4124a09", + "#fe5a7f0e", + "#ff235d2c", + "#fd195e42", + "#fe2d6b53", + "#ff447665", + "#ff577d80", + "#ff5c7cae", + "#fe4c70e4", + "#ff617beb", + "#ff949d", + "#ffd3e2fe", +]; + +pub const RUBY_DARK_P3: [&str; 12] = [ + "color(display-p3 0.093 0.068 0.074)", + "color(display-p3 0.113 0.083 0.089)", + "color(display-p3 0.208 0.088 0.117)", + "color(display-p3 0.279 0.092 0.147)", + "color(display-p3 0.337 0.12 0.18)", + "color(display-p3 0.401 0.166 0.223)", + "color(display-p3 0.495 0.224 0.281)", + "color(display-p3 0.652 0.295 0.359)", + "color(display-p3 0.83 0.323 0.408)", + "color(display-p3 0.857 0.392 0.455)", + "color(display-p3 1 0.57 0.59)", + "color(display-p3 0.968 0.83 0.88)", +]; + +pub const RUBY_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.984 0.071 0.329 / 0.03)", + "color(display-p3 0.992 0.376 0.529 / 0.051)", + "color(display-p3 0.996 0.196 0.404 / 0.152)", + "color(display-p3 1 0.173 0.416 / 0.227)", + "color(display-p3 1 0.259 0.459 / 0.29)", + "color(display-p3 1 0.341 0.506 / 0.358)", + "color(display-p3 1 0.412 0.541 / 0.458)", + "color(display-p3 1 0.431 0.537 / 0.627)", + "color(display-p3 1 0.376 0.482 / 0.82)", + "color(display-p3 1 0.447 0.522 / 0.849)", + "color(display-p3 1 0.57 0.59)", + "color(display-p3 0.968 0.83 0.88)", +]; + +pub const CRIMSON_DARK: [&str; 12] = [ + "#191114", "#201318", "#381525", "#4d122f", "#5c1839", "#6d2545", "#873356", "#b0436e", + "#e93d82", "#ee518a", "#ff92ad", "#fdd3e8", +]; + +pub const CRIMSON_DARK_A: [&str; 12] = [ + "#f4126709", + "#f22f7a11", + "#fe2a8b2a", + "#fd158741", + "#fd278f51", + "#fe459763", + "#fd559b7f", + "#fe5b9bab", + "#fe418de8", + "#ff5693ed", + "#ff92ad", + "#ffd5eafd", +]; + +pub const CRIMSON_DARK_P3: [&str; 12] = [ + "color(display-p3 0.093 0.068 0.078)", + "color(display-p3 0.117 0.078 0.095)", + "color(display-p3 0.203 0.091 0.143)", + "color(display-p3 0.277 0.087 0.182)", + "color(display-p3 0.332 0.115 0.22)", + "color(display-p3 0.394 0.162 0.268)", + "color(display-p3 0.489 0.222 0.336)", + "color(display-p3 0.638 0.289 0.429)", + "color(display-p3 0.843 0.298 0.507)", + "color(display-p3 0.864 0.364 0.539)", + "color(display-p3 1 0.56 0.66)", + "color(display-p3 0.966 0.834 0.906)", +]; + +pub const CRIMSON_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.984 0.071 0.463 / 0.03)", + "color(display-p3 0.996 0.282 0.569 / 0.055)", + "color(display-p3 0.996 0.227 0.573 / 0.148)", + "color(display-p3 1 0.157 0.569 / 0.227)", + "color(display-p3 1 0.231 0.604 / 0.286)", + "color(display-p3 1 0.337 0.643 / 0.349)", + "color(display-p3 1 0.416 0.663 / 0.454)", + "color(display-p3 0.996 0.427 0.651 / 0.614)", + "color(display-p3 1 0.345 0.596 / 0.832)", + "color(display-p3 1 0.42 0.62 / 0.853)", + "color(display-p3 1 0.56 0.66)", + "color(display-p3 0.966 0.834 0.906)", +]; + +pub const PINK_DARK: [&str; 12] = [ + "#191117", "#21121d", "#37172f", "#4b143d", "#591c47", "#692955", "#833869", "#a84885", + "#d6409f", "#de51a8", "#ff8dcc", "#fdd1ea", +]; + +pub const PINK_DARK_A: [&str; 12] = [ + "#f412bc09", + "#f420bb12", + "#fe37cc29", + "#fc1ec43f", + "#fd35c24e", + "#fd51c75f", + "#fd62c87b", + "#ff68c8a2", + "#fe49bcd4", + "#ff5cc0dc", + "#ff8dcc", + "#ffd3ecfd", +]; + +pub const PINK_DARK_P3: [&str; 12] = [ + "color(display-p3 0.093 0.068 0.089)", + "color(display-p3 0.121 0.073 0.11)", + "color(display-p3 0.198 0.098 0.179)", + "color(display-p3 0.271 0.095 0.231)", + "color(display-p3 0.32 0.127 0.273)", + "color(display-p3 0.382 0.177 0.326)", + "color(display-p3 0.477 0.238 0.405)", + "color(display-p3 0.612 0.304 0.51)", + "color(display-p3 0.775 0.297 0.61)", + "color(display-p3 0.808 0.356 0.645)", + "color(display-p3 1 0.535 0.78)", + "color(display-p3 0.964 0.826 0.912)", +]; + +pub const PINK_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.984 0.071 0.855 / 0.03)", + "color(display-p3 1 0.2 0.8 / 0.059)", + "color(display-p3 1 0.294 0.886 / 0.139)", + "color(display-p3 1 0.192 0.82 / 0.219)", + "color(display-p3 1 0.282 0.827 / 0.274)", + "color(display-p3 1 0.396 0.835 / 0.337)", + "color(display-p3 1 0.459 0.831 / 0.442)", + "color(display-p3 1 0.478 0.827 / 0.585)", + "color(display-p3 1 0.373 0.784 / 0.761)", + "color(display-p3 1 0.435 0.792 / 0.795)", + "color(display-p3 1 0.535 0.78)", + "color(display-p3 0.964 0.826 0.912)", +]; + +pub const PLUM_DARK: [&str; 12] = [ + "#181118", "#201320", "#351a35", "#451d47", "#512454", "#5e3061", "#734079", "#92549c", + "#ab4aba", "#b658c4", "#e796f3", "#f4d4f4", +]; + +pub const PLUM_DARK_A: [&str; 12] = [ + "#f112f108", + "#f22ff211", + "#fd4cfd27", + "#f646ff3a", + "#f455ff48", + "#f66dff56", + "#f07cfd70", + "#ee84ff95", + "#e961feb6", + "#ed70ffc0", + "#f19cfef3", + "#feddfef4", +]; + +pub const PLUM_DARK_P3: [&str; 12] = [ + "color(display-p3 0.09 0.068 0.092)", + "color(display-p3 0.118 0.077 0.121)", + "color(display-p3 0.192 0.105 0.202)", + "color(display-p3 0.25 0.121 0.271)", + "color(display-p3 0.293 0.152 0.319)", + "color(display-p3 0.343 0.198 0.372)", + "color(display-p3 0.424 0.262 0.461)", + "color(display-p3 0.54 0.341 0.595)", + "color(display-p3 0.624 0.313 0.708)", + "color(display-p3 0.666 0.365 0.748)", + "color(display-p3 0.86 0.602 0.933)", + "color(display-p3 0.936 0.836 0.949)", +]; + +pub const PLUM_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.973 0.071 0.973 / 0.026)", + "color(display-p3 0.933 0.267 1 / 0.059)", + "color(display-p3 0.918 0.333 0.996 / 0.148)", + "color(display-p3 0.91 0.318 1 / 0.219)", + "color(display-p3 0.914 0.388 1 / 0.269)", + "color(display-p3 0.906 0.463 1 / 0.328)", + "color(display-p3 0.906 0.529 1 / 0.425)", + "color(display-p3 0.906 0.553 1 / 0.568)", + "color(display-p3 0.875 0.427 1 / 0.69)", + "color(display-p3 0.886 0.471 0.996 / 0.732)", + "color(display-p3 0.86 0.602 0.933)", + "color(display-p3 0.936 0.836 0.949)", +]; + +pub const PURPLE_DARK: [&str; 12] = [ + "#18111b", "#1e1523", "#301c3b", "#3d224e", "#48295c", "#54346b", "#664282", "#8457aa", + "#8e4ec6", "#9a5cd0", "#d19dff", "#ecd9fa", +]; + +pub const PURPLE_DARK_A: [&str; 12] = [ + "#b412f90b", + "#b744f714", + "#c150ff2d", + "#bb53fd42", + "#be5cfd51", + "#c16dfd61", + "#c378fd7a", + "#c47effa4", + "#b661ffc2", + "#bc6fffcd", + "#d19dff", + "#f1ddfffa", +]; + +pub const PURPLE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.09 0.068 0.103)", + "color(display-p3 0.113 0.082 0.134)", + "color(display-p3 0.175 0.112 0.224)", + "color(display-p3 0.224 0.137 0.297)", + "color(display-p3 0.264 0.167 0.349)", + "color(display-p3 0.311 0.208 0.406)", + "color(display-p3 0.381 0.266 0.496)", + "color(display-p3 0.49 0.349 0.649)", + "color(display-p3 0.523 0.318 0.751)", + "color(display-p3 0.57 0.373 0.791)", + "color(display-p3 0.8 0.62 1)", + "color(display-p3 0.913 0.854 0.971)", +]; + +pub const PURPLE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.686 0.071 0.996 / 0.038)", + "color(display-p3 0.722 0.286 0.996 / 0.072)", + "color(display-p3 0.718 0.349 0.996 / 0.169)", + "color(display-p3 0.702 0.353 1 / 0.248)", + "color(display-p3 0.718 0.404 1 / 0.303)", + "color(display-p3 0.733 0.455 1 / 0.366)", + "color(display-p3 0.753 0.506 1 / 0.458)", + "color(display-p3 0.749 0.522 1 / 0.622)", + "color(display-p3 0.686 0.408 1 / 0.736)", + "color(display-p3 0.71 0.459 1 / 0.778)", + "color(display-p3 0.8 0.62 1)", + "color(display-p3 0.913 0.854 0.971)", +]; + +pub const VIOLET_DARK: [&str; 12] = [ + "#14121f", "#1b1525", "#291f43", "#33255b", "#3c2e69", "#473876", "#56468b", "#6958ad", + "#6e56cf", "#7d66d9", "#baa7ff", "#e2ddfe", +]; + +pub const VIOLET_DARK_A: [&str; 12] = [ + "#4422ff0f", + "#853ff916", + "#8354fe36", + "#7d51fd50", + "#845ffd5f", + "#8f6cfd6d", + "#9879ff83", + "#977dfea8", + "#8668ffcc", + "#9176fed7", + "#baa7ff", + "#e3defffe", +]; + +pub const VIOLET_DARK_P3: [&str; 12] = [ + "color(display-p3 0.077 0.071 0.118)", + "color(display-p3 0.101 0.084 0.141)", + "color(display-p3 0.154 0.123 0.256)", + "color(display-p3 0.191 0.148 0.345)", + "color(display-p3 0.226 0.182 0.396)", + "color(display-p3 0.269 0.223 0.449)", + "color(display-p3 0.326 0.277 0.53)", + "color(display-p3 0.399 0.346 0.656)", + "color(display-p3 0.417 0.341 0.784)", + "color(display-p3 0.477 0.402 0.823)", + "color(display-p3 0.72 0.65 1)", + "color(display-p3 0.883 0.867 0.986)", +]; + +pub const VIOLET_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.282 0.141 0.996 / 0.055)", + "color(display-p3 0.51 0.263 1 / 0.08)", + "color(display-p3 0.494 0.337 0.996 / 0.202)", + "color(display-p3 0.49 0.345 1 / 0.299)", + "color(display-p3 0.525 0.392 1 / 0.353)", + "color(display-p3 0.569 0.455 1 / 0.408)", + "color(display-p3 0.588 0.494 1 / 0.496)", + "color(display-p3 0.596 0.51 1 / 0.631)", + "color(display-p3 0.522 0.424 1 / 0.769)", + "color(display-p3 0.576 0.482 1 / 0.811)", + "color(display-p3 0.72 0.65 1)", + "color(display-p3 0.883 0.867 0.986)", +]; + +pub const IRIS_DARK: [&str; 12] = [ + "#13131e", "#171625", "#202248", "#262a65", "#303374", "#3d3e82", "#4a4a95", "#5958b1", + "#5b5bd6", "#6e6ade", "#b1a9ff", "#e0dffe", +]; + +pub const IRIS_DARK_A: [&str; 12] = [ + "#3636fe0e", + "#564bf916", + "#525bff3b", + "#4d58ff5a", + "#5b62fd6b", + "#6d6ffd7a", + "#7777fe8e", + "#7b7afeac", + "#6a6afed4", + "#7d79ffdc", + "#b1a9ff", + "#e1e0fffe", +]; + +pub const IRIS_DARK_P3: [&str; 12] = [ + "color(display-p3 0.075 0.075 0.114)", + "color(display-p3 0.089 0.086 0.14)", + "color(display-p3 0.128 0.134 0.272)", + "color(display-p3 0.153 0.165 0.382)", + "color(display-p3 0.192 0.201 0.44)", + "color(display-p3 0.239 0.241 0.491)", + "color(display-p3 0.291 0.289 0.565)", + "color(display-p3 0.35 0.345 0.673)", + "color(display-p3 0.357 0.357 0.81)", + "color(display-p3 0.428 0.416 0.843)", + "color(display-p3 0.685 0.662 1)", + "color(display-p3 0.878 0.875 0.986)", +]; + +pub const IRIS_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.224 0.224 0.992 / 0.051)", + "color(display-p3 0.361 0.314 1 / 0.08)", + "color(display-p3 0.357 0.373 1 / 0.219)", + "color(display-p3 0.325 0.361 1 / 0.337)", + "color(display-p3 0.38 0.4 1 / 0.4)", + "color(display-p3 0.447 0.447 1 / 0.454)", + "color(display-p3 0.486 0.486 1 / 0.534)", + "color(display-p3 0.502 0.494 1 / 0.652)", + "color(display-p3 0.431 0.431 1 / 0.799)", + "color(display-p3 0.502 0.486 1 / 0.832)", + "color(display-p3 0.685 0.662 1)", + "color(display-p3 0.878 0.875 0.986)", +]; + +pub const INDIGO_DARK: [&str; 12] = [ + "#11131f", "#141726", "#182449", "#1d2e62", "#253974", "#304384", "#3a4f97", "#435db1", + "#3e63dd", "#5472e4", "#9eb1ff", "#d6e1ff", +]; + +pub const INDIGO_DARK_A: [&str; 12] = [ + "#1133ff0f", + "#3354fa17", + "#2f62ff3c", + "#3566ff57", + "#4171fd6b", + "#5178fd7c", + "#5a7fff90", + "#5b81feac", + "#4671ffdb", + "#5c7efee3", + "#9eb1ff", + "#d6e1ff", +]; + +pub const INDIGO_DARK_P3: [&str; 12] = [ + "color(display-p3 0.068 0.074 0.118)", + "color(display-p3 0.081 0.089 0.144)", + "color(display-p3 0.105 0.141 0.275)", + "color(display-p3 0.129 0.18 0.369)", + "color(display-p3 0.163 0.22 0.439)", + "color(display-p3 0.203 0.262 0.5)", + "color(display-p3 0.245 0.309 0.575)", + "color(display-p3 0.285 0.362 0.674)", + "color(display-p3 0.276 0.384 0.837)", + "color(display-p3 0.354 0.445 0.866)", + "color(display-p3 0.63 0.69 1)", + "color(display-p3 0.848 0.881 0.99)", +]; + +pub const INDIGO_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.071 0.212 0.996 / 0.055)", + "color(display-p3 0.251 0.345 0.988 / 0.085)", + "color(display-p3 0.243 0.404 1 / 0.223)", + "color(display-p3 0.263 0.42 1 / 0.324)", + "color(display-p3 0.314 0.451 1 / 0.4)", + "color(display-p3 0.361 0.49 1 / 0.467)", + "color(display-p3 0.388 0.51 1 / 0.547)", + "color(display-p3 0.404 0.518 1 / 0.652)", + "color(display-p3 0.318 0.451 1 / 0.824)", + "color(display-p3 0.404 0.506 1 / 0.858)", + "color(display-p3 0.63 0.69 1)", + "color(display-p3 0.848 0.881 0.99)", +]; + +pub const BLUE_DARK: [&str; 12] = [ + "#0d1520", "#111927", "#0d2847", "#003362", "#004074", "#104d87", "#205d9e", "#2870bd", + "#0090ff", "#3b9eff", "#70b8ff", "#c2e6ff", +]; + +pub const BLUE_DARK_A: [&str; 12] = [ + "#004df211", + "#1166fb18", + "#0077ff3a", + "#0075ff57", + "#0081fd6b", + "#0f89fd7f", + "#2a91fe98", + "#3094feb9", + "#0090ff", + "#3b9eff", + "#70b8ff", + "#c2e6ff", +]; + +pub const BLUE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.057 0.081 0.122)", + "color(display-p3 0.072 0.098 0.147)", + "color(display-p3 0.078 0.154 0.27)", + "color(display-p3 0.033 0.197 0.37)", + "color(display-p3 0.08 0.245 0.441)", + "color(display-p3 0.14 0.298 0.511)", + "color(display-p3 0.195 0.361 0.6)", + "color(display-p3 0.239 0.434 0.72)", + "color(display-p3 0.247 0.556 0.969)", + "color(display-p3 0.344 0.612 0.973)", + "color(display-p3 0.49 0.72 1)", + "color(display-p3 0.788 0.898 0.99)", +]; + +pub const BLUE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.333 1 / 0.059)", + "color(display-p3 0.114 0.435 0.988 / 0.085)", + "color(display-p3 0.122 0.463 1 / 0.219)", + "color(display-p3 0 0.467 1 / 0.324)", + "color(display-p3 0.098 0.51 1 / 0.4)", + "color(display-p3 0.224 0.557 1 / 0.475)", + "color(display-p3 0.294 0.584 1 / 0.572)", + "color(display-p3 0.314 0.592 1 / 0.702)", + "color(display-p3 0.251 0.573 0.996 / 0.967)", + "color(display-p3 0.357 0.631 1 / 0.971)", + "color(display-p3 0.49 0.72 1)", + "color(display-p3 0.788 0.898 0.99)", +]; + +pub const CYAN_DARK: [&str; 12] = [ + "#0b161a", "#101b20", "#082c36", "#003848", "#004558", "#045468", "#12677e", "#11809c", + "#00a2c7", "#23afd0", "#4ccce6", "#b6ecf7", +]; + +pub const CYAN_DARK_A: [&str; 12] = [ + "#0091f70a", + "#02a7f211", + "#00befd28", + "#00baff3b", + "#00befd4d", + "#00c7fd5e", + "#14cdff75", + "#11cfff95", + "#00cfffc3", + "#28d6ffcd", + "#52e1fee5", + "#bbf3fef7", +]; + +pub const CYAN_DARK_P3: [&str; 12] = [ + "color(display-p3 0.053 0.085 0.098)", + "color(display-p3 0.072 0.105 0.122)", + "color(display-p3 0.073 0.168 0.209)", + "color(display-p3 0.063 0.216 0.277)", + "color(display-p3 0.091 0.267 0.336)", + "color(display-p3 0.137 0.324 0.4)", + "color(display-p3 0.186 0.398 0.484)", + "color(display-p3 0.23 0.496 0.6)", + "color(display-p3 0.282 0.627 0.765)", + "color(display-p3 0.331 0.675 0.801)", + "color(display-p3 0.446 0.79 0.887)", + "color(display-p3 0.757 0.919 0.962)", +]; + +pub const CYAN_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.647 0.992 / 0.034)", + "color(display-p3 0.133 0.733 1 / 0.059)", + "color(display-p3 0.122 0.741 0.996 / 0.152)", + "color(display-p3 0.051 0.725 1 / 0.227)", + "color(display-p3 0.149 0.757 1 / 0.29)", + "color(display-p3 0.267 0.792 1 / 0.358)", + "color(display-p3 0.333 0.808 1 / 0.446)", + "color(display-p3 0.357 0.816 1 / 0.572)", + "color(display-p3 0.357 0.82 1 / 0.748)", + "color(display-p3 0.4 0.839 1 / 0.786)", + "color(display-p3 0.446 0.79 0.887)", + "color(display-p3 0.757 0.919 0.962)", +]; + +pub const TEAL_DARK: [&str; 12] = [ + "#0d1514", "#111c1b", "#0d2d2a", "#023b37", "#084843", "#145750", "#1c6961", "#207e73", + "#12a594", "#0eb39e", "#0bd8b6", "#adf0dd", +]; + +pub const TEAL_DARK_A: [&str; 12] = [ + "#00deab05", + "#12fbe60c", + "#00ffe61e", + "#00ffe92d", + "#00ffea3b", + "#1cffe84b", + "#2efde85f", + "#32ffe775", + "#13ffe49f", + "#0dffe0ae", + "#0afed5d6", + "#b8ffebef", +]; + +pub const TEAL_DARK_P3: [&str; 12] = [ + "color(display-p3 0.059 0.083 0.079)", + "color(display-p3 0.075 0.11 0.107)", + "color(display-p3 0.087 0.175 0.165)", + "color(display-p3 0.087 0.227 0.214)", + "color(display-p3 0.12 0.277 0.261)", + "color(display-p3 0.162 0.335 0.314)", + "color(display-p3 0.205 0.406 0.379)", + "color(display-p3 0.245 0.489 0.453)", + "color(display-p3 0.297 0.637 0.581)", + "color(display-p3 0.319 0.69 0.62)", + "color(display-p3 0.388 0.835 0.719)", + "color(display-p3 0.734 0.934 0.87)", +]; + +pub const TEAL_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.992 0.761 / 0.017)", + "color(display-p3 0.235 0.988 0.902 / 0.047)", + "color(display-p3 0.235 1 0.898 / 0.118)", + "color(display-p3 0.18 0.996 0.929 / 0.173)", + "color(display-p3 0.31 1 0.933 / 0.227)", + "color(display-p3 0.396 1 0.933 / 0.286)", + "color(display-p3 0.443 1 0.925 / 0.366)", + "color(display-p3 0.459 1 0.925 / 0.454)", + "color(display-p3 0.443 0.996 0.906 / 0.61)", + "color(display-p3 0.439 0.996 0.89 / 0.669)", + "color(display-p3 0.388 0.835 0.719)", + "color(display-p3 0.734 0.934 0.87)", +]; + +pub const JADE_DARK: [&str; 12] = [ + "#0d1512", "#121c18", "#0f2e22", "#0b3b2c", "#114837", "#1b5745", "#246854", "#2a7e68", + "#29a383", "#27b08b", "#1fd8a4", "#adf0d4", +]; + +pub const JADE_DARK_A: [&str; 12] = [ + "#00de4505", + "#27fba60c", + "#02f99920", + "#00ffaa2d", + "#11ffb63b", + "#34ffc24b", + "#45fdc75e", + "#48ffcf75", + "#38feca9d", + "#31fec7ab", + "#21fec0d6", + "#b8ffe1ef", +]; + +pub const JADE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.059 0.083 0.071)", + "color(display-p3 0.078 0.11 0.094)", + "color(display-p3 0.091 0.176 0.138)", + "color(display-p3 0.102 0.228 0.177)", + "color(display-p3 0.133 0.279 0.221)", + "color(display-p3 0.174 0.334 0.273)", + "color(display-p3 0.219 0.402 0.335)", + "color(display-p3 0.263 0.488 0.411)", + "color(display-p3 0.319 0.63 0.521)", + "color(display-p3 0.338 0.68 0.555)", + "color(display-p3 0.4 0.835 0.656)", + "color(display-p3 0.734 0.934 0.838)", +]; + +pub const JADE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.992 0.298 / 0.017)", + "color(display-p3 0.318 0.988 0.651 / 0.047)", + "color(display-p3 0.267 1 0.667 / 0.118)", + "color(display-p3 0.275 0.996 0.702 / 0.173)", + "color(display-p3 0.361 1 0.741 / 0.227)", + "color(display-p3 0.439 1 0.796 / 0.286)", + "color(display-p3 0.49 1 0.804 / 0.362)", + "color(display-p3 0.506 1 0.835 / 0.45)", + "color(display-p3 0.478 0.996 0.816 / 0.606)", + "color(display-p3 0.478 1 0.816 / 0.656)", + "color(display-p3 0.4 0.835 0.656)", + "color(display-p3 0.734 0.934 0.838)", +]; + +pub const GREEN_DARK: [&str; 12] = [ + "#0e1512", "#121b17", "#132d21", "#113b29", "#174933", "#20573e", "#28684a", "#2f7c57", + "#30a46c", "#33b074", "#3dd68c", "#b1f1cb", +]; + +pub const GREEN_DARK_A: [&str; 12] = [ + "#00de4505", + "#29f99d0b", + "#22ff991e", + "#11ff992d", + "#2bffa23c", + "#44ffaa4b", + "#50fdac5e", + "#54ffad73", + "#44ffa49e", + "#43fea4ab", + "#46fea5d4", + "#bbffd7f0", +]; + +pub const GREEN_DARK_P3: [&str; 12] = [ + "color(display-p3 0.062 0.083 0.071)", + "color(display-p3 0.079 0.106 0.09)", + "color(display-p3 0.1 0.173 0.133)", + "color(display-p3 0.115 0.229 0.166)", + "color(display-p3 0.147 0.282 0.206)", + "color(display-p3 0.185 0.338 0.25)", + "color(display-p3 0.227 0.403 0.298)", + "color(display-p3 0.27 0.479 0.351)", + "color(display-p3 0.332 0.634 0.442)", + "color(display-p3 0.357 0.682 0.474)", + "color(display-p3 0.434 0.828 0.573)", + "color(display-p3 0.747 0.938 0.807)", +]; + +pub const GREEN_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.992 0.298 / 0.017)", + "color(display-p3 0.341 0.98 0.616 / 0.043)", + "color(display-p3 0.376 0.996 0.655 / 0.114)", + "color(display-p3 0.341 0.996 0.635 / 0.173)", + "color(display-p3 0.408 1 0.678 / 0.232)", + "color(display-p3 0.475 1 0.706 / 0.29)", + "color(display-p3 0.514 1 0.706 / 0.362)", + "color(display-p3 0.529 1 0.718 / 0.442)", + "color(display-p3 0.502 0.996 0.682 / 0.61)", + "color(display-p3 0.506 1 0.682 / 0.66)", + "color(display-p3 0.434 0.828 0.573)", + "color(display-p3 0.747 0.938 0.807)", +]; + +pub const GRASS_DARK: [&str; 12] = [ + "#0e1511", "#141a15", "#1b2a1e", "#1d3a24", "#25482d", "#2d5736", "#366740", "#3e7949", + "#46a758", "#53b365", "#71d083", "#c2f0c2", +]; + +pub const GRASS_DARK_A: [&str; 12] = [ + "#00de1205", + "#5ef7780a", + "#70fe8c1b", + "#57ff802c", + "#68ff8b3b", + "#71ff8f4b", + "#77fd925d", + "#77fd9070", + "#65ff82a1", + "#72ff8dae", + "#89ff9fcd", + "#ceffceef", +]; + +pub const GRASS_DARK_P3: [&str; 12] = [ + "color(display-p3 0.062 0.083 0.067)", + "color(display-p3 0.083 0.103 0.085)", + "color(display-p3 0.118 0.163 0.122)", + "color(display-p3 0.142 0.225 0.15)", + "color(display-p3 0.178 0.279 0.186)", + "color(display-p3 0.217 0.337 0.224)", + "color(display-p3 0.258 0.4 0.264)", + "color(display-p3 0.302 0.47 0.305)", + "color(display-p3 0.38 0.647 0.378)", + "color(display-p3 0.426 0.694 0.426)", + "color(display-p3 0.535 0.807 0.542)", + "color(display-p3 0.797 0.936 0.776)", +]; + +pub const GRASS_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.992 0.071 / 0.017)", + "color(display-p3 0.482 0.996 0.584 / 0.038)", + "color(display-p3 0.549 0.992 0.588 / 0.106)", + "color(display-p3 0.51 0.996 0.557 / 0.169)", + "color(display-p3 0.553 1 0.588 / 0.227)", + "color(display-p3 0.584 1 0.608 / 0.29)", + "color(display-p3 0.604 1 0.616 / 0.358)", + "color(display-p3 0.608 1 0.62 / 0.433)", + "color(display-p3 0.573 1 0.569 / 0.622)", + "color(display-p3 0.6 0.996 0.6 / 0.673)", + "color(display-p3 0.535 0.807 0.542)", + "color(display-p3 0.797 0.936 0.776)", +]; + +pub const BROWN_DARK: [&str; 12] = [ + "#12110f", "#1c1816", "#28211d", "#322922", "#3e3128", "#4d3c2f", "#614a39", "#7c5f46", + "#ad7f58", "#b88c67", "#dbb594", "#f2e1ca", +]; + +pub const BROWN_DARK_A: [&str; 12] = [ + "#91110002", + "#fba67c0c", + "#fcb58c19", + "#fbbb8a24", + "#fcb88931", + "#fdba8741", + "#ffbb8856", + "#ffbe8773", + "#feb87da8", + "#ffc18cb3", + "#fed1aad9", + "#feecd4f2", +]; + +pub const BROWN_DARK_P3: [&str; 12] = [ + "color(display-p3 0.071 0.067 0.059)", + "color(display-p3 0.107 0.095 0.087)", + "color(display-p3 0.151 0.13 0.115)", + "color(display-p3 0.191 0.161 0.138)", + "color(display-p3 0.235 0.194 0.162)", + "color(display-p3 0.291 0.237 0.192)", + "color(display-p3 0.365 0.295 0.232)", + "color(display-p3 0.469 0.377 0.287)", + "color(display-p3 0.651 0.505 0.368)", + "color(display-p3 0.697 0.557 0.423)", + "color(display-p3 0.835 0.715 0.597)", + "color(display-p3 0.938 0.885 0.802)", +]; + +pub const BROWN_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.855 0.071 0 / 0.005)", + "color(display-p3 0.98 0.706 0.525 / 0.043)", + "color(display-p3 0.996 0.745 0.576 / 0.093)", + "color(display-p3 1 0.765 0.592 / 0.135)", + "color(display-p3 1 0.761 0.588 / 0.181)", + "color(display-p3 1 0.773 0.592 / 0.24)", + "color(display-p3 0.996 0.776 0.58 / 0.32)", + "color(display-p3 1 0.78 0.573 / 0.433)", + "color(display-p3 1 0.769 0.549 / 0.627)", + "color(display-p3 1 0.792 0.596 / 0.677)", + "color(display-p3 0.835 0.715 0.597)", + "color(display-p3 0.938 0.885 0.802)", +]; + +pub const BRONZE_DARK: [&str; 12] = [ + "#141110", "#1c1917", "#262220", "#302a27", "#3b3330", "#493e3a", "#5a4c47", "#6f5f58", + "#a18072", "#ae8c7e", "#d4b3a5", "#ede0d9", +]; + +pub const BRONZE_DARK_A: [&str; 12] = [ + "#d1110004", + "#fbbc910c", + "#faceb817", + "#facdb622", + "#ffd2c12d", + "#ffd1c03c", + "#fdd0c04f", + "#ffd6c565", + "#fec7b09b", + "#fecab5a9", + "#ffd7c6d1", + "#fff1e9ec", +]; + +pub const BRONZE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.076 0.067 0.063)", + "color(display-p3 0.106 0.097 0.093)", + "color(display-p3 0.147 0.132 0.125)", + "color(display-p3 0.185 0.166 0.156)", + "color(display-p3 0.227 0.202 0.19)", + "color(display-p3 0.278 0.246 0.23)", + "color(display-p3 0.343 0.302 0.281)", + "color(display-p3 0.426 0.374 0.347)", + "color(display-p3 0.611 0.507 0.455)", + "color(display-p3 0.66 0.556 0.504)", + "color(display-p3 0.81 0.707 0.655)", + "color(display-p3 0.921 0.88 0.854)", +]; + +pub const BRONZE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.941 0.067 0 / 0.009)", + "color(display-p3 0.98 0.8 0.706 / 0.043)", + "color(display-p3 0.988 0.851 0.761 / 0.085)", + "color(display-p3 0.996 0.839 0.78 / 0.127)", + "color(display-p3 0.996 0.863 0.773 / 0.173)", + "color(display-p3 1 0.863 0.796 / 0.227)", + "color(display-p3 1 0.867 0.8 / 0.295)", + "color(display-p3 1 0.859 0.788 / 0.387)", + "color(display-p3 1 0.82 0.733 / 0.585)", + "color(display-p3 1 0.839 0.761 / 0.635)", + "color(display-p3 0.81 0.707 0.655)", + "color(display-p3 0.921 0.88 0.854)", +]; + +pub const GOLD_DARK: [&str; 12] = [ + "#121211", "#1b1a17", "#24231f", "#2d2b26", "#38352e", "#444039", "#544f46", "#696256", + "#978365", "#a39073", "#cbb99f", "#e8e2d9", +]; + +pub const GOLD_DARK_A: [&str; 12] = [ + "#91911102", + "#f9e29d0b", + "#f8ecbb15", + "#ffeec41e", + "#feecc22a", + "#feebcb37", + "#ffedcd48", + "#fdeaca5f", + "#ffdba690", + "#fedfb09d", + "#fee7c6c8", + "#fef7ede7", +]; + +pub const GOLD_DARK_P3: [&str; 12] = [ + "color(display-p3 0.071 0.071 0.067)", + "color(display-p3 0.104 0.101 0.09)", + "color(display-p3 0.141 0.136 0.122)", + "color(display-p3 0.177 0.17 0.152)", + "color(display-p3 0.217 0.207 0.185)", + "color(display-p3 0.265 0.252 0.225)", + "color(display-p3 0.327 0.31 0.277)", + "color(display-p3 0.407 0.384 0.342)", + "color(display-p3 0.579 0.517 0.41)", + "color(display-p3 0.628 0.566 0.463)", + "color(display-p3 0.784 0.728 0.635)", + "color(display-p3 0.906 0.887 0.855)", +]; + +pub const GOLD_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.855 0.855 0.071 / 0.005)", + "color(display-p3 0.98 0.89 0.616 / 0.043)", + "color(display-p3 1 0.949 0.753 / 0.08)", + "color(display-p3 1 0.933 0.8 / 0.118)", + "color(display-p3 1 0.949 0.804 / 0.16)", + "color(display-p3 1 0.925 0.8 / 0.215)", + "color(display-p3 1 0.945 0.831 / 0.278)", + "color(display-p3 1 0.937 0.82 / 0.366)", + "color(display-p3 0.996 0.882 0.69 / 0.551)", + "color(display-p3 1 0.894 0.725 / 0.601)", + "color(display-p3 0.784 0.728 0.635)", + "color(display-p3 0.906 0.887 0.855)", +]; + +pub const SKY_DARK: [&str; 12] = [ + "#0d141f", "#111a27", "#112840", "#113555", "#154467", "#1b537b", "#1f6692", "#197cae", + "#7ce2fe", "#a8eeff", "#75c7f0", "#c2f3ff", +]; + +pub const SKY_DARK_A: [&str; 12] = [ + "#0044ff0f", + "#1171fb18", + "#1184fc33", + "#128fff49", + "#1c9dfd5d", + "#28a5ff72", + "#2badfe8b", + "#1db2fea9", + "#7ce3fffe", + "#a8eeff", + "#7cd3ffef", + "#c2f3ff", +]; + +pub const SKY_DARK_P3: [&str; 12] = [ + "color(display-p3 0.056 0.078 0.116)", + "color(display-p3 0.075 0.101 0.149)", + "color(display-p3 0.089 0.154 0.244)", + "color(display-p3 0.106 0.207 0.323)", + "color(display-p3 0.135 0.261 0.394)", + "color(display-p3 0.17 0.322 0.469)", + "color(display-p3 0.205 0.394 0.557)", + "color(display-p3 0.232 0.48 0.665)", + "color(display-p3 0.585 0.877 0.983)", + "color(display-p3 0.718 0.925 0.991)", + "color(display-p3 0.536 0.772 0.924)", + "color(display-p3 0.799 0.947 0.993)", +]; + +pub const SKY_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.282 0.996 / 0.055)", + "color(display-p3 0.157 0.467 0.992 / 0.089)", + "color(display-p3 0.192 0.522 0.996 / 0.19)", + "color(display-p3 0.212 0.584 1 / 0.274)", + "color(display-p3 0.259 0.631 1 / 0.349)", + "color(display-p3 0.302 0.655 1 / 0.433)", + "color(display-p3 0.329 0.686 1 / 0.526)", + "color(display-p3 0.325 0.71 1 / 0.643)", + "color(display-p3 0.592 0.894 1 / 0.984)", + "color(display-p3 0.722 0.933 1 / 0.992)", + "color(display-p3 0.536 0.772 0.924)", + "color(display-p3 0.799 0.947 0.993)", +]; + +pub const MINT_DARK: [&str; 12] = [ + "#0e1515", "#0f1b1b", "#092c2b", "#003a38", "#004744", "#105650", "#1e685f", "#277f70", + "#86ead4", "#a8f5e5", "#58d5ba", "#c4f5e1", +]; + +pub const MINT_DARK_A: [&str; 12] = [ + "#00dede05", + "#00f9f90b", + "#00fff61d", + "#00fff42c", + "#00fff23a", + "#0effeb4a", + "#34fde55e", + "#41ffdf76", + "#92ffe7e9", + "#aefeedf5", + "#67ffded2", + "#cbfee9f5", +]; + +pub const MINT_DARK_P3: [&str; 12] = [ + "color(display-p3 0.059 0.082 0.081)", + "color(display-p3 0.068 0.104 0.105)", + "color(display-p3 0.077 0.17 0.168)", + "color(display-p3 0.068 0.224 0.22)", + "color(display-p3 0.104 0.275 0.264)", + "color(display-p3 0.154 0.332 0.313)", + "color(display-p3 0.207 0.403 0.373)", + "color(display-p3 0.258 0.49 0.441)", + "color(display-p3 0.62 0.908 0.834)", + "color(display-p3 0.725 0.954 0.898)", + "color(display-p3 0.482 0.825 0.733)", + "color(display-p3 0.807 0.955 0.887)", +]; + +pub const MINT_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0 0.992 0.992 / 0.017)", + "color(display-p3 0.071 0.98 0.98 / 0.043)", + "color(display-p3 0.176 0.996 0.996 / 0.11)", + "color(display-p3 0.071 0.996 0.973 / 0.169)", + "color(display-p3 0.243 1 0.949 / 0.223)", + "color(display-p3 0.369 1 0.933 / 0.286)", + "color(display-p3 0.459 1 0.914 / 0.362)", + "color(display-p3 0.49 1 0.89 / 0.454)", + "color(display-p3 0.678 0.996 0.914 / 0.904)", + "color(display-p3 0.761 1 0.941 / 0.95)", + "color(display-p3 0.482 0.825 0.733)", + "color(display-p3 0.807 0.955 0.887)", +]; + +pub const LIME_DARK: [&str; 12] = [ + "#11130c", "#151a10", "#1f2917", "#29371d", "#334423", "#3d522a", "#496231", "#577538", + "#bdee63", "#d4ff70", "#bde56c", "#e3f7ba", +]; + +pub const LIME_DARK_A: [&str; 12] = [ + "#11bb0003", + "#78f7000a", + "#9bfd4c1a", + "#a7fe5c29", + "#affe6537", + "#b2fe6d46", + "#b6ff6f57", + "#b6fd6d6c", + "#caff69ed", + "#d4ff70", + "#d1fe77e4", + "#e9febff7", +]; + +pub const LIME_DARK_P3: [&str; 12] = [ + "color(display-p3 0.067 0.073 0.048)", + "color(display-p3 0.086 0.1 0.067)", + "color(display-p3 0.13 0.16 0.099)", + "color(display-p3 0.172 0.214 0.126)", + "color(display-p3 0.213 0.266 0.153)", + "color(display-p3 0.257 0.321 0.182)", + "color(display-p3 0.307 0.383 0.215)", + "color(display-p3 0.365 0.456 0.25)", + "color(display-p3 0.78 0.928 0.466)", + "color(display-p3 0.865 0.995 0.519)", + "color(display-p3 0.771 0.893 0.485)", + "color(display-p3 0.905 0.966 0.753)", +]; + +pub const LIME_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.067 0.941 0 / 0.009)", + "color(display-p3 0.584 0.996 0.071 / 0.038)", + "color(display-p3 0.69 1 0.38 / 0.101)", + "color(display-p3 0.729 1 0.435 / 0.16)", + "color(display-p3 0.745 1 0.471 / 0.215)", + "color(display-p3 0.769 1 0.482 / 0.274)", + "color(display-p3 0.769 1 0.506 / 0.341)", + "color(display-p3 0.784 1 0.51 / 0.416)", + "color(display-p3 0.839 1 0.502 / 0.925)", + "color(display-p3 0.871 1 0.522 / 0.996)", + "color(display-p3 0.771 0.893 0.485)", + "color(display-p3 0.905 0.966 0.753)", +]; + +pub const YELLOW_DARK: [&str; 12] = [ + "#14120b", "#1b180f", "#2d2305", "#362b00", "#433500", "#524202", "#665417", "#836a21", + "#ffe629", "#ffff57", "#f5e147", "#f6eeb4", +]; + +pub const YELLOW_DARK_A: [&str; 12] = [ + "#d1510004", + "#f9b4000b", + "#ffaa001e", + "#fdb70028", + "#febb0036", + "#fec40046", + "#fdcb225c", + "#fdca327b", + "#ffe629", + "#ffff57", + "#fee949f5", + "#fef6baf6", +]; + +pub const YELLOW_DARK_P3: [&str; 12] = [ + "color(display-p3 0.078 0.069 0.047)", + "color(display-p3 0.103 0.094 0.063)", + "color(display-p3 0.168 0.137 0.039)", + "color(display-p3 0.209 0.169 0)", + "color(display-p3 0.255 0.209 0)", + "color(display-p3 0.31 0.261 0.07)", + "color(display-p3 0.389 0.331 0.135)", + "color(display-p3 0.497 0.42 0.182)", + "color(display-p3 1 0.92 0.22)", + "color(display-p3 1 1 0.456)", + "color(display-p3 0.948 0.885 0.392)", + "color(display-p3 0.959 0.934 0.731)", +]; + +pub const YELLOW_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.973 0.369 0 / 0.013)", + "color(display-p3 0.996 0.792 0 / 0.038)", + "color(display-p3 0.996 0.71 0 / 0.11)", + "color(display-p3 0.996 0.741 0 / 0.152)", + "color(display-p3 0.996 0.765 0 / 0.202)", + "color(display-p3 0.996 0.816 0.082 / 0.261)", + "color(display-p3 1 0.831 0.263 / 0.345)", + "color(display-p3 1 0.831 0.314 / 0.463)", + "color(display-p3 1 0.922 0.22)", + "color(display-p3 1 1 0.455)", + "color(display-p3 0.948 0.885 0.392)", + "color(display-p3 0.959 0.934 0.731)", +]; + +pub const AMBER_DARK: [&str; 12] = [ + "#16120c", "#1d180f", "#302008", "#3f2700", "#4d3000", "#5c3d05", "#714f19", "#8f6424", + "#ffc53d", "#ffd60a", "#ffca16", "#ffe7b3", +]; + +pub const AMBER_DARK_A: [&str; 12] = [ + "#e63c0006", + "#fd9b000d", + "#fa820022", + "#fc820032", + "#fd8b0041", + "#fd9b0051", + "#ffab2567", + "#ffae3587", + "#ffc53d", + "#ffd60a", + "#ffca16", + "#ffe7b3", +]; + +pub const AMBER_DARK_P3: [&str; 12] = [ + "color(display-p3 0.082 0.07 0.05)", + "color(display-p3 0.111 0.094 0.064)", + "color(display-p3 0.178 0.128 0.049)", + "color(display-p3 0.239 0.156 0)", + "color(display-p3 0.29 0.193 0)", + "color(display-p3 0.344 0.245 0.076)", + "color(display-p3 0.422 0.314 0.141)", + "color(display-p3 0.535 0.399 0.189)", + "color(display-p3 1 0.77 0.26)", + "color(display-p3 1 0.87 0.15)", + "color(display-p3 1 0.8 0.29)", + "color(display-p3 0.984 0.909 0.726)", +]; + +pub const AMBER_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.992 0.298 0 / 0.017)", + "color(display-p3 0.988 0.651 0 / 0.047)", + "color(display-p3 1 0.6 0 / 0.118)", + "color(display-p3 1 0.557 0 / 0.185)", + "color(display-p3 1 0.592 0 / 0.24)", + "color(display-p3 1 0.659 0.094 / 0.299)", + "color(display-p3 1 0.714 0.263 / 0.383)", + "color(display-p3 0.996 0.729 0.306 / 0.5)", + "color(display-p3 1 0.769 0.259)", + "color(display-p3 1 0.871 0.149)", + "color(display-p3 1 0.8 0.29)", + "color(display-p3 0.984 0.909 0.726)", +]; + +pub const ORANGE_DARK: [&str; 12] = [ + "#17120e", "#1e160f", "#331e0b", "#462100", "#562800", "#66350c", "#7e451d", "#a35829", + "#f76b15", "#ff801f", "#ffa057", "#ffe0c2", +]; + +pub const ORANGE_DARK_A: [&str; 12] = [ + "#ec360007", + "#fe6d000e", + "#fb6a0025", + "#ff590039", + "#ff61004a", + "#fd75045c", + "#ff832c75", + "#fe84389d", + "#fe6d15f7", + "#ff801f", + "#ffa057", + "#ffe0c2", +]; + +pub const ORANGE_DARK_P3: [&str; 12] = [ + "color(display-p3 0.088 0.07 0.057)", + "color(display-p3 0.113 0.089 0.061)", + "color(display-p3 0.189 0.12 0.056)", + "color(display-p3 0.262 0.132 0)", + "color(display-p3 0.315 0.168 0.016)", + "color(display-p3 0.376 0.219 0.088)", + "color(display-p3 0.465 0.283 0.147)", + "color(display-p3 0.601 0.359 0.201)", + "color(display-p3 0.9 0.45 0.2)", + "color(display-p3 0.98 0.51 0.23)", + "color(display-p3 1 0.63 0.38)", + "color(display-p3 0.98 0.883 0.775)", +]; + +pub const ORANGE_DARK_P3_A: [&str; 12] = [ + "color(display-p3 0.961 0.247 0 / 0.022)", + "color(display-p3 0.992 0.529 0 / 0.051)", + "color(display-p3 0.996 0.486 0 / 0.131)", + "color(display-p3 0.996 0.384 0 / 0.211)", + "color(display-p3 1 0.455 0 / 0.265)", + "color(display-p3 1 0.529 0.129 / 0.332)", + "color(display-p3 1 0.569 0.251 / 0.429)", + "color(display-p3 1 0.584 0.302 / 0.572)", + "color(display-p3 1 0.494 0.216 / 0.895)", + "color(display-p3 1 0.522 0.235 / 0.979)", + "color(display-p3 1 0.63 0.38)", + "color(display-p3 0.98 0.883 0.775)", +]; diff --git a/packages/colors/src/lib.rs b/packages/colors/src/lib.rs new file mode 100644 index 0000000..925e00d --- /dev/null +++ b/packages/colors/src/lib.rs @@ -0,0 +1,9 @@ +mod black_a; +mod dark; +mod light; +mod white_a; + +pub use black_a::*; +pub use dark::*; +pub use light::*; +pub use white_a::*; diff --git a/packages/colors/src/light.rs b/packages/colors/src/light.rs new file mode 100644 index 0000000..fcb2176 --- /dev/null +++ b/packages/colors/src/light.rs @@ -0,0 +1,1549 @@ +pub const GRAY: [&str; 12] = [ + "#fcfcfc", "#f9f9f9", "#f0f0f0", "#e8e8e8", "#e0e0e0", "#d9d9d9", "#cecece", "#bbbbbb", + "#8d8d8d", "#838383", "#646464", "#202020", +]; + +pub const GRAY_A: [&str; 12] = [ + "#00000003", + "#00000006", + "#0000000f", + "#00000017", + "#0000001f", + "#00000026", + "#00000031", + "#00000044", + "#00000072", + "#0000007c", + "#0000009b", + "#000000df", +]; + +pub const GRAY_P3: [&str; 12] = [ + "color(display-p3 0.988 0.988 0.988)", + "color(display-p3 0.975 0.975 0.975)", + "color(display-p3 0.939 0.939 0.939)", + "color(display-p3 0.908 0.908 0.908)", + "color(display-p3 0.88 0.88 0.88)", + "color(display-p3 0.849 0.849 0.849)", + "color(display-p3 0.807 0.807 0.807)", + "color(display-p3 0.732 0.732 0.732)", + "color(display-p3 0.553 0.553 0.553)", + "color(display-p3 0.512 0.512 0.512)", + "color(display-p3 0.392 0.392 0.392)", + "color(display-p3 0.125 0.125 0.125)", +]; + +pub const GRAY_P3_A: [&str; 12] = [ + "color(display-p3 0 0 0 / 0.012)", + "color(display-p3 0 0 0 / 0.024)", + "color(display-p3 0 0 0 / 0.063)", + "color(display-p3 0 0 0 / 0.09)", + "color(display-p3 0 0 0 / 0.122)", + "color(display-p3 0 0 0 / 0.153)", + "color(display-p3 0 0 0 / 0.192)", + "color(display-p3 0 0 0 / 0.267)", + "color(display-p3 0 0 0 / 0.447)", + "color(display-p3 0 0 0 / 0.486)", + "color(display-p3 0 0 0 / 0.608)", + "color(display-p3 0 0 0 / 0.875)", +]; + +pub const MAUVE: [&str; 12] = [ + "#fdfcfd", "#faf9fb", "#f2eff3", "#eae7ec", "#e3dfe6", "#dbd8e0", "#d0cdd7", "#bcbac7", + "#8e8c99", "#84828e", "#65636d", "#211f26", +]; + +pub const MAUVE_A: [&str; 12] = [ + "#55005503", + "#2b005506", + "#30004010", + "#20003618", + "#20003820", + "#14003527", + "#10003332", + "#08003145", + "#05001d73", + "#0500197d", + "#0400119c", + "#020008e0", +]; + +pub const MAUVE_P3: [&str; 12] = [ + "color(display-p3 0.991 0.988 0.992)", + "color(display-p3 0.98 0.976 0.984)", + "color(display-p3 0.946 0.938 0.952)", + "color(display-p3 0.915 0.906 0.925)", + "color(display-p3 0.886 0.876 0.901)", + "color(display-p3 0.856 0.846 0.875)", + "color(display-p3 0.814 0.804 0.84)", + "color(display-p3 0.735 0.728 0.777)", + "color(display-p3 0.555 0.549 0.596)", + "color(display-p3 0.514 0.508 0.552)", + "color(display-p3 0.395 0.388 0.424)", + "color(display-p3 0.128 0.122 0.147)", +]; + +pub const MAUVE_P3_A: [&str; 12] = [ + "color(display-p3 0.349 0.024 0.349 / 0.012)", + "color(display-p3 0.184 0.024 0.349 / 0.024)", + "color(display-p3 0.129 0.008 0.255 / 0.063)", + "color(display-p3 0.094 0.012 0.216 / 0.095)", + "color(display-p3 0.098 0.008 0.224 / 0.126)", + "color(display-p3 0.055 0.004 0.18 / 0.153)", + "color(display-p3 0.067 0.008 0.184 / 0.197)", + "color(display-p3 0.02 0.004 0.176 / 0.271)", + "color(display-p3 0.02 0.004 0.106 / 0.451)", + "color(display-p3 0.012 0.004 0.09 / 0.491)", + "color(display-p3 0.016 0 0.059 / 0.612)", + "color(display-p3 0.008 0 0.027 / 0.879)", +]; + +pub const SLATE: [&str; 12] = [ + "#fcfcfd", "#f9f9fb", "#f0f0f3", "#e8e8ec", "#e0e1e6", "#d9d9e0", "#cdced6", "#b9bbc6", + "#8b8d98", "#80838d", "#60646c", "#1c2024", +]; + +pub const SLATE_A: [&str; 12] = [ + "#00005503", + "#00005506", + "#0000330f", + "#00002d17", + "#0009321f", + "#00002f26", + "#00062e32", + "#00083046", + "#00051d74", + "#00071b7f", + "#0007149f", + "#000509e3", +]; + +pub const SLATE_P3: [&str; 12] = [ + "color(display-p3 0.988 0.988 0.992)", + "color(display-p3 0.976 0.976 0.984)", + "color(display-p3 0.94 0.941 0.953)", + "color(display-p3 0.908 0.909 0.925)", + "color(display-p3 0.88 0.881 0.901)", + "color(display-p3 0.85 0.852 0.876)", + "color(display-p3 0.805 0.808 0.838)", + "color(display-p3 0.727 0.733 0.773)", + "color(display-p3 0.547 0.553 0.592)", + "color(display-p3 0.503 0.512 0.549)", + "color(display-p3 0.379 0.392 0.421)", + "color(display-p3 0.113 0.125 0.14)", +]; + +pub const SLATE_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.024 0.349 / 0.012)", + "color(display-p3 0.024 0.024 0.349 / 0.024)", + "color(display-p3 0.004 0.004 0.204 / 0.059)", + "color(display-p3 0.012 0.012 0.184 / 0.091)", + "color(display-p3 0.004 0.039 0.2 / 0.122)", + "color(display-p3 0.008 0.008 0.165 / 0.15)", + "color(display-p3 0.008 0.027 0.184 / 0.197)", + "color(display-p3 0.004 0.031 0.176 / 0.275)", + "color(display-p3 0.004 0.02 0.106 / 0.455)", + "color(display-p3 0.004 0.027 0.098 / 0.499)", + "color(display-p3 0 0.02 0.063 / 0.62)", + "color(display-p3 0 0.012 0.031 / 0.887)", +]; + +pub const SAGE: [&str; 12] = [ + "#fbfdfc", "#f7f9f8", "#eef1f0", "#e6e9e8", "#dfe2e0", "#d7dad9", "#cbcfcd", "#b8bcba", + "#868e8b", "#7c8481", "#5f6563", "#1a211e", +]; + +pub const SAGE_A: [&str; 12] = [ + "#00804004", + "#00402008", + "#002d1e11", + "#001f1519", + "#00180820", + "#00140d28", + "#00140a34", + "#000f0847", + "#00110b79", + "#00100a83", + "#000a07a0", + "#000805e5", +]; + +pub const SAGE_P3: [&str; 12] = [ + "color(display-p3 0.986 0.992 0.988)", + "color(display-p3 0.97 0.977 0.974)", + "color(display-p3 0.935 0.944 0.94)", + "color(display-p3 0.904 0.913 0.909)", + "color(display-p3 0.875 0.885 0.88)", + "color(display-p3 0.844 0.854 0.849)", + "color(display-p3 0.8 0.811 0.806)", + "color(display-p3 0.725 0.738 0.732)", + "color(display-p3 0.531 0.556 0.546)", + "color(display-p3 0.492 0.515 0.506)", + "color(display-p3 0.377 0.395 0.389)", + "color(display-p3 0.107 0.129 0.118)", +]; + +pub const SAGE_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.514 0.267 / 0.016)", + "color(display-p3 0.02 0.267 0.145 / 0.032)", + "color(display-p3 0.008 0.184 0.125 / 0.067)", + "color(display-p3 0.012 0.094 0.051 / 0.095)", + "color(display-p3 0.008 0.098 0.035 / 0.126)", + "color(display-p3 0.004 0.078 0.027 / 0.157)", + "color(display-p3 0 0.059 0.039 / 0.2)", + "color(display-p3 0.004 0.047 0.031 / 0.275)", + "color(display-p3 0.004 0.059 0.035 / 0.471)", + "color(display-p3 0 0.047 0.031 / 0.51)", + "color(display-p3 0 0.031 0.02 / 0.624)", + "color(display-p3 0 0.027 0.012 / 0.895)", +]; + +pub const OLIVE: [&str; 12] = [ + "#fcfdfc", "#f8faf8", "#eff1ef", "#e7e9e7", "#dfe2df", "#d7dad7", "#cccfcc", "#b9bcb8", + "#898e87", "#7f847d", "#60655f", "#1d211c", +]; + +pub const OLIVE_A: [&str; 12] = [ + "#00550003", + "#00490007", + "#00200010", + "#00160018", + "#00180020", + "#00140028", + "#000f0033", + "#040f0047", + "#050f0078", + "#040e0082", + "#020a00a0", + "#010600e3", +]; + +pub const OLIVE_P3: [&str; 12] = [ + "color(display-p3 0.989 0.992 0.989)", + "color(display-p3 0.974 0.98 0.973)", + "color(display-p3 0.939 0.945 0.937)", + "color(display-p3 0.907 0.914 0.905)", + "color(display-p3 0.878 0.885 0.875)", + "color(display-p3 0.846 0.855 0.843)", + "color(display-p3 0.803 0.812 0.8)", + "color(display-p3 0.727 0.738 0.723)", + "color(display-p3 0.541 0.556 0.532)", + "color(display-p3 0.5 0.515 0.491)", + "color(display-p3 0.38 0.395 0.374)", + "color(display-p3 0.117 0.129 0.111)", +]; + +pub const OLIVE_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.349 0.024 / 0.012)", + "color(display-p3 0.024 0.302 0.024 / 0.028)", + "color(display-p3 0.008 0.129 0.008 / 0.063)", + "color(display-p3 0.012 0.094 0.012 / 0.095)", + "color(display-p3 0.035 0.098 0.008 / 0.126)", + "color(display-p3 0.027 0.078 0.004 / 0.157)", + "color(display-p3 0.02 0.059 0 / 0.2)", + "color(display-p3 0.02 0.059 0.004 / 0.279)", + "color(display-p3 0.02 0.051 0.004 / 0.467)", + "color(display-p3 0.024 0.047 0 / 0.51)", + "color(display-p3 0.012 0.039 0 / 0.628)", + "color(display-p3 0.008 0.024 0 / 0.891)", +]; + +pub const SAND: [&str; 12] = [ + "#fdfdfc", "#f9f9f8", "#f1f0ef", "#e9e8e6", "#e2e1de", "#dad9d6", "#cfceca", "#bcbbb5", + "#8d8d86", "#82827c", "#63635e", "#21201c", +]; + +pub const SAND_A: [&str; 12] = [ + "#55550003", + "#25250007", + "#20100010", + "#1f150019", + "#1f180021", + "#19130029", + "#19140035", + "#1915014a", + "#0f0f0079", + "#0c0c0083", + "#080800a1", + "#060500e3", +]; + +pub const SAND_P3: [&str; 12] = [ + "color(display-p3 0.992 0.992 0.989)", + "color(display-p3 0.977 0.977 0.973)", + "color(display-p3 0.943 0.942 0.936)", + "color(display-p3 0.913 0.912 0.903)", + "color(display-p3 0.885 0.883 0.873)", + "color(display-p3 0.854 0.852 0.839)", + "color(display-p3 0.813 0.81 0.794)", + "color(display-p3 0.738 0.734 0.713)", + "color(display-p3 0.553 0.553 0.528)", + "color(display-p3 0.511 0.511 0.488)", + "color(display-p3 0.388 0.388 0.37)", + "color(display-p3 0.129 0.126 0.111)", +]; + +pub const SAND_P3_A: [&str; 12] = [ + "color(display-p3 0.349 0.349 0.024 / 0.012)", + "color(display-p3 0.161 0.161 0.024 / 0.028)", + "color(display-p3 0.067 0.067 0.008 / 0.063)", + "color(display-p3 0.129 0.129 0.012 / 0.099)", + "color(display-p3 0.098 0.067 0.008 / 0.126)", + "color(display-p3 0.102 0.075 0.004 / 0.161)", + "color(display-p3 0.098 0.098 0.004 / 0.208)", + "color(display-p3 0.086 0.075 0.004 / 0.287)", + "color(display-p3 0.051 0.051 0.004 / 0.471)", + "color(display-p3 0.047 0.047 0 / 0.514)", + "color(display-p3 0.031 0.031 0 / 0.632)", + "color(display-p3 0.024 0.02 0 / 0.891)", +]; + +pub const TOMATO: [&str; 12] = [ + "#fffcfc", "#fff8f7", "#feebe7", "#ffdcd3", "#ffcdc2", "#fdbdaf", "#f5a898", "#ec8e7b", + "#e54d2e", "#dd4425", "#d13415", "#5c271f", +]; + +pub const TOMATO_A: [&str; 12] = [ + "#ff000003", + "#ff200008", + "#f52b0018", + "#ff35002c", + "#ff2e003d", + "#f92d0050", + "#e7280067", + "#db250084", + "#df2600d1", + "#d72400da", + "#cd2200ea", + "#460900e0", +]; + +pub const TOMATO_P3: [&str; 12] = [ + "color(display-p3 0.998 0.989 0.988)", + "color(display-p3 0.994 0.974 0.969)", + "color(display-p3 0.985 0.924 0.909)", + "color(display-p3 0.996 0.868 0.835)", + "color(display-p3 0.98 0.812 0.77)", + "color(display-p3 0.953 0.75 0.698)", + "color(display-p3 0.917 0.673 0.611)", + "color(display-p3 0.875 0.575 0.502)", + "color(display-p3 0.831 0.345 0.231)", + "color(display-p3 0.802 0.313 0.2)", + "color(display-p3 0.755 0.259 0.152)", + "color(display-p3 0.335 0.165 0.132)", +]; + +pub const TOMATO_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.024 0.024 / 0.012)", + "color(display-p3 0.757 0.145 0.02 / 0.032)", + "color(display-p3 0.831 0.184 0.012 / 0.091)", + "color(display-p3 0.976 0.192 0.004 / 0.165)", + "color(display-p3 0.918 0.192 0.004 / 0.232)", + "color(display-p3 0.847 0.173 0.004 / 0.302)", + "color(display-p3 0.788 0.165 0.004 / 0.389)", + "color(display-p3 0.749 0.153 0.004 / 0.499)", + "color(display-p3 0.78 0.149 0 / 0.769)", + "color(display-p3 0.757 0.141 0 / 0.8)", + "color(display-p3 0.755 0.259 0.152)", + "color(display-p3 0.335 0.165 0.132)", +]; + +pub const RED: [&str; 12] = [ + "#fffcfc", "#fff7f7", "#feebec", "#ffdbdc", "#ffcdce", "#fdbdbe", "#f4a9aa", "#eb8e90", + "#e5484d", "#dc3e42", "#ce2c31", "#641723", +]; + +pub const RED_A: [&str; 12] = [ + "#ff000003", + "#ff000008", + "#f3000d14", + "#ff000824", + "#ff000632", + "#f8000442", + "#df000356", + "#d2000571", + "#db0007b7", + "#d10005c1", + "#c40006d3", + "#55000de8", +]; + +pub const RED_P3: [&str; 12] = [ + "color(display-p3 0.998 0.989 0.988)", + "color(display-p3 0.995 0.971 0.971)", + "color(display-p3 0.985 0.925 0.925)", + "color(display-p3 0.999 0.866 0.866)", + "color(display-p3 0.984 0.812 0.811)", + "color(display-p3 0.955 0.751 0.749)", + "color(display-p3 0.915 0.675 0.672)", + "color(display-p3 0.872 0.575 0.572)", + "color(display-p3 0.83 0.329 0.324)", + "color(display-p3 0.798 0.294 0.285)", + "color(display-p3 0.744 0.234 0.222)", + "color(display-p3 0.36 0.115 0.143)", +]; + +pub const RED_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.024 0.024 / 0.012)", + "color(display-p3 0.863 0.024 0.024 / 0.028)", + "color(display-p3 0.792 0.008 0.008 / 0.075)", + "color(display-p3 1 0.008 0.008 / 0.134)", + "color(display-p3 0.918 0.008 0.008 / 0.189)", + "color(display-p3 0.831 0.02 0.004 / 0.251)", + "color(display-p3 0.741 0.016 0.004 / 0.33)", + "color(display-p3 0.698 0.012 0.004 / 0.428)", + "color(display-p3 0.749 0.008 0 / 0.675)", + "color(display-p3 0.714 0.012 0 / 0.714)", + "color(display-p3 0.744 0.234 0.222)", + "color(display-p3 0.36 0.115 0.143)", +]; + +pub const RUBY: [&str; 12] = [ + "#fffcfd", "#fff7f8", "#feeaed", "#ffdce1", "#ffced6", "#f8bfc8", "#efacb8", "#e592a3", + "#e54666", "#dc3b5d", "#ca244d", "#64172b", +]; + +pub const RUBY_A: [&str; 12] = [ + "#ff005503", + "#ff002008", + "#f3002515", + "#ff002523", + "#ff002a31", + "#e4002440", + "#ce002553", + "#c300286d", + "#db002cb9", + "#d2002cc4", + "#c10030db", + "#550016e8", +]; + +pub const RUBY_P3: [&str; 12] = [ + "color(display-p3 0.998 0.989 0.992)", + "color(display-p3 0.995 0.971 0.974)", + "color(display-p3 0.983 0.92 0.928)", + "color(display-p3 0.987 0.869 0.885)", + "color(display-p3 0.968 0.817 0.839)", + "color(display-p3 0.937 0.758 0.786)", + "color(display-p3 0.897 0.685 0.721)", + "color(display-p3 0.851 0.588 0.639)", + "color(display-p3 0.83 0.323 0.408)", + "color(display-p3 0.795 0.286 0.375)", + "color(display-p3 0.728 0.211 0.311)", + "color(display-p3 0.36 0.115 0.171)", +]; + +pub const RUBY_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.024 0.349 / 0.012)", + "color(display-p3 0.863 0.024 0.024 / 0.028)", + "color(display-p3 0.804 0.008 0.11 / 0.079)", + "color(display-p3 0.91 0.008 0.125 / 0.13)", + "color(display-p3 0.831 0.004 0.133 / 0.185)", + "color(display-p3 0.745 0.004 0.118 / 0.244)", + "color(display-p3 0.678 0.004 0.114 / 0.314)", + "color(display-p3 0.639 0.004 0.125 / 0.412)", + "color(display-p3 0.753 0 0.129 / 0.679)", + "color(display-p3 0.714 0 0.125 / 0.714)", + "color(display-p3 0.728 0.211 0.311)", + "color(display-p3 0.36 0.115 0.171)", +]; + +pub const CRIMSON: [&str; 12] = [ + "#fffcfd", "#fef7f9", "#ffe9f0", "#fedce7", "#facedd", "#f3bed1", "#eaacc3", "#e093b2", + "#e93d82", "#df3478", "#cb1d63", "#621639", +]; + +pub const CRIMSON_A: [&str; 12] = [ + "#ff005503", + "#e0004008", + "#ff005216", + "#f8005123", + "#e5004f31", + "#d0004b41", + "#bf004753", + "#b6004a6c", + "#e2005bc2", + "#d70056cb", + "#c4004fe2", + "#530026e9", +]; + +pub const CRIMSON_P3: [&str; 12] = [ + "color(display-p3 0.998 0.989 0.992)", + "color(display-p3 0.991 0.969 0.976)", + "color(display-p3 0.987 0.917 0.941)", + "color(display-p3 0.975 0.866 0.904)", + "color(display-p3 0.953 0.813 0.864)", + "color(display-p3 0.921 0.755 0.817)", + "color(display-p3 0.88 0.683 0.761)", + "color(display-p3 0.834 0.592 0.694)", + "color(display-p3 0.843 0.298 0.507)", + "color(display-p3 0.807 0.266 0.468)", + "color(display-p3 0.731 0.195 0.388)", + "color(display-p3 0.352 0.111 0.221)", +]; + +pub const CRIMSON_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.024 0.349 / 0.012)", + "color(display-p3 0.757 0.02 0.267 / 0.032)", + "color(display-p3 0.859 0.008 0.294 / 0.083)", + "color(display-p3 0.827 0.008 0.298 / 0.134)", + "color(display-p3 0.753 0.008 0.275 / 0.189)", + "color(display-p3 0.682 0.004 0.247 / 0.244)", + "color(display-p3 0.62 0.004 0.251 / 0.318)", + "color(display-p3 0.6 0.004 0.251 / 0.408)", + "color(display-p3 0.776 0 0.298 / 0.702)", + "color(display-p3 0.737 0 0.275 / 0.734)", + "color(display-p3 0.731 0.195 0.388)", + "color(display-p3 0.352 0.111 0.221)", +]; + +pub const PINK: [&str; 12] = [ + "#fffcfe", "#fef7fb", "#fee9f5", "#fbdcef", "#f6cee7", "#efbfdd", "#e7acd0", "#dd93c2", + "#d6409f", "#cf3897", "#c2298a", "#651249", +]; + +pub const PINK_A: [&str; 12] = [ + "#ff00aa03", + "#e0008008", + "#f4008c16", + "#e2008b23", + "#d1008331", + "#c0007840", + "#b6006f53", + "#af006f6c", + "#c8007fbf", + "#c2007ac7", + "#b60074d6", + "#59003bed", +]; + +pub const PINK_P3: [&str; 12] = [ + "color(display-p3 0.998 0.989 0.996)", + "color(display-p3 0.992 0.97 0.985)", + "color(display-p3 0.981 0.917 0.96)", + "color(display-p3 0.963 0.867 0.932)", + "color(display-p3 0.939 0.815 0.899)", + "color(display-p3 0.907 0.756 0.859)", + "color(display-p3 0.869 0.683 0.81)", + "color(display-p3 0.825 0.59 0.751)", + "color(display-p3 0.775 0.297 0.61)", + "color(display-p3 0.748 0.27 0.581)", + "color(display-p3 0.698 0.219 0.528)", + "color(display-p3 0.363 0.101 0.279)", +]; + +pub const PINK_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.024 0.675 / 0.012)", + "color(display-p3 0.757 0.02 0.51 / 0.032)", + "color(display-p3 0.765 0.008 0.529 / 0.083)", + "color(display-p3 0.737 0.008 0.506 / 0.134)", + "color(display-p3 0.663 0.004 0.451 / 0.185)", + "color(display-p3 0.616 0.004 0.424 / 0.244)", + "color(display-p3 0.596 0.004 0.412 / 0.318)", + "color(display-p3 0.573 0.004 0.404 / 0.412)", + "color(display-p3 0.682 0 0.447 / 0.702)", + "color(display-p3 0.655 0 0.424 / 0.73)", + "color(display-p3 0.698 0.219 0.528)", + "color(display-p3 0.363 0.101 0.279)", +]; + +pub const PLUM: [&str; 12] = [ + "#fefcff", "#fdf7fd", "#fbebfb", "#f7def8", "#f2d1f3", "#e9c2ec", "#deade3", "#cf91d8", + "#ab4aba", "#a144af", "#953ea3", "#53195d", +]; + +pub const PLUM_A: [&str; 12] = [ + "#aa00ff03", + "#c000c008", + "#cc00cc14", + "#c200c921", + "#b700bd2e", + "#a400b03d", + "#9900a852", + "#9000a56e", + "#89009eb5", + "#7f0092bb", + "#730086c1", + "#40004be6", +]; + +pub const PLUM_P3: [&str; 12] = [ + "color(display-p3 0.995 0.988 0.999)", + "color(display-p3 0.988 0.971 0.99)", + "color(display-p3 0.973 0.923 0.98)", + "color(display-p3 0.953 0.875 0.966)", + "color(display-p3 0.926 0.825 0.945)", + "color(display-p3 0.89 0.765 0.916)", + "color(display-p3 0.84 0.686 0.877)", + "color(display-p3 0.775 0.58 0.832)", + "color(display-p3 0.624 0.313 0.708)", + "color(display-p3 0.587 0.29 0.667)", + "color(display-p3 0.543 0.263 0.619)", + "color(display-p3 0.299 0.114 0.352)", +]; + +pub const PLUM_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.024 1 / 0.012)", + "color(display-p3 0.58 0.024 0.58 / 0.028)", + "color(display-p3 0.655 0.008 0.753 / 0.079)", + "color(display-p3 0.627 0.008 0.722 / 0.126)", + "color(display-p3 0.58 0.004 0.69 / 0.177)", + "color(display-p3 0.537 0.004 0.655 / 0.236)", + "color(display-p3 0.49 0.004 0.616 / 0.314)", + "color(display-p3 0.471 0.004 0.6 / 0.42)", + "color(display-p3 0.451 0 0.576 / 0.687)", + "color(display-p3 0.42 0 0.529 / 0.71)", + "color(display-p3 0.543 0.263 0.619)", + "color(display-p3 0.299 0.114 0.352)", +]; + +pub const PURPLE: [&str; 12] = [ + "#fefcfe", "#fbf7fe", "#f7edfe", "#f2e2fc", "#ead5f9", "#e0c4f4", "#d1afec", "#be93e4", + "#8e4ec6", "#8347b9", "#8145b5", "#402060", +]; + +pub const PURPLE_A: [&str; 12] = [ + "#aa00aa03", + "#8000e008", + "#8e00f112", + "#8d00e51d", + "#8000db2a", + "#7a01d03b", + "#6d00c350", + "#6600c06c", + "#5c00adb1", + "#53009eb8", + "#52009aba", + "#250049df", +]; + +pub const PURPLE_P3: [&str; 12] = [ + "color(display-p3 0.995 0.988 0.996)", + "color(display-p3 0.983 0.971 0.993)", + "color(display-p3 0.963 0.931 0.989)", + "color(display-p3 0.937 0.888 0.981)", + "color(display-p3 0.904 0.837 0.966)", + "color(display-p3 0.86 0.774 0.942)", + "color(display-p3 0.799 0.69 0.91)", + "color(display-p3 0.719 0.583 0.874)", + "color(display-p3 0.523 0.318 0.751)", + "color(display-p3 0.483 0.289 0.7)", + "color(display-p3 0.473 0.281 0.687)", + "color(display-p3 0.234 0.132 0.363)", +]; + +pub const PURPLE_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.024 0.675 / 0.012)", + "color(display-p3 0.443 0.024 0.722 / 0.028)", + "color(display-p3 0.506 0.008 0.835 / 0.071)", + "color(display-p3 0.451 0.004 0.831 / 0.114)", + "color(display-p3 0.431 0.004 0.788 / 0.165)", + "color(display-p3 0.384 0.004 0.745 / 0.228)", + "color(display-p3 0.357 0.004 0.71 / 0.31)", + "color(display-p3 0.322 0.004 0.702 / 0.416)", + "color(display-p3 0.298 0 0.639 / 0.683)", + "color(display-p3 0.271 0 0.58 / 0.71)", + "color(display-p3 0.473 0.281 0.687)", + "color(display-p3 0.234 0.132 0.363)", +]; + +pub const VIOLET: [&str; 12] = [ + "#fdfcfe", "#faf8ff", "#f4f0fe", "#ebe4ff", "#e1d9ff", "#d4cafe", "#c2b5f5", "#aa99ec", + "#6e56cf", "#654dc4", "#6550b9", "#2f265f", +]; + +pub const VIOLET_A: [&str; 12] = [ + "#5500aa03", + "#4900ff07", + "#4400ee0f", + "#4300ff1b", + "#3600ff26", + "#3100fb35", + "#2d01dd4a", + "#2b00d066", + "#2400b7a9", + "#2300abb2", + "#1f0099af", + "#0b0043d9", +]; + +pub const VIOLET_P3: [&str; 12] = [ + "color(display-p3 0.991 0.988 0.995)", + "color(display-p3 0.978 0.974 0.998)", + "color(display-p3 0.953 0.943 0.993)", + "color(display-p3 0.916 0.897 1)", + "color(display-p3 0.876 0.851 1)", + "color(display-p3 0.825 0.793 0.981)", + "color(display-p3 0.752 0.712 0.943)", + "color(display-p3 0.654 0.602 0.902)", + "color(display-p3 0.417 0.341 0.784)", + "color(display-p3 0.381 0.306 0.741)", + "color(display-p3 0.383 0.317 0.702)", + "color(display-p3 0.179 0.15 0.359)", +]; + +pub const VIOLET_P3_A: [&str; 12] = [ + "color(display-p3 0.349 0.024 0.675 / 0.012)", + "color(display-p3 0.161 0.024 0.863 / 0.028)", + "color(display-p3 0.204 0.004 0.871 / 0.059)", + "color(display-p3 0.196 0.004 1 / 0.102)", + "color(display-p3 0.165 0.008 1 / 0.15)", + "color(display-p3 0.153 0.004 0.906 / 0.208)", + "color(display-p3 0.141 0.004 0.796 / 0.287)", + "color(display-p3 0.133 0.004 0.753 / 0.397)", + "color(display-p3 0.114 0 0.675 / 0.659)", + "color(display-p3 0.11 0 0.627 / 0.695)", + "color(display-p3 0.383 0.317 0.702)", + "color(display-p3 0.179 0.15 0.359)", +]; + +pub const IRIS: [&str; 12] = [ + "#fdfdff", "#f8f8ff", "#f0f1fe", "#e6e7ff", "#dadcff", "#cbcdff", "#b8baf8", "#9b9ef0", + "#5b5bd6", "#5151cd", "#5753c6", "#272962", +]; + +pub const IRIS_A: [&str; 12] = [ + "#0000ff02", + "#0000ff07", + "#0011ee0f", + "#000bff19", + "#000eff25", + "#000aff34", + "#0008e647", + "#0008d964", + "#0000c0a4", + "#0000b6ae", + "#0600abac", + "#000246d8", +]; + +pub const IRIS_P3: [&str; 12] = [ + "color(display-p3 0.992 0.992 0.999)", + "color(display-p3 0.972 0.973 0.998)", + "color(display-p3 0.943 0.945 0.992)", + "color(display-p3 0.902 0.906 1)", + "color(display-p3 0.857 0.861 1)", + "color(display-p3 0.799 0.805 0.987)", + "color(display-p3 0.721 0.727 0.955)", + "color(display-p3 0.61 0.619 0.918)", + "color(display-p3 0.357 0.357 0.81)", + "color(display-p3 0.318 0.318 0.774)", + "color(display-p3 0.337 0.326 0.748)", + "color(display-p3 0.154 0.161 0.371)", +]; + +pub const IRIS_P3_A: [&str; 12] = [ + "color(display-p3 0.02 0.02 1 / 0.008)", + "color(display-p3 0.024 0.024 0.863 / 0.028)", + "color(display-p3 0.004 0.071 0.871 / 0.059)", + "color(display-p3 0.012 0.051 1 / 0.099)", + "color(display-p3 0.008 0.035 1 / 0.142)", + "color(display-p3 0 0.02 0.941 / 0.2)", + "color(display-p3 0.004 0.02 0.847 / 0.279)", + "color(display-p3 0.004 0.024 0.788 / 0.389)", + "color(display-p3 0 0 0.706 / 0.644)", + "color(display-p3 0 0 0.667 / 0.683)", + "color(display-p3 0.337 0.326 0.748)", + "color(display-p3 0.154 0.161 0.371)", +]; + +pub const INDIGO: [&str; 12] = [ + "#fdfdfe", "#f7f9ff", "#edf2fe", "#e1e9ff", "#d2deff", "#c1d0ff", "#abbdf9", "#8da4ef", + "#3e63dd", "#3358d4", "#3a5bc7", "#1f2d5c", +]; + +pub const INDIGO_A: [&str; 12] = [ + "#00008002", + "#0040ff08", + "#0047f112", + "#0044ff1e", + "#0044ff2d", + "#003eff3e", + "#0037ed54", + "#0034dc72", + "#0031d2c1", + "#002ec9cc", + "#002bb7c5", + "#001046e0", +]; + +pub const INDIGO_P3: [&str; 12] = [ + "color(display-p3 0.992 0.992 0.996)", + "color(display-p3 0.971 0.977 0.998)", + "color(display-p3 0.933 0.948 0.992)", + "color(display-p3 0.885 0.914 1)", + "color(display-p3 0.831 0.87 1)", + "color(display-p3 0.767 0.814 0.995)", + "color(display-p3 0.685 0.74 0.957)", + "color(display-p3 0.569 0.639 0.916)", + "color(display-p3 0.276 0.384 0.837)", + "color(display-p3 0.234 0.343 0.801)", + "color(display-p3 0.256 0.354 0.755)", + "color(display-p3 0.133 0.175 0.348)", +]; + +pub const INDIGO_P3_A: [&str; 12] = [ + "color(display-p3 0.02 0.02 0.51 / 0.008)", + "color(display-p3 0.024 0.161 0.863 / 0.028)", + "color(display-p3 0.008 0.239 0.886 / 0.067)", + "color(display-p3 0.004 0.247 1 / 0.114)", + "color(display-p3 0.004 0.235 1 / 0.169)", + "color(display-p3 0.004 0.208 0.984 / 0.232)", + "color(display-p3 0.004 0.176 0.863 / 0.314)", + "color(display-p3 0.004 0.165 0.812 / 0.432)", + "color(display-p3 0 0.153 0.773 / 0.726)", + "color(display-p3 0 0.137 0.737 / 0.765)", + "color(display-p3 0.256 0.354 0.755)", + "color(display-p3 0.133 0.175 0.348)", +]; + +pub const BLUE: [&str; 12] = [ + "#fbfdff", "#f4faff", "#e6f4fe", "#d5efff", "#c2e5ff", "#acd8fc", "#8ec8f6", "#5eb1ef", + "#0090ff", "#0588f0", "#0d74ce", "#113264", +]; + +pub const BLUE_A: [&str; 12] = [ + "#0080ff04", + "#008cff0b", + "#008ff519", + "#009eff2a", + "#0093ff3d", + "#0088f653", + "#0083eb71", + "#0084e6a1", + "#0090ff", + "#0086f0fa", + "#006dcbf2", + "#002359ee", +]; + +pub const BLUE_P3: [&str; 12] = [ + "color(display-p3 0.986 0.992 0.999)", + "color(display-p3 0.96 0.979 0.998)", + "color(display-p3 0.912 0.956 0.991)", + "color(display-p3 0.853 0.932 1)", + "color(display-p3 0.788 0.894 0.998)", + "color(display-p3 0.709 0.843 0.976)", + "color(display-p3 0.606 0.777 0.947)", + "color(display-p3 0.451 0.688 0.917)", + "color(display-p3 0.247 0.556 0.969)", + "color(display-p3 0.234 0.523 0.912)", + "color(display-p3 0.15 0.44 0.84)", + "color(display-p3 0.102 0.193 0.379)", +]; + +pub const BLUE_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.514 1 / 0.016)", + "color(display-p3 0.024 0.514 0.906 / 0.04)", + "color(display-p3 0.012 0.506 0.914 / 0.087)", + "color(display-p3 0.008 0.545 1 / 0.146)", + "color(display-p3 0.004 0.502 0.984 / 0.212)", + "color(display-p3 0.004 0.463 0.922 / 0.291)", + "color(display-p3 0.004 0.431 0.863 / 0.393)", + "color(display-p3 0 0.427 0.851 / 0.55)", + "color(display-p3 0 0.412 0.961 / 0.753)", + "color(display-p3 0 0.376 0.886 / 0.765)", + "color(display-p3 0.15 0.44 0.84)", + "color(display-p3 0.102 0.193 0.379)", +]; + +pub const CYAN: [&str; 12] = [ + "#fafdfe", "#f2fafb", "#def7f9", "#caf1f6", "#b5e9f0", "#9ddde7", "#7dcedc", "#3db9cf", + "#00a2c7", "#0797b9", "#107d98", "#0d3c48", +]; + +pub const CYAN_A: [&str; 12] = [ + "#0099cc05", + "#009db10d", + "#00c2d121", + "#00bcd435", + "#01b4cc4a", + "#00a7c162", + "#009fbb82", + "#00a3c0c2", + "#00a2c7", + "#0094b7f8", + "#007491ef", + "#00323ef2", +]; + +pub const CYAN_P3: [&str; 12] = [ + "color(display-p3 0.982 0.992 0.996)", + "color(display-p3 0.955 0.981 0.984)", + "color(display-p3 0.888 0.965 0.975)", + "color(display-p3 0.821 0.941 0.959)", + "color(display-p3 0.751 0.907 0.935)", + "color(display-p3 0.671 0.862 0.9)", + "color(display-p3 0.564 0.8 0.854)", + "color(display-p3 0.388 0.715 0.798)", + "color(display-p3 0.282 0.627 0.765)", + "color(display-p3 0.264 0.583 0.71)", + "color(display-p3 0.08 0.48 0.63)", + "color(display-p3 0.108 0.232 0.277)", +]; + +pub const CYAN_P3_A: [&str; 12] = [ + "color(display-p3 0.02 0.608 0.804 / 0.02)", + "color(display-p3 0.02 0.557 0.647 / 0.044)", + "color(display-p3 0.004 0.694 0.796 / 0.114)", + "color(display-p3 0.004 0.678 0.784 / 0.181)", + "color(display-p3 0.004 0.624 0.733 / 0.248)", + "color(display-p3 0.004 0.584 0.706 / 0.33)", + "color(display-p3 0.004 0.541 0.667 / 0.436)", + "color(display-p3 0 0.533 0.667 / 0.612)", + "color(display-p3 0 0.482 0.675 / 0.718)", + "color(display-p3 0 0.435 0.608 / 0.738)", + "color(display-p3 0.08 0.48 0.63)", + "color(display-p3 0.108 0.232 0.277)", +]; + +pub const TEAL: [&str; 12] = [ + "#fafefd", "#f3fbf9", "#e0f8f3", "#ccf3ea", "#b8eae0", "#a1ded2", "#83cdc1", "#53b9ab", + "#12a594", "#0d9b8a", "#008573", "#0d3d38", +]; + +pub const TEAL_A: [&str; 12] = [ + "#00cc9905", + "#00aa800c", + "#00c69d1f", + "#00c39633", + "#00b49047", + "#00a6855e", + "#0099807c", + "#009783ac", + "#009e8ced", + "#009684f2", + "#008573", + "#00332df2", +]; + +pub const TEAL_P3: [&str; 12] = [ + "color(display-p3 0.983 0.996 0.992)", + "color(display-p3 0.958 0.983 0.976)", + "color(display-p3 0.895 0.971 0.952)", + "color(display-p3 0.831 0.949 0.92)", + "color(display-p3 0.761 0.914 0.878)", + "color(display-p3 0.682 0.864 0.825)", + "color(display-p3 0.581 0.798 0.756)", + "color(display-p3 0.433 0.716 0.671)", + "color(display-p3 0.297 0.637 0.581)", + "color(display-p3 0.275 0.599 0.542)", + "color(display-p3 0.08 0.5 0.43)", + "color(display-p3 0.11 0.235 0.219)", +]; + +pub const TEAL_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.757 0.514 / 0.016)", + "color(display-p3 0.02 0.647 0.467 / 0.044)", + "color(display-p3 0.004 0.741 0.557 / 0.106)", + "color(display-p3 0.004 0.702 0.537 / 0.169)", + "color(display-p3 0.004 0.643 0.494 / 0.24)", + "color(display-p3 0.004 0.569 0.447 / 0.318)", + "color(display-p3 0.004 0.518 0.424 / 0.42)", + "color(display-p3 0 0.506 0.424 / 0.569)", + "color(display-p3 0 0.482 0.404 / 0.702)", + "color(display-p3 0 0.451 0.369 / 0.726)", + "color(display-p3 0.08 0.5 0.43)", + "color(display-p3 0.11 0.235 0.219)", +]; + +pub const JADE: [&str; 12] = [ + "#fbfefd", "#f4fbf7", "#e6f7ed", "#d6f1e3", "#c3e9d7", "#acdec8", "#8bceb6", "#56ba9f", + "#29a383", "#26997b", "#208368", "#1d3b31", +]; + +pub const JADE_A: [&str; 12] = [ + "#00c08004", + "#00a3460b", + "#00ae4819", + "#00a85129", + "#00a2553c", + "#009a5753", + "#00945f74", + "#00976ea9", + "#00916bd6", + "#008764d9", + "#007152df", + "#002217e2", +]; + +pub const JADE_P3: [&str; 12] = [ + "color(display-p3 0.986 0.996 0.992)", + "color(display-p3 0.962 0.983 0.969)", + "color(display-p3 0.912 0.965 0.932)", + "color(display-p3 0.858 0.941 0.893)", + "color(display-p3 0.795 0.909 0.847)", + "color(display-p3 0.715 0.864 0.791)", + "color(display-p3 0.603 0.802 0.718)", + "color(display-p3 0.44 0.72 0.629)", + "color(display-p3 0.319 0.63 0.521)", + "color(display-p3 0.299 0.592 0.488)", + "color(display-p3 0.15 0.5 0.37)", + "color(display-p3 0.142 0.229 0.194)", +]; + +pub const JADE_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.757 0.514 / 0.016)", + "color(display-p3 0.024 0.612 0.22 / 0.04)", + "color(display-p3 0.012 0.596 0.235 / 0.087)", + "color(display-p3 0.008 0.588 0.255 / 0.142)", + "color(display-p3 0.004 0.561 0.251 / 0.204)", + "color(display-p3 0.004 0.525 0.278 / 0.287)", + "color(display-p3 0.004 0.506 0.29 / 0.397)", + "color(display-p3 0 0.506 0.337 / 0.561)", + "color(display-p3 0 0.459 0.298 / 0.683)", + "color(display-p3 0 0.42 0.271 / 0.702)", + "color(display-p3 0.15 0.5 0.37)", + "color(display-p3 0.142 0.229 0.194)", +]; + +pub const GREEN: [&str; 12] = [ + "#fbfefc", "#f4fbf6", "#e6f6eb", "#d6f1df", "#c4e8d1", "#adddc0", "#8eceaa", "#5bb98b", + "#30a46c", "#2b9a66", "#218358", "#193b2d", +]; + +pub const GREEN_A: [&str; 12] = [ + "#00c04004", + "#00a32f0b", + "#00a43319", + "#00a83829", + "#019c393b", + "#00963c52", + "#00914071", + "#00924ba4", + "#008f4acf", + "#008647d4", + "#00713fde", + "#002616e6", +]; + +pub const GREEN_P3: [&str; 12] = [ + "color(display-p3 0.986 0.996 0.989)", + "color(display-p3 0.963 0.983 0.967)", + "color(display-p3 0.913 0.964 0.925)", + "color(display-p3 0.859 0.94 0.879)", + "color(display-p3 0.796 0.907 0.826)", + "color(display-p3 0.718 0.863 0.761)", + "color(display-p3 0.61 0.801 0.675)", + "color(display-p3 0.451 0.715 0.559)", + "color(display-p3 0.332 0.634 0.442)", + "color(display-p3 0.308 0.595 0.417)", + "color(display-p3 0.19 0.5 0.32)", + "color(display-p3 0.132 0.228 0.18)", +]; + +pub const GREEN_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.757 0.267 / 0.016)", + "color(display-p3 0.024 0.565 0.129 / 0.036)", + "color(display-p3 0.012 0.596 0.145 / 0.087)", + "color(display-p3 0.008 0.588 0.145 / 0.142)", + "color(display-p3 0.004 0.541 0.157 / 0.204)", + "color(display-p3 0.004 0.518 0.157 / 0.283)", + "color(display-p3 0.004 0.486 0.165 / 0.389)", + "color(display-p3 0 0.478 0.2 / 0.55)", + "color(display-p3 0 0.455 0.165 / 0.667)", + "color(display-p3 0 0.416 0.153 / 0.691)", + "color(display-p3 0.19 0.5 0.32)", + "color(display-p3 0.132 0.228 0.18)", +]; + +pub const GRASS: [&str; 12] = [ + "#fbfefb", "#f5fbf5", "#e9f6e9", "#daf1db", "#c9e8ca", "#b2ddb5", "#94ce9a", "#65ba74", + "#46a758", "#3e9b4f", "#2a7e3b", "#203c25", +]; + +pub const GRASS_A: [&str; 12] = [ + "#00c00004", + "#0099000a", + "#00970016", + "#009f0725", + "#00930536", + "#008f0a4d", + "#018b0f6b", + "#008d199a", + "#008619b9", + "#007b17c1", + "#006514d5", + "#002006df", +]; + +pub const GRASS_P3: [&str; 12] = [ + "color(display-p3 0.986 0.996 0.985)", + "color(display-p3 0.966 0.983 0.964)", + "color(display-p3 0.923 0.965 0.917)", + "color(display-p3 0.872 0.94 0.865)", + "color(display-p3 0.811 0.908 0.802)", + "color(display-p3 0.733 0.864 0.724)", + "color(display-p3 0.628 0.803 0.622)", + "color(display-p3 0.477 0.72 0.482)", + "color(display-p3 0.38 0.647 0.378)", + "color(display-p3 0.344 0.598 0.342)", + "color(display-p3 0.263 0.488 0.261)", + "color(display-p3 0.151 0.233 0.153)", +]; + +pub const GRASS_P3_A: [&str; 12] = [ + "color(display-p3 0.024 0.757 0.024 / 0.016)", + "color(display-p3 0.024 0.565 0.024 / 0.036)", + "color(display-p3 0.059 0.576 0.008 / 0.083)", + "color(display-p3 0.035 0.565 0.008 / 0.134)", + "color(display-p3 0.047 0.545 0.008 / 0.197)", + "color(display-p3 0.031 0.502 0.004 / 0.275)", + "color(display-p3 0.012 0.482 0.004 / 0.377)", + "color(display-p3 0 0.467 0.008 / 0.522)", + "color(display-p3 0.008 0.435 0 / 0.624)", + "color(display-p3 0.008 0.388 0 / 0.659)", + "color(display-p3 0.263 0.488 0.261)", + "color(display-p3 0.151 0.233 0.153)", +]; + +pub const BROWN: [&str; 12] = [ + "#fefdfc", "#fcf9f6", "#f6eee7", "#f0e4d9", "#ebdaca", "#e4cdb7", "#dcbc9f", "#cea37e", + "#ad7f58", "#a07553", "#815e46", "#3e332e", +]; + +pub const BROWN_A: [&str; 12] = [ + "#aa550003", + "#aa550009", + "#a04b0018", + "#9b4a0026", + "#9f4d0035", + "#a04e0048", + "#a34e0060", + "#9f4a0081", + "#823c00a7", + "#723300ac", + "#522100b9", + "#140600d1", +]; + +pub const BROWN_P3: [&str; 12] = [ + "color(display-p3 0.995 0.992 0.989)", + "color(display-p3 0.987 0.976 0.964)", + "color(display-p3 0.959 0.936 0.909)", + "color(display-p3 0.934 0.897 0.855)", + "color(display-p3 0.909 0.856 0.798)", + "color(display-p3 0.88 0.808 0.73)", + "color(display-p3 0.841 0.742 0.639)", + "color(display-p3 0.782 0.647 0.514)", + "color(display-p3 0.651 0.505 0.368)", + "color(display-p3 0.601 0.465 0.344)", + "color(display-p3 0.485 0.374 0.288)", + "color(display-p3 0.236 0.202 0.183)", +]; + +pub const BROWN_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.349 0.024 / 0.012)", + "color(display-p3 0.675 0.349 0.024 / 0.036)", + "color(display-p3 0.573 0.314 0.012 / 0.091)", + "color(display-p3 0.545 0.302 0.008 / 0.146)", + "color(display-p3 0.561 0.29 0.004 / 0.204)", + "color(display-p3 0.553 0.294 0.004 / 0.271)", + "color(display-p3 0.557 0.286 0.004 / 0.361)", + "color(display-p3 0.549 0.275 0.004 / 0.487)", + "color(display-p3 0.447 0.22 0 / 0.632)", + "color(display-p3 0.388 0.188 0 / 0.655)", + "color(display-p3 0.485 0.374 0.288)", + "color(display-p3 0.236 0.202 0.183)", +]; + +pub const BRONZE: [&str; 12] = [ + "#fdfcfc", "#fdf7f5", "#f6edea", "#efe4df", "#e7d9d3", "#dfcdc5", "#d3bcb3", "#c2a499", + "#a18072", "#957468", "#7d5e54", "#43302b", +]; + +pub const BRONZE_A: [&str; 12] = [ + "#55000003", + "#cc33000a", + "#92250015", + "#80280020", + "#7423002c", + "#7324003a", + "#6c1f004c", + "#671c0066", + "#551a008d", + "#4c150097", + "#3d0f00ab", + "#1d0600d4", +]; + +pub const BRONZE_P3: [&str; 12] = [ + "color(display-p3 0.991 0.988 0.988)", + "color(display-p3 0.989 0.97 0.961)", + "color(display-p3 0.958 0.932 0.919)", + "color(display-p3 0.929 0.894 0.877)", + "color(display-p3 0.898 0.853 0.832)", + "color(display-p3 0.861 0.805 0.778)", + "color(display-p3 0.812 0.739 0.706)", + "color(display-p3 0.741 0.647 0.606)", + "color(display-p3 0.611 0.507 0.455)", + "color(display-p3 0.563 0.461 0.414)", + "color(display-p3 0.471 0.373 0.336)", + "color(display-p3 0.251 0.191 0.172)", +]; + +pub const BRONZE_P3_A: [&str; 12] = [ + "color(display-p3 0.349 0.024 0.024 / 0.012)", + "color(display-p3 0.71 0.22 0.024 / 0.04)", + "color(display-p3 0.482 0.2 0.008 / 0.083)", + "color(display-p3 0.424 0.133 0.004 / 0.122)", + "color(display-p3 0.4 0.145 0.004 / 0.169)", + "color(display-p3 0.388 0.125 0.004 / 0.224)", + "color(display-p3 0.365 0.11 0.004 / 0.295)", + "color(display-p3 0.341 0.102 0.004 / 0.393)", + "color(display-p3 0.29 0.094 0 / 0.546)", + "color(display-p3 0.255 0.082 0 / 0.585)", + "color(display-p3 0.471 0.373 0.336)", + "color(display-p3 0.251 0.191 0.172)", +]; + +pub const GOLD: [&str; 12] = [ + "#fdfdfc", "#faf9f2", "#f2f0e7", "#eae6db", "#e1dccf", "#d8d0bf", "#cbc0aa", "#b9a88d", + "#978365", "#8c7a5e", "#71624b", "#3b352b", +]; + +pub const GOLD_A: [&str; 12] = [ + "#55550003", + "#9d8a000d", + "#75600018", + "#6b4e0024", + "#60460030", + "#64440040", + "#63420055", + "#633d0072", + "#5332009a", + "#492d00a1", + "#362100b4", + "#130c00d4", +]; + +pub const GOLD_P3: [&str; 12] = [ + "color(display-p3 0.992 0.992 0.989)", + "color(display-p3 0.98 0.976 0.953)", + "color(display-p3 0.947 0.94 0.909)", + "color(display-p3 0.914 0.904 0.865)", + "color(display-p3 0.88 0.865 0.816)", + "color(display-p3 0.84 0.818 0.756)", + "color(display-p3 0.788 0.753 0.677)", + "color(display-p3 0.715 0.66 0.565)", + "color(display-p3 0.579 0.517 0.41)", + "color(display-p3 0.538 0.479 0.38)", + "color(display-p3 0.433 0.386 0.305)", + "color(display-p3 0.227 0.209 0.173)", +]; + +pub const GOLD_P3_A: [&str; 12] = [ + "color(display-p3 0.349 0.349 0.024 / 0.012)", + "color(display-p3 0.592 0.514 0.024 / 0.048)", + "color(display-p3 0.4 0.357 0.012 / 0.091)", + "color(display-p3 0.357 0.298 0.008 / 0.134)", + "color(display-p3 0.345 0.282 0.004 / 0.185)", + "color(display-p3 0.341 0.263 0.004 / 0.244)", + "color(display-p3 0.345 0.235 0.004 / 0.322)", + "color(display-p3 0.345 0.22 0.004 / 0.436)", + "color(display-p3 0.286 0.18 0 / 0.589)", + "color(display-p3 0.255 0.161 0 / 0.62)", + "color(display-p3 0.433 0.386 0.305)", + "color(display-p3 0.227 0.209 0.173)", +]; + +pub const SKY: [&str; 12] = [ + "#f9feff", "#f1fafd", "#e1f6fd", "#d1f0fa", "#bee7f5", "#a9daed", "#8dcae3", "#60b3d7", + "#7ce2fe", "#74daf8", "#00749e", "#1d3e56", +]; + +pub const SKY_A: [&str; 12] = [ + "#00d5ff06", + "#00a4db0e", + "#00b3ee1e", + "#00ace42e", + "#00a1d841", + "#0092ca56", + "#0089c172", + "#0085bf9f", + "#00c7fe83", + "#00bcf38b", + "#00749e", + "#002540e2", +]; + +pub const SKY_P3: [&str; 12] = [ + "color(display-p3 0.98 0.995 0.999)", + "color(display-p3 0.953 0.98 0.99)", + "color(display-p3 0.899 0.963 0.989)", + "color(display-p3 0.842 0.937 0.977)", + "color(display-p3 0.777 0.9 0.954)", + "color(display-p3 0.701 0.851 0.921)", + "color(display-p3 0.604 0.785 0.879)", + "color(display-p3 0.457 0.696 0.829)", + "color(display-p3 0.585 0.877 0.983)", + "color(display-p3 0.555 0.845 0.959)", + "color(display-p3 0.193 0.448 0.605)", + "color(display-p3 0.145 0.241 0.329)", +]; + +pub const SKY_P3_A: [&str; 12] = [ + "color(display-p3 0.02 0.804 1 / 0.02)", + "color(display-p3 0.024 0.592 0.757 / 0.048)", + "color(display-p3 0.004 0.655 0.886 / 0.102)", + "color(display-p3 0.004 0.604 0.851 / 0.157)", + "color(display-p3 0.004 0.565 0.792 / 0.224)", + "color(display-p3 0.004 0.502 0.737 / 0.299)", + "color(display-p3 0.004 0.459 0.694 / 0.397)", + "color(display-p3 0 0.435 0.682 / 0.542)", + "color(display-p3 0.004 0.71 0.965 / 0.416)", + "color(display-p3 0.004 0.647 0.914 / 0.444)", + "color(display-p3 0.193 0.448 0.605)", + "color(display-p3 0.145 0.241 0.329)", +]; + +pub const MINT: [&str; 12] = [ + "#f9fefd", "#f2fbf9", "#ddf9f2", "#c8f4e9", "#b3ecde", "#9ce0d0", "#7ecfbd", "#4cbba5", + "#86ead4", "#7de0cb", "#027864", "#16433c", +]; + +pub const MINT_A: [&str; 12] = [ + "#00d5aa06", + "#00b18a0d", + "#00d29e22", + "#00cc9937", + "#00c0914c", + "#00b08663", + "#00a17d81", + "#009e7fb3", + "#00d3a579", + "#00c39982", + "#007763fd", + "#00312ae9", +]; + +pub const MINT_P3: [&str; 12] = [ + "color(display-p3 0.98 0.995 0.992)", + "color(display-p3 0.957 0.985 0.977)", + "color(display-p3 0.888 0.972 0.95)", + "color(display-p3 0.819 0.951 0.916)", + "color(display-p3 0.747 0.918 0.873)", + "color(display-p3 0.668 0.87 0.818)", + "color(display-p3 0.567 0.805 0.744)", + "color(display-p3 0.42 0.724 0.649)", + "color(display-p3 0.62 0.908 0.834)", + "color(display-p3 0.585 0.871 0.797)", + "color(display-p3 0.203 0.463 0.397)", + "color(display-p3 0.136 0.259 0.236)", +]; + +pub const MINT_P3_A: [&str; 12] = [ + "color(display-p3 0.02 0.804 0.608 / 0.02)", + "color(display-p3 0.02 0.647 0.467 / 0.044)", + "color(display-p3 0.004 0.761 0.553 / 0.114)", + "color(display-p3 0.004 0.741 0.545 / 0.181)", + "color(display-p3 0.004 0.678 0.51 / 0.255)", + "color(display-p3 0.004 0.616 0.463 / 0.334)", + "color(display-p3 0.004 0.549 0.412 / 0.432)", + "color(display-p3 0 0.529 0.392 / 0.581)", + "color(display-p3 0.004 0.765 0.569 / 0.381)", + "color(display-p3 0.004 0.69 0.51 / 0.416)", + "color(display-p3 0.203 0.463 0.397)", + "color(display-p3 0.136 0.259 0.236)", +]; + +pub const LIME: [&str; 12] = [ + "#fcfdfa", "#f8faf3", "#eef6d6", "#e2f0bd", "#d3e7a6", "#c2da91", "#abc978", "#8db654", + "#bdee63", "#b0e64c", "#5c7c2f", "#37401c", +]; + +pub const LIME_A: [&str; 12] = [ + "#66990005", + "#6b95000c", + "#96c80029", + "#8fc60042", + "#81bb0059", + "#72aa006e", + "#61990087", + "#559200ab", + "#93e4009c", + "#8fdc00b3", + "#375f00d0", + "#1e2900e3", +]; + +pub const LIME_P3: [&str; 12] = [ + "color(display-p3 0.989 0.992 0.981)", + "color(display-p3 0.975 0.98 0.954)", + "color(display-p3 0.939 0.965 0.851)", + "color(display-p3 0.896 0.94 0.76)", + "color(display-p3 0.843 0.903 0.678)", + "color(display-p3 0.778 0.852 0.599)", + "color(display-p3 0.694 0.784 0.508)", + "color(display-p3 0.585 0.707 0.378)", + "color(display-p3 0.78 0.928 0.466)", + "color(display-p3 0.734 0.896 0.397)", + "color(display-p3 0.386 0.482 0.227)", + "color(display-p3 0.222 0.25 0.128)", +]; + +pub const LIME_P3_A: [&str; 12] = [ + "color(display-p3 0.412 0.608 0.02 / 0.02)", + "color(display-p3 0.514 0.592 0.024 / 0.048)", + "color(display-p3 0.584 0.765 0.008 / 0.15)", + "color(display-p3 0.561 0.757 0.004 / 0.24)", + "color(display-p3 0.514 0.698 0.004 / 0.322)", + "color(display-p3 0.443 0.627 0 / 0.4)", + "color(display-p3 0.376 0.561 0.004 / 0.491)", + "color(display-p3 0.333 0.529 0 / 0.624)", + "color(display-p3 0.588 0.867 0 / 0.534)", + "color(display-p3 0.561 0.827 0 / 0.604)", + "color(display-p3 0.386 0.482 0.227)", + "color(display-p3 0.222 0.25 0.128)", +]; + +pub const YELLOW: [&str; 12] = [ + "#fdfdf9", "#fefce9", "#fffab8", "#fff394", "#ffe770", "#f3d768", "#e4c767", "#d5ae39", + "#ffe629", "#ffdc00", "#9e6c00", "#473b1f", +]; + +pub const YELLOW_A: [&str; 12] = [ + "#aaaa0006", + "#f4dd0016", + "#ffee0047", + "#ffe3016b", + "#ffd5008f", + "#ebbc0097", + "#d2a10098", + "#c99700c6", + "#ffe100d6", + "#ffdc00", + "#9e6c00", + "#2e2000e0", +]; + +pub const YELLOW_P3: [&str; 12] = [ + "color(display-p3 0.992 0.992 0.978)", + "color(display-p3 0.995 0.99 0.922)", + "color(display-p3 0.997 0.982 0.749)", + "color(display-p3 0.992 0.953 0.627)", + "color(display-p3 0.984 0.91 0.51)", + "color(display-p3 0.934 0.847 0.474)", + "color(display-p3 0.876 0.785 0.46)", + "color(display-p3 0.811 0.689 0.313)", + "color(display-p3 1 0.92 0.22)", + "color(display-p3 0.977 0.868 0.291)", + "color(display-p3 0.6 0.44 0)", + "color(display-p3 0.271 0.233 0.137)", +]; + +pub const YELLOW_P3_A: [&str; 12] = [ + "color(display-p3 0.675 0.675 0.024 / 0.024)", + "color(display-p3 0.953 0.855 0.008 / 0.079)", + "color(display-p3 0.988 0.925 0.004 / 0.251)", + "color(display-p3 0.98 0.875 0.004 / 0.373)", + "color(display-p3 0.969 0.816 0.004 / 0.491)", + "color(display-p3 0.875 0.71 0 / 0.526)", + "color(display-p3 0.769 0.604 0 / 0.542)", + "color(display-p3 0.725 0.549 0 / 0.687)", + "color(display-p3 1 0.898 0 / 0.781)", + "color(display-p3 0.969 0.812 0 / 0.71)", + "color(display-p3 0.6 0.44 0)", + "color(display-p3 0.271 0.233 0.137)", +]; + +pub const AMBER: [&str; 12] = [ + "#fefdfb", "#fefbe9", "#fff7c2", "#ffee9c", "#fbe577", "#f3d673", "#e9c162", "#e2a336", + "#ffc53d", "#ffba18", "#ab6400", "#4f3422", +]; + +pub const AMBER_A: [&str; 12] = [ + "#c0800004", + "#f4d10016", + "#ffde003d", + "#ffd40063", + "#f8cf0088", + "#eab5008c", + "#dc9b009d", + "#da8a00c9", + "#ffb300c2", + "#ffb300e7", + "#ab6400", + "#341500dd", +]; + +pub const AMBER_P3: [&str; 12] = [ + "color(display-p3 0.995 0.992 0.985)", + "color(display-p3 0.994 0.986 0.921)", + "color(display-p3 0.994 0.969 0.782)", + "color(display-p3 0.989 0.937 0.65)", + "color(display-p3 0.97 0.902 0.527)", + "color(display-p3 0.936 0.844 0.506)", + "color(display-p3 0.89 0.762 0.443)", + "color(display-p3 0.85 0.65 0.3)", + "color(display-p3 1 0.77 0.26)", + "color(display-p3 0.959 0.741 0.274)", + "color(display-p3 0.64 0.4 0)", + "color(display-p3 0.294 0.208 0.145)", +]; + +pub const AMBER_P3_A: [&str; 12] = [ + "color(display-p3 0.757 0.514 0.024 / 0.016)", + "color(display-p3 0.902 0.804 0.008 / 0.079)", + "color(display-p3 0.965 0.859 0.004 / 0.22)", + "color(display-p3 0.969 0.82 0.004 / 0.35)", + "color(display-p3 0.933 0.796 0.004 / 0.475)", + "color(display-p3 0.875 0.682 0.004 / 0.495)", + "color(display-p3 0.804 0.573 0 / 0.557)", + "color(display-p3 0.788 0.502 0 / 0.699)", + "color(display-p3 1 0.686 0 / 0.742)", + "color(display-p3 0.945 0.643 0 / 0.726)", + "color(display-p3 0.64 0.4 0)", + "color(display-p3 0.294 0.208 0.145)", +]; + +pub const ORANGE: [&str; 12] = [ + "#fefcfb", "#fff7ed", "#ffefd6", "#ffdfb5", "#ffd19a", "#ffc182", "#f5ae73", "#ec9455", + "#f76b15", "#ef5f00", "#cc4e00", "#582d1d", +]; + +pub const ORANGE_A: [&str; 12] = [ + "#c0400004", + "#ff8e0012", + "#ff9c0029", + "#ff91014a", + "#ff8b0065", + "#ff81007d", + "#ed6c008c", + "#e35f00aa", + "#f65e00ea", + "#ef5f00", + "#cc4e00", + "#431200e2", +]; + +pub const ORANGE_P3: [&str; 12] = [ + "color(display-p3 0.995 0.988 0.985)", + "color(display-p3 0.994 0.968 0.934)", + "color(display-p3 0.989 0.938 0.85)", + "color(display-p3 1 0.874 0.687)", + "color(display-p3 1 0.821 0.583)", + "color(display-p3 0.975 0.767 0.545)", + "color(display-p3 0.919 0.693 0.486)", + "color(display-p3 0.877 0.597 0.379)", + "color(display-p3 0.9 0.45 0.2)", + "color(display-p3 0.87 0.409 0.164)", + "color(display-p3 0.76 0.34 0)", + "color(display-p3 0.323 0.185 0.127)", +]; + +pub const ORANGE_P3_A: [&str; 12] = [ + "color(display-p3 0.757 0.267 0.024 / 0.016)", + "color(display-p3 0.886 0.533 0.008 / 0.067)", + "color(display-p3 0.922 0.584 0.008 / 0.15)", + "color(display-p3 1 0.604 0.004 / 0.314)", + "color(display-p3 1 0.569 0.004 / 0.416)", + "color(display-p3 0.949 0.494 0.004 / 0.455)", + "color(display-p3 0.839 0.408 0 / 0.514)", + "color(display-p3 0.804 0.349 0 / 0.62)", + "color(display-p3 0.878 0.314 0 / 0.8)", + "color(display-p3 0.843 0.29 0 / 0.836)", + "color(display-p3 0.76 0.34 0)", + "color(display-p3 0.323 0.185 0.127)", +]; diff --git a/packages/colors/src/white_a.rs b/packages/colors/src/white_a.rs new file mode 100644 index 0000000..4fc258c --- /dev/null +++ b/packages/colors/src/white_a.rs @@ -0,0 +1,29 @@ +pub const WHITE_A: [&str; 12] = [ + "rgba(255, 255, 255, 0.05)", + "rgba(255, 255, 255, 0.1)", + "rgba(255, 255, 255, 0.15)", + "rgba(255, 255, 255, 0.2)", + "rgba(255, 255, 255, 0.3)", + "rgba(255, 255, 255, 0.4)", + "rgba(255, 255, 255, 0.5)", + "rgba(255, 255, 255, 0.6)", + "rgba(255, 255, 255, 0.7)", + "rgba(255, 255, 255, 0.8)", + "rgba(255, 255, 255, 0.9)", + "rgba(255, 255, 255, 0.95)", +]; + +pub const WHITE_P3_A: [&str; 12] = [ + "color(display-p3 1 1 1 / 0.05)", + "color(display-p3 1 1 1 / 0.1)", + "color(display-p3 1 1 1 / 0.15)", + "color(display-p3 1 1 1 / 0.2)", + "color(display-p3 1 1 1 / 0.3)", + "color(display-p3 1 1 1 / 0.4)", + "color(display-p3 1 1 1 / 0.5)", + "color(display-p3 1 1 1 / 0.6)", + "color(display-p3 1 1 1 / 0.7)", + "color(display-p3 1 1 1 / 0.8)", + "color(display-p3 1 1 1 / 0.9)", + "color(display-p3 1 1 1 / 0.95)", +]; diff --git a/scripts/Cargo.toml b/scripts/Cargo.toml new file mode 100644 index 0000000..e7a2e97 --- /dev/null +++ b/scripts/Cargo.toml @@ -0,0 +1,18 @@ +[package] +name = "scripts" +description = "Scripts for Rust Radix." +publish = false + +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +version.workspace = true + +[dependencies] +convert_case = "0.6.0" +env_logger = "0.11.3" +http-body-util = "0.1.1" +log.workspace = true +octocrab = "0.38.0" +tokio = { version = "1.37.0", features = ["full"] } diff --git a/scripts/src/bin/colors.rs b/scripts/src/bin/colors.rs new file mode 100644 index 0000000..34fc651 --- /dev/null +++ b/scripts/src/bin/colors.rs @@ -0,0 +1,105 @@ +#![feature(exit_status_error)] + +use convert_case::{Case, Casing}; +use http_body_util::BodyExt; +use std::error::Error; +use std::path::Path; +use std::process::Command; +use std::{fs, str}; + +#[tokio::main] +async fn main() -> Result<(), Box> { + env_logger::init(); + + let octocrab = octocrab::instance(); + + let content_items = octocrab + .repos("radix-ui", "colors") + .get_content() + .path("src") + .r#ref("main") + .send() + .await?; + + for content in content_items.items { + let response = octocrab + .repos("radix-ui", "colors") + .raw_file("main".to_string(), &content.path) + .await?; + let (_, body) = response.into_parts(); + let body = body.collect().await?.to_bytes(); + let input = str::from_utf8(&body)?; + + let output_path = Path::new("packages/colors").join( + content + .path + .to_case(Case::Snake) + .replace(".ts", ".rs") + .replace("index.rs", "lib.rs"), + ); + + let mut modules: Vec = vec![]; + let mut statements: Vec = vec![]; + + let mut statement: Option = None; + + for line in input.split('\n') { + if line.starts_with("export * from") { + let name = line[line.find('"').expect("Line should contain string.") + 1 + ..line.rfind('"').expect("Line should contain string.")] + .replace("./", "") + .to_string() + .to_case(Case::Snake); + + modules.push(name); + } else if line.starts_with("export const") { + let name = line["export const ".len() + ..line.rfind('=').expect("Line should contain equals sign.")] + .to_string() + .to_case(Case::UpperSnake) + .replace("_P_3", "_P3"); + + statement = Some(format!("pub const {name}: [&str; 12] = [")); + } else if line.starts_with("};") { + statements.push(format!("{}];", statement.expect("Statement should exist"))); + statement = None; + } else if let Some(statement) = statement.as_mut() { + statement.push_str(&format!( + "{}, ", + &line[line.find('"').expect("Line should contain string.") + ..line.rfind('"').expect("Line should contain string.") + 1] + )); + } + } + + let output_modules = modules + .iter() + .map(|module| format!("mod {};", module)) + .collect::>() + .join("\n"); + + let output_uses = modules + .iter() + .map(|module| format!("pub use {}::*;", module)) + .collect::>() + .join("\n"); + + let output_statements = statements.join("\n\n"); + + let output = format!( + "{}\n\n{}\n{}\n", + output_modules, output_uses, output_statements + ); + + fs::write(output_path, output)?; + } + + Command::new("cargo") + .arg("fmt") + .arg("-p") + .arg("radix-colors") + .status()? + .exit_ok()?; + + Ok(()) +} diff --git a/scripts/src/lib.rs b/scripts/src/lib.rs new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/scripts/src/lib.rs @@ -0,0 +1 @@ +