| 1 |
@import "tailwindcss"; |
| 2 |
@plugin "@tailwindcss/typography"; |
| 3 |
@variant dark (&:where(.dark, .dark *)); |
| 4 |
|
| 5 |
@import "components/all.css"; |
| 6 |
|
| 7 |
/* TailwindCSS ignores files in .gitignore, so make it explicit. */ |
| 8 |
@source "hugo_stats.json"; |
| 9 |
|
| 10 |
@theme { |
| 11 |
/* Breakpoints. */ |
| 12 |
--breakpoint-sm: 40rem; |
| 13 |
--breakpoint-md: 48rem; |
| 14 |
--breakpoint-lg: 68rem; /* Default 64rem; */ |
| 15 |
--breakpoint-xl: 80rem; |
| 16 |
--breakpoint-2xl: 96rem; |
| 17 |
|
| 18 |
/* Colors. */ |
| 19 |
--color-primary: var(--color-blue-600); |
| 20 |
--color-dark: #000; |
| 21 |
--color-light: var(--color-gray-50); |
| 22 |
--color-accent: var(--color-orange-500); |
| 23 |
--color-accent-light: var(--color-pink-500); |
| 24 |
--color-accent-dark: var(--color-green-500); |
| 25 |
|
| 26 |
/* https://www.tints.dev/blue/0594CB */ |
| 27 |
--color-blue-50: #e1f6fe; |
| 28 |
--color-blue-100: #c3edfe; |
| 29 |
--color-blue-200: #88dbfc; |
| 30 |
--color-blue-300: #4cc9fb; |
| 31 |
--color-blue-400: #15b9f9; |
| 32 |
--color-blue-500: #0594cb; |
| 33 |
--color-blue-600: #0477a4; |
| 34 |
--color-blue-700: #035677; |
| 35 |
--color-blue-800: #023a50; |
| 36 |
--color-blue-900: #011d28; |
| 37 |
--color-blue-950: #000e14; |
| 38 |
|
| 39 |
/* https://www.tints.dev/orange/EBB951 */ |
| 40 |
--color-orange-50: #fdf8ed; |
| 41 |
--color-orange-100: #fbf1da; |
| 42 |
--color-orange-200: #f7e4ba; |
| 43 |
--color-orange-300: #f3d596; |
| 44 |
--color-orange-400: #efc976; |
| 45 |
--color-orange-500: #ebb951; |
| 46 |
--color-orange-600: #e5a51a; |
| 47 |
--color-orange-700: #a97a13; |
| 48 |
--color-orange-800: #72520d; |
| 49 |
--color-orange-900: #372806; |
| 50 |
--color-orange-950: #1b1403; |
| 51 |
|
| 52 |
/* https://www.tints.dev/pink/FF4088 */ |
| 53 |
--color-pink-50: #ffebf2; |
| 54 |
--color-pink-100: #ffdbe9; |
| 55 |
--color-pink-200: #ffb3d0; |
| 56 |
--color-pink-300: #ff8fba; |
| 57 |
--color-pink-400: #ff66a1; |
| 58 |
--color-pink-500: #ff4088; |
| 59 |
--color-pink-600: #ff0062; |
| 60 |
--color-pink-700: #c2004a; |
| 61 |
--color-pink-800: #800031; |
| 62 |
--color-pink-900: #420019; |
| 63 |
--color-pink-950: #1f000c; |
| 64 |
|
| 65 |
/* https://www.tints.dev/green/33BA91 */ |
| 66 |
--color-green-50: #ebfaf5; |
| 67 |
--color-green-100: #d3f3e9; |
| 68 |
--color-green-200: #abe8d6; |
| 69 |
--color-green-300: #7fdcc0; |
| 70 |
--color-green-400: #53d0aa; |
| 71 |
--color-green-500: #33ba91; |
| 72 |
--color-green-600: #299474; |
| 73 |
--color-green-700: #1f7058; |
| 74 |
--color-green-800: #154c3b; |
| 75 |
--color-green-900: #0a241c; |
| 76 |
--color-green-950: #051410; |
| 77 |
|
| 78 |
/* Fonts. */ |
| 79 |
--font-sans: |
| 80 |
"Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", |
| 81 |
Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", |
| 82 |
"Segoe UI Symbol", "Noto Color Emoji"; |
| 83 |
} |
| 84 |
|
| 85 |
html { |
| 86 |
scroll-padding-top: 100px; |
| 87 |
} |
| 88 |
|
| 89 |
body { |
| 90 |
@apply antialiased font-sans text-black dark:text-gray-100; |
| 91 |
} |
| 92 |
|
| 93 |
.p-safe-area-x { |
| 94 |
padding-left: env(safe-area-inset-left); |
| 95 |
padding-right: env(safe-area-inset-right); |
| 96 |
} |
| 97 |
|
| 98 |
.p-safe-area-y { |
| 99 |
padding-top: env(safe-area-inset-top); |
| 100 |
padding-bottom: env(safe-area-inset-bottom); |
| 101 |
} |
| 102 |
|
| 103 |
.px-main { |
| 104 |
padding-left: max(env(safe-area-inset-left), 1rem); |
| 105 |
padding-right: max(env(safe-area-inset-right), 1rem); |
| 106 |
} |
| 107 |
|
| 108 |
@media (min-width: theme('--breakpoint-md')) { |
| 109 |
.px-main { |
| 110 |
padding-left: max(env(safe-area-inset-left), 2rem); |
| 111 |
padding-right: max(env(safe-area-inset-right), 2rem); |
| 112 |
} |
| 113 |
} |
| 114 |
|
| 115 |
@media (min-width: theme('--breakpoint-lg')) { |
| 116 |
.px-main { |
| 117 |
padding-left: max(env(safe-area-inset-left), 3rem); |
| 118 |
padding-right: max(env(safe-area-inset-right), 3rem); |
| 119 |
} |
| 120 |
} |
| 121 |
|
| 122 |
/* Algolia DocSearch */ |
| 123 |
.algolia-docsearch-suggestion--highlight { |
| 124 |
color: var(--color-primary); |
| 125 |
} |
| 126 |
|
| 127 |
/* Footnotes */ |
| 128 |
.footnote-backref, |
| 129 |
.footnote-ref { |
| 130 |
text-decoration: none; |
| 131 |
padding-left: .0625em; |
| 132 |
} |
| 133 |
|
| 134 |
/* Code spans within paragraphs, tables cells, list items, etc. */ |
| 135 |
:not(pre) > code { |
| 136 |
white-space: nowrap; |
| 137 |
} |
| 138 |
|
| 139 |
/* Utility class for tables to prevent word wrapping in the first column. */ |
| 140 |
.no-wrap-first-col td:first-child, |
| 141 |
.no-wrap-first-col th:first-child { |
| 142 |
white-space: nowrap; |
| 143 |
} |