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

feat(Theme): add text tokens #1051

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

feat(Theme): add text tokens #1051

wants to merge 3 commits into from

Conversation

pylafleur
Copy link
Contributor

@pylafleur pylafleur commented Dec 6, 2024

DS-1276

Ajouter les tokens pour les styles liés au texte. Ils ne sont pas utilisés pour l'instant alors il n'y a pas grand-chose à tester.

Figma pour les tokens: https://www.figma.com/design/EIJItUlyeIymb2dfgeoQJp/Design-System-UI-Library?node-id=4-4&node-type=canvas&m=dev

Copy link

github-actions bot commented Dec 6, 2024

Storybook for this build: https://ds.equisoft.io/pr-1051/

Copy link

github-actions bot commented Dec 6, 2024

Webapp for this build: https://ds.equisoft.io/pr-1051/webapp/

@pylafleur pylafleur changed the base branch from master to dev/DS-1278 December 10, 2024 14:23
@pylafleur pylafleur changed the title feat(Theme): add text tokens + typing improvements feat(Theme): add text tokens Dec 10, 2024
Base automatically changed from dev/DS-1278 to master January 6, 2025 15:30
meriouma
meriouma previously approved these changes Jan 9, 2025
packages/react/src/themes/tokens/ref/text-tokens.ts Outdated Show resolved Hide resolved
import type { AliasTokenMap } from '../tokens';

export type TextAliasToken =
| 'text-heading-xl-font-family'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On avait déjà eu la discussion je pense pour les valeurs de props qui sont des sizes, et on met small, medium large plutôt que sm md lg. Est-ce qu'on veut garder la même convention pour les tokens? Ou revoir la convention pour les props?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai pas vraiment de préférence, @maboilard ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On peut s'adapter en fonction de ce qui existe déjà donc si on utilise déjà small, medium large restons constant avec cette nomenclature

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

J'ai fait le changement, j'ai aussi utilisé xsmall et xlarge pour xs et xl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants