From 20dd44a1e1a18545b94af688431f13cf762b1301 Mon Sep 17 00:00:00 2001 From: Sainnhe Park Date: Mon, 31 Oct 2022 12:37:56 +0800 Subject: [PATCH] Add soft-era --- build.sh | 2 +- dist/theme-soft-era.css | 1 + src/palette/soft-era.less | 32 ++++++++++++++++++++++++++++++++ src/soft-era.less | 2 ++ 4 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 dist/theme-soft-era.css create mode 100644 src/palette/soft-era.less create mode 100644 src/soft-era.less diff --git a/build.sh b/build.sh index b4f7342..f594cdd 100755 --- a/build.sh +++ b/build.sh @@ -9,6 +9,6 @@ for theme in edge gruvbox gruvbox-material everforest; do done done -for theme in nord; do +for theme in nord soft-era; do lessc -x "src/${theme}.less" > "dist/theme-${theme}.css" done diff --git a/dist/theme-soft-era.css b/dist/theme-soft-era.css new file mode 100644 index 0000000..30dddc9 --- /dev/null +++ b/dist/theme-soft-era.css @@ -0,0 +1 @@ +:root{--is-dark-theme:true;--color-primary:#aea6e1;--color-primary-contrast:#f9f5f5;--color-primary-dark-1:#aea6e1;--color-primary-dark-2:#b1a4d5;--color-primary-dark-3:#b3a1c9;--color-primary-dark-4:#b69fbd;--color-primary-dark-5:#b99db0;--color-primary-dark-6:#bb9aa4;--color-primary-dark-7:#be9898;--color-primary-light-1:#aea6e1;--color-primary-light-2:#b9b2e3;--color-primary-light-3:#c5bee5;--color-primary-light-4:#d0cae7;--color-primary-light-5:#dbd5e8;--color-primary-light-6:#e7e1ea;--color-primary-light-7:#f2edec;--color-primary-alpha-10:rgba(174,166,225,0.1);--color-primary-alpha-20:rgba(174,166,225,0.2);--color-primary-alpha-30:rgba(174,166,225,0.3);--color-primary-alpha-40:rgba(174,166,225,0.4);--color-primary-alpha-50:rgba(174,166,225,0.5);--color-primary-alpha-60:rgba(174,166,225,0.6);--color-primary-alpha-70:rgba(174,166,225,0.7);--color-primary-alpha-80:rgba(174,166,225,0.8);--color-primary-alpha-90:rgba(174,166,225,0.9);--color-secondary:#ebe6e4;--color-secondary-dark-1:#ebe6e4;--color-secondary-dark-2:#e7e0de;--color-secondary-dark-3:#e3d9d7;--color-secondary-dark-4:#e0d3d1;--color-secondary-dark-5:#dccccb;--color-secondary-dark-6:#d8c5c4;--color-secondary-dark-7:#d5bfbe;--color-secondary-dark-8:#d1b9b8;--color-secondary-dark-9:#cdb2b1;--color-secondary-dark-10:#c9acab;--color-secondary-dark-11:#c6a5a5;--color-secondary-dark-12:#c29e9e;--color-secondary-dark-13:#be9898;--color-secondary-light-1:#ebe6e4;--color-secondary-light-2:#efeae9;--color-secondary-light-3:#f2edec;--color-secondary-light-4:#f4f0f0;--color-secondary-alpha-10:rgba(235,230,228,0.1);--color-secondary-alpha-20:rgba(235,230,228,0.2);--color-secondary-alpha-30:rgba(235,230,228,0.3);--color-secondary-alpha-40:rgba(235,230,228,0.4);--color-secondary-alpha-50:rgba(235,230,228,0.5);--color-secondary-alpha-60:rgba(235,230,228,0.6);--color-secondary-alpha-70:rgba(235,230,228,0.7);--color-secondary-alpha-80:rgba(235,230,228,0.8);--color-secondary-alpha-90:rgba(235,230,228,0.9);--color-red:#f85552;--color-orange:#ec9157;--color-yellow:#dfa000;--color-olive:#96ad01;--color-green:#96ad01;--color-teal:#25b7b8;--color-blue:#75a9d9;--color-violet:#aea6e1;--color-purple:#aea6e1;--color-pink:#aea6e1;--color-brown:#ec9157;--color-grey:#dfc5c5;--color-red-light:#f85552;--color-orange-light:#ec9157;--color-yellow-light:#dfa000;--color-olive-light:#96ad01;--color-green-light:#96ad01;--color-teal-light:#25b7b8;--color-blue-light:#75a9d9;--color-violet-light:#aea6e1;--color-purple-light:#aea6e1;--color-pink-light:#aea6e1;--color-brown-light:#ec9157;--color-grey-light:#dfc5c5;--color-black:#f2edec;--color-gold:#ec9157;--color-white:#be9898;--color-diff-removed-word-bg:#f9b7af;--color-diff-added-word-bg:#d1de91;--color-diff-removed-row-bg:#fae1d7;--color-diff-moved-row-bg:#e0f0f3;--color-diff-added-row-bg:#eaf3ce;--color-diff-removed-row-border:#f99b95;--color-diff-moved-row-border:#abcde6;--color-diff-added-row-border:#c0d068;--color-diff-inactive:#f2edec;--color-error-border:#f99b95;--color-error-bg:#fae1d7;--color-error-text:#f85552;--color-success-border:#c0d068;--color-success-bg:#eaf3ce;--color-success-text:#96ad01;--color-warning-border:#ebc568;--color-warning-bg:#f6ead0;--color-warning-text:#dfa000;--color-info-border:#abcde6;--color-info-bg:#e0f0f3;--color-info-text:#75a9d9;--color-body:#f9f5f5;--color-box-header:#efeae9;--color-box-body:#f4f0f0;--color-box-body-highlight:#f2edec;--color-text-dark:#75a9d9;--color-text:#be9898;--color-text-hover:rgba(190,152,152,0.8);--color-text-light:#96ad01;--color-text-light-1:#dfc5c5;--color-text-light-2:#be9898;--color-text-light-3:#dfc5c5;--color-footer:#f4f0f0;--color-timeline:#ebe6e4;--color-input-text:#be9898;--color-input-background:#f9f5f5;--color-input-toggle-background:#f4f0f0;--color-input-border:#ebe6e4;--color-input-border-hover:#e5d6d5;--color-navbar:#f4f0f0;--color-navbar-transparent:#f4f0f0;--color-light:#f4f0f0;--color-light-mimic-enabled:rgba(0, 0, 0, calc(40 / 255 * 222 / 255 / var(--opacity-disabled)));--color-light-border:#ebe6e4;--color-hover:rgba(235,230,228,0.5);--color-active:#ffffff00;--color-menu:#f4f0f0;--color-card:#f4f0f0;--color-markup-table-row:#efeae9;--color-markup-code-block:#f9f5f5;--color-button:#efeae9;--color-code-bg:#f9f5f5;--color-code-sidebar-bg:#f4f0f0;--color-shadow:#00000060;--color-secondary-bg:#f4f0f0;--color-text-focus:#fff;--color-expand-button:#f2edec;--color-placeholder-text:#dfc5c5;--color-editor-line-highlight:#f4f0f0;--color-project-board-bg:#f9f5f5;--color-caret:var(--color-text);--color-reaction-bg:#ffffff12;--color-reaction-active-bg:var(--color-primary-alpha-40);--color-header-bar:#f4f0f0;--color-label-active-bg:#ebe6e4;--color-accent:var(--color-primary-light-1);--color-small-accent:var(--color-primary-light-5);--color-active-line:#f4f0f0;accent-color:var(--color-accent);color-scheme:dark}.chroma .nx{color:#be9898}.chroma .c,.chroma .c1,.chroma .ch{color:#dfc5c5}.chroma .k,.chroma .kc,.chroma .kd,.chroma .kn,.chroma .kp,.chroma .kr{color:#f165bd}.chroma .o,.chroma .ow{color:#aea6e1}.chroma .s,.chroma .si,.chroma .sa,.chroma .se,.chroma .sr,.chroma .s1,.chroma .s2,.chroma .nt,.chroma .cpf{color:#96ad01}.chroma .m,.chroma .mb,.chroma .mf,.chroma .mh,.chroma .mi,.chroma .mo{color:#96ad01}.chroma .kt,.chroma .nc,.chroma .nn,.chroma .nv{color:#ec9157}.chroma .nf,.chroma .nb,.chroma .na{color:#75a9d9}.chroma .bp,.chroma .cp,.chroma .ne,.chroma .nd{color:#25b7b8}.ui.primary.button,.ui.primary.buttons .button{background:#aea6e1;background-color:#aea6e1 !important;color:#f9f5f5}.ui.primary.button:hover,.ui.primary.buttons .button:hover{background:rgba(174,166,225,0.8);background-color:rgba(174,166,225,0.8) !important;color:#f9f5f5}.ui.green.buttons .button,.ui.green.button{background:#75a9d9;background-color:#75a9d9;color:#f9f5f5}.ui.green.buttons .button:hover,.ui.green.button:hover{background:rgba(117,169,217,0.8);background-color:rgba(117,169,217,0.8);color:#f9f5f5}.ui.red.labels .label,.ui.ui.ui.red.label,.ui.red.button,.ui.red.buttons .button{background:#f85552;background-color:#f85552;color:#f9f5f5}.ui.red.labels .label:hover,.ui.ui.ui.red.label:hover,.ui.red.button:hover,.ui.red.buttons .button:hover{background:rgba(248,85,82,0.8);background-color:rgba(248,85,82,0.8);color:#f9f5f5}.ui.labeled.button.disabled>.button,.ui.basic.buttons .button,.ui.basic.button{color:#75a9d9}.ui.labeled.button.disabled>.button:hover,.ui.basic.buttons .button:hover,.ui.basic.button:hover{color:#75a9d9}.repo-title{color:#75a9d9}.repo-buttons button[disabled]~.label,.repo-buttons .ui.labeled.button.disabled>.label{color:#aea6e1}.ui.basic.labels .label,.ui.basic.label{color:#aea6e1}.repository .ui.segment.sub-menu .list .item a:hover,.ui.tabular.menu .item:hover{color:var(--color-text-hover)}*{scrollbar-color:#75a9d9 transparent !important}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-thumb{box-shadow:inset 0 0 0 6px #75a9d9 !important;border:2px solid transparent;border-radius:5px !important}::-webkit-scrollbar-thumb:window-inactive{box-shadow:inset 0 0 0 6px #75a9d9 !important}::-webkit-scrollbar-thumb:hover{box-shadow:inset 0 0 0 6px #75a9d9 !important}::-webkit-scrollbar-corner{background:transparent} \ No newline at end of file diff --git a/src/palette/soft-era.less b/src/palette/soft-era.less new file mode 100644 index 0000000..b186c8c --- /dev/null +++ b/src/palette/soft-era.less @@ -0,0 +1,32 @@ +@primary: #aea6e1; // primary color used in main texts +@secondary: #75a9d9; // secondary color used in some texts and text based buttons +@tertiary: #96ad01; // tertiary color used in other colored texts +@fg: #be9898; +@bg0: #f9f5f5; +@bg1: #f4f0f0; +@bg2: #f2edec; +@bg3: #efeae9; +@bg4: #ebe6e4; +@red: #f85552; +@orange: #ec9157; +@yellow: #dfa000; +@green: #96ad01; +@cyan: #25b7b8; +@blue: #75a9d9; +@purple: #aea6e1; +@pink: #f165bd; +@grey: #dfc5c5; +@red-bg: #fae1d7; +@green-bg: #eaf3ce; +@blue-bg: #e0f0f3; +@yellow-bg: #f6ead0; +@button1: #aea6e1; +@button2: #75a9d9; +@button-red: #f85552; +@key: @pink; +@operator: @purple; +@string: @green; +@value: @green; +@type: @orange; +@function: @blue; +@special: @cyan; diff --git a/src/soft-era.less b/src/soft-era.less new file mode 100644 index 0000000..6689ff7 --- /dev/null +++ b/src/soft-era.less @@ -0,0 +1,2 @@ +@import "palette/soft-era"; +@import "template/index";