Skip to content

Commit 23202fa

Browse files
committed
feat(color): add new color scheme
- cyan (default), nord, orange, teal Close #40
1 parent 3f77b90 commit 23202fa

19 files changed

+106
-14
lines changed

README.md

+29-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ To build the theme or customize it with your preferences you must have **Node**,
5858
1. Open your command-line and navigate to your projects folder
5959
2. Clone this repo locally: `git clone https://github.com/adorade/boodark .`
6060
3. Install project dependecies: `yarn install`
61-
4. Do any modifications you want
61+
4. Do any modifications you want (eg. change color scheme)
6262
5. Compile `scss` files to `css`
6363

6464
```sh
@@ -70,6 +70,34 @@ To build the theme or customize it with your preferences you must have **Node**,
7070

7171
6. Theme files are in `themes/boodark`.
7272

73+
## Color Scheme
74+
75+
BooDark has several color schemes: _cyan_ (default), _teal_, _nord_ and _orange_. There is currently no way to change the color scheme in GUI.
76+
77+
**How to change color scheme?**
78+
79+
Option 1. Edit `scss/_variables.scss` (see [Building](#building))
80+
81+
```scss
82+
// Theme color scheme
83+
// Values: "cyan", "teal", "nord", "orange"
84+
// Default: "cyan"
85+
// Set this value for the desired color scheme
86+
// Change cyan
87+
$color-scheme: cyan !default;
88+
// to nord
89+
$color-scheme: nord !default;
90+
91+
// then run `yarn run build`
92+
```
93+
94+
Option 2. Replace the CSS files. For example:
95+
96+
```sh
97+
mv themes/boodark/css/theme.css themes/boodark/css/theme-cyan.css
98+
mv themes/boodark/css/theme-nord.css themes/boodark/css/theme.css
99+
```
100+
73101
## Bugs and feature requests
74102

75103
Have a bug or a feature request? Please search for existing and closed issues. If your problem or idea is not addressed yet, [please open a new issue](https://github.com/adorade/boodark/issues/new).

themes/boodark/css/theme-nord.css

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme-nord.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme-orange.css

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme-orange.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme-teal.css

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme-teal.css.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/css/theme.rtl.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

themes/boodark/screen.png

4.86 KB
Loading

themes/boodark/scss/_common.scss

+3-3
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ div#tablestatistics table {
468468

469469
.dropdown-toggle {
470470
&::after {
471-
color: $pma-cyan;
471+
color: $pma-link-color;
472472
}
473473
}
474474
}
@@ -1473,7 +1473,7 @@ input#auto_increment_opt {
14731473
background: none;
14741474

14751475
&:hover {
1476-
color: $pma-cyan;
1476+
color: $pma-link-color;
14771477
cursor: pointer;
14781478
}
14791479
}
@@ -1713,7 +1713,7 @@ table.show_create {
17131713
background: rgba($pma-body-bg, .8);
17141714
height: 100%;
17151715
z-index: 999;
1716-
color: $pma-cyan;
1716+
color: $pma-link-color;
17171717
font-size: 30pt;
17181718
text-align: center;
17191719
padding-top: 20%;

themes/boodark/scss/_icons.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// Icons
44

55
// Icon Colors
6-
$svg-color: $pma-link-color; // #0dcaf0, $pma-cyan
6+
$svg-color: $pma-link-color; // #0dcaf0, default color scheme: cyan
77
$disable-color: $pma-disable-color; // #adb5bd
88
$ajax-color: $pma-body-color; // #fff
99
$green-color: $pma-green; // #198754

themes/boodark/scss/_list-group.scss

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// List group
2+
3+
#li_select_theme {
4+
form::after {
5+
padding-top: 0.325rem;
6+
padding-left: calc(var(--bs-gutter-x) * .5);
7+
content: "Scheme: #{$color-scheme} / Version: #{$pma-theme-version}";
8+
color: $pma-link-color;
9+
10+
@include media-breakpoint-up(lg) {
11+
padding-top: 0;
12+
}
13+
}
14+
}

themes/boodark/scss/_variables.scss

+23-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// Variables
33
// =============================================================================
44

5+
// Theme version
6+
$pma-theme-version: "1.0.4-dev";
7+
58
// PMA color system
69
// -----------------------------------------------------------------------------
710
$white: #fff;
@@ -34,6 +37,7 @@ $pma-yellow: #ffc107;
3437
$pma-green: #198754;
3538
$pma-teal: #20c997;
3639
$pma-cyan: #0dcaf0;
40+
$pma-nord: #88c0d0;
3741

3842
// Theme Colors
3943
$pma-theme-colors: (
@@ -57,9 +61,25 @@ $pma-theme-colors: (
5761
"yellow": $pma-yellow,
5862
"green": $pma-green,
5963
"teal": $pma-teal,
60-
"cyan": $pma-cyan
64+
"cyan": $pma-cyan,
65+
"nord": $pma-nord
6166
);
6267

68+
// Theme color scheme
69+
// Values: "cyan", "teal", "nord", "orange"
70+
// Default: "cyan"
71+
// Set this value for the desired color scheme
72+
$color-scheme: cyan !default;
73+
$pma-color-scheme: $pma-cyan;
74+
75+
@if $color-scheme == teal {
76+
$pma-color-scheme: $pma-teal;
77+
} @else if $color-scheme == nord {
78+
$pma-color-scheme: $pma-nord;
79+
} @else if $color-scheme == orange {
80+
$pma-color-scheme: $pma-orange;
81+
}
82+
6383
// PMA Base Style
6484
// -----------------------------------------------------------------------------
6585
$pma-body-color: $white;
@@ -76,8 +96,8 @@ $pma-fieldset-bg: $pma-gray-600;
7696
$pma-border-color: $pma-gray-600;
7797
$pma-disable-color: $pma-gray-500;
7898
$pma-cond-border-color: $black;
79-
$pma-button-color: $pma-cyan;
80-
$pma-link-color: $pma-cyan;
99+
$pma-button-color: $pma-color-scheme;
100+
$pma-link-color: $pma-color-scheme;
81101
$pma-link-hover-color: $pma-red;
82102
$pma-custom-color: $pma-orange;
83103

themes/boodark/scss/theme-nord.scss

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// stylelint-disable no-invalid-position-at-import-rule
2+
// Theme: boodark - color scheme nord
3+
4+
$color-scheme: nord;
5+
6+
@import "theme";

themes/boodark/scss/theme-orange.scss

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// stylelint-disable no-invalid-position-at-import-rule
2+
// Theme: boodark - color scheme orange
3+
4+
$color-scheme: orange;
5+
6+
@import "theme";

themes/boodark/scss/theme-teal.scss

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// stylelint-disable no-invalid-position-at-import-rule
2+
// Theme: boodark - color scheme teal
3+
4+
$color-scheme: teal;
5+
6+
@import "theme";

themes/boodark/scss/theme.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@import "breadcrumb";
2828
// @import "pagination";
2929
// @import "alert";
30-
// @import "list-group";
30+
@import "list-group";
3131
@import "modal";
3232
@import "console";
3333
@import "settings";

0 commit comments

Comments
 (0)