#SpotifyMainColor

1 messages · Page 1 of 1 (latest)

mellow vigil
#

Very niche plugin that takes your currently playing Spotify track, averages the album art color, and sets it as the --vc-spotify-main-color root css variable.

Luminance is upped of 85% to make every color consistently light so you may need to darken the color yourself if needed. This is no longer done.

Gets the color.js library from unpkg.

https://git.nin0.dev/userplugins/spotifyMainColor
-# This thing uses SpotifyControls' SpotifyStore so you may need to have the plugin enabled

balmy whale
#

I would suggest just providing the colour as a raw hex value without the lightness override, since it's already a very niche plugin it might as well allow for more control when theming

pallid raven
#

I was just looking for something like this yesterday, very nice 👍

balmy whale
#

hooray

glass galleon
#

daily nina plugin that fetches remote js and executes it

#

@mellow vigil supply chain attack incoming

mellow vigil
#

we need to BAN cookie

warm sphinx
#

pretty sure discord has a func for dominant colour

#

they use it for banners (to get profile colour)

proud shuttle
#

is this the same as

#vc-spotify-progress-bar > [class^="slider_"] > [class^="bar_"] > [class^="barFill_"] {
    background-color: white !important;
    background: var(--vc-spotify-track-image);
    background-size: 1px 100%;
}
#vc-spotify-progress-bar > [class^="slider_"] > [class^="bar_"] > [class^="barFill_"]::before {
    content: "";
    position: fixed;
    height: inherit;
    width: inherit;
    top: inherit;
    left: inherit;
    border-radius: 4px 0 0 4px;
    backdrop-filter: blur(10px) saturate(4) brightness(1.6);
}```
#

full css:

/* Beautiful Spotify player */
#vc-spotify-player {
    --blur-amount: 4px; 
    --normal-bg-colour: var(--bg-overlay-floating, var(--background-base-low, var(--background-secondary-alt)));

    position: relative;
    background: linear-gradient(to bottom, transparent 0%, var(--normal-bg-colour) 100%) !important;
    overflow: hidden;
    transition: all 0.4s ease-out;
    > * {
      filter: drop-shadow(0 0 10px var(--normal-bg-colour));
    }
}
#vc-spotify-player:hover {
    --blur-amount: 0px;
}
#vc-spotify-player::before,
#vc-spotify-player::after {
    z-index: -1;
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transition: all 0.4s ease-out;
}
#vc-spotify-player::before {
    background: var(--vc-spotify-track-image);
    background-position: center top; 
    background-size: cover; 
    opacity: 0.5;
}
#vc-spotify-player:hover::before {
    opacity: 0.7;
}
#vc-spotify-player::after {
    backdrop-filter: blur(var(--blur-amount));
}
#vc-spotify-progress-bar > [class^="slider_"] > [class^="bar_"] > [class^="barFill_"] {
    background-color: white !important;
    background: var(--vc-spotify-track-image);
    background-size: 1px 100%;
}
#vc-spotify-progress-bar > [class^="slider_"] > [class^="bar_"] > [class^="barFill_"]::before {
    content: "";
    position: fixed;
    height: inherit;
    width: inherit;
    top: inherit;
    left: inherit;
    border-radius: 4px 0 0 4px;
    backdrop-filter: blur(10px) saturate(4) brightness(1.6);
}```
#

o wait nvm

#

i got confused on what this acc does

#

lmfao

balmy whale
#

My pure CSS version is also INCREDIBLY cursed and horrible

mellow vigil
#

this might be a little broken

proud shuttle
balmy whale
heavy pawn
#

THANK YOU SO MUCH OMG

#

I NEEDED THIS SO MUCH

severe flax
#

We need to normalize photos for what it looks like

balmy whale
mellow vigil