This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(css): create a Theme to override Bootstrap colors
Add scss to overwrite default Bootstrap colors. Add scss to toast component to demonstrate how theme can be used. #35
- Loading branch information
1 parent
ca44203
commit 4094600
Showing
7 changed files
with
50 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$theme-colors: ( | ||
"primary": #1abc9c, | ||
"secondary": #009b9e, | ||
"success": #273647, | ||
"warning": #ffc107, | ||
"danger": #dc3545, | ||
"info": #177db8, | ||
"light": #fdfffc, | ||
"dark": #011627 | ||
); |
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,7 @@ | ||
/* Bootstrap overrides */ | ||
|
||
@import "./_variables"; | ||
|
||
/* Import bootstrap */ | ||
|
||
@import "node_modules/bootstrap/scss/bootstrap"; |
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,17 @@ | ||
@import "../../../scss/_variables"; | ||
|
||
div.Toastify__toast.Toastify__toast--error { | ||
background: map-get($theme-colors, error); | ||
} | ||
|
||
div.Toastify__toast.Toastify__toast--info { | ||
background: map-get($theme-colors, info); | ||
} | ||
|
||
div.Toastify__toast.Toastify__toast--success { | ||
background: map-get($theme-colors, success); | ||
} | ||
|
||
div.Toastify__toast.Toastify__toast--warning { | ||
background: map-get($theme-colors, warning); | ||
} |
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