This repository has been archived by the owner on May 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dark mode components token override (#41)
- Loading branch information
1 parent
f1ab140
commit 4358d0b
Showing
10 changed files
with
172 additions
and
148 deletions.
There are no files selected for viewing
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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,19 @@ | ||
@use './colors.scss' as colors; | ||
|
||
$dark-button-token-overrides: ( | ||
button-primary: colors.$blue-60, | ||
button-primary-hover: colors.$blue-65, | ||
button-primary-active: colors.$blue-80, | ||
button-secondary: colors.$gray-60, | ||
button-secondary-hover: colors.$gray-65, | ||
button-secondary-active: colors.$gray-80, | ||
button-tertiary: colors.$white, | ||
button-tertiary-hover: colors.$gray-10, | ||
button-tertiary-active: colors.$gray-30, | ||
button-danger-primary: colors.$red-60, | ||
button-danger-secondary: colors.$red-40, | ||
button-danger-hover: colors.$red-70, | ||
button-danger-active: colors.$red-80, | ||
button-separator: colors.$gray-100, | ||
button-disabled: colors.$gray-70, | ||
); |
This file contains 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,16 @@ | ||
@use './colors.scss' as colors; | ||
|
||
$dark-notification-token-overrides: ( | ||
notification-background-info: colors.$gray-90, | ||
notification-background-success: colors.$gray-90, | ||
notification-background-warning: colors.$gray-90, | ||
notification-background-error: colors.$gray-90, | ||
notification-border-info: rgba(colors.$blue-50, 0.40), | ||
notification-border-success: rgba(colors.$green-50, 0.40), | ||
notification-border-warning: rgba(colors.$yellow-60, 0.40), | ||
notification-border-error: rgba(colors.$red-50, 0.40), | ||
notification-action-hover: colors.$white, | ||
notification-action-tertiary-inverse: colors.$blue-60, | ||
notification-action-tertiary-inverse-text: colors.$white, | ||
notification-action-tertiary-hover: colors.$blue-65, | ||
); |
This file contains 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,30 @@ | ||
@use './colors.scss' as colors; | ||
|
||
/// Carbon doesn't have native pink and violet tags, | ||
/// so we override the magenta and purple tokens instead | ||
$dark-tag-token-overrides: ( | ||
tag-background-blue: colors.$blue-80, | ||
tag-color-blue: colors.$blue-10, | ||
tag-hover-blue: colors.$blue-75, | ||
tag-background-cyan: colors.$cyan-100, | ||
tag-color-cyan: colors.$cyan-10, | ||
tag-hover-cyan: colors.$cyan-90, | ||
tag-background-green: colors.$green-80, | ||
tag-color-green: colors.$green-10, | ||
tag-hover-green: colors.$green-70, | ||
tag-background-magenta: colors.$pink-80, | ||
tag-color-magenta: colors.$pink-10, | ||
tag-hover-magenta: colors.$pink-70, | ||
tag-background-purple: colors.$violet-60, | ||
tag-color-purple: colors.$violet-10, | ||
tag-hover-purple: colors.$violet-50, | ||
tag-background-red: colors.$red-80, | ||
tag-color-red: colors.$red-10, | ||
tag-hover-red: colors.$red-70, | ||
tag-background-teal: colors.$teal-90, | ||
tag-color-teal: colors.$teal-10, | ||
tag-hover-teal: colors.$teal-80, | ||
tag-background-gray: colors.$gray-70, | ||
tag-color-gray: colors.$gray-10, | ||
tag-hover-gray: colors.$gray-65, | ||
); |
This file contains 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,19 @@ | ||
@use './colors.scss' as colors; | ||
|
||
$light-button-token-overrides: ( | ||
button-primary: colors.$blue-60, | ||
button-primary-hover: colors.$blue-65, | ||
button-primary-active: colors.$blue-80, | ||
button-secondary: colors.$gray-80, | ||
button-secondary-hover: colors.$gray-75, | ||
button-secondary-active: colors.$gray-70, | ||
button-tertiary: colors.$blue-70, | ||
button-tertiary-hover: colors.$blue-75, | ||
button-tertiary-active: colors.$blue-80, | ||
button-danger-primary: colors.$red-60, | ||
button-danger-secondary: colors.$red-70, | ||
button-danger-hover: colors.$red-70, | ||
button-danger-active: colors.$red-80, | ||
button-separator: colors.$gray-20, | ||
button-disabled: colors.$gray-30, | ||
); |
This file contains 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,16 @@ | ||
@use './colors.scss' as colors; | ||
|
||
$light-notification-token-overrides: ( | ||
notification-background-info: colors.$blue-10, | ||
notification-background-success: colors.$green-10, | ||
notification-background-warning: colors.$yellow-10, | ||
notification-background-error: colors.$red-10, | ||
notification-border-info: rgba(colors.$blue-60, 0.40), | ||
notification-border-success: rgba(colors.$green-60, 0.40), | ||
notification-border-warning: rgba(colors.$yellow-60, 0.40), | ||
notification-border-error: rgba(colors.$red-60, 0.40), | ||
notification-action-hover: colors.$white, | ||
notification-action-tertiary-inverse: colors.$white, | ||
notification-action-tertiary-inverse-text: colors.$gray-100, | ||
notification-action-tertiary-hover: colors.$gray-10, | ||
); |
This file contains 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,30 @@ | ||
@use './colors.scss' as colors; | ||
|
||
/// Carbon doesn't have native pink and violet tags, | ||
/// so we override the magenta and purple tokens instead | ||
$light-tag-token-overrides: ( | ||
tag-background-blue: colors.$blue-10, | ||
tag-color-blue: colors.$blue-80, | ||
tag-hover-blue: colors.$blue-15, | ||
tag-background-cyan: colors.$cyan-20, | ||
tag-color-cyan: colors.$cyan-100, | ||
tag-hover-cyan: colors.$cyan-30, | ||
tag-background-green: colors.$green-10, | ||
tag-color-green: colors.$green-90, | ||
tag-hover-green: colors.$green-20, | ||
tag-background-magenta: colors.$pink-10, | ||
tag-color-magenta: colors.$pink-80, | ||
tag-hover-magenta: colors.$pink-20, | ||
tag-background-purple: colors.$violet-10, | ||
tag-color-purple: colors.$violet-80, | ||
tag-hover-purple: colors.$violet-20, | ||
tag-background-red: colors.$red-20, | ||
tag-color-red: colors.$red-80, | ||
tag-hover-red: colors.$red-30, | ||
tag-background-teal: colors.$teal-20, | ||
tag-color-teal: colors.$teal-90, | ||
tag-hover-teal: colors.$teal-30, | ||
tag-background-gray: colors.$gray-20, | ||
tag-color-gray: colors.$gray-100, | ||
tag-hover-gray: colors.$gray-25, | ||
); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.