mirror of
https://github.com/cotes2020/jekyll-theme-chirpy.git
synced 2026-06-26 01:38:44 +00:00
feat(theme): persist user theme preferences (#2756)
- Migrate theme persistence from `sessionStorage` to `localStorage` - Rename theme HTML attribute to `data-bs-theme` for Bootstrap compatibility - Trim and compile CSS according to the chosen theme mode
This commit is contained in:
@@ -30,6 +30,11 @@
|
||||
rgb(58 55 55 / 40%) 50%,
|
||||
rgb(255 255 255 / 0%) 100%
|
||||
);
|
||||
--menu-bg: rgb(30 30 30);
|
||||
--menu-border-color: rgb(77 77 77 / 60%);
|
||||
--menu-shadow-color: rgb(4 4 4 / 42%);
|
||||
--menu-active-color: rgb(240 248 255 / 63%);
|
||||
--menu-highlight-bg: rgb(90 91 92 / 12%);
|
||||
|
||||
/* Sidebar */
|
||||
--site-title-color: #717070;
|
||||
@@ -67,8 +72,8 @@
|
||||
--btn-share-hover-color: #bfc1ca;
|
||||
--card-bg: #1e1e1e;
|
||||
--card-hover-bg: #464d51;
|
||||
--card-shadow: rgb(21 21 21 / 72%) 0 6px 18px 0,
|
||||
rgb(137 135 135 / 24%) 0 0 0 1px;
|
||||
--card-shadow:
|
||||
rgb(21 21 21 / 72%) 0 6px 18px 0, rgb(137 135 135 / 24%) 0 0 0 1px;
|
||||
--kbd-wrap-color: #6a6a6a;
|
||||
--kbd-text-color: #d3d3d3;
|
||||
--kbd-bg-color: #242424;
|
||||
|
||||
@@ -27,6 +27,11 @@
|
||||
rgb(232 230 230 / 100%) 50%,
|
||||
rgb(250 250 250 / 0%) 100%
|
||||
);
|
||||
--menu-bg: white;
|
||||
--menu-border-color: white;
|
||||
--menu-shadow-color: rgb(0 0 0 / 16%);
|
||||
--menu-active-color: rgb(91 91 91);
|
||||
--menu-highlight-bg: rgb(243 244 245 / 50%);
|
||||
|
||||
/* Sidebar */
|
||||
--site-title-color: rgb(113 113 113);
|
||||
@@ -59,8 +64,8 @@
|
||||
--btn-share-hover-color: #0d6efd;
|
||||
--card-bg: white;
|
||||
--card-hover-bg: #e2e2e2;
|
||||
--card-shadow: rgb(104 104 104 / 5%) 0 2px 6px 0,
|
||||
rgb(211 209 209 / 15%) 0 0 0 1px;
|
||||
--card-shadow:
|
||||
rgb(104 104 104 / 5%) 0 2px 6px 0, rgb(211 209 209 / 15%) 0 0 0 1px;
|
||||
--footnote-target-bg: lightcyan;
|
||||
--tb-odd-bg: #fbfcfd;
|
||||
--tb-border-color: #eaeaea;
|
||||
|
||||
Reference in New Issue
Block a user