From 84c15e083dd35d4b1ca8589639f89a1bdf7c8aa0 Mon Sep 17 00:00:00 2001
From: trinkey <97406176+trinkey@users.noreply.github.com>
Date: Wed, 20 Mar 2024 03:50:28 -0400
Subject: [PATCH] feat(pypi): init (#682)
* create pypi
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* replace `#00000000` with `invisible`
* optimize the logo svg and fix one selector error
* random things
fix linter errors, hide sponsors, format document with prettier, use the img tag for svgs instead of parent
images still don't work on chrome for some reason
* remove all border styling besides colors
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* small tweaks
make borders subtle-r
make svgs look better
make search bar stand out more
`!important` background stuff for svgs (still doesn't work on chrome and idk why)
* remove border width
* Update styles/pypi/catppuccin.user.css
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
* style `::placeholder` and darken some borders
* remove syntax highlighting css as per uncenter's request
* codeblock styles
* revert the import
* add temporary syntax highlighting
* fix theming on release history page
* fix styling for filters on search page
* refactor(pypi): import pygments highlighting
* linter
* update preview.webp
* use catppuccin page for screenshots
* chore(pypi): use !important pygments variant
---------
Co-authored-by: uncenter <47499684+uncenter@users.noreply.github.com>
---
scripts/userstyles.yml | 9 +
styles/pypi/catppuccin.user.css | 1004 +++++++++++++++++++++++++++++++
styles/pypi/preview.webp | 3 +
3 files changed, 1016 insertions(+)
create mode 100644 styles/pypi/catppuccin.user.css
create mode 100644 styles/pypi/preview.webp
diff --git a/scripts/userstyles.yml b/scripts/userstyles.yml
index 11fd61a5..ffa92fc5 100644
--- a/scripts/userstyles.yml
+++ b/scripts/userstyles.yml
@@ -120,6 +120,8 @@ collaborators:
- &Guaxinim5573
name: Guaxinim5573
url: https://github.com/Guaxinim5573
+ - &trinkey
+ url: https://github.com/trinkey
userstyles:
advent-of-code:
@@ -609,6 +611,13 @@ userstyles:
> [!NOTE]
> Set Proton Mail's built-in theme to 'Snow' if you're using Latte or 'Carbon' if you're using the others.
current-maintainers: [*soya-daizu]
+ pypi:
+ name: PyPI
+ categories: [development]
+ color: sapphire
+ readme:
+ app-link: "https://pypi.org"
+ current-maintainers: [*trinkey]
quizlet:
name: Quizlet
categories: [education, productivity]
diff --git a/styles/pypi/catppuccin.user.css b/styles/pypi/catppuccin.user.css
new file mode 100644
index 00000000..dbb1c530
--- /dev/null
+++ b/styles/pypi/catppuccin.user.css
@@ -0,0 +1,1004 @@
+/* ==UserStyle==
+@name PyPI Catppuccin
+@namespace github.com/catppuccin/userstyles/styles/pypi
+@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/pypi
+@version 0.0.1
+@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/pypi/catppuccin.user.css
+@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Apypi
+@description Soothing pastel theme for PyPI
+@author Catppuccin
+@license MIT
+
+@preprocessor less
+@var select lightFlavor "Light Flavor" ["latte:Latte*", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha"]
+@var select darkFlavor "Dark Flavor" ["latte:Latte", "frappe:Frappé", "macchiato:Macchiato", "mocha:Mocha*"]
+@var select accentColor "Accent" ["rosewater:Rosewater", "flamingo:Flamingo", "pink:Pink", "mauve:Mauve", "red:Red", "maroon:Maroon", "peach:Peach", "yellow:Yellow", "green:Green", "teal:Teal", "blue:Blue", "sapphire:Sapphire*", "sky:Sky", "lavender:Lavender", "subtext0:Gray"]
+==/UserStyle== */
+
+@-moz-document domain('pypi.org') {
+ @import url("https://python.catppuccin.com/pygments/catppuccin-variables.important.css");
+
+ #catppuccin(@lookup, @accent) {
+ @rosewater: @catppuccin[@@lookup][@rosewater];
+ @flamingo: @catppuccin[@@lookup][@flamingo];
+ @pink: @catppuccin[@@lookup][@pink];
+ @mauve: @catppuccin[@@lookup][@mauve];
+ @red: @catppuccin[@@lookup][@red];
+ @maroon: @catppuccin[@@lookup][@maroon];
+ @peach: @catppuccin[@@lookup][@peach];
+ @yellow: @catppuccin[@@lookup][@yellow];
+ @green: @catppuccin[@@lookup][@green];
+ @teal: @catppuccin[@@lookup][@teal];
+ @sky: @catppuccin[@@lookup][@sky];
+ @sapphire: @catppuccin[@@lookup][@sapphire];
+ @blue: @catppuccin[@@lookup][@blue];
+ @lavender: @catppuccin[@@lookup][@lavender];
+ @text: @catppuccin[@@lookup][@text];
+ @subtext1: @catppuccin[@@lookup][@subtext1];
+ @subtext0: @catppuccin[@@lookup][@subtext0];
+ @overlay2: @catppuccin[@@lookup][@overlay2];
+ @overlay1: @catppuccin[@@lookup][@overlay1];
+ @overlay0: @catppuccin[@@lookup][@overlay0];
+ @surface2: @catppuccin[@@lookup][@surface2];
+ @surface1: @catppuccin[@@lookup][@surface1];
+ @surface0: @catppuccin[@@lookup][@surface0];
+ @base: @catppuccin[@@lookup][@base];
+ @mantle: @catppuccin[@@lookup][@mantle];
+ @crust: @catppuccin[@@lookup][@crust];
+ @accent-color: @catppuccin[@@lookup][@@accent];
+
+ --ctp-rosewater: @rosewater;
+ --ctp-flamingo: @flamingo;
+ --ctp-pink: @pink;
+ --ctp-mauve: @mauve;
+ --ctp-red: @red;
+ --ctp-maroon: @maroon;
+ --ctp-peach: @peach;
+ --ctp-yellow: @yellow;
+ --ctp-green: @green;
+ --ctp-teal: @teal;
+ --ctp-sky: @sky;
+ --ctp-sapphire: @sapphire;
+ --ctp-blue: @blue;
+ --ctp-lavender: @lavender;
+ --ctp-text: @text;
+ --ctp-subtext1: @subtext1;
+ --ctp-subtext0: @subtext0;
+ --ctp-overlay2: @overlay2;
+ --ctp-overlay1: @overlay1;
+ --ctp-overlay0: @overlay0;
+ --ctp-surface2: @surface2;
+ --ctp-surface1: @surface1;
+ --ctp-surface0: @surface0;
+ --ctp-base: @crust;
+ --ctp-mantle: @mantle;
+ --ctp-crust: @crust;
+
+ color-scheme: if(@lookup =latte, light, dark);
+
+ body {
+ background-color: @base !important;
+ color: @text !important;
+ }
+
+ input,
+ select,
+ textarea {
+ background-color: @mantle !important;
+ border-color: @surface0 !important;
+ color: @text !important;
+
+ &:active,
+ &:focus,
+ &:hover {
+ border-color: @accent-color !important;
+ box-shadow: inset 0 0 0 1px @accent-color !important;
+ }
+ }
+
+ input::placeholder {
+ color: @subtext0;
+ }
+
+ input:disabled,
+ select:disabled {
+ &,
+ &:active,
+ &:focus,
+ &:hover {
+ background-color: @mantle !important;
+ }
+ }
+
+ hr {
+ background-color: @surface0 !important;
+ background-image: linear-gradient(90deg, @surface0, @surface0) !important;
+ }
+
+ ::selection {
+ background-color: @accent-color !important;
+ color: @base !important;
+ }
+
+ .banner,
+ .footer {
+ background-color: @mantle !important;
+ color: @text !important;
+ }
+
+ .accordion__link {
+ color: @accent-color !important;
+ }
+
+ .password-strength {
+ border-color: @surface2 !important;
+ }
+
+ .accordion__link:active,
+ .accordion__link:focus {
+ outline-color: @accent-color !important;
+ outline-style: solid;
+ }
+
+ @media (max-width: 1000px) {
+ .accordion__link {
+ color: @text !important;
+ }
+
+ .accordion__link:active,
+ .accordion__link:focus {
+ outline-color: @text !important;
+ }
+ }
+
+ .footer__divider {
+ border-color: @surface0 !important;
+ }
+
+ a,
+ .footer__menu li a {
+ &:active,
+ &:focus {
+ outline-color: @accent-color !important;
+ }
+ }
+
+ .skip-to-content:focus {
+ background-color: @base !important;
+ color: @text !important;
+ }
+
+ a:not(
+ .site-header__logo,
+ .package-snippet,
+ .button,
+ .dropdown__link,
+ .vertical-tabs__tab,
+ .status-badge,
+ .skip-to-content,
+ .badge,
+ .table__user-details,
+ .horizontal-menu__link,
+ .sidebar-section__maintainer a,
+ .release__card
+ ),
+ a:hover:not(
+ .site-header__logo,
+ .package-snippet,
+ .button,
+ .dropdown__link,
+ .vertical-tabs__tab,
+ .status-badge,
+ .skip-to-content,
+ .badge,
+ .table__user-details,
+ .horizontal-menu__link,
+ .sidebar-section__maintainer a,
+ .release__card
+ ),
+ .footer__menu li a,
+ .footer__text a,
+ .language-switcher ul button {
+ background-image: linear-gradient(
+ 90deg,
+ @accent-color,
+ @accent-color
+ ) !important;
+ }
+
+ a:not(.site-header__logo, .button, .dropdown__link, .badge, .release__card),
+ a:hover:not(
+ .site-header__logo,
+ .button,
+ .dropdown__link,
+ .badge,
+ .release__card
+ ),
+ .footer__menu li a,
+ .footer__text a,
+ .language-switcher ul button {
+ color: @accent-color !important;
+ }
+
+ .footer__text a,
+ .language-switcher ul button {
+ &:active,
+ &:focus {
+ outline-color: @accent-color !important;
+ }
+ }
+
+ .footer__menu h2,
+ .footer__text,
+ .language-switcher ul button.language-switcher__selected::before {
+ color: @text !important;
+ }
+
+ .language-switcher {
+ background-color: @crust !important;
+ border-top-color: @crust !important;
+ color: @text !important;
+ }
+
+ .horizontal-section--grey {
+ background-color: @base !important;
+ border-bottom-color: @base !important;
+ border-top-color: @base !important;
+ }
+
+ .statistics-bar__statistic {
+ color: @subtext0 !important;
+ }
+
+ .lede-paragraph {
+ color: @subtext1 !important;
+ }
+
+ .site-header {
+ background-color: @crust !important;
+ border-bottom-color: @crust !important;
+ }
+
+ .site-header__logo:active,
+ .site-header__logo:focus {
+ outline-color: @text !important;
+ }
+
+ .dropdown__content {
+ border-color: @accent-color !important;
+ box-shadow: none !important;
+ }
+
+ .dropdown__content li:hover {
+ background-color: @base !important;
+ }
+
+ .dropdown button.dropdown__link:not(:hover),
+ .dropdown__link {
+ background-color: @crust !important;
+ border-bottom-color: @crust !important;
+ color: @text !important;
+ }
+
+ .dropdown__link:hover {
+ background-color: @base !important;
+ }
+
+ a.dropdown__link,
+ a.dropdown__link:hover {
+ background-image: none !important;
+ color: @text !important;
+ }
+
+ .horizontal-menu__link:active,
+ .horizontal-menu__link:focus {
+ outline-color: @accent-color !important;
+ }
+
+ .horizontal-menu--light .horizontal-menu__link {
+ color: @accent-color !important;
+ }
+
+ .horizontal-menu--light .horizontal-menu__link:hover {
+ text-decoration-color: @accent-color !important;
+ }
+
+ .sponsors,
+ .sidebar-section.loaded {
+ display: none;
+ }
+
+ .package-snippet {
+ background-color: @crust !important;
+ border-color: @surface0 !important;
+ box-shadow: none !important;
+ }
+
+ .package-snippet__created {
+ color: @subtext0 !important;
+ }
+
+ .package-snippet__description {
+ color: @subtext1 !important;
+ }
+
+ .search-form__search {
+ background-color: @surface0 !important;
+ }
+
+ .button {
+ border-color: @subtext0 !important;
+ color: @text !important;
+
+ &:active,
+ &:focus,
+ &:hover {
+ border-color: @subtext1 !important;
+ color: @text !important;
+ }
+ }
+
+ .button--primary,
+ .button--primary:active,
+ .button--primary:focus,
+ .button--primary:hover {
+ background-color: @accent-color !important;
+ border-color: @accent-color !important;
+ color: @base !important;
+ outline-color: @accent-color !important;
+ }
+
+ .danger {
+ color: @red !important;
+ }
+
+ .notification-bar {
+ background-color: @accent-color !important;
+ border-bottom-color: @accent-color !important;
+ color: @base !important;
+ }
+
+ .notification-bar--danger {
+ background-color: @red !important;
+ }
+
+ .notification-bar--success {
+ background-color: @green !important;
+ }
+
+ .notification-bar--banner .button {
+ color: @base !important;
+ }
+
+ .badge--warning {
+ background-color: @yellow !important;
+ border-color: @yellow !important;
+ color: @base !important;
+
+ &:hover {
+ color: @base !important;
+ }
+ }
+
+ .badge--warning:active,
+ .badge--warning:focus {
+ outline-color: invisible !important;
+ }
+
+ .callout-block--warning {
+ border-color: @yellow !important;
+ }
+
+ .callout-block--warning > :not(.modal, .button, a) {
+ color: @text !important;
+ }
+
+ .callout-block--warning::before {
+ background-color: @yellow !important;
+ }
+
+ .callout-block--warning .callout-block__dismiss:active,
+ .callout-block--warning .callout-block__dismiss:focus {
+ outline-color: @yellow !important;
+ }
+
+ .callout-block {
+ border-color: @accent-color !important;
+ }
+
+ .callout-block::before {
+ background-color: @accent-color !important;
+ }
+
+ .callout-block--danger {
+ border-color: @red !important;
+ }
+
+ .callout-block--danger > :not(.modal, .button) {
+ color: @text !important;
+ }
+
+ .callout-block--danger::before {
+ background-color: @red !important;
+ }
+
+ .callout-block--danger .callout-block__dismiss:active,
+ .callout-block--danger .callout-block__dismiss:focus {
+ outline-color: @red !important;
+ }
+
+ .callout-block--success {
+ border-color: @green !important;
+ }
+
+ .callout-block--success > :not(.modal, .button) {
+ color: @text !important;
+ }
+
+ .callout-block--success::before {
+ background-color: @green !important;
+ }
+
+ .callout-block--success .callout-block__dismiss:active,
+ .callout-block--success .callout-block__dismiss:focus {
+ outline-color: @green !important;
+ }
+
+ .faq-group h3::before {
+ color: @accent-color !important;
+ }
+
+ .badge {
+ background-color: @accent-color !important;
+ border-color: @accent-color !important;
+ color: @base !important;
+ }
+
+ .badge:hover {
+ color: @base !important;
+ }
+
+ .badge:active,
+ .badge:focus {
+ border-color: @base !important;
+ outline-color: @accent-color !important;
+ }
+
+ .badge--success {
+ background-color: @green !important;
+ border-color: @green !important;
+ }
+
+ .badge--success:active,
+ .badge--success:focus {
+ outline-color: @green !important;
+ }
+
+ .notification-bar--warning {
+ background-color: @yellow !important;
+ color: @base !important;
+ }
+
+ .notification-bar--warning .notification-bar__dismiss:active,
+ .notification-bar--warning .notification-bar__dismiss:focus {
+ outline-color: @yellow !important;
+ }
+
+ .table td,
+ .table th {
+ border-bottom-color: @surface0 !important;
+ }
+
+ .table--collaborators .table__user-text > * {
+ background-image: linear-gradient(
+ 90deg,
+ @accent-color,
+ @accent-color
+ ) !important;
+ color: @accent-color !important;
+ }
+
+ .table--collaborators .table__user-text > :hover {
+ background-image: linear-gradient(
+ 90deg,
+ @accent-color,
+ @accent-color
+ ) !important;
+ color: @accent-color !important;
+ }
+
+ .table--collaborators .table__user-text > :active,
+ .table--collaborators .table__user-text > :focus {
+ outline-color: @accent-color !important;
+ }
+
+ @media (max-width: 600px) {
+ .table--security-logs,
+ .table--collaborators,
+ .table--releases,
+ .table--emails,
+ .table--2fa,
+ .table--api-tokens,
+ .table--publisher-list {
+ border-bottom-color: @surface0 !important;
+ }
+
+ .table--security-logs tbody tr td:first-child,
+ .table--security-logs tbody tr th:first-child,
+ .table--collaborators tbody tr td:first-child,
+ .table--collaborators tbody tr th:first-child,
+ .table--releases tbody tr td:first-child,
+ .table--releases tbody tr th:first-child,
+ .table--emails tbody tr td:first-child,
+ .table--emails tbody tr th:first-child,
+ .table--2fa tbody tr td:first-child,
+ .table--2fa tbody tr th:first-child,
+ .table--api-tokens tbody tr td:first-child,
+ .table--api-tokens tbody tr th:first-child,
+ .table--publisher-list tbody tr td:first-child,
+ .table--publisher-list tbody tr th:first-child {
+ border-top-color: @surface0 !important;
+ }
+ }
+
+ @media (max-width: 800px) {
+ .table--files,
+ .table--history,
+ .table--downloads {
+ border-bottom-color: @subtext0 !important;
+ }
+
+ .table--files tbody tr td:first-child,
+ .table--files tbody tr th:first-child,
+ .table--history tbody tr td:first-child,
+ .table--history tbody tr th:first-child,
+ .table--downloads tbody tr td:first-child,
+ .table--downloads tbody tr th:first-child {
+ border-top-color: @subtext0 !important;
+ }
+ }
+
+ @media (max-width: 400px) {
+ .table--hashes {
+ border-bottom-color: @subtext0 !important;
+ }
+
+ .table--hashes tbody tr td:first-child,
+ .table--hashes tbody tr th:first-child {
+ border-top-color: @subtext0 !important;
+ }
+
+ .table--hashes td .button::before {
+ border-color: transparent !important;
+ }
+ }
+
+ .sponsor-grid__sponsor {
+ background-color: @mantle !important;
+ border-color: @subtext0 !important;
+ }
+
+ .sponsor-grid__sponsor:active,
+ .sponsor-grid__sponsor:hover {
+ border-color: @subtext0 !important;
+ }
+
+ .sponsor-grid__sponsor--invitation,
+ .sponsor-grid__sponsor--invitation:hover {
+ border-color: @accent-color !important;
+ }
+
+ .sponsor-grid__sponsor-activity {
+ color: @subtext0 !important;
+ }
+
+ .sponsor-package {
+ border-color: @accent-color !important;
+ }
+
+ .sponsor-package__header {
+ background-color: @accent-color !important;
+ color: @base !important;
+ }
+
+ .sponsor-package__icon {
+ background-color: @accent-color !important;
+ }
+
+ .mobile-search {
+ background-color: @crust !important;
+ }
+
+ .hooray-list {
+ border-top-color: @subtext0 !important;
+ }
+
+ .hooray-list li {
+ border-bottom-color: @subtext0 !important;
+ }
+
+ .hooray-list li::before {
+ color: @text !important;
+ }
+
+ .button--tertiary {
+ background-color: @crust !important;
+ border-color: @subtext0 !important;
+ }
+
+ .button--danger {
+ background-color: @red !important;
+ border-color: @red !important;
+ color: @base !important;
+ }
+
+ .button--danger:active,
+ .button--danger:focus,
+ .button--danger:hover {
+ background-color: @red !important;
+ border-color: @red !important;
+ color: @base !important;
+ text-decoration-color: @red !important;
+ }
+
+ .button--danger:active,
+ .button--danger:focus {
+ border-color: @red !important;
+ }
+
+ .button--danger:active:active,
+ .button--danger:active:focus,
+ .button--danger:focus:active,
+ .button--danger:focus:focus {
+ outline-color: @red !important;
+ }
+
+ .button--warning {
+ background-color: @yellow !important;
+ border-color: @yellow !important;
+ color: @base !important;
+ }
+
+ .button--warning:active,
+ .button--warning:focus,
+ .button--warning:hover {
+ background-color: @yellow !important;
+ border-color: @yellow !important;
+ color: @base !important;
+ text-decoration-color: @yellow !important;
+ }
+
+ .button--warning:active,
+ .button--warning:focus {
+ border-color: @yellow !important;
+ }
+
+ .button--disabled,
+ .button--disabled:active,
+ .button--disabled:focus,
+ .button--disabled:hover,
+ .button[disabled],
+ .button[disabled]:active,
+ .button[disabled]:focus,
+ .button[disabled]:hover {
+ background-color: @base !important;
+ border-color: @subtext0 !important;
+ color: @subtext0 !important;
+ }
+
+ .button--switch-to-desktop,
+ .button--switch-to-desktop:active,
+ .button--switch-to-desktop:focus,
+ .button--switch-to-desktop:hover {
+ border-color: @text !important;
+ color: @text !important;
+ }
+
+ .password-strength .password-strength__gauge--0 {
+ background-color: @red !important;
+ }
+
+ .password-strength .password-strength__gauge--1 {
+ background-color: @peach !important;
+ }
+
+ .password-strength .password-strength__gauge--2 {
+ background-color: @yellow !important;
+ }
+
+ .password-strength .password-strength__gauge--3 {
+ background-color: @blue !important;
+ }
+
+ .password-strength .password-strength__gauge--4 {
+ background-color: @green !important;
+ }
+
+ .package-header__pip-instructions span {
+ background-color: @crust !important;
+ border-color: @subtext0 !important;
+ }
+
+ .package-header__pip-instructions button {
+ background-color: @crust !important;
+ border-color: @subtext0 !important;
+ color: @text !important;
+ }
+
+ .package-header__pip-instructions button:hover {
+ background-color: @base !important;
+ }
+
+ .package-header__pip-instructions button:active,
+ .package-header__pip-instructions button:focus {
+ outline-color: @base !important;
+ }
+
+ .docutils.literal,
+ code,
+ kbd,
+ pre,
+ samp,
+ tt {
+ background-color: @mantle !important;
+ border-color: @mantle !important;
+ color: @subtext1 !important;
+ }
+
+ .vertical-tabs__tab:hover {
+ color: @accent-color !important;
+ }
+
+ .vertical-tabs__tab:active,
+ .vertical-tabs__tab:focus {
+ box-shadow: 0 0 0 2px @crust !important;
+ outline-color: @accent-color !important;
+ }
+
+ @media (max-width: 800px) {
+ .vertical-tabs__tab--mobile,
+ .vertical-tabs__tab--mobile:last-of-type {
+ border-bottom-color: @surface0 !important;
+ }
+ }
+
+ .vertical-tabs__tab--is-active,
+ .vertical-tabs__tab--is-active:hover {
+ background: @crust !important;
+ color: @accent-color !important;
+ }
+
+ .vertical-tabs__content:focus {
+ outline-color: @accent-color !important;
+ }
+
+ .sidebar-section .sidebar-section__user-gravatar:active,
+ .sidebar-section .sidebar-section__user-gravatar:focus {
+ outline-color: @accent-color !important;
+ }
+
+ .sidebar-section__user-gravatar-text,
+ .sidebar-section__user-gravatar-text:hover {
+ background-image: linear-gradient(
+ 90deg,
+ @accent-color,
+ @accent-color
+ ) !important;
+ color: @accent-color !important;
+ }
+
+ .sidebar-section__user-gravatar-text:active,
+ .sidebar-section__user-gravatar-text:focus {
+ outline-color: @accent-color !important;
+ }
+
+ .sidebar-section {
+ border-bottom-color: @surface0;
+ }
+
+ .status-badge {
+ background-color: @crust !important;
+ border-color: @mantle !important;
+ }
+
+ .status-badge span {
+ color: @base !important;
+ text-decoration: none !important;
+ }
+
+ .status-badge:active,
+ .status-badge:focus {
+ outline-color: @mantle !important;
+ }
+
+ .status-badge::before {
+ color: @base !important;
+ border-right-color: @mantle !important;
+ }
+
+ .status-badge--good {
+ background-color: @green !important;
+ color: @base !important;
+ }
+
+ .status-badge--warn {
+ background-color: @yellow !important;
+ }
+
+ .status-badge--bad {
+ background-color: @red !important;
+ color: @base !important;
+ }
+
+ .viewport-section__rule {
+ background-color: @base !important;
+ }
+
+ .viewport-section--dark {
+ background-color: @base !important;
+ color: @text !important;
+ }
+
+ .viewport-section--ee .viewport-section__heading {
+ background-color: @base !important;
+ color: @accent-color !important;
+ }
+
+ .viewport-section--ee
+ .viewport-section__video
+ .viewport-section__video-container {
+ border-color: @crust !important;
+ outline-color: invisible !important;
+ }
+
+ .form-errors,
+ .form-errors li::before {
+ color: @red !important;
+ }
+
+ .form-errors .form-error--valid,
+ .form-errors .form-error--valid::before {
+ color: @green !important;
+ }
+
+ .breadcrumbs__breadcrumb {
+ color: @text !important;
+ }
+
+ .breadcrumbs__breadcrumb:first-child {
+ color: @text !important;
+ }
+
+ .breadcrumbs__breadcrumb:not(:last-child)::after {
+ color: @text !important;
+ }
+
+ .horizontal-menu__link--with-icon:hover .fa,
+ .horizontal-menu__link--with-icon:hover .user-image {
+ opacity: 100% !important;
+ }
+
+ .release__line {
+ @svg: escape(
+ ''
+ );
+
+ background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
+ }
+
+ .release__node[src*="white"] {
+ background-color: @base !important;
+ }
+
+ .release__card {
+ background-color: @crust !important;
+ border-color: @surface0 !important;
+ color: @text !important;
+ }
+
+ .release__version-date {
+ color: @subtext0 !important;
+ }
+
+ .release--current {
+ background-color: @mantle !important;
+ border-color: @surface0 !important;
+ }
+
+ .release {
+ border-left-color: @mantle !important;
+ }
+
+ .checkbox-tree li {
+ &::before, &::after {
+ border-color: @surface2;
+ }
+ }
+
+ @media (min-width: 801px) {
+ .package-snippet,
+ .package-snippet:hover {
+ @svg: escape(
+ ''
+ );
+
+ background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
+ }
+ }
+
+ .site-header__logo img {
+ @svg: escape(
+ ''
+ );
+
+ height: 0 !important;
+ width: 0 !important;
+ padding-left: 66px !important;
+ padding-top: 58px !important;
+ background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
+ background-repeat: no-repeat !important;
+ }
+
+ .about-pypi__logo img {
+ @svg: escape(
+ ''
+ );
+
+ height: 0 !important;
+ width: 0 !important;
+ padding-left: 248px !important;
+ padding-top: 186px !important;
+ background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
+ background-repeat: no-repeat !important;
+ }
+
+ .-js-white-cube,
+ .release__node[src*="white"] {
+ @svg: escape(
+ ''
+ );
+
+ height: 0 !important;
+ padding-left: 34px !important;
+ padding-top: 32px !important;
+ background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
+ background-repeat: no-repeat !important;
+ background-position: center !important;
+ }
+
+ .release__node[src*="blue"] {
+ @svg: escape(
+ ''
+ );
+
+ height: 0 !important;
+ padding-left: 34px !important;
+ padding-top: 32px !important;
+ background-color: @mantle !important;
+ background-image: url("data:image/svg+xml;utf8,@{svg}") !important;
+ background-repeat: no-repeat !important;
+ background-position: center !important;
+ }
+ }
+
+ @media (prefers-color-scheme: light) {
+ :root {
+ #catppuccin(@lightFlavor, @accentColor);
+ }
+ }
+
+ @media (prefers-color-scheme: dark) {
+ :root {
+ #catppuccin(@darkFlavor, @accentColor);
+ }
+ }
+}
+
+/* prettier-ignore */
+@catppuccin: {
+ @latte: { @rosewater: #dc8a78; @flamingo: #dd7878; @pink: #ea76cb; @mauve: #8839ef; @red: #d20f39; @maroon: #e64553; @peach: #fe640b; @yellow: #df8e1d; @green: #40a02b; @teal: #179299; @sky: #04a5e5; @sapphire: #209fb5; @blue: #1e66f5; @lavender: #7287fd; @text: #4c4f69; @subtext1: #5c5f77; @subtext0: #6c6f85; @overlay2: #7c7f93; @overlay1: #8c8fa1; @overlay0: #9ca0b0; @surface2: #acb0be; @surface1: #bcc0cc; @surface0: #ccd0da; @base: #eff1f5; @mantle: #e6e9ef; @crust: #dce0e8; };
+ @frappe: { @rosewater: #f2d5cf; @flamingo: #eebebe; @pink: #f4b8e4; @mauve: #ca9ee6; @red: #e78284; @maroon: #ea999c; @peach: #ef9f76; @yellow: #e5c890; @green: #a6d189; @teal: #81c8be; @sky: #99d1db; @sapphire: #85c1dc; @blue: #8caaee; @lavender: #babbf1; @text: #c6d0f5; @subtext1: #b5bfe2; @subtext0: #a5adce; @overlay2: #949cbb; @overlay1: #838ba7; @overlay0: #737994; @surface2: #626880; @surface1: #51576d; @surface0: #414559; @base: #303446; @mantle: #292c3c; @crust: #232634; };
+ @macchiato: { @rosewater: #f4dbd6; @flamingo: #f0c6c6; @pink: #f5bde6; @mauve: #c6a0f6; @red: #ed8796; @maroon: #ee99a0; @peach: #f5a97f; @yellow: #eed49f; @green: #a6da95; @teal: #8bd5ca; @sky: #91d7e3; @sapphire: #7dc4e4; @blue: #8aadf4; @lavender: #b7bdf8; @text: #cad3f5; @subtext1: #b8c0e0; @subtext0: #a5adcb; @overlay2: #939ab7; @overlay1: #8087a2; @overlay0: #6e738d; @surface2: #5b6078; @surface1: #494d64; @surface0: #363a4f; @base: #24273a; @mantle: #1e2030; @crust: #181926; };
+ @mocha: { @rosewater: #f5e0dc; @flamingo: #f2cdcd; @pink: #f5c2e7; @mauve: #cba6f7; @red: #f38ba8; @maroon: #eba0ac; @peach: #fab387; @yellow: #f9e2af; @green: #a6e3a1; @teal: #94e2d5; @sky: #89dceb; @sapphire: #74c7ec; @blue: #89b4fa; @lavender: #b4befe; @text: #cdd6f4; @subtext1: #bac2de; @subtext0: #a6adc8; @overlay2: #9399b2; @overlay1: #7f849c; @overlay0: #6c7086; @surface2: #585b70; @surface1: #45475a; @surface0: #313244; @base: #1e1e2e; @mantle: #181825; @crust: #11111b; };
+}
+// vim:ft=less
diff --git a/styles/pypi/preview.webp b/styles/pypi/preview.webp
new file mode 100644
index 00000000..80acc1fb
--- /dev/null
+++ b/styles/pypi/preview.webp
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:c06c06657f844e019c061a06defa8bbbc3e37e23508b4df92df4cb5284ad63a6
+size 342686