nuxt-modules / design-tokens

Design tokens module for Nuxt
https://design-tokens.nuxtjs.org
MIT License
50 stars 3 forks source link

compose() feature #14

Closed Tahul closed 2 years ago

Tahul commented 2 years ago

This compose() function allows users of the module to take advantage of components key in tokens.config to create style presets to be used in their components.

This is particularly handy when trying to create components that are both self-configurable (via props), but also globally, via tokens.config.

Compose feature comes in with everything that is needed for the user to create components with ease: