Open bricebou opened 1 year ago
Just for testing, editing the node_modules/typography-baseline.scss/sass/baseline/colors.variables.scss
file, adding !default
at each variable permits to override it. But is there another way ?
this is my mistake; those variables should have had !default
so they could have been overridable.
However, I need to revisit this approach since the Dart Sass team has plans to deprecate old import methods.
Created #4 specifically to making this work for newer versions of sass.
A branch should be opened, however, so that the variables can be properly overwritten in the mean time.
Some things have changed while I was away from Sass :-) Thanks for the reading ! And thanks in advance for the improvements you'll make to this project :)
Notes for me when I tackled this next week:
!default
or !global
on a bunch of variablestypographyBaseline()
; the mutated version of the variable isn't updated b/c variables are storing value, not reference (IDK how Sass behaves in this regard)other note for me:
easy way to test this module is to just use the debug.scss:
@import '../sass/_baseline';
$baseTitleSize: 13em;
$titleFontFamily: 'Comic Sans MS';
@include typographyBaseline(headings, $exclude: cssVariables )
Hi,
It's been a while since I last used Sass and I'm wondering how I can use personal value for some Sass variables instead of redeclaring CSS variables.
Is there a way to do something like that:
Thanks a lot and in advance !