Graupl / graupl

The Graupl mono-repo.
1 stars 0 forks source link

Bug: prefix !default not being overridden #10

Closed azuryte5 closed 2 months ago

azuryte5 commented 2 months ago

Summary

variables names other than graupl should exist.

Steps to reproduce

Expected Behaviour

Screenshots

Additional context

NickDJM commented 2 months ago

So the way to do this (as discussed in-person) is to use @forward while configuring the base files.

https://sass-lang.com/documentation/at-rules/forward/#configuring-modules

// Import the file containing the variables you want to override.
@forward '@graupl/graupl/defaults' with (
  $prefix: 'custom',
);

// Import Graupl.
@forward '@graupl/graupl';

// Import your own theme...

I have created a PR with some documentation on this now as well.

NickDJM commented 2 months ago

Docs have been merged in.