Skip to content

chore(ui-components): simplify color tokens - #45848

Merged
ahmaxed merged 3 commits into
freeCodeCamp:mainfrom
huyenltnguyen:chore/color-tokens-naming
May 9, 2022
Merged

ahmaxed merged 3 commits into
freeCodeCamp:mainfrom
huyenltnguyen:chore/color-tokens-naming

Conversation

@huyenltnguyen

Copy link
Copy Markdown
Member

Checklist:

  • I have read freeCodeCamp's contribution guidelines.
  • My pull request has a descriptive title (not a vague title like Update index.md)
  • My pull request targets the main branch of freeCodeCamp.
  • I have tested these changes either locally on my machine, or GitPod.

This PR:

The PR can be review by commits.

@huyenltnguyen
huyenltnguyen requested a review from a team May 3, 2022 10:27
@gitpod-io

gitpod-io Bot commented May 3, 2022

Copy link
Copy Markdown

@github-actions github-actions Bot added scope: docs scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc. labels May 3, 2022
@ghost

ghost commented May 3, 2022 •

Copy link
Copy Markdown

👀 Review this PR in a CodeSee Review Map

Preview the Review Map

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map Legend

@ahmaxed
ahmaxed force-pushed the chore/color-tokens-naming branch from b40e908 to dfd1d59 Compare May 9, 2022 12:23
@ahmaxed

ahmaxed commented May 9, 2022

Copy link
Copy Markdown
Member

@huyenltnguyen thanks for taking care of this. Would switching the background with foreground or using predefined semantic tokens for hover, etc be plausible?

For instance, could we do the following:

              'hover:bg-foreground-primary',
              'hover:text-background-primary'

instead of this:

              'hover:bg-gray-900',
              'hover:text-gray-0',
              'dark:hover:bg-gray-0',
              'dark:hover:text-gray-900'

@ahmaxed
ahmaxed merged commit fa59d4a into freeCodeCamp:main May 9, 2022
@huyenltnguyen
huyenltnguyen deleted the chore/color-tokens-naming branch May 10, 2022 03:43
@huyenltnguyen

Copy link
Copy Markdown
Member Author

Sigh. I think I did that as an experiment to see if the dark: prefix works with hover: but I forgot to switch the colors back 😞 I'll clean this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: tools/scripts Scripts for supporting dev work, generating config and build artifacts, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants