diff --git a/scripts/userstyles.yml b/scripts/userstyles.yml index 0721660d..ae0c77d5 100644 --- a/scripts/userstyles.yml +++ b/scripts/userstyles.yml @@ -401,6 +401,14 @@ userstyles: If the theme isn't being applied to your instance, go to the userstyle's **Settings > Custom included sites** and add your instance to the list, for instance, `*://searxng.example.com/*`. app-link: "https://github.com/searxng/searxng" current-maintainers: [*sekki21956, *ryanccn] + spotify-web: + name: Spotify Web + category: leisure + icon: spotify + color: green + readme: + app-link: "https://open.spotify.com" + current-maintainers: [*tnixc] startpage: name: Startpage category: search_engine diff --git a/styles/spotify-web/assets/catwalk.webp b/styles/spotify-web/assets/catwalk.webp new file mode 100644 index 00000000..cb612950 --- /dev/null +++ b/styles/spotify-web/assets/catwalk.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f882e1fb4dc7f315b98cc5cf524a9c27ddd3d5191609674fd3c72ceac4ef323 +size 334504 diff --git a/styles/spotify-web/assets/frappe.webp b/styles/spotify-web/assets/frappe.webp new file mode 100644 index 00000000..53117278 --- /dev/null +++ b/styles/spotify-web/assets/frappe.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c314522eb96486b64e8b8e9339a5391e51a25f3fb0189305ca87992044144d5f +size 195104 diff --git a/styles/spotify-web/assets/latte.webp b/styles/spotify-web/assets/latte.webp new file mode 100644 index 00000000..871b6361 --- /dev/null +++ b/styles/spotify-web/assets/latte.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3d1299ba9db7bd26ae3fa6c6f3d9c5177e434ce800650c27787592c2bfb4ca2 +size 187496 diff --git a/styles/spotify-web/assets/macchiato.webp b/styles/spotify-web/assets/macchiato.webp new file mode 100644 index 00000000..3beb0d24 --- /dev/null +++ b/styles/spotify-web/assets/macchiato.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c105b527cd2c6b7def12f0c70bbcd15c31301e092df6e454922d14c35bdb95c +size 197574 diff --git a/styles/spotify-web/assets/mocha.webp b/styles/spotify-web/assets/mocha.webp new file mode 100644 index 00000000..e1b8df53 --- /dev/null +++ b/styles/spotify-web/assets/mocha.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f0e8955683d96070fd307117fd23aeb8d16671db4037a19e81ea755b1c5629e +size 199980 diff --git a/styles/spotify-web/catppuccin.user.css b/styles/spotify-web/catppuccin.user.css new file mode 100644 index 00000000..f40db273 --- /dev/null +++ b/styles/spotify-web/catppuccin.user.css @@ -0,0 +1,369 @@ +/* ==UserStyle== +@name Spotify Web Catppuccin +@namespace github.com/catppuccin/userstyles/styles/spotify-web +@homepageURL https://github.com/catppuccin/userstyles/tree/main/styles/spotify-web +@version 0.0.1 +@updateURL https://github.com/catppuccin/userstyles/raw/main/styles/spotify-web/catppuccin.user.css +@description Soothing pastel theme for Spotify Web +@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== */ +/* If you need any help with the information above, please see: https://github.com/openstyles/stylus/wiki/Writing-UserCSS#var */ + +/* Apply Theme To Site + * For help with URL rules, please see https://github.com/openstyles/stylus/wiki/Writing-styles#valid--moz-document-rules */ + @-moz-document domain('open.spotify.com') { + // Palette Lookup Table + /* 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; + }; + } + + /* Userstyle as Mixin + * This takes the following Parameters: + * @lookup – which is the desired Flavor + * @accent – which is the desired Accent Color */ + #catppuccin(@lookup, @accent) { + // unpacking the color codes from the current @lookup flavor + @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]; + .encore-dark-theme, + .encore-dark-theme .encore-base-set, + .encore-light-theme, + .encore-light-theme .encore-base-set, + .encore-dark-theme .encore-inverted-light-set { + --background-base: @base; + --background-highlight: @surface0; + --background-press: @crust; + --background-elevated-base: @surface0; + --background-elevated-highlight: @surface1; + --background-elevated-press: @crust; + --background-tinted-base: @crust; + --background-tinted-highlight: @mantle; + --background-tinted-press: @base; + --background-unsafe-for-small-text-base: @base; + --background-unsafe-for-small-text-highlight: @base; + --background-unsafe-for-small-text-press: @base; + --text-base: @text; + --text-subdued: @subtext1; + --text-bright-accent: @accent-color; + --text-negative: @red; + --text-warning: @yellow; + --text-positive: @accent-color; + --text-announcement: @sapphire; + --essential-base: @text; + --essential-subdued: @subtext1; + --essential-bright-accent: @accent-color; + --essential-negative: @red; + --essential-warning: @yellow; + --essential-positive: @green; + --essential-announcement: @base; + --decorative-base: @text; + --decorative-subdued: @surface2; + } + .encore-dark-theme .encore-inverted-light-set { + --background-base: @surface1; + --background-highlight: @surface0; + --background-press: @surface1; + } + .encore-dark-theme .encore-bright-accent-set { + --background-base: @accent-color; + --background-highlight: @accent-color; + --background-press: @accent-color; + --background-elevated-base: @accent-color; + --background-elevated-highlight: @accent-color; + --background-elevated-press: @accent-color; + --background-tinted-base: @accent-color; + --background-tinted-highlight: @accent-color; + --background-tinted-press: @accent-color; + --background-unsafe-for-small-text-base: @accent-color; + --background-unsafe-for-small-text-highlight: @accent-color; + --background-unsafe-for-small-text-press: @accent-color; + --decorative-subdued: darken(@accent-color, 10%); + } + .encore-dark-theme .encore-over-media-set { + --background-base: @mantle; + --background-highlight: @crust; + --background-press: @mantle; + --background-unsafe-for-small-text-base: @mantle; + --background-unsafe-for-small-text-highlight: @mantle; + --background-unsafe-for-small-text-press: @mantle; + --background-elevated-base: @crust; + --background-elevated-highlight: @crust; + --background-elevated-press: @mantle; + --background-tinted-base: @mantle; + --background-tinted-highlight: @mantle; + --background-tinted-press: @mantle; + } + & when (@lookup = latte) { + .T1xI1RTSFU7Wu94UuvE6 * { + background: @surface0 !important; + } + .bQthUEx0_U98DJkT1saO, .RVRoa p{ + color: @base !important; + } + } + .ydlidzq2hSQrvGXn7yni { + background: @text; + color: @crust; + } + .encore-dark-theme .encore-base-set > *, + .encore-dark-theme > * { + --parents-essential-base: @text; + } + .X8yW2lJbFCQfV5GjoRwL { + --generic-tooltip-background-color: @mantle; + } + .SboKmDrCTZng7t4EgNoM { + background-color: @mantle !important; + } + + #main > * > *, + .sqKERfoKl4KwrtHqcKOd, + .HkbHLcqgUfXruL5xVi28, + .uhDzVbFHyCQDH6WrWZaC, + .pHrwZOFBdT8FNXnmcPPI { + background: @crust !important; + } + // Some animated bar icon + .uWvwXlS0Da1bWsRX6KOw, + .n5XwsUqagSoVk8oMiw1x { + filter: saturate(0) brightness(1.3) !important; + } + .eoWRdH, + .in4OjUTflcsoj9RUpf05 *, + .gpNta6i8q3KYJC6WBZQC * { + color: @subtext0 !important; + } + ._EShSNaBK1wUIaZQFJJQ { + box-shadow: 0 4px 20px @mantle; + } + .T1xI1RTSFU7Wu94UuvE6, + .gHImFiUWOg93pvTefeAD, + .CoLO4pdSl8LGWyVZA00t { + background: @base !important; + } + .ListRowTitle__LineClamp-sc-1xe2if1-0.lmgIvZ *, + .EaTxqhHk6J4ecKHwpY5m *, + .SboKmDrCTZng7t4EgNoM *, + .MfVrtIzQJ7iZXfRWg6eM, + .Ydwa1P5GkCggtLlSvphs, + .Fb61sprjhh75aOITDnsJ *, + .Ai_McRq9wJEYK21w8nX_ *, + .QZhV0hWVKlExlKr266jo::placeholder, + .JzZyf6OGCGtdscOZGt8Y.t6HIrX67Lp80Nj6tGauz *, + .hfdkySA4kiUldFsPj9lD.ZcNcu7WZgOAz_Mkcoff3 *, + .ListRowTitle__LineClamp-sc-1xe2if1-0 *, + .FZhaXNtbN3Crwrgd0TA7.control-button, + .COJ84QbXPrd4jkO1HU2N *, + .zhQX2DOI2muMo8EKsZ6h, + .MHIOvvlSYRmF7VAJDLWy, + .JouuH90_RNAdTj0ZjcCA, + .r9m6lHy7RyIPDzW1Youe, + .PDPsYDh4ntfQE3B4duUI, + .bfQ2S9bMXr_kJjqEfcwA *, + .QO9loc33XC50mMRUCIvf, + .G7zO58ORUHxcUw0sXktM, + .rq2VQ5mb9SDAFWbBIUIn *, + .lp9Tfm4rsM9_pfbIE0zd, + .w6j_vX6SF5IxSXrrkYw5, + .prGqQr33U0mG14TJ5V8a *, + .BQD_pE0Nva_z6z7CvZww *, + .W5cB_o0XkkU7Q8tlTGxq, + .PGSe59fD1Hwc9yUM2d3U a, + .jb9xD5ECTqKFK02qe3HZ *, + .X8yW2lJbFCQfV5GjoRwL *, + .tbvnCR3ZJxmAKY6nRPBe, + .CmR9tHJ5ta6oWJlKBm3k *, + .xgmjVLxjqfcXK5BV_XyN.fUYMR7LuRXv0KJWFvRZA, + .DzWw3g4E_66wu9ktqn36 .home-active-icon, + .Footer__StyledFooter-sc-xwm5vq-0 *, + .DzWw3g4E_66wu9ktqn36 .search-active-icon { + color: @text !important; + } + .ThG4UqWk7ASXCMm69Opn, + .BQD_pE0Nva_z6z7CvZww *, + .k2ndSrHzhAsXBcLqRKYx * { + color: @overlay2 !important; + } + + *[class*="ButtonInner-sc-14ud5tc-0 GBxjH encore-bright-accent-set vq0lsCoYrDUDvkuUIaRg"] + * { + color: @crust !important; + fill: @crust !important; + } + .bk509U3ZhZc9YBJAmoPB { + background: @mantle; + } + .HVCCFeUiHVwZVv74p34a * { + background: @surface0 !important; + } + .QO9loc33XC50mMRUCIvf { + background-color: @surface0; + } + .QO9loc33XC50mMRUCIvf:focus { + -webkit-box-shadow: 0 0 0 2px @text; + box-shadow: 0 0 0 2px @text; + } + .QO9loc33XC50mMRUCIvf:hover { + background-color: @surface1; + } + .H6jh9Xd7DNOq3NsLDmCB:active, + .H6jh9Xd7DNOq3NsLDmCB:focus, + .H6jh9Xd7DNOq3NsLDmCB:hover { + color: @text !important; + } + .H6jh9Xd7DNOq3NsLDmCB { + color: @text; + } + .kPpCsU { + fill: @text; + } + .VgSbatGBB9XwTH2_dsxg .ql0zZd7giPXSnPg75NR0 { + background: @base !important; + color: @text; + } + .HsbczDqu9qjcYr7EIdHR, + .rovbQsmAS_mwvpKHaVhQ * { + background: transparent !important; + } + .Z35BWOA10YGn5uc9YgAp, + .pQmF4tvRpUeLWgPKUcW7 { + background-color: @crust; + } + // Explicit icon + .kpGMQq1KFz620g_BD_dS { + background-color: @overlay0; + } + .link-subtle { + color: @subtext1; + &:hover { + color: @text; + } + } + // Search cards + .LunqxlFIupJw_Dkx6mNx { + background: @mantle !important; + } + .bQthUEx0_U98DJkT1saO, + .RVRoa p { + color: @text; + } + // Social buttons + .kmZeYl { + background-color: @mantle; + &:hover { + background-color: @crust; + } + } + // Icon + .RfidWIoz8FON2WhFoItU { + color: @text; + } + // Playlist bottom + .cuLHaM { + background-color: @base; + } + + // Sidebar top + .y2UicQnlTq148rL8Y0jp { + box-shadow: 0 6px 10px @mantle; + } + // Bottom player + .vnCew8qzJq3cVGlYFXRI { + background-color: @text; + } + .vnCew8qzJq3cVGlYFXRI * { + fill: @crust; + } + + .rovbQsmAS_mwvpKHaVhQ .PFgcCoJSWC3KjhZxHDYH * { + fill: @text !important; + } + .TywOcKZEqNynWecCiATc { + --bg-color: @surface1; + --fg-color: @text; + --is-active-fg-color: @accent-color; + } + a { + color: @accent-color; + } + .Ng3dPPA2_1CFYkzPukjM { + background: @blue; + } + .KAZD28usA1vPz5GVpm63.EHxL6K_6WWDlTCZP6x5w::after { + background-color: @accent-color; + } + .tippy-box[data-theme~="activation"]{ + background-color: @accent-color; + color: @crust; + & .c0KyMkxeMCWQGE7cR8s_ *,& .TextForLabel-sc-1jqya9m-0.kIsEKW{ + color: @crust; + } + } + .zrvvPyoxE6wQNqnu0yWA{ + color: @text; + background: @surface0; + } + input:checked ~ .Js64TOfWtHksI6TQ6knT{ + background: @accent-color !important; + } + .bXJ77rNIJ18Y0GfegQdr + label > :first-child{ + background: @text !important; + } + .Z35BWOA10YGn5uc9YgAp:focus-within, .Z35BWOA10YGn5uc9YgAp:hover, .Z35BWOA10YGn5uc9YgAp[data-context-menu-open="true"]{ + background: @mantle !important; + } + .wC9sIed7pfp47wZbmU6m:hover, .wC9sIed7pfp47wZbmU6m:not([aria-checked="true"]):focus{ + background: @surface0 !important; + } + .DuEPSADpSwCcO880xjUG:not(:first-child) > .QgtQw2NJz7giDZxap2BB::before{ + border-color: @surface0; + } + .eG930DCaQXDFqjhxRGIs > *{ + background: @crust !important; + } + } + + @media (prefers-color-scheme: light) { + #catppuccin(@lightFlavor, @accentColor); + } + @media (prefers-color-scheme: dark) { + #catppuccin(@darkFlavor, @accentColor); + } +} +// vim:ft=less