|
|
|
|
|
by nawgz
1682 days ago
|
|
> there is no jumping between two files (DOM file and CSS file) I don't view this as any more difficult than navigating a long file. Maybe I actually view it as more simple upon making that statement. What development environment are you using? Hotkeys to switch tabs is fairly base-level stuff > often the only way to learn/get what you want is change a little, reflect, change a little Which surely any person who is arguing for "fast feedback" would do using the browser's dev tools so you can edit CSS and instantly view the result in the same window as your actively painted view... I would look into getting a proper editor like VSCode, setting up hotkeys, and learning to use dev tools if I was you. It sounds like you are using VIM to make your website |
|
It is also mentally computing the “CSS cascade” to determine the final rules for a given DOM element, and keeping in mind all classes that apply.
The dev tools often cannot save styles back to your source code when you use a build step.
Even if I get my file switch down to 16ms, it is 16ms more than 0.
If I can view the JSX and see all the final styles on the element or on a nearby parent, it results in a faster feedback loop.
I am not for or against Tailwind, as I have mentioned this directness causes a lot of classes on single elements which can be hard to read later, but is often faster to edit whilst you are writing it.