Skip to content

Conversation

@OnlyJousting
Copy link
Contributor

@OnlyJousting OnlyJousting commented Nov 25, 2025

Updates theme variables from exported figma variables json

@vercel
Copy link

vercel bot commented Nov 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
curve-dapp Ready Ready Preview Comment Nov 28, 2025 1:09pm
curve-dapp-storybook Ready Ready Preview Comment Nov 28, 2025 1:09pm


export const Spacing = {
'50': '0',
'75': '0.0625rem', // 1px
Copy link
Collaborator

Choose a reason for hiding this comment

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

this can be breaking due to this usage

this means now everywhere where we use spacing, gap, padding, margin etc with integers will become smaller.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean that we shouldn't add 75?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We could but then maybe we can hardcode the other ones in the spacing var passed to the theme

Copy link
Collaborator

Choose a reason for hiding this comment

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

So that line should become

 spacing: range(8).map(i => Spacing[i*100]), 

'600': '2rem' /* 32px */,
'700': '3rem' /* 48px */,
'800': '4rem' /* 64px */,
'50': '0',
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder why not use 0 here

Suggested change
'50': '0',
'0': '0',

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