Design tokens are the values or constants needed to construct a design system. These values can represent spacing, color, typography etc. Design tokens help to achieve consistency in building user interfaces across all platforms.
Let's take an example by defining a space and color design tokens.
We can use the above tokens in our code instead of using absolute values.
The above Box will be translated to
With NativeBase, you can create your own design system. NativeBase follows styled-system's specification to construct design system.