From 26c7fbbcd29dcf1ec9b2c3f1a5c0850e789db085 Mon Sep 17 00:00:00 2001 From: mineejo Date: Sat, 11 Nov 2023 15:12:09 +0300 Subject: [PATCH] chore(readme.md): update example --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e4ce079..fe1f994 100644 --- a/README.md +++ b/README.md @@ -48,26 +48,26 @@ Extended colors are the result of merging specifications from HTML 4.01, CSS 2.0, SVG 1.0 and CSS3 User Interfaces (CSS3 UI). ```javascript +console.log(basicColors.grey); /* { - * name: 'grey', - * hex: '#808080', - * rgb: [ 128, 128, 128 ], + * name: "grey", + * hex: "#808080", + * rgb: [128, 128, 128], * localize: [Function: localize] * } */ -console.log(basicColors.grey); +console.log(colors.darkgrey); /* { - * name: 'darkgrey', - * hex: '#a9a9a9', - * rgb: [ 169, 169, 169 ], + * name: "darkgrey", + * hex: "#a9a9a9", + * rgb: [169, 169, 169], * localize: [Function: localize] * } */ -console.log(colors.darkgrey); -// dark grey console.log(colors.darkgrey.localize("en-US")); +// dark grey ``` The localization function accepts a locale code: `be-BY`, `en-US`, `ru-RU`,