Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge sizing and spacing tokens into size #2927

Open
mimarz opened this issue Dec 20, 2024 · 0 comments
Open

Merge sizing and spacing tokens into size #2927

mimarz opened this issue Dec 20, 2024 · 0 comments
Labels
cli @digdir/designsystemet css @digdir/designsystemet-css ☂️ epic Issues ready $ tokens Everything related to tokens and Work related to @digdir/designsystemet-theme

Comments

@mimarz
Copy link
Collaborator

mimarz commented Dec 20, 2024

We currently have two identical sets of tokens used for spacing and sizing. This was due to limitations in Figma and Token Studio. With support for Figma variables and W3C DTCG format in Token Studio, we no longer need to have to distinct sets of variables.

We should reduce this to just one set, so there is less variables and easier to use for end-users. This is also to reduce unneeded maintenance in general for duplicate sets.

Current suggestion is to keep it as simple and short as possible:

sizing and spacing -> size

padding: var(--ds-size-2);
height: var(--ds-size-6);
gap: var(--ds-size-4);
@mimarz mimarz added $ tokens Everything related to tokens and Work related to @digdir/designsystemet-theme cli @digdir/designsystemet css @digdir/designsystemet-css labels Dec 20, 2024
@mimarz mimarz added this to the V1 - Must-have milestone Dec 20, 2024
@mimarz mimarz moved this to 🔵 Inbox in Team Design System Dec 20, 2024
@mimarz mimarz moved this from 🔵 Inbox to 📄 Todo in Team Design System Dec 20, 2024
@mimarz mimarz added the ☂️ epic Issues ready label Dec 20, 2024
@mimarz mimarz moved this from 📄 Todo to ☂ Todo Epics in Team Design System Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cli @digdir/designsystemet css @digdir/designsystemet-css ☂️ epic Issues ready $ tokens Everything related to tokens and Work related to @digdir/designsystemet-theme
Projects
Status: ☂ Todo Epics
Development

No branches or pull requests

1 participant