Design tokens improvement
PKulkoRaccoonGang opened this issue · comments
To make working with design tokens easier in the future, it would be great to add a few helpers:
-
Set up a linter to validate the formatting of files containing design tokens (
tokens
folder). -
Script for checking CSS variables declaration.
Previously, when using SCSS variables, if the SCSS variable was not declared but was used, we could see an error during assembly and fix this problem. When using CSS variables, if the variable is used in Paragon components and has been deleted, we will not know about it. Thus, the browser is the only tool for validating variable declarations, which is not very convenient.
![image](https://private-user-images.githubusercontent.com/93188219/330827044-33044ca7-875f-4773-ab59-fb2a436d2a08.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQ3Mjg2MTYsIm5iZiI6MTcyNDcyODMxNiwicGF0aCI6Ii85MzE4ODIxOS8zMzA4MjcwNDQtMzMwNDRjYTctODc1Zi00NzczLWFiNTktZmIyYTQzNmQyYTA4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MjclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODI3VDAzMTE1NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYwNTM3YjViMzIwZDdhZDJiY2VlODI1YmE0Y2UzNDBjZjg4YTVlNDUwODM2MGM3OWVjODM2NDgwNDdkMTUzNmYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.cBi-sEOp3-_5rRM1jVMT0PkVfDhYTAG3B8w_O3EM6AI)