1.0.0 β€’ Published 2 years ago

@togakure/tokens v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@togakure/tokens

Docs

Prerequisites

.gitconfig

Git's merge commit message

[alias]
  mergelogmsg = "!f() { var=$(git symbolic-ref --short HEAD) && printf 'Merge branch %s into %s\n\n::SUMMARY::\nBranch %s commits:\n' $1 $var $1 > temp_merge_msg && git log --format=format:'%s' $var..$1 >> temp_merge_msg && printf '\n\nBranch %s commits:\n' $var >> temp_merge_msg && git log --format=format:'%s' $1..$var >> temp_merge_msg && printf '\n\n* * * * * * * * * * * * * * * * * * * * * * * * *\n::DETAILS::\n' >> temp_merge_msg && git log --left-right $var...$1 >> temp_merge_msg && git merge --no-ff --no-commit $1 && git commit -eF temp_merge_msg; rm -f temp_merge_msg;}; f"

Introdução πŸ“Ž

O processo baseia-se no merge de 2 principais arquivos: Como pode ver no arquivo scripts/build.ts

const getStyleDictionaryConfig = (brand) => ({
  source: ['tokens/base.json', `tokens/brands/${brand}.json`],
...
  • ./tokens/base.json - Arquivo onde Γ© definido tokens base
  • ./tokens/brands/<brandname>.json - O nome do arquivo Γ© importante na hora de gerar o dist

Brands

tokens
β”œβ”€β”€ brands
β”‚   β”œβ”€β”€ colorblindness.json
β”‚   β”œβ”€β”€ base.json
β”‚   β”œβ”€β”€ highcontrast.json
β”‚   └── votacaobrasil.json
└── base.json

Suporte (Web e Dart)

dist/votacaobrasil
β”œβ”€β”€ native
β”‚   └── index.dart
└── web
    β”œβ”€β”€ index.css
    β”œβ”€β”€ index.d.ts
    β”œβ”€β”€ index.js
    └── index.scss

Commands

  • npm run dev
  • npm run build

:rocket: Contributors

Log

Check Releases for detailed changelog.

License

MIT license Β© Hemerson Vianna

1.0.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.3

2 years ago