#Colored Embeds
1 messages · Page 1 of 1 (latest)
updated
actually looks very nice
probably a good idea to have it invert the text color depending on background color
how would you detect that
you can only do it if it's in the style attribute, and you have to do it for every single hexcode you want
well it's defined as hsla, so you'd have to do the hsla you want
i mean you can do that using pure plend layers in theory, never tested that tho
^^
Maybe that would've been a bit important to check 
also this still wouldnt work becuase where do you get the background color from
its a fucking 480px-long border
?
Just realised that it was an inline style, not a CSS variable
my friend @edgy oak invented a thing called chameleon that dynamically changes color based on background using pure blend layers, it may work in pure css but i dont wanna test it rn
kinda smart to inherit the border left and then change the border left's color
*size
mb
huhhhh
that looks so cool
if an embed is in spoiler, the spoiler message is almost hidden
this doesnt work for component v2 embeds
i have never seen a component v2 embed so
holy shit its fucking miles easier
@tacit wharf updated
yop
thank you love it.
but is there any way to bring back the close button? ><
Not part of this snippet, ask #🎨-theme-development
@gloomy quail how would one impliment a specific color into their website?
discord uses opengraph for reading color https://ogp.me/
OGP has a color property?
should
either that or theme-color idk how embeds work
shit got
beleted?
heres what i have in my css
/* ############## */
/* Colored Embeds */
/* ############## */
.embedFull__623de {
overflow: hidden;
}
.embedFull__623de::before {
top: -1px;
content: "";
position: absolute;
border: inherit;
border-left-width: 100vw;
max-width: 100%;
height: calc(100% + 2px);
box-sizing: border-box !important;
opacity: 0.35;
z-index: 1;
border-radius: 0px 0px 0px 0px;
}
.gridContainer__623de {
z-index: 2;
}
