@zanichelli/albe-design-tokens

0.2.35 • Public • Published

Zanichelli logo

Zanichelli Design Tokens

Intro

This repo is an auxiliary project to zanichelli/design-system repo; it contains .scss files to generate css design tokens.

Structure

  • src/main.css: index file where everything is imported

  • src/modules: folder that contains every needed module

  • src/modules/theme: folder that contains themes files

  • src/modules/components: folder that contains classes to style components

  • src/modules/palette: folder that contains every available color in the palette

Naming Convention for Themes:

In case of implementation of a new theme, the following convention must be followed:

  • theme file name: {primary-color}-{secondary-color}.scss
  • theme class name: .theme-{primary-color}-{secondary-color}

Build

yarn build

Import in your project

<link rel="stylesheet" src="[***]/dist/tokens.css" />
<link rel="stylesheet" src="[***]/dist/themes/<theme-name>.css" />

or

@import "~@zanichelli/albe-design-tokens/dist/tokens.css";
@import "~@zanichelli/albe-design-tokens/dist/themes/<theme-name>.css";

Readme

Keywords

none

Package Sidebar

Install

npm i @zanichelli/albe-design-tokens

Weekly Downloads

366

Version

0.2.35

License

MIT

Unpacked Size

44.3 kB

Total Files

10

Last publish

Collaborators

  • a-sartori-wt
  • alegiua
  • alessandramartera
  • alessandro_zuddas
  • alessandrodolci
  • alicegambella
  • amalferpoma
  • cmalvispx
  • dariosacco
  • davideda
  • developers_zanichelli
  • edocava
  • f.santi
  • francescochiapella
  • gretalucchina
  • leonardogiaconemondora
  • mikelina
  • nicolo.carpignoli
  • nitroin
  • oleksandroleksyuk
  • ooga9k
  • paolofrancesco-marino
  • saldomik
  • veronica.van
  • veronicavannini
  • vpasquino