Skip to content

TokenTransformer script - convert px to REMs in CSS #10051

@alisonailea

Description

@alisonailea

monday.com sync: #18048571532

Check existing issues

Description

create token transformer script to convert semantic space, size, and font-size tokens to REMs.

Acceptance Criteria

  • npm --workspace="packages/design-tokens" run build
  • open the calcite-design-tokens/dist/css/global.css file
  • confirm space, size, and font-size tokens are in REMs

Relevant Info

Use StyleDictionary plugin https://styledictionary.com/reference/hooks/transforms/predefined/#sizepxtorem

Which Component

N/A

Example Use Case

No response

Priority impact

impact - p2 - want for an upcoming milestone

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

Calcite (design)

Metadata

Metadata

Assignees

Labels

Calcite (design)Issues logged by Calcite designers.calcite-design-tokensIssues specific to the @esri/calcite-design-tokens package.enhancementIssues tied to a new feature or request.estimate - 5A few days of work, definitely requires updates to tests.impact - p2 - want for an upcoming milestoneUser set priority impact status of p2 - want for an upcoming milestonep - highIssue should be addressed in the current milestone, impacts component or core functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions