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

Adding more colors to tailwind.config.js #236

Merged
merged 2 commits into from
May 25, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/css/explorer-1.min.css

Large diffs are not rendered by default.

29 changes: 20 additions & 9 deletions storybook/stories/_docs/foundation_color.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,25 @@ import { Meta } from '@storybook/addon-docs'

Each of these foundation colors has specific usage scenarios.

| Color | Name | Token | Value |
| :--------------------------------------- | :------------ | :-------------- | :-------- |
| <div class="bg-jpl-red p-4"></div> | JPL Red | `jpl-red` | `#E31937` |
| <div class="bg-jpl-red-light p-4"></div> | JPL Red Light | `jpl-red-light` | `#E73B54` |
| <div class="bg-jpl-red-dark p-4"></div> | JPL Red Dark | `jpl-red-dark` | `#C1152E` |
| <div class="bg-jpl-aqua p-4"></div> | JPL Aqua | `aqua` | `#489FDF` |
| <div class="bg-blue p-4"></div> | Blue | `blue` | `#8BCBFA` |
| <div class="bg-dark-blue p-4"></div> | Dark Blue | `dark-blue` | `#004562` |
| <div class="bg-green p-4"></div> | Green | `green` | `#14C97A` |
| Color | Name | Token | Value |
| :---------------------------------------- | :------------- | :--------------- | :-------- |
| <div class="bg-jpl-red p-4"></div> | JPL Red | `jpl-red` | `#E31937` |
| <div class="bg-jpl-red-light p-4"></div> | JPL Red Light | `jpl-red-light` | `#E73B54` |
| <div class="bg-jpl-red-dark p-4"></div> | JPL Red Dark | `jpl-red-dark` | `#C1152E` |
| <div class="bg-jpl-red-darker p-4"></div> | JPL Red Darker | `jpl-red-darker` | `#5C0411` |
| <div class="bg-jpl-aqua p-4"></div> | JPL Aqua | `aqua` | `#489FDF` |
| <div class="bg-blue p-4"></div> | Blue | `blue` | `#8BCBFA` |
| <div class="bg-dark-blue p-4"></div> | Dark Blue | `dark-blue` | `#004562` |
| <div class="bg-green p-4"></div> | Green | `green` | `#14C97A` |

### Reserved for Internal Use

These colors should not be used on public-facing JPL websites.

| Color | Name | Token | Value |
| :------------------------------------------- | :---------------- | :------------------ | :-------- |
| <div class="bg-jpl-sky-blue p-4"></div> | JPL Sky Blue | `jpl-sky-blue` | `#53C8ED` |
| <div class="bg-jpl-sky-blue-dark p-4"></div> | JPL Sky Blue Dark | `jpl-sky-blue-dark` | `#0080A4` |

## Functional Gray Tones

Expand All @@ -30,6 +40,7 @@ Grayscale colors are used throughout the site for text and layout.
| Color | Name | Token | Value |
| :---------------------------------------- | :------------- | :--------------- | :-------- |
| <div class="bg-white p-4"></div> | White | `white` | `#FFFFFF` |
| <div class="bg-off-white p-4"></div> | Off White | `off-white` | `#FAFAFA` |
| <div class="bg-gray-light p-4"></div> | Gray Light | `gray-light` | `#F5F5F5` |
| <div class="bg-gray-light-mid p-4"></div> | Gray Light Mid | `gray-light-mid` | `#D8D8D8` |
| <div class="bg-gray-mid p-4"></div> | Gray Mid | `gray-mid` | `#949494` |
Expand Down
6 changes: 6 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ const foundationColors = {
'jpl-red': '#E31937',
'jpl-red-light': '#E73B54',
'jpl-red-dark': '#C1152E',
'jpl-red-darker': '#5C0411',
'jpl-aqua': '#489FDF',
blue: '#8BCBFA',
'dark-blue': '#004562',
'jpl-sky-blue': '#53C8ED',
'jpl-sky-blue-dark': '#0080A4',
green: '#14C97A',
}

Expand All @@ -31,6 +34,7 @@ const semanticColors = {

const grayScale = {
white: '#FFFFFF',
'off-white': '#FAFAFA',
'gray-light': '#F5F5F5',
'gray-light-mid': '#D8D8D8',
'gray-mid': '#949494',
Expand Down Expand Up @@ -173,6 +177,8 @@ module.exports = {
'jpl-red-w50': foundationColors['jpl-red'] + ' 50%',
'jpl-red-dark-w50': foundationColors['jpl-red-dark'] + ' 50%',
'jpl-red-light-w50': foundationColors['jpl-red-light'] + ' 50%',
'jpl-sky-blue-w50': foundationColors['jpl-sky-blue'] + ' 50%',
'jpl-sky-blue-dark-w50': foundationColors['jpl-sky-blue-dark'] + ' 50%',
Scotchester marked this conversation as resolved.
Show resolved Hide resolved
'white-w50': grayScale.white + ' 50%',
'gray-dark-w50': grayScale['gray-dark'] + ' 50%',
'facebook-w50': socialColors.facebook + ' 50%',
Expand Down