Skip to content

Commit 0d23bdb

Browse files
committed
Added more color customisation options to the config file
1 parent f5ec320 commit 0d23bdb

File tree

4 files changed

+33
-12
lines changed

4 files changed

+33
-12
lines changed

_config.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,19 @@ features :
7676
fontawesome_icon_name : # Enter Font Awesome icon name (e.g. star). Find icons on fontawesome.com/icons.
7777

7878
# Theme Settings
79-
accent_color : "#1d63ea"
80-
primary_text_color : "#000000"
81-
secondary_text_color : "#666666"
79+
body_color : "#ffffff"
80+
81+
accent_color : "#1d63ea"
82+
83+
header_title_color : "#ffffff"
84+
85+
app_title_color : "#ffffff"
86+
app_price_color : "#ffffff"
87+
app_description_color : "#ffffff"
88+
89+
feature_title_color : "#000000"
90+
feature_text_color : "#666666"
91+
footer_text_color : "#666666"
8292

8393
header_color : "#000000"
8494
header_transparency : 0.1

_sass/base.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ html {
1313

1414
body {
1515
font-size: 2rem;
16+
background-color: $body-color;
1617
}
1718

1819
h1 {

_sass/layout.scss

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ header {
6464
}
6565

6666
.logo > p {
67-
color: #fff;
67+
color: $header-title-color;
6868
display: flex;
6969
font-weight: bold;
7070
padding-bottom: 1px;
@@ -150,11 +150,11 @@ nav > ul li a:active {
150150
}
151151

152152
.appName {
153-
color: #fff;
153+
color: $app-title-color;
154154
}
155155

156156
.appPrice {
157-
color: #fff;
157+
color: $app-price-color;
158158
font-weight: normal;
159159
margin-top: 13px;
160160
}
@@ -167,7 +167,7 @@ nav > ul li a:active {
167167
}
168168

169169
.appDescription {
170-
color: #fff;
170+
color: $app-description-color;
171171
}
172172

173173
@media only screen and (max-width: 992px) {
@@ -332,11 +332,11 @@ nav > ul li a:active {
332332
}
333333

334334
.featureText > h3 {
335-
color: $primary-text-color;
335+
color: $feature-title-color;
336336
}
337337

338338
.featureText > p {
339-
color: $secondary-text-color;
339+
color: $feature-text-color;
340340
margin-top: 8px;
341341
line-height: 1.5;
342342
}
@@ -376,7 +376,7 @@ footer {
376376
}
377377

378378
.footerText {
379-
color: $secondary-text-color;
379+
color: $footer-text-color;
380380
display: block;
381381
line-height: 1.5;
382382
width: 100%;

main.scss

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,23 @@
22
# Front matter comment to ensure Jekyll properly reads file.
33
---
44

5+
$body-color: "{{ site.body_color }}";
6+
57
$header-image: "{{ site.header_image }}";
68
$device-color: "assets/{{ site.device_color }}.png";
7-
$primary-text-color: {{ site.primary_text_color }};
8-
$secondary-text-color: {{ site.secondary_text_color }};
9+
910

1011
$accent-color: {{ site.accent_color }};
1112

13+
$header-title-color: {{ site.header_title_color }};
14+
$app-title-color: {{ site.app_title_color }};
15+
$app-price-color: {{ site.app_price_color }};
16+
$app-description-color: {{ site.app_description_color }};
17+
18+
$feature-title-color: {{ site.feature_title_color }};
19+
$feature-text-color: {{ site.feature_text_color }};
20+
$footer-text-color: {{ site.footer_text_color }};
21+
1222
$header_color: {{ site.header_color }};
1323
$header_transparency: {{ site.header_transparency }};
1424

0 commit comments

Comments
 (0)