diff options
Diffstat (limited to 'themes/modern-dark-catppuccin.css')
| -rw-r--r-- | themes/modern-dark-catppuccin.css | 679 |
1 files changed, 0 insertions, 679 deletions
diff --git a/themes/modern-dark-catppuccin.css b/themes/modern-dark-catppuccin.css deleted file mode 100644 index afd7f59..0000000 --- a/themes/modern-dark-catppuccin.css +++ /dev/null @@ -1,679 +0,0 @@ -@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Mono:wght@300;400;500&family=Syne:wght@400;600;700;800&display=swap"); - -/* ─── Catppuccin Mocha Palette ──────────────────────────── */ -:root { - /* Base layers */ - --crust: #11111b; - --mantle: #181825; - --base: #1e1e2e; - --surface-0: #313244; - --surface-1: #45475a; - --surface-2: #585b70; - - /* Overlays */ - --overlay-0: #6c7086; - --overlay-1: #7f849c; - --overlay-2: #9399b2; - - /* Text */ - --subtext-0: #a6adc8; - --subtext-1: #bac2de; - --text-full: #cdd6f4; - - /* Accent spectrum — USE ALL OF THEM */ - --rosewater: #f5e0dc; - --flamingo: #f2cdcd; - --pink: #f5c2e7; - --mauve: #cba6f7; /* h1 gradient anchor */ - --red: #f38ba8; - --maroon: #eba0ac; - --peach: #fab387; /* inline code */ - --yellow: #f9e2af; /* h3 */ - --green: #a6e3a1; /* success / ul bullets */ - --teal: #94e2d5; /* h2 */ - --sky: #89dceb; /* links */ - --sapphire: #74c7ec; /* primary accent */ - --blue: #89b4fa; /* accent-2, progress */ - --lavender: #b4befe; /* h1 gradient end */ - - /* Semantic mappings */ - --bg: var(--base); - --surface: var(--mantle); - --surface-2: var(--crust); - --border: var(--surface-0); - --border-soft: rgba(180, 190, 254, 0.07); - --text: var(--text-full); - --text-dim: var(--overlay-1); - --text-muted: var(--overlay-0); - --accent: var(--sapphire); - --accent-2: var(--blue); - --accent-dim: rgba(116, 199, 236, 0.1); - --accent-glow: rgba(116, 199, 236, 0.12); - - --serif: "Instrument Serif", Georgia, serif; - --sans: "Syne", system-ui, sans-serif; - --mono: "DM Mono", ui-monospace, monospace; - --radius: 4px; - --max-w: 720px; - --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1); -} - -/* ─── Reset & Base ──────────────────────────────────────── */ -*, -*::before, -*::after { - box-sizing: border-box; -} - -html { - scroll-behavior: smooth; -} - -body { - margin: 0; - padding: 4rem 2rem 6rem; - background-color: var(--base); - background-image: - radial-gradient( - ellipse 80% 50% at 50% -20%, - rgba(203, 166, 247, 0.07) 0%, - transparent 60% - ), - url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23cba6f7' fill-opacity='0.018'%3E%3Ccircle cx='1' cy='1' r='1'/%3E%3C/g%3E%3C/svg%3E"); - color: var(--text-full); - font-family: var(--serif); - line-height: 1.8; - font-size: 19px; - -webkit-font-smoothing: antialiased; - text-rendering: optimizeLegibility; -} - -body > * { - max-width: var(--max-w); - margin-left: auto; - margin-right: auto; -} - -/* ─── Headings ──────────────────────────────────────────── */ -h1, -h2, -h3, -h4 { - font-family: var(--sans); - font-weight: 700; - line-height: 1.15; - letter-spacing: -0.02em; - scroll-margin-top: 1.5rem; -} - -/* h1 — mauve → lavender gradient */ -h1 { - font-size: clamp(2.2rem, 5vw, 3rem); - font-weight: 800; - margin-bottom: 1.2rem; - background: linear-gradient( - 135deg, - var(--text-full) 30%, - var(--mauve) 65%, - var(--lavender) 100% - ); - -webkit-background-clip: text; - -webkit-text-fill-color: transparent; - background-clip: text; -} - -/* h2 — teal */ -h2 { - font-size: 1.5rem; - margin-top: 3.5rem; - padding-top: 2rem; - border-top: 1px solid var(--surface-0); - color: var(--teal); -} - -/* h3 — yellow */ -h3 { - font-size: 1.15rem; - font-weight: 600; - margin-top: 2.2rem; - color: var(--yellow); -} - -/* h4 — peach */ -h4 { - font-size: 1rem; - font-weight: 600; - margin-top: 1.8rem; - color: var(--peach); -} - -/* ─── Paragraphs ────────────────────────────────────────── */ -p { - margin: 1.4rem 0; - color: var(--subtext-1); - font-size: 1.2rem; -} - -/* Drop cap — mauve */ -h1 + p::first-letter { - font-family: var(--serif); - font-size: 3.6rem; - font-style: italic; - float: left; - line-height: 0.82; - margin: 0.08em 0.1em 0 0; - color: var(--mauve); -} - -/* ─── Article Meta / Byline ─────────────────────────────── */ -.meta, -time, -.byline { - display: block; - font-family: var(--mono); - font-size: 0.75rem; - letter-spacing: 0.08em; - text-transform: uppercase; - color: var(--overlay-1); - margin-bottom: 2.5rem; -} - -/* ─── Links — sky ───────────────────────────────────────── */ -a { - color: var(--sky); - text-decoration: none; - border-bottom: 1px solid var(--surface-0); - transition: - color var(--transition), - border-color var(--transition); -} - -a:hover { - color: var(--sapphire); - border-bottom-color: var(--sapphire); -} - -/* ─── Lists ─────────────────────────────────────────────── */ -ul, -ol { - margin: 1.4rem 0; - padding-left: 0; - list-style: none; -} - -ul li, -ol li { - position: relative; - padding-left: 1.5rem; - margin: 0.55rem 0; - color: var(--subtext-1); -} - -/* ul bullets — green */ -ul li::before { - content: "–"; - position: absolute; - left: 0; - color: var(--green); - font-family: var(--mono); -} - -ol { - counter-reset: ol-counter; -} - -ol li { - counter-increment: ol-counter; -} - -/* ol numbers — blue */ -ol li::before { - content: counter(ol-counter, decimal-leading-zero); - position: absolute; - left: 0; - font-family: var(--mono); - font-size: 0.72rem; - color: var(--blue); - top: 0.22em; -} - -/* ─── Horizontal Rule ───────────────────────────────────── */ -hr { - border: none; - margin: 3.5rem auto; - height: 1px; - background: linear-gradient( - 90deg, - transparent, - var(--surface-0) 20%, - var(--surface-0) 80%, - transparent - ); - position: relative; -} - -hr::after { - content: "✦"; - position: absolute; - left: 50%; - top: 50%; - transform: translate(-50%, -50%); - font-size: 0.65rem; - color: var(--surface-2); - background: var(--base); - padding: 0 0.5rem; -} - -/* ─── Blockquote — flamingo / pink ──────────────────────── */ -blockquote { - margin: 2.5rem 0; - padding: 1.5rem 1.8rem; - background: var(--mantle); - border-left: 2px solid var(--pink); - border-radius: 0 var(--radius) var(--radius) 0; - position: relative; -} - -blockquote p { - margin: 0; - font-style: italic; - font-size: 1.1rem; - color: var(--flamingo); -} - -blockquote cite { - display: block; - margin-top: 0.8rem; - font-family: var(--mono); - font-size: 0.72rem; - letter-spacing: 0.06em; - color: var(--overlay-0); - font-style: normal; -} - -/* ─── Tables ───────────────────────────────────────────── */ -table { - width: 100%; - border-collapse: collapse; - margin: 2rem 0; - font-size: 0.9rem; - font-family: var(--mono); - background: var(--mantle); - border-radius: var(--radius); - overflow: hidden; - border: 1px solid var(--surface-0); -} - -thead { - background: var(--crust); -} - -/* th — lavender */ -th { - text-align: left; - padding: 0.75rem 1rem; - font-size: 0.7rem; - letter-spacing: 0.1em; - text-transform: uppercase; - color: var(--lavender); - border-bottom: 1px solid var(--surface-0); - font-weight: 500; -} - -td { - padding: 0.65rem 1rem; - border-bottom: 1px solid var(--border-soft); - color: var(--subtext-0); -} - -tr:last-child td { - border-bottom: none; -} - -tr:hover td { - background: rgba(180, 190, 254, 0.04); -} - -/* ─── Inline Code — peach ───────────────────────────────── */ -code { - font-family: var(--mono); - font-size: 0.83rem; - background: var(--crust); - color: var(--peach); - padding: 0.18rem 0.4rem; - border-radius: var(--radius); - border: 1px solid var(--surface-0); - word-break: break-word; -} - -/* ─── Code Blocks — green left border ──────────────────── */ -pre { - background: var(--mantle); - border: 1px solid var(--surface-0); - border-left: 2px solid var(--green); - padding: 1.4rem 1.6rem; - overflow-x: auto; - border-radius: var(--radius); - margin: 2rem 0; - position: relative; -} - -pre::before { - content: attr(data-lang); - position: absolute; - top: 0.6rem; - right: 0.8rem; - font-family: var(--mono); - font-size: 0.65rem; - letter-spacing: 0.1em; - text-transform: uppercase; - color: var(--overlay-0); -} - -pre code { - background: none; - border: none; - padding: 0; - color: var(--text-full); - font-size: 0.87rem; - line-height: 1.65; -} - -/* Optional: mocha syntax classes */ -pre .kw { - color: var(--mauve); -} -pre .fn { - color: var(--blue); -} -pre .str { - color: var(--green); -} -pre .num { - color: var(--peach); -} -pre .cm { - color: var(--overlay-0); - font-style: italic; -} -pre .kv { - color: var(--teal); -} -pre .type { - color: var(--yellow); -} -pre .err { - color: var(--red); -} - -/* ─── Images ───────────────────────────────────────────── */ -img { - max-width: 100%; - height: auto; - display: block; - border-radius: var(--radius); - border: 1px solid var(--surface-0); - margin: 2rem auto; -} - -figure { - margin: 2.5rem 0; -} - -figcaption { - font-family: var(--mono); - font-size: 0.72rem; - color: var(--overlay-1); - text-align: center; - margin-top: 0.75rem; - letter-spacing: 0.04em; -} - -/* ─── Callout variants — full palette ───────────────────── */ -aside, -.note, -.callout { - background: rgba(116, 199, 236, 0.07); - border: 1px solid rgba(116, 199, 236, 0.2); - border-radius: var(--radius); - padding: 1rem 1.2rem; - margin: 2rem 0; - font-size: 0.88rem; - color: var(--subtext-0); -} - -aside strong, -.callout strong { - color: var(--sapphire); - font-family: var(--mono); - font-size: 0.7rem; - letter-spacing: 0.1em; - text-transform: uppercase; - display: block; - margin-bottom: 0.4rem; -} - -/* mauve — hint */ -.callout.hint { - background: rgba(203, 166, 247, 0.07); - border-color: rgba(203, 166, 247, 0.25); -} -.callout.hint strong { - color: var(--mauve); -} - -/* yellow — warning */ -.callout.warn { - background: rgba(249, 226, 175, 0.07); - border-color: rgba(249, 226, 175, 0.25); -} -.callout.warn strong { - color: var(--yellow); -} - -/* red — error */ -.callout.error { - background: rgba(243, 139, 168, 0.07); - border-color: rgba(243, 139, 168, 0.25); -} -.callout.error strong { - color: var(--red); -} - -/* green — success */ -.callout.success { - background: rgba(166, 227, 161, 0.07); - border-color: rgba(166, 227, 161, 0.25); -} -.callout.success strong { - color: var(--green); -} - -/* peach — tip */ -.callout.tip { - background: rgba(250, 179, 135, 0.07); - border-color: rgba(250, 179, 135, 0.25); -} -.callout.tip strong { - color: var(--peach); -} - -/* ─── Tags — rosewater / flamingo on hover ─────────────── */ -.tag { - display: inline-block; - font-family: var(--mono); - font-size: 0.65rem; - letter-spacing: 0.1em; - text-transform: uppercase; - padding: 0.25rem 0.6rem; - border: 1px solid var(--surface-0); - border-radius: 2px; - color: var(--overlay-2); - margin-right: 0.4rem; - text-decoration: none; - border-bottom: none; - transition: all var(--transition); -} - -.tag:hover { - border-color: var(--rosewater); - color: var(--rosewater); - background: rgba(245, 224, 220, 0.07); - border-bottom: none; -} - -/* ─── Navigation ───────────────────────────────────────── */ -nav { - display: flex; - align-items: center; - justify-content: space-between; - padding: 1.2rem 0 3rem; - border-bottom: 1px solid var(--surface-0); - margin-bottom: 3.5rem; -} - -nav .logo { - font-family: var(--sans); - font-weight: 800; - font-size: 1.1rem; - letter-spacing: -0.02em; - color: var(--text-full); - border-bottom: none; -} - -/* logo accent — mauve */ -nav .logo span { - color: var(--mauve); -} - -nav ul { - display: flex; - gap: 2rem; - margin: 0; - padding: 0; - list-style: none; -} - -nav ul li { - padding: 0; - margin: 0; -} - -nav ul li::before { - display: none; -} - -nav a { - font-family: var(--mono); - font-size: 0.72rem; - letter-spacing: 0.08em; - text-transform: uppercase; - color: var(--overlay-1); - border-bottom: none; - transition: color var(--transition); -} - -nav a:hover { - color: var(--lavender); - border-bottom: none; -} - -/* ─── Footer ───────────────────────────────────────────── */ -footer { - margin-top: 5rem; - padding-top: 2rem; - border-top: 1px solid var(--surface-0); - font-family: var(--mono); - font-size: 0.72rem; - letter-spacing: 0.05em; - color: var(--overlay-0); - display: flex; - justify-content: space-between; - align-items: center; - flex-wrap: wrap; - gap: 1rem; -} - -/* ─── Reading Progress — mauve → lavender ──────────────── */ -.progress-bar { - position: fixed; - top: 0; - left: 0; - height: 2px; - background: linear-gradient( - 90deg, - var(--mauve), - var(--blue), - var(--lavender) - ); - z-index: 999; - transform-origin: left; - width: 0%; - box-shadow: 0 0 10px rgba(203, 166, 247, 0.2); - transition: width 0.1s linear; -} - -/* ─── Selection — mauve ────────────────────────────────── */ -::selection { - background: rgba(203, 166, 247, 0.25); - color: var(--text-full); -} - -/* ─── Scrollbar ────────────────────────────────────────── */ -::-webkit-scrollbar { - width: 6px; - height: 6px; -} - -::-webkit-scrollbar-track { - background: var(--crust); -} - -::-webkit-scrollbar-thumb { - background: var(--surface-0); - border-radius: 3px; -} - -::-webkit-scrollbar-thumb:hover { - background: var(--surface-1); -} - -/* ─── Abbr ─────────────────────────────────────────────── */ -abbr[title] { - border-bottom: 1px dotted var(--overlay-0); - cursor: help; - text-decoration: none; -} - -/* ─── Responsive ───────────────────────────────────────── */ -@media (max-width: 700px) { - body { - padding: 2rem 1.2rem 4rem; - font-size: 17px; - } - - h1 { - font-size: 2rem; - } - h2 { - font-size: 1.35rem; - } - nav ul { - gap: 1.2rem; - } - nav { - flex-wrap: wrap; - gap: 1rem; - } - footer { - flex-direction: column; - text-align: center; - } -} - -/* ─── Focus Accessibility ──────────────────────────────── */ -:focus-visible { - outline: 2px solid var(--lavender); - outline-offset: 3px; - border-radius: var(--radius); -} |
