Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename lightBlue to sky #4513

Merged
merged 1 commit into from May 31, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 22 additions & 1 deletion colors.js
@@ -1,3 +1,5 @@
let warned = false

module.exports = {
black: '#000',
white: '#fff',
Expand Down Expand Up @@ -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',
Expand Down