Skip to content

Commit c746d89

Browse files
authored
Rename lightBlue to sky (#4513)
1 parent 204ad22 commit c746d89

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

colors.js

+22-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
let warned = false
2+
13
module.exports = {
24
black: '#000',
35
white: '#fff',
@@ -85,7 +87,26 @@ module.exports = {
8587
800: '#1e40af',
8688
900: '#1e3a8a',
8789
},
88-
lightBlue: {
90+
get lightBlue() {
91+
if (!warned) {
92+
console.log('warn - As of Tailwind CSS v2.2, `lightBlue` has been renamed to `sky`.')
93+
console.log('warn - Please update your color palette to eliminate this warning.')
94+
warned = true
95+
}
96+
return {
97+
50: '#f0f9ff',
98+
100: '#e0f2fe',
99+
200: '#bae6fd',
100+
300: '#7dd3fc',
101+
400: '#38bdf8',
102+
500: '#0ea5e9',
103+
600: '#0284c7',
104+
700: '#0369a1',
105+
800: '#075985',
106+
900: '#0c4a6e',
107+
}
108+
},
109+
sky: {
89110
50: '#f0f9ff',
90111
100: '#e0f2fe',
91112
200: '#bae6fd',

0 commit comments

Comments
 (0)