From 34f113b6abcc0d37e25566458b89c83692043ae4 Mon Sep 17 00:00:00 2001
From: Nexmoe <16796652+nexmoe@users.noreply.github.com>
Date: Sun, 19 Mar 2023 17:47:54 +0800
Subject: [PATCH] feat: preset
---
layout/_partial/head.ejs | 20 +++++++++++++-------
source/preset/plain.styl | 19 +++++++++++++++++++
2 files changed, 32 insertions(+), 7 deletions(-)
create mode 100644 source/preset/plain.styl
diff --git a/layout/_partial/head.ejs b/layout/_partial/head.ejs
index 2890948c4..38b39057e 100644
--- a/layout/_partial/head.ejs
+++ b/layout/_partial/head.ejs
@@ -29,14 +29,18 @@ if (is_archive()){
<%- css_auto_version('lib/iconfont/iconfont.css') %>
<% if (theme.iconlib) { %>
-
+
<% } %>
<%- css_auto_version('css/style') %>
+<% if (theme.preset) { %>
+<%- css_auto_version('preset/'+theme.preset) %>
+<% } %>
+
<% if (theme.customStyles) { %>
- <% theme.customStyles.forEach(function(custom){ %>
- <%- css_auto_version('custom.css') %>
- <% }) %>
+<% theme.customStyles.forEach(function(custom){ %>
+<%- css_auto_version('custom.css') %>
+<% }) %>
<% } %>
<%- js([
@@ -47,7 +51,9 @@ if (is_archive()){
<%- js_auto_version('js/app') %>
<% if (theme.copyText) { %>
-
-<% } %>
+
+<% } %>
-<%- theme.slotHead %>
+<%- theme.slotHead %>
\ No newline at end of file
diff --git a/source/preset/plain.styl b/source/preset/plain.styl
new file mode 100644
index 000000000..0009a6f66
--- /dev/null
+++ b/source/preset/plain.styl
@@ -0,0 +1,19 @@
+:root {
+ --gutter: 24px;
+ --radius: 13px;
+ --color-primary: #000;
+ --color2: #000;
+ --color3: #000;
+ --color4: #000;
+ --color5: #000;
+ --color6: #000;
+ --color7: #000;
+ --color-primary-bg: #eee;
+ --color2-bg: #eee;
+ --color3-bg: #eee;
+ --color4-bg: #eee;
+ --color5-bg: #eee;
+ --color6-bg: #eee;
+ --color7-bg: #eee;
+ --color-shadow: #eee;
+}
\ No newline at end of file