Seed Config - v0.1.0
Updates
Add ability to provide custom namespaces 🎨
This is a crucial feature that allows other packs to leverage seed-config, as they can configure their own namespace for their variables.
Example:
@function _color($colors...) {
@return _config(SEED_COLOR_PACK__GLOBAL, $colors...);
}
@mixin _color($colors...) {
@include _config(SEED_COLOR_PACK__GLOBAL, $colors...);
}By creating the helper methods above, a color pack allows users to set/access color variables using the new _color mixin/function (instead of having to specify the namespace using _config.
An example of this can be seen in our mock-pack test.