Modern CSS Code Snippets: Stop writing CSS like it's 2015
21–30 of 318 posts
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#22Earlier quoted context omitted.
Yeah let's do that. You have everything related to your component on place instead of jumping between files.
Is jumping between files supposed to be difficult or something?
@scope fixes a lot of this, but it is a complex problem. With tailwind you mostly have to worry about inheritance
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#23Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#24Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#25CSS in 2025: Let's write html inlined styles as if it was 2005 and separation of formatting/representation was never invented. I talk of tailwind, of course.
Wait until you see React & JSX... At least html and CSS are both presentation. React/JSX now confuses presentation and business logic.
React was originally designed to be the "V in MVC". You can still use it that way. React becomes very simple when you only use it as the V in MVC.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#26Earlier quoted context omitted.
Wait until you see React & JSX... At least html and CSS are both presentation. React/JSX now confuses presentation and business logic.
> React/JSX now confuses presentation and business logic React was originally designed to be the "V in MVC". You can still use it that way. React becomes very simple when you only use it as the V in MVC.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#27Earlier quoted context omitted.
> React/JSX now confuses presentation and business logic React was originally designed to be the "V in MVC". You can still use it that way. React becomes very simple when you only use it as the V in MVC.
What are the M and the C, and how do they talk to the V in this case?
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#28Earlier quoted context omitted.
> React/JSX now confuses presentation and business logic React was originally designed to be the "V in MVC". You can still use it that way. React becomes very simple when you only use it as the V in MVC.
What are the M and the C, and how do they talk to the V in this case?
In practice, the entire JS ecosystem enjoys flying off the rails, every season, but it's not strictly react's fault.
To answer your question, however those props get into the component is up the the M & C. can be async server, or shoved in as json in the script tag.
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#29CSS is the only thing from browsers we actually need. The rest can be done in a terminal. Contemporary terminals could even render the UI with way less memory. The browser is a nightmare because it wasn’t architected to run applications.
Could you explain this? What prevents the browser from running applications? How should it have been architected otherwise if running applications was the goal?
Re: Modern CSS Code Snippets: Stop writing CSS like it's 2015
#30CSS in 2025: Let's write html inlined styles as if it was 2005 and separation of formatting/representation was never invented. I talk of tailwind, of course.
Wait until you see React & JSX... At least html and CSS are both presentation. React/JSX now confuses presentation and business logic.