1.0.0 • Published 3 years ago

spectre-foundations v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Spectre-foundations

Дизайн система тестируем молекулы и атомы

Установка

Прописать в консоли

npm i --save-dev spectre-foundations

Использование

@import '~spectre-foundations/scss';

/*
** Молекулы
*/
.text {
  &-largetitle {
    font-weight: variables.$font-b;
    font-size: variables.$font-s1;
    line-height: variables.$font-lh1;
  }
}
/*
** Атомы
*/
//font weight
$font-b: 700;
//font size
$font-s1: 36px;
//font line-height
$font-lh1: 44px;

Классы(молекулы) собираются из атомов(variables)

Пример

<h1 class="text-largetitle>
  Hello
</h1>
1.0.0

3 years ago