-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(button): updated button colors and themes (#500)
- Loading branch information
1 parent
3a947c2
commit b34f12d
Showing
10 changed files
with
104 additions
and
40 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 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 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 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 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 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 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,36 @@ | ||
@import '../../../../vars/src/index.css'; | ||
|
||
@define-mixin button-site-inverted { | ||
/* core vars */ | ||
--color-dark-bg-accent: #ef3124; | ||
--color-dark-bg-neutral: #485767; | ||
--color-dark-text-primary: #fff; | ||
--color-dark-border-tertiary: #233549; | ||
|
||
/* theme */ | ||
--button-border-radius: 8px; | ||
|
||
/* primary */ | ||
--button-primary-base-bg-color: var(--color-dark-bg-accent); | ||
--button-primary-hover-bg-color: color-mod(var(--color-dark-bg-accent) tint(15%)); | ||
--button-primary-active-bg-color: color-mod(var(--color-dark-bg-accent) shade(15%)); | ||
--button-primary-disabled-bg-color: color-mod(var(--color-dark-bg-accent) alpha(30%)); | ||
|
||
/* secondary */ | ||
--button-secondary-base-bg-color: var(--color-dark-bg-neutral); | ||
--button-secondary-hover-bg-color: color-mod(var(--color-dark-bg-neutral) tint(15%)); | ||
--button-secondary-active-bg-color: color-mod(var(--color-dark-bg-neutral) shade(15%)); | ||
--button-secondary-disabled-bg-color: color-mod(var(--color-dark-bg-neutral) alpha(30%)); | ||
--button-secondary-color: var(--color-dark-text-primary); | ||
--button-secondary-disabled-color: color-mod(var(--color-dark-text-primary) alpha(30%)); | ||
|
||
/* outlined */ | ||
--button-outlined-hover-bg-color: rgba(255, 255, 255, 0.15); | ||
--button-outlined-active-bg-color: rgba(0, 0, 0, 0.15); | ||
--button-outlined-border-color: var(--color-dark-border-tertiary); | ||
--button-outlined-disabled-border-color: color-mod( | ||
var(--color-dark-border-tertiary) alpha(30%) | ||
); | ||
--button-outlined-color: var(--color-dark-text-primary); | ||
--button-outlined-disabled-color: color-mod(var(--color-dark-text-primary) alpha(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,6 @@ | ||
@import '../../../../vars/src/index.css'; | ||
|
||
@define-mixin button-site { | ||
/* theme */ | ||
--button-border-radius: 8px; | ||
} |
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,5 @@ | ||
@import './button/site-inverted.css'; | ||
|
||
@define-mixin theme-site-inverted { | ||
@mixin button-site-inverted; | ||
} |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
@import './button/site.css'; | ||
@import './tabs/site.css'; | ||
@import './form-control/site.css'; | ||
|
||
@define-mixin theme-site { | ||
@mixin button-site; | ||
@mixin form-control-site; | ||
@mixin tabs-site; | ||
} |