Coding/Conventional commits - what to use for css?
Posted by Fabulous_Variety_256@reddit | learnprogramming | View on Reddit | 2 comments
Hey,
I have this element. I changed the css class from text-3xl to text-4xl. I want to commit with the name: "style(page-title): increase size to 4xl". I'm not sure if style matches the best, can someone tell me? Claude Code says style is for things like semicolons, commas etc but Im still not sure.
<h1 className={
cn
("text-4xl font-bold",
className
)}>
gramdel@reddit
Why ask claude when you could just read the one line definition of style in documentation? But yeah, style is for code style things, not styling.
Style itself is kind of optional type in convention commits. More or less things that add or alter functionality are fixes or features, so did you change that to fix a bug or add a feature, you should use type matching that. conventional commits are not really for tracking what part of code you touch, you can see that from the change itself.
DrShocker@reddit
The commit itself documents what changed, the comment is for the context.