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(tokens): add typography based sizing #2796

Open
wants to merge 35 commits into
base: next
Choose a base branch
from

Conversation

Febakke
Copy link
Member

@Febakke Febakke commented Nov 19, 2024

Resolves: #2674

Added small, medium and large scales for Figma

Remaining work

  • Fontsize should follow size
  • Are we happy with these values as default?

Copy link

changeset-bot bot commented Nov 19, 2024

⚠️ No Changeset found

Latest commit: cc807fd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Nov 19, 2024

Preview deployments for this pull request:

Storybook - 20. Dec 2024 - 15:28

Storefront - 20. Dec 2024 - 15:29

@mimarz mimarz changed the title Add typography based sizing feat(tokens): add typography based sizing Nov 21, 2024
@mimarz mimarz marked this pull request as draft November 22, 2024 08:40
Copy link
Contributor

github-actions bot commented Nov 27, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 55.2% 3198 / 5793
🔵 Statements 55.2% 3198 / 5793
🔵 Functions 86.6% 181 / 209
🔵 Branches 77.07% 521 / 676
File CoverageNo changed files found.
Generated in workflow #1388 for commit cc807fd by the Vitest Coverage Report Action

@mimarz mimarz force-pushed the add-typography-based-sizing branch from ce430b8 to b1f2e0e Compare December 19, 2024 11:29
@mimarz mimarz marked this pull request as ready for review December 19, 2024 14:14
@mimarz mimarz marked this pull request as draft December 20, 2024 07:44
@mimarz mimarz marked this pull request as ready for review December 20, 2024 09:23
Copy link
Contributor

@unekinn unekinn left a comment

Choose a reason for hiding this comment

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

Nice work! I found a few things that could be issues.

packages/css/src/index.css Outdated Show resolved Hide resolved
packages/theme/brand/altinn/semantic.css Outdated Show resolved Hide resolved
packages/theme/brand/altinn/typography/primary.css Outdated Show resolved Hide resolved
@@ -2433,12 +2433,12 @@ export const dimension = [
},
{
$type: "dimension",
$value: "0rem",
$value: "NaN",
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these values used anywhere? If they are, I think everything becoming NaN would be a problem 😄

Copy link
Collaborator

Choose a reason for hiding this comment

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

blæææ

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure how to fix this in the short term 🤔 Got any ideas?

packages/cli/src/tokens/build/formats/css.ts Show resolved Hide resolved
packages/cli/src/tokens/build/transformers.ts Outdated Show resolved Hide resolved
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.

Update sizing design-tokens with font-based calculation
3 participants