From e9231b0b58f0e994c09442396530c644b8b3d4f2 Mon Sep 17 00:00:00 2001 From: Lloyd Kupchanko Date: Tue, 11 Jun 2024 05:29:33 -0600 Subject: [PATCH] Add type for keywords (#545) --- src/keywords.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/keywords.js b/src/keywords.js index 27b895b81..88286b117 100644 --- a/src/keywords.js +++ b/src/keywords.js @@ -1,11 +1,13 @@ -/* List of CSS color keywords - * Note that this does not include currentColor, transparent, - * or system colors - */ - // To produce: Visit https://www.w3.org/TR/css-color-4/#named-colors // and run in the console: // copy($$("tr", $(".named-color-table tbody")).map(tr => `"${tr.cells[2].textContent.trim()}": [${tr.cells[4].textContent.trim().split(/\s+/).map(c => c === "0"? "0" : c === "255"? "1" : c + " / 255").join(", ")}]`).join(",\n")) + +/** List of CSS color keywords + * Note that this does not include currentColor, transparent, + * or system colors + * + * @type {Record} + */ export default { "aliceblue": [240 / 255, 248 / 255, 1], "antiquewhite": [250 / 255, 235 / 255, 215 / 255],