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: Extended utility classes and updated color palette #11047

Merged
merged 39 commits into from
Aug 1, 2022

Conversation

benjackwhite
Copy link
Contributor

@benjackwhite benjackwhite commented Jul 29, 2022

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

  • Utilities updated to match Tailwind as far as possible
  • Lots of file changes due to updating relevant styles
  • Colors updated to brand new palette 🥳

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 now m-4
pt-05 is now pt-2

...elsewhere...

border-all is gone in favour of border rounded-lg separating the radius stuff from the border logic
space-between-items is now flex justify-between
flex-center is now flex 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

@benjackwhite benjackwhite changed the title WIP: Hogwind feat: Extended utility classes and updated color palette Jul 29, 2022
@benjackwhite benjackwhite marked this pull request as ready for review July 29, 2022 14:48
# Conflicts:
#	frontend/src/exporter/Exporter.tsx
#	frontend/src/scenes/experiments/Experiment.tsx
# Conflicts:
#	frontend/src/scenes/funnels/FunnelCanvasLabel.tsx
@kappa90 kappa90 self-requested a review August 1, 2022 13:19
@benjackwhite benjackwhite enabled auto-merge (squash) August 1, 2022 13:53
@benjackwhite benjackwhite merged commit 8c42c70 into master Aug 1, 2022
@benjackwhite benjackwhite deleted the feat/hogwind branch August 1, 2022 14:09
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.

Updating Palette Colours in App
1 participant