minima icon indicating copy to clipboard operation
minima copied to clipboard

Using CSS variables instead of SCSS variables

Open vadimkantorov opened this issue 1 year ago • 1 comments

Hi! I made a version of minima theme using CSS variables instead of preprocessor-based SCSS variables. If anyone's interested, I put it in https://github.com/vadimkantorov/minimacss (see https://github.com/vadimkantorov/minimacss/blob/master/auto.scss and https://github.com/vadimkantorov/minimacss/blob/master/custom-variables_base_layout_custom-styles.scss - in this project I also put on a CSS-only release https://github.com/vadimkantorov/minimacss/releases)

I don't know what's your stance, but it seems quite possible to mainly use CSS variables (allowing for integrating produced CSS within projects not using SCSS/SASS preprocessor) - so might be worth doing something like this in upstream. Too bad that media-queries don't currently fully support CSS variables.

vadimkantorov avatar Apr 16 '24 08:04 vadimkantorov

This could also simplify minima, so that it can be also used in easy way for nextjs or 11ty

vadimkantorov avatar Apr 29 '25 20:04 vadimkantorov