Skip to content

Sort theme variables in a more intentional order#14952

Merged
adamwathan merged 1 commit intonextfrom
change/polish-theme-variable-order
Nov 11, 2024
Merged

Sort theme variables in a more intentional order#14952
adamwathan merged 1 commit intonextfrom
change/polish-theme-variable-order

Conversation

@adamwathan
Copy link
Member

This PR updates our default theme.css file and organizes the CSS variables in a custom order that's optimized for looking nice in Chrome dev tools.

You can only see ~50 variables "above the fold" in dev tools without clicking "Show all", so I've opted for putting variables near the top that have the highest "impact" on the design/brand of the site, and also showcase some of the modern CSS features we are using in Tailwind CSS v4.

Here's what it looks like:

image

I really want to show off the color palette because the swatches look nice and because seeing oklch there feels like a nice signal for Tailwind CSS v4 being very modern, but we have a lot of colors so you can't really fit much else if you do this. I stuck font families at the top since it's one of the few things that we can fit there that also feels important to your site's brand but still has few enough values not to push away the color palette.

@adamwathan adamwathan requested a review from a team as a code owner November 11, 2024 14:52
@adamwathan adamwathan merged commit 3244da8 into next Nov 11, 2024
@adamwathan adamwathan deleted the change/polish-theme-variable-order branch November 11, 2024 15:08
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.

2 participants