Skip to content

Commit

Permalink
feat: update styling
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobCoffee committed Nov 4, 2023
1 parent 2404340 commit 09d6313
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
21 changes: 16 additions & 5 deletions litestar_sphinx_theme/style.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
@tailwind components;
@tailwind utilities;

:root {
--litestar-blue: #202235;
--litestar-gold: #EDB641;
--litestar-yellow: #FFD480;
--litestar-gray: #DCDFE4;
--litestar-light: #ffffff;
--litestar-dark: #202020;
}

[aria-expanded="true"] .menu-state-indicator {
transform: rotate(-180deg);
Expand All @@ -10,8 +18,6 @@
transition: transform .2s ease;
}



table.docutils {
clear: left;
float: left;
Expand All @@ -21,7 +27,6 @@ table.docutils {
/* theme customization */

html[data-theme="dark"] {
--litestar-gray: #DCDFE4;
--color-background-primary: #18181b;
--color-background-secondary: #27272a;
--pst-color-on-background: #27272a;
Expand All @@ -31,7 +36,6 @@ html[data-theme="dark"] {
}

html[data-theme="light"] {
--litestar-blue: #202235;
--color-background-primary: #f8f9fb;
--color-background-secondary: #fff;
--pst-color-text-muted: #111827;
Expand All @@ -41,10 +45,17 @@ html[data-theme="light"] {
html[data-theme="light"],
html[data-theme="dark"] {
--pst-color-background: var(--color-background-primary);
--litestar-gold: #EDB641;
--pst-color-primary: var(--litestar-gold);
}

html[data-theme="dark"] {
--pst-color-secondary: var(--litestar-light);
}

html[data-theme="light"] {
--pst-color-secondary: var(--litestar-dark);
}

h1, h2 {
color: unset;
}
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ module.exports = {
theme: {
extend: {
colors: {
"litestar-gold": "#EDB641"
"litestar-blue": "#202235",
"litestar-gold": "#EDB641",
"litestar-yellow": "#FFD480",
"litestar-gray": "#DCDFE4",
"litestar-light": "#ffffff",
"litestar-dark": "#202020",
}
}
}
Expand Down

0 comments on commit 09d6313

Please sign in to comment.