Vanilla CSS in 2025 is super capable
sass - What is the difference between CSS and SCSS? - Stack Overflow
Is sass/scss worth learning
What are main key points when deciding between vanilla CSS, SCSS, CSS modules, and CSS-in-JS?
Videos
An interesting question popped up today.
a layout with a max-width container
using a responsive grid for shared layout structure
with a card slider
the card slider needs scroll snapping,
where the snapping conforms to the max-width container,
but with visible overflow to the right and left,
and the slides align to the grid layout
My first thought was: "This is what Swiper is for.", but then I thought: "maybe css can handle this." Turns out: yes, this is totally doable in css, and it's not even that complicated.
It was a really interesting brain-teaser. Here's the codepen: https://codepen.io/thisanimus/pen/dPbwebd
I feel like I'm having more and more of these moments where I realize I no longer need a js lib to do the thing I want to do. I like it. CSS FTW.
In addition to Idriss answer:
CSS
In CSS we write code as depicted bellow, in full length.
body{
width: 800px;
color: #ffffff;
}
body content{
width:750px;
background:#ffffff;
}
SCSS
In SCSS we can shorten this code using a @mixin so we don’t have to write color and width properties again and again. We can define this through a function, similarly to PHP or other languages.
$color: #ffffff;
$width: 800px;
@mixin body{
width: $width;
color: $color;
content{
width: $width;
background:$color;
}
}
SASS
In SASS however, the whole structure is visually quicker and cleaner than SCSS.
- It is sensitive to white space when you are using copy and paste,
It seems that it doesn't support inline CSS currently.
$color: #ffffff $width: 800px $stack: Helvetica, sans-serif body width: $width color: $color font: 100% $stack content width: $width background:$color
CSS is the styling language that any browser understands to style webpages.
SCSS is a special type of file for SASS, a program written in Ruby that assembles CSS style sheets for a browser, and for information, SASS adds lots of additional functionality to CSS like variables, nesting and more which can make writing CSS easier and faster.
SCSS files are processed by the server running a web app to output a traditional CSS that your browser can understand.
Is learning sass worth in 2025 because modern css is powerful
Hello guys. I've a moderate CSS and SASS knowledge. How should decide with which tech should I continue? I will only develop SPA with React. I'm really confused.
I am a fullstack developer writing a small web application to be released mid-2024 for desktop devices.
In the past, I was always using Sass, but pretty much only for its nesting. But since nesting is now available in native Css, I was wondering whether I could just yolo it and get rid off Sass.
Is there a point in starting off with Sass over native CSS for this project?
After all, going back to Sass is a matter of minutes should I miss its convenience.