Simple dark mode for Pinterest.
Pinterest Dark Mode by kittymmeow
Details
Authorkittymmeow
LicenseNo License
Categorypinterest
Created
Updated
Size5.6 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
This uses Pinterest's native variables whenever possible to ensure maximum consistent coverage of dark mode.
Not 100% tested in all situations, but should give a clean and consistent experience for browsing.
Source code
/* ==UserStyle==
@name Pinterest Dark Mode
@version 2024.12
@namespace https://userstyles.world/user/kittymmeow
@description Simple dark mode for Pinterest.
@author kittymmeow
@license No License
==/UserStyle== */
@-moz-document domain("pinterest.com") {
/* Color palette */
:root {
--palette-black: #000000;
--palette-gray-1: #0f0f0f;
--palette-gray-2: #171717;
--palette-gray-3: #1c1c1c;
--palette-gray-4: #1f1f1f;
--palette-gray-5: #262626;
--palette-gray-6: #333333;
--palette-gray-7: #8a8a8a;
--palette-gray-8: #ededed;
}
}
@-moz-document domain("pinterest.com") {
/* Recoloring variables */
:root {
--color-background-box-darkwash: var(--palette-gray-5);
--color-background-box-default: var(--palette-black);
--color-background-box-light: var(--palette-black);
--color-background-box-lightwash: var(--palette-gray-3);
--color-background-box-secondary: var(--palette-gray-2);
--color-background-box-selected: var(--color-background-box-primary);
--color-background-button-disabled-default: var(--palette-gray-2);
--color-background-button-secondary-active: var(--palette-gray-5);
--color-background-button-secondary-default: var(--palette-gray-2);
--color-background-button-secondary-disabled: var(--palette-gray-2);
--color-background-button-secondary-hover: var(--palette-gray-3);
--color-background-button-selected-default: var(--palette-gray-8);
--color-background-button-selected-disabled: var(--palette-gray-8);
--color-background-button-white-active: var(--palette-gray-4);
--color-background-button-white-default: var(--palette-black);
--color-background-button-white-disabled: var(--palette-gray-2);
--color-background-button-white-hover: var(--palette-gray-1);
--color-background-checkbox-checked-default: var(--palette-gray-8);
--color-background-checkbox-unchecked-default: var(--palette-black);
--color-background-datepicker-button-selected-default: var(--palette-gray-8);
--color-background-datepicker-container: var(--palette-black);
--color-background-default: var(--palette-black);
--color-background-formfield-disabled: var(--palette-gray-1);
--color-background-formfield-primary: var(--palette-black);
--color-background-formfield-selected: var(--palette-gray-8);
--color-background-overlay: var(--palette-black);
--color-background-popover-primary: var(--palette-black);
--color-background-popover-secondary: var(--palette-gray-8);
--color-background-tabs-default-active: var(--palette-gray-3);
--color-background-tabs-default-base: var(--palette-black);
--color-background-tabs-default-hover: var(--palette-gray-2);
--color-background-tag-primary-active: var(--palette-gray-5);
--color-background-tag-primary-default: var(--palette-gray-2);
--color-background-tag-primary-hover: var(--palette-gray-3);
--color-background-wash-dark: rgba(255, 255, 255, 0.9);
--color-background-wash-light: rgba(0, 0, 0, 0.8);
--color-border-checkbox-checked-default: var(--palette-gray-8);
--color-border-checkbox-unchecked-default: var(--palette-gray-7);
--color-border-container: var(--palette-gray-6);
--color-border-popover-primary: var(--palette-black);
--color-border-switch-default-selected: var(--palette-gray-8);
--color-icon-default: var(--palette-gray-8);
--color-icon-inverse: var(--palette-black);
--color-text-default: var(--palette-gray-8);
--color-text-dark: var(--palette-gray-8);
--color-text-formfield-default: var(--palette-gray-8);
--color-text-formfield-disabled: var(--palette-gray-7);
--color-text-formfield-placeholder: var(--palette-gray-7);
--color-text-inverse: var(--palette-black);
--color-text-light: var(--palette-black);
--color-text-link: #57a2ff;
}
}
@-moz-document domain("pinterest.com") {
/* Specific overrides */
body {
background: var(--color-background-default);
}
.XiG.zI7.iyn.Hsu[data-test-id="pinrep-source-link"] {
background: var(--color-background-button-white-default) !important;
}
.XiG.zI7.iyn.Hsu[data-test-id="pinrep-source-link"] > a > div {
color: var(--color-icon-default)!important;
}
.zI7.iyn.Hsu[data-test-id="pin"] .oRi[data-test-id="PinBetterSaveDropdown"] {
background-color: var(--color-background-button-semitransparentwhite-default);
}
.sLG.zI7.iyn.Hsu[data-test-id="search-filter"] span {
color: var(--color-text-inverse);
}
.zI7.iyn.Hsu[data-test-id="search-cancel"] svg,
.sLG.zI7.iyn.Hsu[data-test-id="search-filter"] svg {
color: var(--color-icon-inverse);
}
.zI7.iyn.Hsu[data-test-id="homefeed-feed"] .qiB > div {
background: var(--color-background-box-default) !important;
}
.mainContainer .Jea.KS5.QLY.Rym._he.mQ8.zI7.iyn.Hsu {
background: transparent !important;
}
.MIw.QLY.zI7.iyn.Hsu[data-test-id="peek-variant-top-gradient"] {
background: linear-gradient(0deg, transparent 0%, var(--color-background-box-default) 100%)!important;
}
.MIw.QLY.zI7.iyn.Hsu[data-test-id="peek-variant-top-gradient"] + .KS5.jzS.mQ8.un8.C9i.TB_ + .MIw.ojN.zI7.iyn.Hsu {
background: linear-gradient(transparent 0%, var(--color-background-box-default) 100%)!important;
}
}