Skip to content

Seed Config - v0.1.0

Choose a tag to compare

@ItsJonQ ItsJonQ released this 24 Jul 03:29
· 7 commits to master since this release

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.