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

Implement style guide in Tailwind CSS config #70

Open
WillieCubed opened this issue Mar 4, 2023 · 1 comment · May be fixed by #85
Open

Implement style guide in Tailwind CSS config #70

WillieCubed opened this issue Mar 4, 2023 · 1 comment · May be fixed by #85
Assignees
Labels
Category: User Experience Issues pertaining to user-facing functionality Design Tasks for user interface or user experience Type: Internal "Chore" tasks that are needed for features

Comments

@WillieCubed
Copy link
Member

WillieCubed commented Mar 4, 2023

Overview

As a developer, I should be able to use standard Tailwind CSS utilities to systematically customize font sizes and colors.

Proposal

Tailwind CSS supports theme customization. The tailwind.config.js file should be updated to create a theme for color and typography that uses a format like the following:

  • "Display Large" -> display-large
  • "Neutral" -> neutral

For each color, we should use a format like [color]-[token] where [color] is the identifier for content and [token] is a value uniquely identify a color.

(e.g. primary-1 would be the name of the lightest color in the primary set of colors).

So in code, we would be able to write something like the following:

<div className="bg-primary-1">
  <span className="text-primary-1">Text</span>
</div>

Supplementary Information

Type Scale (Headings)

Typography - Headings

Type Scale (Content)

Typography - Content

Color Usage

Colors

See the full spec for the style guide here.

@WillieCubed WillieCubed added Category: User Experience Issues pertaining to user-facing functionality Type: Internal "Chore" tasks that are needed for features Design Tasks for user interface or user experience labels Mar 4, 2023
@vikranthchinnam vikranthchinnam linked a pull request Apr 17, 2023 that will close this issue
@vikranthchinnam vikranthchinnam linked a pull request Apr 17, 2023 that will close this issue
@WillieCubed
Copy link
Member Author

As a note for @SmokinTurkey, the hex value for the second neutral color from the right is incorrect and should be updated in Figma to read as #353535.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: User Experience Issues pertaining to user-facing functionality Design Tasks for user interface or user experience Type: Internal "Chore" tasks that are needed for features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants