Files
userstyles/styles/pinterest/catppuccin.user.css
T

737 lines
23 KiB
CSS

/* ==UserStyle==
@name Pinterest Catppuccin
@namespace github.com/catppuccin/userstyles/styles/pinterest
@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/pinterest
@version 1.1.5
@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/pinterest/catppuccin.user.css
@supportURL https://github.com/catppuccin/userstyles/issues?q=is%3Aopen+is%3Aissue+label%3Apinterest
@description Soothing pastel theme for Pinterest
@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 regexp("^https?:\\/\\/(www|[a-z]{2}).pinterest.(com(.(au|mx))?|co(.(uk|kr))?|at|ca|ch|cl|de|dk|es|fr|ie|it|jp|nz|ph|pt|ru|se)\\/.*") {
@media (prefers-color-scheme: light) {
#catppuccin(@lightFlavor, @accentColor);
}
@media (prefers-color-scheme: dark) {
#catppuccin(@darkFlavor, @accentColor);
}
#catppuccin(@lookup, @accent) {
@rosewater: @catppuccin[@@lookup][@rosewater];
@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];
color-scheme: if(@lookup = latte, light, dark);
::selection {
background-color: fade(@accent-color, 30%);
}
input,
textarea {
&::placeholder {
color: @subtext0 !important;
}
}
:root {
--color-text-light: if((@lookup = latte), @mantle, @text);
--color-text-dark: if((@lookup = latte), @text, @mantle);
--color-text-default: @text;
--color-text-inverse: @mantle;
--color-text-subtle: @subtext0;
--color-text-error: @accent-color;
--color-text-shopping: @accent-color;
--color-text-link: @accent-color;
--color-text-icon-light: if((@lookup = latte), @mantle, @subtext1);
--color-text-icon-dark: if((@lookup = latte), @subtext1, @mantle);
--color-text-icon-default: @subtext0;
--color-icon-subtle: @subtext1;
--color-text-icon-inverse: @mantle;
--color-text-icon-subtle: @subtext0;
--color-text-icon-error: @accent-color;
--color-text-icon-brand-primary: @accent-color;
--color-background-light: if((@lookup = latte), @mantle, @subtext1);
--color-background-dark: if((@lookup = latte), @text, @mantle);
--color-background-default: @base;
--color-background-inverse-base: @subtext1;
--color-background-primary-base: @accent-color;
--color-background-secondary-base: @mantle;
--color-background-secondary-active: @mantle;
--color-background-selected-base: @subtext1;
--color-background-box-default: @mantle;
--color-background-box-selected: @accent-color;
--color-background-box-secondary: @surface1;
--color-background-overlay: @surface0;
--color-background-tag-primary-hover: @surface2;
--color-background-box-light: @mantle;
--color-background-button-secondary-default: @surface0;
--color-background-button-secondary-hover: @surface1;
--color-background-tag-primary-default: @surface1;
--color-background-button-disabled-default: darken(@mantle, 2%);
--color-background-formfield-primary: @surface0;
--color-border-container: @surface1;
--color-border-default: @mantle;
--color-text-success: @green;
--color-text-warning: @yellow;
--color-icon-success: @green;
--color-icon-warning: @yellow;
--color-icon-error: @red;
--color-icon-info: @blue;
--color-icon-recommendation: @mauve;
--color-icon-brand-primary: @accent-color;
--color-icon-inverse: @crust;
--color-background-brand: @accent-color;
--color-background-box-brand: @accent-color;
--color-background-button-primary-default: @accent-color;
--color-background-badge-warning: @yellow;
--color-background-badge-success: @green;
--color-background-education: @blue;
--color-background-primary-strong: @accent-color;
--color-background-shopping: @blue;
--g-colorTransparentWhite: fadeout(@base, 30%);
--g-colorTransparentDarkGray: fadeout(@mantle, 20%);
--g-colorGray0: @mantle;
--g-colorGray0Hovered: darken(@mantle, 2.5%);
--g-colorGray0Active: darken(@mantle, 5%);
--g-colorGray50: @mantle;
--g-colorGray100: @mantle;
--g-colorGray100Hovered: darken(@surface0, 2.5%);
--g-colorGray100Active: darken(@surface0, 5%);
--g-colorGray200: @subtext0;
--g-colorGray300: @subtext1;
--g-colorRed100: @accent-color;
--g-colorRed100Hovered: darken(@accent-color, 7.5%);
--g-colorRed100Active: darken(@accent-color, 10%);
--g-color-focus: fadeout(@accent-color, 50%);
--color-gray-roboflow-400: @crust;
--color-gray-roboflow-200: @mantle;
--g-blue: @accent-color;
--color-background-info-base: @blue;
--color-background-error-base: @red;
--color-background-warning-base: @peach;
--color-background-success-base: @green;
}
body {
background-color: @base;
color: @text;
}
.EmojiPickerReact {
--epr-bg-color: @base;
--epr-text-color: @text;
--epr-picker-border-color: @base;
--epr-category-label-bg-color: @base;
--epr-search-input-bg-color: @mantle;
--epr-skin-tone-picker-menu-color: @mantle;
--epr-category-icon-active-color: @accent-color;
--epr-highlight-color: @accent-color;
--epr-hover-bg-color: @surface0;
--epr-focus-bg-color: @surface0;
}
.C1J,
.LI1.iyn[focus-within],
.iyn:focus,
._gestalt .react-datepicker__month-select:focus,
._gestalt .react-datepicker__year-select:focus {
box-shadow: 0 0 0 4px var(--g-color-focus);
}
.NUb {
color: var(--color-text-inverse);
}
div[data-test-id="gestalt-avatar-svg"] {
box-shadow: 0 0 0 1px @crust !important;
text {
fill: @subtext1 !important;
}
}
svg circle[fill="white"] ~ path[fill="#e60023"] {
fill: @accent-color !important;
}
div#mweb-unauth-container,
div#mainContainer {
background-color: @base !important;
}
// "Accounts and more options" popup
div#HeaderAccountOptionsFlyout {
background-color: @mantle;
border-color: transparent;
// external link icons
.Hn_.Uvi.gUZ {
color: var(--color-text-icon-light);
}
}
// Pin hover icons (and other icons)
.Uvi.gUZ.U9O.kVc {
color: @text;
}
/* Header & Search */
div[data-test-id="header-Header"] div.P_h span.xnr {
color: @text !important;
}
// make top bar match
div[data-test-id="header-background"] {
background-color: @base;
}
div[data-test-id="one-bar-pill"] {
div {
color: var(--color-text-dark) !important;
}
.PLa {
color: var(--color-text-icon-light) !important;
}
.R19 {
color: var(--color-text-icon-dark) !important;
}
}
div#searchBoxContainer {
// search bar
div.Jea.fev.zI7.iyn.Hsu {
background-color: @mantle !important;
}
div[style="padding: 0px 0px 0px 16px; height: 100%; border-radius: 24px; box-shadow: rgba(0, 132, 255, 0.5) 0px 0px 0px 4px;"],
div[style="padding: 0px 4px 0px 16px; height: 100%; border-radius: 24px; box-shadow: rgba(0, 132, 255, 0.5) 0px 0px 0px 4px;"] {
box-shadow: 0 0 0 4px var(--g-color-focus) !important;
}
input {
color: @subtext1 !important;
}
div.MMh._Y5.feh.s7I.zI7.iyn.Hsu {
background-color: @subtext1 !important;
}
}
// make selected search suggestions darker
div[aria-selected="true"][data-test-id="search-suggestion"] {
.C9q.Jea.KS5.Lfz.TMJ.XiG.Zr3.zI7.iyn.Hsu {
background-color: @surface0;
}
}
/* Home */
div.moreIdeasBoardRepCarousel
div[data-carousel-indicator="carousel-card"]
div.Jea.XiG.hA-.ho-.zI7.iyn.Hsu {
background-color: @mantle !important;
}
div.moreIdeasBoardRepCarousel & ~ div.MIw.QLY.zI7.iyn.Hsu {
background: none !important;
}
// remove bar
.fZz.imm.zI7.iyn.Hsu {
background-color: @base;
}
// "created" and "saved" button backgrounds
.DUt.XiG._wN.hA-.wYR.zI7.iyn.Hsu {
background-color: transparent !important;
}
/* Pins */
div[data-test-id="PinBetterSaveDropdown"],
div[data-test-id="boardSelectionDropdown"] {
.xnr {
color: var(--color-text-light);
}
.PLa {
color: var(--color-text-icon-light);
}
}
div[data-test-id="pinrep-source-link"] {
background-color: @base !important;
a div {
color: @text !important;
}
}
div[data-test-id="savedInfo"] a {
background-color: transparent !important;
div {
color: var(--color-text-light) !important;
}
}
div[data-test-id="PinTypeIdentifier"] {
background-color: @base !important;
color: @text !important;
}
div[data-test-id="persistent-one-click-save"] {
div[style="background-color: rgba(255, 255, 255, 0.85);"] {
background-color: @mantle !important;
}
a {
background-color: transparent !important;
}
}
div[style="padding-bottom: 100%; box-shadow: rgb(255, 255, 255) 0px 0px 0px 1px;"] {
box-shadow: 0 0 0 1px @crust !important;
}
div[data-test-id="toast"] span div {
color: @mantle !important;
}
// board name to save to preview / dropdown
.tBJ.dyH.iFc.sAJ.B1n.zDA.IZT.H2s.CKL {
color: var(--color-text-light) !important;
}
// back of send and ... buttons on pins
.x8f.INd._O1.KS5.mQ8.NSs {
background-color: @crust !important;
}
// Save button background
.akY.KI_.Hsu.USg.CCY.S9z.z_v.BG7.LDc.xD4.fZz.hUC.adn.Rk4.d24._O1.KS5.mQ8.Tbt.L4E.jKZ {
background-color: @accent-color !important;
//color: @text !important;
}
// Save button text
.tBJ.dyH.iFc.sAJ.B1n.tg7.IZT.H2s {
color: var(--color-text-light) !important;
}
// Saved button background
.akY.KI_.Hsu.USg.CCY.S9z.z_v.BG7.LDc.xD4.fZz.hUC.kJo.gSJ.d24._O1.KS5.mQ8.Tbt.L4E.jKZ {
background-color: @surface2 !important;
border-color: transparent;
}
// board picker flyout button
button[aria-label="save button"] {
.RCK.Hsu.USg.adn.CCY.NTm.KhY.S9z.Vxj.aZc.Zr3.hA-.Il7.hNT.BG7.hDj._O1.KS5.mQ8.Tbt.L4E {
background-color: @accent-color;
color: @accent-color;
}
}
// "Saved to __" popup text
.tBJ.dyH.iFc.j1A.X8m.zDA.swG {
color: var(--color-text-light) !important;
}
/* Pin page */
div[data-test-id="inline-comment-composer-container"] {
border-color: transparent !important;
}
div[data-test-id="more-description-container"],
div[data-test-id="less-description-container"] {
background-color: @base !important;
}
div[data-test-id="truncated-text"] {
div[data-test-id="more-button"] {
background: linear-gradient(
90deg,
transparent 0%,
@base 15%
) !important;
}
div[style="background: rgb(255, 255, 255);"] {
background-color: @base !important;
}
}
div[data-test-id="flashlight-button"],
div[data-test-id="shop-button"] {
background-color: fadeout(@base, 20%) !important;
}
div[data-test-id="flashlight-dot-style"] {
background-color: var(--color-text-light);
}
div[data-test-id="visual-search-cropper"] {
path.v2cropperHandle {
fill: var(--color-text-light) !important;
}
use.v2cropSection {
stroke: var(--color-text-light) !important;
}
}
textarea#pinNoteText {
background-color: transparent;
color: @subtext1;
caret-color: @text;
}
div[data-test-id="react-button"] {
.Jea.KS5.mQ8.zI7.iyn.Hsu {
//background-color: @accent-color;
color: @accent-color;
}
}
// remove "More to explore" bar
div[data-test-id="related-modules-header"] {
.Jea.KS5.LCN.X6t.hUC.imm.jzS.mQ8.zI7.iyn.Hsu {
background-color: transparent;
}
}
/* Video and story pins */
div[data-test-id="visual-content-container"] video ~ div {
svg {
color: var(--color-text-icon-light) !important;
}
div[role="progressbar"] > div {
background-color: var(--color-text-icon-light) !important;
}
}
div[data-test-id="closeup-data-loaded"] div.Jea.Rym.zI7.iyn.Hsu {
svg,
span {
color: var(--color-text-icon-light) !important;
}
}
/* Profile */
div[data-test-id="profile-board-card"] div,
div#profileBoardsFeed div[data-test-id="board-card"] div,
div[style="border: 1px solid white; border-radius: 16px;"] {
border-color: @crust !important;
}
div.SaveButton__background--enabled {
background-color: @accent-color !important;
color: @mantle !important;
}
div[data-test-id="savedInfo"] a h3 {
color: var(--color-text-light) !important;
}
a[aria-label="More ideas"] {
.TzN {
background-color: @surface0;
}
}
a[aria-label="Organize"] {
.TzN {
background-color: @surface0;
}
}
/* Settings */
input[type="checkbox"] ~ div {
border-color: @crust !important;
}
div.tBJ.dyH.iFc.sAJ.xnr.tg7.IZT.swG {
color: var(--color-text-light) !important;
}
/* Share */
div[data-test-id="lego-share-social-bar-auth"] button,
div[data-test-id="copy-link-share-icon-auth"] div.zI7.iyn.Hsu {
background-color: transparent !important;
}
div[data-test-id="email-share-button-auth"] svg {
rect {
fill: @mantle !important;
}
path {
fill: @subtext1 !important;
}
}
div[data-test-id="sharesheet-contact-item-sent-icon"] svg {
color: @text;
}
div[data-test-id="sharesheet-contact-item-button"]
div[style="background-color: rgb(239, 239, 239); padding-bottom: 100%;"] {
background-color: @mantle !important;
}
/* Messages */
textarea#messageDraft {
background-color: transparent;
color: @subtext1;
caret-color: @text !important;
}
div[data-test-id="add-pin-to-conversation"] {
div[style="border: 1px solid rgb(218, 218, 218); box-shadow: rgba(0, 132, 255, 0) 0px 0px 0px 4px; padding: 4px 15px; min-height: 48px; width: 100%;"] {
border-color: @mantle !important;
}
div[style="border: 1px solid transparent; box-shadow: rgba(0, 132, 255, 0.5) 0px 0px 0px 4px; padding: 4px 15px; min-height: 48px; width: 100%;"] {
box-shadow: 0 0 0 4px var(--g-color-focus) !important;
}
}
/* Create */
div[style="background-color: rgba(255, 255, 255, 0.8); margin: 24px 0px 0px; z-index: 1;"] {
background-color: fadeout(@base, 20%) !important;
}
input#scrape-view-website-link {
background-color: @base !important;
}
div[data-test-id="image-from-search-container"] {
--color-text-icon-inverse: @subtext1;
}
div[data-test-id="storyboard-draft-placeholder-rep"] div.ho-.zI7.iyn.Hsu {
background-color: @mantle !important;
background-image: linear-gradient(
to right,
@mantle 0%,
@crust 20%,
@mantle 40%,
@mantle 100%
) !important;
}
div[data-test-id="drafts-container"] {
--color-text-dark: var(--color-text-default);
div[style="border-color: rgb(17, 17, 17);"] {
border-color: @crust !important;
}
}
div[data-test-id="drag-behavior-container"] svg {
color: @subtext1;
}
div[data-test-id="storyboard-pin-card-item"] {
border-color: @crust !important;
}
button[data-test-id="board-dropdown-select-button"] {
background-color: @base !important;
span {
color: @subtext1 !important;
}
}
div[data-test-id="storyboard-interest-tags"]
div[style="background-color: rgb(17, 17, 17);"] {
background-color: @subtext1 !important;
}
div[data-test-id="editor-canvas-container"] div {
border-color: @accent-color !important;
}
input[data-test-id="storyboard-editor-details-text-size"] {
background-color: @mantle !important;
color: @text !important;
border-color: @crust !important;
}
div[data-test-id="storyboard-editor-details-text-color-picker"] {
input {
color: @text !important;
background-color: transparent !important;
}
.LJB {
border-color: @crust !important;
}
div[style="height: 40px; box-shadow: rgb(239, 239, 239) 0px 0px 0px 2px inset;"] {
box-shadow: 0 0 0 2px @crust inset !important;
}
}
div[role="tablist"] button[aria-selected="true"] {
background-color: @crust !important;
}
input[type="text"],
input[type="search"] {
color: @text;
}
/* Login */
div[data-test-id="signup-default-modal"],
div[data-test-id="login-modal-default"],
div[data-test-id="login-modal-mfa"] {
background-color: @base !important;
h1 {
color: @text !important;
}
p {
color: @subtext0 !important;
}
button[data-test-id="login-signup-toggle"] {
color: @accent-color !important;
}
button.red.active {
background-color: @accent-color !important;
color: @crust !important;
}
button.red.active:hover,
button.red.active:focus {
background-color: darken(@accent-color, 2.5%) !important;
}
span[data-test-id="terms-of-service"],
div[style="margin-top: 15px; color: rgb(51, 51, 51);"] {
color: @subtext1 !important;
a {
color: @accent-color !important;
}
}
}
/* Not logged in */
div[style="height: 200px; background: linear-gradient(rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 70%);"] {
background: linear-gradient(
fadeout(@base, 100%) 0%,
@base 70%
) !important;
}
div#mweb-unauth-container div.HFo.Jea.KS5._he.zI7.iyn.Hsu,
div[data-test-id="header"]
div[style="background-color: rgba(255, 255, 255, 0.95); height: 100%; width: 100%;"] {
background-color: @base !important;
}
span[data-test-id="terms-of-service"] a {
color: @accent-color !important;
}
div[data-test-id="breadcrumbs-list"] div.MIw.Rym.zI7.iyn.Hsu,
div[data-test-id="vase-carousel"] div[data-test-id="left-scroll-arrow"] {
background-image: linear-gradient(
to left,
fadeout(@base, 100%),
@base
) !important;
}
div[data-test-id="breadcrumbs-list"] div.MIw.p6V.zI7.iyn.Hsu,
div[data-test-id="vase-carousel"] div[data-test-id="right-scroll-arrow"] {
background-image: linear-gradient(
to right,
fadeout(@base, 100%),
@base
) !important;
}
div[data-test-id="standard-save-button"] span {
color: @mantle !important;
}
/* Other */
div[data-test-id="public-beta-page"] {
--color-text-light: @text;
--color-background-recommendation-weak: @crust;
}
div[data-layout-shift-boundary-id="PageContainer"] {
--color-text-inverse: var(--color-text-light);
}
}
}
/* 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