This repository has been archived by the owner on Mar 4, 2024. It is now read-only.
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.
Context
All core gleam websites such as generated docs, packages site, etc. have their own independent CSS files, which makes them somewhat difficult to maintain while staying consistent with the styles of other sites.
While working on gleam-lang/packages#28 (comment), I suggested an idea to provide a shared collection of colors, sizes, etc. that will be reused across the websites for better consistency.
We discussed this on discord and chose to use the branding repo as the "source of truth", and to copy-and-paste the file around
Process
I decided it will be best/easiest to start with colors.
I downloaded the stylesheets from https://gleam.run/, https://packages.gleam.run/, https://tour.gleam.run/ and https://hexdocs.pm/gleam_stdlib/
Then I wrote a small python stript to find the most common colors between them.
To avoid bikeshedding color names,
I'm using the names from https://www.color-name.com/, except forfaff-pink
because it's already being called this way in the community.update: It was suggested to use basic hue names and colors (similar to what Tailwind does). I assigned the intensity numbers by comparing the colors to the ones at https://tailwindcss.com/docs/background-color
I will be extending this stylesheet as I update the projects to use it