diff --git a/_includes/css/just-the-docs.scss b/_includes/css/just-the-docs.scss
new file mode 100644
index 0000000000000000000000000000000000000000..61c8c2e93b76b8fdce6dcfa9481b7870f29ec31d
--- /dev/null
+++ b/_includes/css/just-the-docs.scss
@@ -0,0 +1,3 @@
+@import "./support/support";
+@import "./color_schemes/{{ include.color_scheme }}";
+@import "./modules";
diff --git a/_sass/modules.scss b/_sass/modules.scss
index dc94a4bd35ee843644beab2d6d3ab389e91e0720..30f1f2a7f57feda5b245948e8b74873612f6ba51 100644
--- a/_sass/modules.scss
+++ b/_sass/modules.scss
@@ -17,3 +17,4 @@
 @import "./tables";
 @import "./code";
 @import "./utilities/utilities";
+@import "./custom/custom";
diff --git a/assets/css/just-the-docs-dark.scss b/assets/css/just-the-docs-dark.scss
index 8a5b8f7237790436da3aeb15bd84c4b17e7fdb70..c44bde17bfc78b43baf4e3b70dbf51beb885999c 100644
--- a/assets/css/just-the-docs-dark.scss
+++ b/assets/css/just-the-docs-dark.scss
@@ -1,6 +1,3 @@
 ---
 ---
-@import "./support/support";
-@import "./color_schemes/dark";
-@import "./modules";
-@import "./custom/custom";
\ No newline at end of file
+{% include css/just-the-docs.scss color_scheme="dark" %}
\ No newline at end of file
diff --git a/assets/css/just-the-docs-light.scss b/assets/css/just-the-docs-light.scss
index 997198e6239fb66c99ea57d104cc2cc0be42e576..a5aab8998ea0f8074dd3f20bf5385bce86f20e7a 100644
--- a/assets/css/just-the-docs-light.scss
+++ b/assets/css/just-the-docs-light.scss
@@ -1,6 +1,3 @@
 ---
 ---
-@import "./support/support";
-@import "./color_schemes/light";
-@import "./modules";
-@import "./custom/custom";
+{% include css/just-the-docs.scss color_scheme="light" %}
\ No newline at end of file