Skip to content
This repository was archived by the owner on Feb 4, 2026. It is now read-only.

Commit 9a26ca9

Browse files
authored
feat: preset (#266)
2 parents 99a30ce + 34f113b commit 9a26ca9

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

layout/_partial/head.ejs

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,18 @@ if (is_archive()){
2929

3030
<%- css_auto_version('lib/iconfont/iconfont.css') %>
3131
<% if (theme.iconlib) { %>
32-
<link rel="stylesheet" href="<%= theme.iconlib %>">
32+
<link rel="stylesheet" href="<%= theme.iconlib %>">
3333
<% } %>
3434
<%- css_auto_version('css/style') %>
3535

36+
<% if (theme.preset) { %>
37+
<%- css_auto_version('preset/'theme.preset) %>
38+
<% } %>
39+
3640
<% if (theme.customStyles) { %>
37-
<% theme.customStyles.forEach(function(custom){ %>
38-
<%- css_auto_version('custom.css') %>
39-
<% }) %>
41+
<% theme.customStyles.forEach(function(custom){ %>
42+
<%- css_auto_version('custom.css') %>
43+
<% }) %>
4044
<% } %>
4145

4246
<%- js([
@@ -47,7 +51,9 @@ if (is_archive()){
4751
<%- js_auto_version('js/app') %>
4852

4953
<% if (theme.copyText) { %>
50-
<script>var copyTip = "<%- theme.copyText %>"</script>
51-
<% } %>
54+
<script>
55+
var copyTip = "<%- theme.copyText %>"
56+
</script>
57+
<% } %>
5258

53-
<%- theme.slotHead %>
59+
<%- theme.slotHead %>

source/preset/plain.styl

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
:root {
2+
--gutter: 24px;
3+
--radius: 13px;
4+
--color-primary: #000;
5+
--color2: #000;
6+
--color3: #000;
7+
--color4: #000;
8+
--color5: #000;
9+
--color6: #000;
10+
--color7: #000;
11+
--color-primary-bg: #eee;
12+
--color2-bg: #eee;
13+
--color3-bg: #eee;
14+
--color4-bg: #eee;
15+
--color5-bg: #eee;
16+
--color6-bg: #eee;
17+
--color7-bg: #eee;
18+
--color-shadow: #eee;
19+
}

0 commit comments

Comments
 (0)