Skip to content

Commit

Permalink
feat: preset (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
nexmoe authored Mar 19, 2023
2 parents 99a30ce + 34f113b commit 9a26ca9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
20 changes: 13 additions & 7 deletions layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ if (is_archive()){

<%- css_auto_version('lib/iconfont/iconfont.css') %>
<% if (theme.iconlib) { %>
<link rel="stylesheet" href="<%= theme.iconlib %>">
<link rel="stylesheet" href="<%= 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([
Expand All @@ -47,7 +51,9 @@ if (is_archive()){
<%- js_auto_version('js/app') %>

<% if (theme.copyText) { %>
<script>var copyTip = "<%- theme.copyText %>"</script>
<% } %>
<script>
var copyTip = "<%- theme.copyText %>"
</script>
<% } %>

<%- theme.slotHead %>
<%- theme.slotHead %>
19 changes: 19 additions & 0 deletions source/preset/plain.styl
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 9a26ca9

Please sign in to comment.