1.1.1 • Published 8 months ago

@alsacia/style-dictionary v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

🎨 Design Tokens - Style Dictionary

Este paquete contiene design tokens generados automáticamente con Style Dictionary para Tailwind CSS v4.

📌 Repositorio del código fuente y estructura del paquete:
🔗 Ver código en npm
🔗 También disponible en Flutter: alsacia_style_dictionary


📌 Instalación

Para instalar el paquete en tu proyecto:

npm install @alsacia/style-dictionary

Y asegurate de que tu archivo tailwind.config.js importe correctamente los tokens si estás usando PostCSS:


📌 Uso en Tailwind CSS 4

Los tokens están disponibles como un archivo CSS en build/tailwind/tokens.css.

🔧 Importalo en tu CSS raíz (donde importás Tailwind):

@import 'tailwind';
@import "@alsacia/style-dictionary";

📌 Usar los tokens en clases de Tailwind

<div class="bg-primary p-md">
  Hola, este es un componente con tokens de diseño.
</div>

🎨 Tokens agrupados por Namespace

NamespaceVariableValorClase Tailwind
color--color-dark-danger#e63946dark-danger
color--color-dark-link#007affdark-link
color--color-dark-text_80rgba(239, 239, 239, 0.8)dark-text_80
color--color-dark-warning#f4b51cdark-warning
color--color-dark-text#efefefdark-text
color--color-dark-background700#282828dark-background700
color--color-dark-text_60rgba(239, 239, 239, 0.6)dark-text_60
color--color-dark-background600#383838dark-background600
color--color-dark-background#1f1f1fdark-background
color--color-dark-success#1db954dark-success
color--color-dark-success_40rgba(29, 185, 84, 0.4)dark-success_40
color--color-dark-danger_40rgba(230, 57, 70, 0.4)dark-danger_40
color--color-dark-background700_40rgba(40, 40, 40, 0.4)dark-background700_40
color--color-brand-primary300#ffa366brand-primary300
color--color-brand-primary#ff6600brand-primary
color--color-brand-primary400#ff8533brand-primary400
color--color-light-text_60rgba(51, 51, 51, 0.6)light-text_60
color--color-light-text_80rgba(51, 51, 51, 0.8)light-text_80
color--color-light-text#333333light-text
color--color-light-danger#c71926light-danger
color--color-light-warning#f4b51clight-warning
color--color-light-success#46e27dlight-success
color--color-light-background600#c7c7c7light-background600
color--color-light-background#fcfcfclight-background
color--color-light-background700#efefeflight-background700
color--color-light-link#007afflight-link
color--color-light-success_40rgba(70, 226, 125, 0.4)light-success_40
color--color-light-danger_40rgba(199, 25, 38, 0.4)light-danger_40
spacing--spacing-xs0.5remxs
spacing--spacing-3xl3rem3xl
spacing--spacing-2xl2.5rem2xl
spacing--spacing-xl2remxl
spacing--spacing-md1.5remmd
spacing--spacing-base1rembase
spacing--spacing-sm0.75remsm
spacing--spacing-4xl4rem4xl
spacing--spacing-lg1.75remlg
spacing--spacing-2xs0.25rem2xs
radius--radius-full360pxfull
radius--radius-base16pxbase
font-weight--font-weight-light300light
font-weight--font-weight-regular400regular
font-weight--font-weight-bold700bold
text-size--text-hero2.5remhero
text-size--text-small0.75remsmall
text-size--text-p1remp
text-size--text-h31.5remh3
text-size--text-h21.75remh2
text-size--text-h12remh1
leading--leading-small1remsmall
leading--leading-p1.5remp
leading--leading-h32remh3
leading--leading-h22.25remh2
leading--leading-h12.5remh1
leading--leading-hero3remhero
blur--blur-soft8pxblur-soft
blur--blur-hard32pxblur-hard
shadow--shadow-elevation10px 1px 3px 0px #0000004delevation1
shadow--shadow-elevation20px 5px 5px 0px #00000066elevation2
shadow--inset-shadow-sinking1inset 0px 1px 3px 0px #0000004dsinking1
shadow--inset-shadow-sinking2inset 0px 5px 5px 0px #00000066sinking2

📚 ¿Estás usando Flutter?
👉 Consultá la versión del paquete para Dart:
alsacia_style_dictionary en pub.dev

1.1.1

8 months ago

1.1.0

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.11

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago