From 6fa6366bdc288a0264cd31d7b40a85dc41b1af21 Mon Sep 17 00:00:00 2001 From: Adam Wathan Date: Mon, 31 May 2021 09:14:36 -0400 Subject: [PATCH] Rename lightBlue to sky --- colors.js | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/colors.js b/colors.js index 6da6e13993b2..4f94e2c2b52e 100644 --- a/colors.js +++ b/colors.js @@ -1,3 +1,5 @@ +let warned = false + module.exports = { black: '#000', white: '#fff', @@ -85,7 +87,26 @@ module.exports = { 800: '#1e40af', 900: '#1e3a8a', }, - lightBlue: { + get lightBlue() { + if (!warned) { + console.log('warn - As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`.') + console.log('warn - Please update your color palette to eliminate this warning.') + warned = true + } + return { + 50: '#f0f9ff', + 100: '#e0f2fe', + 200: '#bae6fd', + 300: '#7dd3fc', + 400: '#38bdf8', + 500: '#0ea5e9', + 600: '#0284c7', + 700: '#0369a1', + 800: '#075985', + 900: '#0c4a6e', + } + }, + sky: { 50: '#f0f9ff', 100: '#e0f2fe', 200: '#bae6fd',