Skip to content

Set CSS variables using configurable SASS variables#75

Open
folliehiyuki wants to merge 1 commit intodeoostfrees:mainfrom
folliehiyuki:scss-default-vars
Open

Set CSS variables using configurable SASS variables#75
folliehiyuki wants to merge 1 commit intodeoostfrees:mainfrom
folliehiyuki:scss-default-vars

Conversation

@folliehiyuki
Copy link
Copy Markdown

This PR introduces a better method to import the styling using the source SCSS file, instead of overwriting :root variables the CSS way. Note that the CSS output changes. This is because hsl() and hsla() are also SASS native functions, and they compile to the equivalent legacy CSS syntax here.

Example:

@use "<path_to_parvus.scss>" with (
  $background-color: #ffffff;
  $color: #000000;
);

Ref: https://sass-lang.com/documentation/at-rules/use/#configuration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant