From e5450fc9e703c0b957d561bee5014a81893121fb Mon Sep 17 00:00:00 2001 From: Junle Li Date: Sat, 16 Dec 2017 21:16:35 +0800 Subject: [PATCH 1/2] Create colors typing file. --- js/colors.d.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 js/colors.d.ts diff --git a/js/colors.d.ts b/js/colors.d.ts new file mode 100644 index 0000000..fac5a64 --- /dev/null +++ b/js/colors.d.ts @@ -0,0 +1,17 @@ +export const aqua = '#7fdbff'; +export const blue = '#0074d9'; +export const lime = '#01ff70'; +export const navy = '#001f3f'; +export const teal = '#39cccc'; +export const olive = '#3d9970'; +export const green = '#2ecc40'; +export const red = '#ff4136'; +export const maroon = '#85144b'; +export const orange = '#ff851b'; +export const purple = '#b10dc9'; +export const yellow = '#ffdc00'; +export const fuchsia = '#f012be'; +export const gray = '#aaaaaa'; +export const white = '#ffffff'; +export const black = '#111111'; +export const silver = '#dddddd'; From f0ff5460e4fdb6e56fd198e5596dd30c1a0c3b97 Mon Sep 17 00:00:00 2001 From: Junle Li Date: Sat, 16 Dec 2017 21:17:23 +0800 Subject: [PATCH 2/2] Update package.json to export typing file. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 5e4eb73..8d20c21 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "colors.css", "version": "3.0.1", "main": "js/colors.js", + "types": "js/colors.d.ts", "style": "css/colors.css", "homepage": "http://clrs.cc", "description": "Better default colors for the web. A collection of skin classes for faster prototyping and nicer looking sites.",