-
-
Notifications
You must be signed in to change notification settings - Fork 53
Add : green and red alpha colors #1606
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
Open
GoldGroove06
wants to merge
4
commits into
rad-ui:main
Choose a base branch
from
GoldGroove06:add/alpha-colors
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| const greenAlpha = { | ||
| light: { | ||
| 50: 'oklch(0.96 0.05 152 / 0.015)', | ||
| 100: 'oklch(0.91 0.07 151 / 0.04)', | ||
| 200: 'oklch(0.89 0.08 150 / 0.1)', | ||
| 300: 'oklch(0.88 0.09 150 / 0.16)', | ||
| 400: 'oklch(0.88 0.10 149 / 0.23)', | ||
| 500: 'oklch(0.82 0.12 149 / 0.32)', | ||
| 600: 'oklch(0.79 0.12 149 / 0.44)', | ||
| 700: 'oklch(0.79 0.12 149 / 0.64)', | ||
| 800: 'oklch(0.77 0.12 150 / 0.81)', | ||
| 900: 'oklch(0.74 0.12 150 / 0.83)', | ||
| 950: 'oklch(0.66 0.12 150 / 0.87)', | ||
| 1000: 'oklch(0.48 0.11 149 / 0.9)', | ||
| }, | ||
| dark: { | ||
| 50: 'oklch(0.96 0.05 152 / 0.015)', | ||
| 100: 'oklch(0.91 0.07 151 / 0.04)', | ||
| 200: 'oklch(0.89 0.08 150 / 0.1)', | ||
| 300: 'oklch(0.88 0.09 150 / 0.16)', | ||
| 400: 'oklch(0.88 0.10 149 / 0.23)', | ||
| 500: 'oklch(0.82 0.12 149 / 0.32)', | ||
| 600: 'oklch(0.79 0.12 149 / 0.44)', | ||
| 700: 'oklch(0.79 0.12 149 / 0.64)', | ||
| 800: 'oklch(0.77 0.12 150 / 0.81)', | ||
| 900: 'oklch(0.74 0.12 150 / 0.83)', | ||
| 950: 'oklch(0.66 0.12 150 / 0.87)', | ||
| 1000: 'oklch(0.48 0.11 149 / 0.9)', | ||
| }, | ||
| } as const; | ||
|
|
||
| export default greenAlpha | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
|
|
||
|
|
||
| const redAlpha = { | ||
| light: { | ||
| 50: 'oklch(0.99 0.004 15 / 0.01)', | ||
| 100: 'oklch(0.98 0.01 16 / 0.03)', | ||
| 200: 'oklch(0.97 0.023 16 / 0.08)', | ||
| 300: 'oklch(0.94 0.041 16 / 0.14)', | ||
| 400: 'oklch(0.91 0.06 16 / 0.20)', | ||
| 500: 'oklch(0.87 0.075 16 / 0.26)', | ||
| 600: 'oklch(0.81 0.094 15 / 0.34)', | ||
| 700: 'oklch(0.75 0.114 15 / 0.44)', | ||
| 800: 'oklch(0.61 0.17 14 / 0.72)', | ||
| 900: 'oklch(0.56 0.17 14 / 0.76)', | ||
| 950: 'oklch(0.5 0.17 14 / 0.83)', | ||
| 1000: 'oklch(0.3 0.093 10 / 0.91)' | ||
| }, | ||
| dark: { | ||
| 50: 'oklch(0.99 0.004 15 / 0.01)', | ||
| 100: 'oklch(0.98 0.01 16 / 0.03)', | ||
| 200: 'oklch(0.97 0.023 16 / 0.08)', | ||
| 300: 'oklch(0.94 0.041 16 / 0.14)', | ||
| 400: 'oklch(0.91 0.06 16 / 0.20)', | ||
| 500: 'oklch(0.87 0.075 16 / 0.26)', | ||
| 600: 'oklch(0.81 0.094 15 / 0.34)', | ||
| 700: 'oklch(0.75 0.114 15 / 0.44)', | ||
| 800: 'oklch(0.61 0.17 14 / 0.72)', | ||
| 900: 'oklch(0.56 0.17 14 / 0.76)', | ||
| 950: 'oklch(0.5 0.17 14 / 0.83)', | ||
| 1000: 'oklch(0.3 0.093 10 / 0.91)' | ||
| } | ||
| } as const; | ||
|
|
||
| export default redAlpha; | ||
|
|
||
|
|
||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify: Light and dark themes are identical.
The light and dark theme color values are exactly the same (lines 3-14 match lines 17-28). This is unusual for color tokens, as dark mode typically requires different color values for proper contrast and readability.
Run the following script to check if other alpha or non-alpha color tokens also have identical light/dark themes:
🏁 Script executed:
Length of output: 3236
Distinct dark theme values for green-alpha.ts
The light and dark themes in src/design-systems/clarity/tokens/colors/green-alpha.ts are identical, unlike all other color tokens—please provide unique dark mode values for proper contrast.
🤖 Prompt for AI Agents