|
| 1 | +/* Google Fonts */ |
| 2 | +@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&family=Fira+Code:wght@400;500&display=swap'); |
| 3 | +@import url('https://fonts.googleapis.com/css2?family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap'); |
| 4 | + |
| 5 | +/* Font Family */ |
| 6 | +/* https://imfing.github.io/hextra/docs/advanced/customization/#font-family */ |
| 7 | +.content { |
| 8 | + font-family: "Google Sans"; |
| 9 | + color: #2D3A2D; |
| 10 | +} |
| 11 | + |
| 12 | +.content:is(html[class~="dark"] *) { |
| 13 | + color: #D1D5DB; |
| 14 | +} |
| 15 | + |
| 16 | +/* Inline Code Element */ |
| 17 | +/* https://imfing.github.io/hextra/docs/advanced/customization/#inline-code-element */ |
| 18 | +.content code:not(.code-block code) { |
| 19 | + color: #059669; |
| 20 | +} |
| 21 | + |
| 22 | +.content code:not(.code-block code):is(html[class~="dark"] *) { |
| 23 | + color: #4ADE80; |
| 24 | +} |
| 25 | + |
| 26 | +/* Primary Color */ |
| 27 | +/* https://imfing.github.io/hextra/docs/advanced/customization/#primary-color */ |
| 28 | +:root { |
| 29 | + --primary-hue: 161deg; |
| 30 | + --primary-saturation: 94%; |
| 31 | + --primary-lightness: 30%; |
| 32 | +} |
| 33 | + |
| 34 | +:root:is(html[class~="dark"] *) { |
| 35 | + --primary-hue: 142deg; |
| 36 | + --primary-saturation: 70%; |
| 37 | + --primary-lightness: 60%; |
| 38 | +} |
| 39 | + |
| 40 | +/* Tailwind Theme Variables */ |
| 41 | +/* https://imfing.github.io/hextra/docs/advanced/customization/#tailwind-theme-variables */ |
| 42 | +/* https://tailwindcss.com/docs/theme#default-theme-variable-reference */ |
| 43 | +@layer theme { |
| 44 | + :root { |
| 45 | + /* --hx-default-mono-font-family: "Fira Code", monospace; */ |
| 46 | + /* --hx-color-dark: #1A1A1A; |
| 47 | + --hx-color-white: #F5F5F0; */ |
| 48 | + } |
| 49 | +} |
| 50 | + |
| 51 | +/* Further Theme Customization */ |
| 52 | + |
| 53 | +/* Headings */ |
| 54 | +.content h1, |
| 55 | +.content h2, |
| 56 | +.content h3, |
| 57 | +.content h4, |
| 58 | +.content h5, |
| 59 | +.content h6 { |
| 60 | + font-family: "Plus Jakarta Sans", sans-serif; |
| 61 | + color: #1A2E1A; |
| 62 | +} |
| 63 | + |
| 64 | +.content h1:is(html[class~="dark"] *), |
| 65 | +.content h2:is(html[class~="dark"] *), |
| 66 | +.content h3:is(html[class~="dark"] *), |
| 67 | +.content h4:is(html[class~="dark"] *), |
| 68 | +.content h5:is(html[class~="dark"] *), |
| 69 | +.content h6:is(html[class~="dark"] *) { |
| 70 | + color: #F3F4F6; |
| 71 | +} |
| 72 | + |
| 73 | +/* Navbar */ |
| 74 | +.hextra-nav-container-blur { |
| 75 | + background-color: rgba(245, 245, 240, 0.85) !important; |
| 76 | + border-bottom: 1px solid #D1FAE5; |
| 77 | +} |
| 78 | + |
| 79 | +.hextra-nav-container-blur:is(html[class~="dark"] *) { |
| 80 | + background-color: rgba(26, 26, 26, 0.85) !important; |
| 81 | + border-bottom: 1px solid #262626; |
| 82 | +} |
| 83 | + |
| 84 | +/* Cards */ |
| 85 | +.hextra-card { |
| 86 | + background-color: #ffffff; |
| 87 | + border: 1px solid #D1FAE5; |
| 88 | + border-radius: 8px; |
| 89 | + transition: border-color 0.15s ease; |
| 90 | +} |
| 91 | + |
| 92 | +.hextra-card:is(html[class~="dark"] *) { |
| 93 | + background-color: #222222; |
| 94 | + border-color: #2a2a2a; |
| 95 | +} |
| 96 | + |
| 97 | +.hextra-card:hover { |
| 98 | + border-color: #059669; |
| 99 | +} |
| 100 | + |
| 101 | +.hextra-card:is(html[class~="dark"] *):hover { |
| 102 | + border-color: #4ade80; |
| 103 | +} |
| 104 | + |
| 105 | +.hextra-card-subtitle { |
| 106 | + color: #6B7280; |
| 107 | +} |
| 108 | + |
| 109 | +.hextra-card-subtitle:is(html[class~="dark"] *) { |
| 110 | + color: #6b7280; |
| 111 | +} |
| 112 | + |
| 113 | +/* ── Feature cards ────────────────────────── */ |
| 114 | +/* .hextra-feature-card { |
| 115 | + background-color: #ffffff; |
| 116 | + border: 1px solid #D1FAE5; |
| 117 | +} |
| 118 | +
|
| 119 | +html.dark .hextra-feature-card { |
| 120 | + background-color: #222222; |
| 121 | + border-color: #2a2a2a; |
| 122 | +} */ |
| 123 | + |
| 124 | +/* Footer */ |
| 125 | +.hextra-footer { |
| 126 | + background-color: #EBEBE5; |
| 127 | + border-top: 1px solid #D1FAE5; |
| 128 | +} |
| 129 | + |
| 130 | +.hextra-footer:is(html[class~="dark"] *) { |
| 131 | + background-color: #141414; |
| 132 | + border-top: 1px solid #262626; |
| 133 | +} |
0 commit comments