Understanding build system and design token generation and usage #2376
-
I have been trying to understand the build system of cloudscape design system and how actually the design tokens are generated. @forward 'awsui:tokens'; After building, in the $color-charts-purple-400: var(--color-charts-purple-400-ow8655, #9469d6);
^ scoped variable Is there any documentation that I can refer to for understanding this? It would be a great help |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi! The internal build tooling isn't documented anywhere; you don't have to understand the build process to use Cloudscape. That said, I do have some starting points to give you a good general understanding of how it works. Most of the styling code is present in the @cloudscape-design/theming-core package. This package is responsible for generating design tokens, creating custom properties with hashed suffixes, and compiling SCSS files with the generated files provided as |
Beta Was this translation helpful? Give feedback.
Hi!
The internal build tooling isn't documented anywhere; you don't have to understand the build process to use Cloudscape. That said, I do have some starting points to give you a good general understanding of how it works. Most of the styling code is present in the @cloudscape-design/theming-core package. This package is responsible for generating design tokens, creating custom properties with hashed suffixes, and compiling SCSS files with the generated files provided as
awsui:[...]
stylesheets.