Add daily email for 2024-02-15
gray or grey, and center or centre?
This commit is contained in:
parent
b398641f92
commit
56d653a838
32
source/_daily_emails/2024-02-15.md
Normal file
32
source/_daily_emails/2024-02-15.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
title: gray or grey, and center or centre?
|
||||
date: 2024-02-15
|
||||
permalink: archive/2024/02/15/gray-or-grey--and-center-or-centre
|
||||
snippet: |
|
||||
I'm wondering whether I should still rename gray to gray when using Tailwind CSS...
|
||||
tags:
|
||||
- css
|
||||
- tailwind-css
|
||||
---
|
||||
|
||||
[I previously wrote][0] about how to change `gray` to `grey` in Tailwind CSS.
|
||||
|
||||
So, instead of writing `bg-gray-200`, I could write `bg-grey-200`.
|
||||
|
||||
This would be the correct spelling, as I live in the UK.
|
||||
|
||||
But I recently realised that I don't change `text-center` or `items-center` when 'centre' would also be the correct spelling.
|
||||
|
||||
So, what value is there to renaming `gray`?
|
||||
|
||||
It adds inconsistency as it mixes US and UK English in this project and inconsistencies between different projects.
|
||||
|
||||
It doesn't match the CSS colour name.
|
||||
|
||||
And, if I'm working with others on a project, they also need to be aware of this as it's different from the default configuration and could cause some confusion and affect productivity.
|
||||
|
||||
Keeping it the default value would make it easier to work on, collaborate on and maintain.
|
||||
|
||||
Maybe, I'll leave it as `gray` in the future.
|
||||
|
||||
[0]: {{site.url}}/blog/renaming-gray-grey-tailwind-css
|
Loading…
Reference in a new issue