Text transform uppercase first letter only #5693
Replies: 5 comments 2 replies
-
Kinda like this? :) |
Beta Was this translation helpful? Give feedback.
-
Exactly right! Is this an existing class in Tailwind? I searched the docs and found nothing. And what a great class name, I wish I thought of that. |
Beta Was this translation helpful? Give feedback.
-
Why this combination |
Beta Was this translation helpful? Give feedback.
-
first-letter:uppercase is not working inside span tag |
Beta Was this translation helpful? Give feedback.
-
First-letter:uppercase not working on safari |
Beta Was this translation helpful? Give feedback.
-
I was writing some tutorials for my team on text transformation (with CSS only) and I noticed something missing. Currently Tailwind has
uppercase
,lowercase
andcapitalize
classes very well documented here, but nothing that just transforms only the first letter to uppercase.How about a new class like
uppercase-first
orfirst-letter
to do just that? I currently have this custom CSS class in every project that "extends" Tailwind's text transformation utilities.Cheers!
Beta Was this translation helpful? Give feedback.
All reactions