Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
279 stars 76 forks source link

Add relative "REM" based tokens #8856

Open alisonailea opened 6 months ago

alisonailea commented 6 months ago

Check existing issues

Description

Pre-November

November release

Calcite Design Tokens
Calcite Components

Acceptance Criteria

Relevant Info

Tailwind has previously covered this with a selection of "applied" tailwind classes. In many components these have been replaces with direct "space" or "line-height" properties. So both will need to be searched for.

Which Component

All.

Example Use Case

.scale-m {
  @apply text-n1h;
  padding: var(--calcite-space-sm);
  max-width: var(--calcite-size-xxl);
}

Priority impact

p3 - want for upcoming milestone

Calcite package

Esri team

Calcite (dev)

alisonailea commented 5 months ago

This should be as easy as adding https://amzn.github.io/style-dictionary/#/transforms?id=sizepxtorem to the Design Token's build with a filter for specific token types. This requires some input from Design on naming.