Skip to content

Commit

Permalink
Add more X11 colors
Browse files Browse the repository at this point in the history
Resolves #26
  • Loading branch information
nikeee committed May 4, 2022
1 parent fdbd7e6 commit c724aac
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions src/service/languageFacts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,16 +334,16 @@ export function getDocsUrl(attribute: string) {
*/

// Created using:
// const c = {};
// const as = $0.querySelectorAll("a")
// Array.prototype.slice.call(as).map(a => c[a.textContent.trim()] = a.title)
// https://graphviz.org/doc/info/colors.html#x11
// Object.fromEntries([...document.getElementsByClassName("gv-colors")[0].querySelectorAll("td")].map(e => [e.textContent, e.title,]))
export const colors = Object.freeze({
aliceblue: "#f0f8ff",
antiquewhite: "#faebd7",
antiquewhite1: "#ffefdb",
antiquewhite2: "#eedfcc",
antiquewhite3: "#cdc0b0",
antiquewhite4: "#8b8378",
aqua: "#00ffff",
aquamarine: "#7fffd4",
aquamarine1: "#7fffd4",
aquamarine2: "#76eec6",
Expand Down Expand Up @@ -410,13 +410,18 @@ export const colors = Object.freeze({
cyan2: "#00eeee",
cyan3: "#00cdcd",
cyan4: "#008b8b",
darkblue: "#00008b",
darkcyan: "#008b8b",
darkgoldenrod: "#b8860b",
darkgoldenrod1: "#ffb90f",
darkgoldenrod2: "#eead0e",
darkgoldenrod3: "#cd950c",
darkgoldenrod4: "#8b6508",
darkgray: "#a9a9a9",
darkgreen: "#006400",
darkgrey: "#a9a9a9",
darkkhaki: "#bdb76b",
darkmagenta: "#8b008b",
darkolivegreen: "#556b2f",
darkolivegreen1: "#caff70",
darkolivegreen2: "#bcee68",
Expand All @@ -432,6 +437,7 @@ export const colors = Object.freeze({
darkorchid2: "#b23aee",
darkorchid3: "#9a32cd",
darkorchid4: "#68228b",
darkred: "#8b0000",
darksalmon: "#e9967a",
darkseagreen: "#8fbc8f",
darkseagreen1: "#c1ffc1",
Expand Down Expand Up @@ -471,6 +477,7 @@ export const colors = Object.freeze({
firebrick4: "#8b1a1a",
floralwhite: "#fffaf0",
forestgreen: "#228b22",
fuchsia: "#ff00ff",
gainsboro: "#dcdcdc",
ghostwhite: "#f8f8ff",
gold: "#ffd700",
Expand Down Expand Up @@ -750,6 +757,7 @@ export const colors = Object.freeze({
lightgoldenrod4: "#8b814c",
lightgoldenrodyellow: "#fafad2",
lightgray: "#d3d3d3",
lightgreen: "#90ee90",
lightgrey: "#d3d3d3",
lightpink: "#ffb6c1",
lightpink1: "#ffaeb9",
Expand Down Expand Up @@ -780,6 +788,7 @@ export const colors = Object.freeze({
lightyellow2: "#eeeed1",
lightyellow3: "#cdcdb4",
lightyellow4: "#8b8b7a",
lime: "#00ff00",
limegreen: "#32cd32",
linen: "#faf0e6",
magenta: "#ff00ff",
Expand Down Expand Up @@ -826,6 +835,7 @@ export const colors = Object.freeze({
navyblue: "#000080",
none: "#fffffe",
oldlace: "#fdf5e6",
olive: "#808000",
olivedrab: "#6b8e23",
olivedrab1: "#c0ff3e",
olivedrab2: "#b3ee3a",
Expand Down Expand Up @@ -885,6 +895,7 @@ export const colors = Object.freeze({
purple2: "#912cee",
purple3: "#7d26cd",
purple4: "#551a8b",
rebeccapurple: "#663399",
red: "#ff0000",
red1: "#ff0000",
red2: "#ee0000",
Expand Down Expand Up @@ -922,6 +933,7 @@ export const colors = Object.freeze({
sienna2: "#ee7942",
sienna3: "#cd6839",
sienna4: "#8b4726",
silver: "#c0c0c0",
skyblue: "#87ceeb",
skyblue1: "#87ceff",
skyblue2: "#7ec0ee",
Expand Down Expand Up @@ -958,6 +970,7 @@ export const colors = Object.freeze({
tan2: "#ee9a49",
tan3: "#cd853f",
tan4: "#8b5a2b",
teal: "#008080",
thistle: "#d8bfd8",
thistle1: "#ffe1ff",
thistle2: "#eed2ee",
Expand All @@ -980,13 +993,23 @@ export const colors = Object.freeze({
violetred2: "#ee3a8c",
violetred3: "#cd3278",
violetred4: "#8b2252",
webgray: "#808080",
webgreen: "#008000",
webgrey: "#808080",
webmaroon: "#800000",
webpurple: "#800080",
wheat: "#f5deb3",
wheat1: "#ffe7ba",
wheat2: "#eed8ae",
wheat3: "#cdba96",
wheat4: "#8b7e66",
white: "#ffffff",
whitesmoke: "#f5f5f5",
x11gray: "#bebebe",
x11green: "#00ff00",
x11grey: "#bebebe",
x11maroon: "#b03060",
x11purple: "#a020f0",
yellow: "#ffff00",
yellow1: "#ffff00",
yellow2: "#eeee00",
Expand Down

0 comments on commit c724aac

Please sign in to comment.