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

Move design-tokens into @guardian/source #1638

Merged
merged 55 commits into from
Aug 14, 2024
Merged

Move design-tokens into @guardian/source #1638

merged 55 commits into from
Aug 14, 2024

Conversation

sndrs
Copy link
Member

@sndrs sndrs commented Aug 8, 2024

What are you changing?

Removes @guardian/design-tokens package and adds the tokens directly to @guardian/source.

Why?

Having it as separate package was preparation for a world that never came, and adds complexity and indirection to the process of editing design tokens.

This also allows us to calculate foundations values during build, rather than at the point of consumption.

And that relieves user's devices of this overhead and makes it unnecessary to include the design tokens JSON in consumer's bundles.

A CSTI Mobbing Release© by @sndrs, @oliverabrahams and @jamesmockett.

sndrs and others added 12 commits August 8, 2024 11:56
wip

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
…w-tokens

# Conflicts:
#	libs/@guardian/source/src/design-tokens/plugins/space.js
#	libs/@guardian/source/src/design-tokens/plugins/typography.js
#	libs/@guardian/source/src/design-tokens/tokens.config.js

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
Copy link

changeset-bot bot commented Aug 8, 2024

🦋 Changeset detected

Latest commit: fac9a1c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

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

Copy link
Contributor

github-actions bot commented Aug 8, 2024

Tip

Once this PR is ready to go, add the run_chromatic label to run the Chromatic tests.

This saves us a lot of money by not running the tests before we need them.

@github-actions github-actions bot added the 📦 npm Affects a @guardian package on NPM label Aug 8, 2024
sndrs and others added 15 commits August 9, 2024 09:38

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
…w-tokens

# Conflicts:
#	libs/@guardian/source/src/design-tokens/cobalt-plugins/breakpoints.js
#	libs/@guardian/source/src/design-tokens/tokens.config.js

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
…w-tokens

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
@oliverabrahams oliverabrahams requested review from a team as code owners August 12, 2024 16:35
sndrs added 3 commits August 13, 2024 10:36

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
@sndrs sndrs linked an issue Aug 13, 2024 that may be closed by this pull request
sndrs added 2 commits August 13, 2024 13:24

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
Brings `remSize`, `remIconSize`, `remHeight` and `remWidth` into line with `remSpace`, by changing their values from numbers (of rems) to strings with `rem` units.

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
# Conflicts:
#	libs/@guardian/source/src/foundations/size/size.ts
#	libs/@guardian/source/src/foundations/space/space.ts
@sndrs sndrs marked this pull request as draft August 13, 2024 13:11
oliverabrahams and others added 6 commits August 13, 2024 14:16
# Conflicts:
#	libs/@guardian/source/src/foundations/size/size.ts
#	libs/@guardian/source/src/foundations/space/space.ts

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
…w-tokens

# Conflicts:
#	libs/@guardian/source/src/design-tokens/lib/convert-value.js
#	libs/@guardian/source/src/foundations/utils/convert-value.test.ts
#	libs/@guardian/source/src/foundations/utils/convert-value.ts

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
@sndrs sndrs marked this pull request as ready for review August 13, 2024 16:22
@sndrs sndrs added the run_chromatic Runs chromatic when label is applied label Aug 13, 2024
sndrs and others added 6 commits August 13, 2024 17:34

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
Co-authored-by: Joe Cowton <77005274+joecowton1@users.noreply.github.com>
Co-authored-by: Oliver Abrahams <ollie.abrahams@guardian.co.uk>

Verified

This commit was signed with the committer’s verified signature.
sndrs Alex Sanders
@sndrs sndrs merged commit 69ecc3f into main Aug 14, 2024
19 checks passed
@sndrs sndrs deleted the mob/new-tokens branch August 14, 2024 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 npm Affects a @guardian package on NPM run_chromatic Runs chromatic when label is applied
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove design tokens package
3 participants