Coding task · JavaScript and React course · Module 14: Advanced Styling

Practice: Color Token Preview

Create a TokenPreview component that displays a visual preview of color tokens. For each color in the tokens.colors object, show a square swatch (colored square), the token name, and the hex value. Use Object.entries() to iterate over the tokens and CSS Variables for styling.

Task

Create a visual preview of color tokens