@magnesium/framework

3.0.4 • Public • Published

Magnesium Design

Version Downloads License

Introduction

Easily develop your Design System for the web, The Magnesium Sass Framework is here for that!

Installing

npm install @magnesium/framework

Theme

The theme component help you to easily manage theme styles with generate CSS custom properties declarations from user-provided theme's tokens map.

@use "@magnesium/framework/theme";

.foo {
    $theme: theme.create-theme-vars((
        "text-color": darkcyan
    ), "button");

    @include theme.emit-theme-vars($theme);
}

Output

.foo {
    --mg-button-text-color: darkcyan;
}

Package Sidebar

Install

npm i @magnesium/framework

Weekly Downloads

5

Version

3.0.4

License

MIT

Unpacked Size

88.8 kB

Total Files

32

Last publish

Collaborators

  • bdamevin