hello everyone and welcome again to the hexa foundation course dog here and in this video we are going to talk about tokens as we saw in the last video tokens are the smallest part of design system but are also the most important ones what are tokens a very simple way to explain about tokens are that they are Alias of different values for example I can create an alias blue. 100 for a color value and create a color token I can do the same for typography for elevation for sizing and many other things and styles inside
a design system but how we apply that into a component let's see an example we have here a button a button have very de different properties for example we have the background color the Border radio typography style we have an icon we have spacing between the icon and the button but each of those properties or each of those aspects inside the button needs to have a specification of tokens so when we apply the tokens we have a specific tokens for background color for example bz color neutral 100 we have a specific token for the Border
radius which is the bz radios full we have many tokens to create this this white text inside the button for example we have the font face we have the font weight text color font size and font height we don't have tokens for Icon because icons are a separated component which have their own tokens and we also have tokens for spacing the spacing limited the spacing of uh between the icon in the border of the button so that's the way that we apply the tokens and how tokens are uh connected to engineering basically the tokens are
defined with design and and development they Define how the tokens will be structured and what tokens we are going to use after that we create a documentation as you can see design tokens and we use a software currently we are using the Supernova but we could also export Jon file from figma and we share that file with engineering so we have three steps here here the first one is Tech agnostic is the decisions the second one the tech specific when we deliver the Jone or specific tokens for each of these Stacks the third one it's
the app specific when a specific team or Val stream start using those tokens with the specifities so that's the way we deliver all the tokens from design stacks and development and something very interesting about thematization is is that the tokens are the responsible for changing the colors or overriding the colors according with your brand so for example if you are using the default name of hexa which is yellow you can choose another color predefined brand for example a purple brand and override the yellow token with the purple one so that you have all the same
components but with a new brand color that's it for tokens thank you for watching see you in the next video