Skip to content

Releases: MatteuSan/sentro

v0.1.5

30 Oct 17:19
Compare
Choose a tag to compare

Fixes

  • Renamed directories
  • File cleanup and documentation

v0.1.4

29 Oct 12:15
Compare
Choose a tag to compare

New Features

  • Selector generator

Input

@use 'path/to/@matteusan/sentro with ($prefix: 'sdc');

@include Sentro.selector-create('.my-class') {
    // Properties here
}

@include Sentro.selector-create('#my-id') {
    // Properties here
}

Output

.sdc-my-class {
   /* Properties here */
}

#sdc-my-id {
   /* Properties here */
}

v0.1.3

28 Oct 16:46
Compare
Choose a tag to compare

Improvements

  • New way of importing
@use 'path/to/@matteusan/sentro';
  • New context field when instantiating.
@use 'path/to/@matteusan/sentro' with ($context: 'token');

v0.1.2

28 Oct 10:12
Compare
Choose a tag to compare

HOTFIXES

  • Fixed list type values bug.

v0.1.1

28 Oct 10:07
Compare
Choose a tag to compare

Initial Release

  • Token-based design system builder.
  • Complete create and read tokenizer for all your design system's values ranging from colors, to radius values, to typography values, even to content strings.
:root {
    @include Theme.token-add(
        // It can be a map with a default value and variants.
        $brand-color: (
            'default': #122c53,
            'light': #536b99,
            'dark': #061021,
            'ink': #fff
        ),
        // It can also be separate variable arguments.
        $small-radius: 0.3rem,
        $medium-radius: 0.5rem,
        $global-font: ('Arial', sans-serif)
    );
}