-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: Extended utility classes and updated color palette #11047
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Conflicts: # frontend/src/scenes/billing/BillingSubscribed.tsx # frontend/src/scenes/dashboard/Dashboard.tsx
benjackwhite
changed the title
WIP: Hogwind
feat: Extended utility classes and updated color palette
Jul 29, 2022
# Conflicts: # frontend/src/exporter/Exporter.tsx # frontend/src/scenes/experiments/Experiment.tsx
# Conflicts: # frontend/src/scenes/funnels/FunnelCanvasLabel.tsx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Likely to close #9868
Rather than worrying about Tailwind / Windi for now, lets just replicate the API for what we currently need / want
Changes
Notice to be posted in #dev Slack when done:
Hey everyone - heads up that with a latest merge we have updated the in-house Utility CSS classes to be more in line with the ever-so-popular Tailwind (although we are not moving to Tailwind). Some things have changed that you should simply be aware of. (You can get a feeling for what changed by glancing at the PR or checking out a new entry in Storybook: TODO)
Notable changes
all margin/padding/gap/space values are updated to match the Tailwind convention:
p-2
===padding: 0.5rem
p-4
===padding: 1rem
So that is different to how we used to have it:
ma
is nowm-4
pt-05
is nowpt-2
...elsewhere...
border-all
is gone in favour ofborder rounded-lg
separating the radius stuff from the border logicspace-between-items
is nowflex justify-between
flex-center
is nowflex items-center
This is part of a bigger load of work towards standardising our frontend docs and approach so bear with us 🙌
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
How did you test this code?
A LOT of local checking everywhere I could