#🎨-theme-development

1 messages · Page 13 of 1

frosty crest
#

mine is also set right xD

vast delta
#

bing bing bing

brisk iron
#

😔

frosty crest
#

but not like making the direction opposite is difficult

mortal mantle
#

LMAO

#

Moonwalk cat

brisk iron
#

lol

mortal mantle
#

Keep it like that

grand surge
#

Is there a way to do something like that (python):

["https://example.xyz", "https://example.xyz", "https://example.xyz"][randint(0, 2)]

in css ?

dull musk
#

random.choice is crying in the corner

grand surge
#

Oh thank 😄

dull musk
#

no you misunderstood me lol

grand surge
#

yes

#

I thought you were giving me the sacred answer that would save me.

dull musk
#

idt you can have any randomness with css

clear siren
#

nope

mortal mantle
#

maybe with scss

#

not with css

vast delta
#

a random function does not exist in css, though with usercss you can select the SASS preprocessor which supports such a function

clear siren
#

or you could have a js snippet, or you could have an @import with a randomized value each load

vast delta
clear siren
#

yeah I know

simple kiln
vast delta
#

thats not what we are talking about

simple kiln
#

awh.. i misunderstood the above..

#

welp, you can do randomize @import by using api that redirect to random url from array..

vast delta
#

#app-mount>.appAsidePanelWrapper__714a6>notAppAsidePanel__9d124>.canvas_b2fcd2

oak plover
#

Randomized is possible with discord

vast delta
#

no

oak plover
#

Uh yeah

vast delta
#

no css only

#

okay tell

oak plover
#

Linear gradient id is a random variable every time you open the page

vast delta
#

linear gradient id?

oak plover
#

Discord has a section in their html structure that’s filled with svgs and gradients used in the app

summer crater
#

Yeah, most masks / js animations have randomized (per session id) ids

vast delta
#

though sure you can show me where that is

oak plover
#

Not home to check my computer but you can select the start of the id for one of the gradients with has and from there just throw in whatever class you want to have affected

#

I did it to randomize the loading screen message in my own theme

#

I’ll see if I can copy something from my phone to show as an example

#
#app-mount:has(>svg>linearGradient:first-child[id^="a9"]) .tipTitle_a7615c:before { 
  content: "Calibrating flux capacitors";
}
#app-mount:has(>svg>linearGradient:first-child[id^="a9"]) .tipTitle_a7615c:after {
  content: "Submitted by @ItsChiefGrief";
}
#app-mount:has(>svg>linearGradient:first-child[id^="ba"]) .tipTitle_a7615c:before { 
  content: "Caution: Contents Spicy";
}
#app-mount:has(>svg>linearGradient:first-child[id^="ba"]) .tipTitle_a7615c:after {
  content: "Submitted by @DinosParkour";
}
#

Something like that

#

You can do the same thing for random images

#

Or whatever it was

vast delta
#

yeah that makes sense, though it's a little clunky for elements that dont just exist once like messages or avatars

#

in your use case it works great but for a lot of situations it could start causing issues with performance

vast delta
#

this thing again

#

i need people to test the height selector and tell me what values they get on maximised

#

for me its my screen resolution minus two pixels, probaby for detecting if im hovering the taskbar

mortal mantle
#

I don't use the discord titlebar :p

#

will try after dinner

vast delta
#

i just read so much css docs

#

anyone that's reading this, try it please :3

#

the darkish gray topbar should disappear and the window close maximise bla bla buttons should move down

#

(well into the header that was further down, they actually only move 4 pixels)

rustic jewel
#

i disabled all css and themes I have running and pasted that snippet only and this is the result

vast delta
#

then it will lead you to an element that has a height and width value, tell me your height value please

#

make sure to have your app maximised

rustic jewel
#

pretty sure its 1080

clear siren
#

I get height 1402 on vesktop using discord titlebar, 1440p monitor, modified win11 taskbar to be smaller, no other css applied

#

if you're looking to make a selector that determines if the window is maximized there are much better ways

#

actually there might not be

#

anyways that will easily break because you can't trust the taskbar height to be consistent :(

vast delta
#

It seems like I was indeed correct about using the > and space selectors, though I would imagine the difference is comparable to the one between ID and class

#

Steve Souders also said that custom properties are inefficient but those aren't worth mentioning because not even a deranged psychopath like me would ever get to 50000 variables (I dont have the time to name them all in pretty ways :)

clear siren
#

👍

dawn wind
#

is it possible to edit css variables IN css

#

like var(--accent-color)+33

#

so accent color with an alpha of 33

mortal mantle
#

var(--accent-color)/33%

#

something like this?

brisk iron
#

you can do

some-selector {
  --foo: 1, 2, 3;
  property: rgba(var(--foo), .33);
}
teal cave
edgy sentinel
vast delta
teal cave
#

^ vesktop/web only but v cool

dawn wind
#

ill js change to rgb

mortal mantle
#

i wish other discord clients could also support color-mix

dawn wind
#

I'm tryna make one of those link in bio pages

#

that I can just let other people use with ease

mortal mantle
#

whar is that

dawn wind
#

yk sites that ppl have in bios?

#

that have info and some links

mortal mantle
#

i see

dawn wind
#

I want it to grab the dominant color from the banner canvas and theme the page off that

#

that's why

mortal mantle
#

that would require some js right?

dawn wind
#

Yeah it does

#

I have it setting only one accent color

#

I js wanted to learn how to do it in css

#

cz ik i coulda js smashed a +33 on the end with js

#

but i was curious

mortal mantle
#

thats why I dont really like hex colors

dawn wind
#

i can kinda create them in my head

#

whereas rgb doesnt make as much sense to me idk why

mortal mantle
#

HSL makes the most sense to me

#

rgb just doesnt make sense i agree

alpine cove
#

hsl is rgb tilted on its corner

mortal mantle
#

whar

alpine cove
#

it is

mortal mantle
#

i can tell some colors just by looking at the HSL

#

cant do shit with hex and rgb

clear siren
#

join me in oklch()

#

forget inferior color formats

alpine cove
#

true

vestal field
#

true

#

honestly lch is pretty good as well

glossy aurora
#

the best color system is a single integer named color with no indication as to what system it uses

mortal mantle
#

salmon

glossy aurora
#

the color red can be stored as 11546150

teal cave
#

time to create a sass module that's just mapping pantone colours to a sensible colour system, so that people who are only familiar with wall paint and wool dye can write css easily

#

never fucking mind

summer adder
#

im too cute and stupid to figure out the link color class

#

i've tried anchor_c8ddc0 anchorUnderlineOnHover__78236, but doesnt seem to be it

#

am i just acoustic?

clear siren
#

.markup_a7e664 a is the selector discord uses but either of those should also work (not both) and preceded with a . obviously

#

or you can also :root { --text-link: whatever !important; }

vestal field
summer adder
#

ahh

#

alright ill try that

#

worked, thanks

#

its an eyesore. i love it.

summer adder
#

surely theres more than just --text-link

#

would be useful to know them or know how to find them

clear siren
#

if you scroll down on the styles in devtools you will find them

summer adder
#

assuming they're findable in vesktop as well?

clear siren
#

yes

summer adder
#

alright good

#

assuming its the first style category i have selected, right?

clear siren
#

no I mean select any element and scroll down on the right pane

summer adder
#

ahhh

clear siren
#

you can then also click the app.xxxx.css

#

and it will take you to the file they're in

summer adder
#

alright

#

yeah sorry for my dumbness over here lol, i learnt css but not a whole lot

#

i plan to take more courses in the future

clear siren
#

I learned everything by just throwing random css at things and see what sticks, but also https://developer.mozilla.org/en-US/docs/Web/CSS/Reference

MDN Web Docs

Use this CSS reference to browse an alphabetical index of all of the standard CSS properties, pseudo-classes, pseudo-elements, data types, functional notations and at-rules. You can also browse key CSS concepts and a list of selectors organized by type. Also included is a brief DOM-CSS / CSSOM reference.

summer adder
#

thanks tho, helps a lot to know where i can find the styles

#

hehehe its even more of an eyesore now, i love it

#

got bored of the eyesore and made it less of an eyesore

#

changed text

summer adder
#

need help again

#

i literally for the life of me cant find that little yellow rectangle from mentions

clear siren
#

I don't even know what I'm looking at

#

oh I think you mean [class*=mentioned_]::before maybe?

summer adder
#

ill try it

deft niche
#

guys is discord supposed to look like this 🥺 🥺 🥺 🥺 🥺

summer adder
deft niche
#

beautiful

summer adder
#

@summer adder

#

@clear siren nope

#

not the little yellow rectangle

#

this thing

clear siren
#

uhh

#

<---- the one that shows up there @summer adder ?

summer adder
#

yes

#

that tiny one at the very end left

clear siren
#

[class*=mentioned_]::before should select it

#

I have it as display:none and styled the message instead

summer adder
#

nothing, not changing

#

is the code good?

#

[class*="mentioned_"]::before {
color: rgb(128, 81, 172);
}

clear siren
#

use background-color

summer adder
#

ahh that did it

#

thx

clear siren
#

color only effects contents which it has none

summer adder
#

ahhh makes sense

#

but yeah got it to be purple, thx

clear siren
#

I did this

summer adder
#

nicee

deft niche
#

i broke it so bad holy shit 💀

rugged echo
#

skewcord

summer adder
deft niche
#

if(broken)
{
breakmore();
}
else
{
breakmore();
}

summer adder
#

elseelse
{
breakmoremore();
}

#

well this shits pretty much done

#
    --text-normal: rgb(128, 81, 172);
    --text-link: rgb(161, 103, 214);
    --channels-default: rgb(128, 81, 172);
    --interactive-active: rgb(128, 81, 172);
    --channel-icon: rgb(128, 81, 172);
    --interactive-normal: rgb(128, 81, 172);
    --mention-foreground: rgb(161, 103, 214);
    --mention-background: rgb(84, 54, 112);
    --background-mentioned-hover: rgb(61, 39, 82);
    --background-mentioned: rgb(63, 40, 85);
    --text-muted: rgb(128, 81, 172);
    --header-primary: rgb(128, 81, 172);
    --brand-experiment: rgb(128, 81, 172);
    --brand-experiment-560: rgb(128, 81, 172);
}

[class="repliedTextPreview__90311 clickable_d866f1"] {
    color: rgb(128, 81, 172);
}

[class*="mentioned_"]::before {
    background-color: rgb(128, 81, 172);
}

.liveShapeRound__811c0 {
    background-color: rgb(128, 81, 172);
}```
#

best used with clientheme plugin, with the color code #352a4e

vestal field
#

drop a pic

summer adder
#

without:

#

really goes well with the client theme plugin, with the color #352a4e

summer adder
#

now time to put it onto a github repo so i can just use @import instead of clogging up space

#

there we go

#

if you want the repo

rugged echo
#

purple.txt

summer adder
#

well thats what it does

rugged echo
#

no I mean it should be .css, but maybe it works with an import anyways

summer adder
#

yeah it does work, but thx for the heads up

#

there i updated it to be .css

#

yo, any way to recolor the discord logo when started

#

this fucker

#

i get its like a looped video but is there a way

#

?

supple jacinth
#
video[data-testid="app-spinner"] {
filter: saturate(0) brightness(0) invert(74%) sepia(4%) saturate(3176%) hue-rotate(196deg) brightness(101%) contrast(103%);
}
#

quite cursed

edgy sentinel
#
video[data-testid="app-spinner"] {
  filter: brightness(0) saturate(100%) [... - YOUR GENERATED FILTERS HERE];
}
summer adder
#

alright, thanks

sweet tundra
#

hug

#

huh

#

they use a video element for the spinny thing

#

why arent they using an svg animation

glossy aurora
#

discord moment

summer adder
#

but thank you, now it actually looks good

#

so that now means that this, is officially considered a theme instead of just css to me

summer edge
solid ore
#

is there a way to replace this shiggy with another gif or svg? or just what is the selector

clear siren
#

doubt it, even if there was a selector for it it probably would not be stylable

#

I might be wrong though

mortal mantle
#

there could be something in vesktop's source code

#

replace it and build from source is the solution I could think of

clear siren
#

css won't effect it as I predicted

solid ore
summer adder
#

anybody know any secret spots of discord i wouldn’t find normally to color

#

making a theme and want to color all possible stuff

prisma garden
summer adder
#

what does ctrl K do again

#

i’m not near my computer rn

#

and won’t be for like 3-4 hours

gilded cloak
#

Quick navigation dialog

summer adder
#

ahhh right

#

and i remember ctrl /, just the control menu

clear siren
#

be sure to rice up the delete account page too

glad urchin
#

nitor page

summer adder
#

those all take seperate colors?

#

damn discord you really like doing things the hard way

clear siren
#

they use the same color variables as everything else really

summer adder
#

noted that i have to do all those

#

think i’m also gonna end up making the bg colors actually part of the theme instead of just telling people to use a specific hex code in clienttheme

#

just seems easier

#

(and most the time they won’t even see the comment i left for it cause they would probably use @import)

summer adder
#

and apparently ctrl k is already affected, but thats probably only due to the clienttheme plugin being enabled. still will have to change its color

#

but at least its good to know what it'll look like

summer adder
#

the hell are the scrollers at

#

i cant find their name/style

clear siren
#

you can change their color with --scrollbar-thin-track --scrollbar-auto-track --scrollbar-thin-thumb --scrollbar-auto-thumb

summer adder
#

ahhh alr

#

thx

clear siren
summer adder
#

thx you now it actually looks good

summer adder
#

just pushed out an update to my theme

#

now it actually colors the client itself instead of relying on the client theme plugin

#

i went from 34 lines of work

#

to a whopping

#

95

steel scroll
#

you can also

summer adder
#

nah i like doing it myself

steel scroll
#

just make sure your theme doesn't explode discord

#

a lot of lag comes from themes that change a lot of stuff

summer adder
#

so far it runs silky smooth as if it doesnt even have the theme

steel scroll
#

ClientTheme doesn't hurt because it only changes vars

teal cave
#

I think it nice to cause lag and problems so that only the most stubborn fuckers will use your theme :bran:

summer adder
#

how can i change pfps?

#

like as in webhook pfps that dont have a pfp assigned

#

i wanna do this because i know darn well the pfp isnt gonna change

#

and for personal use

edgy sentinel
#

i think theres no way to differentiate between a webhook and people using no pfp with pure css

#

you can match avatars using that specific img as their src and change the image, but it'll also affect people with no pfp

summer adder
#

ah oh well, up to those people to get a pfp

#

thx for the tip

edgy sentinel
#
.avatar__08316[src="/assets/5d6a5e9d7d77ac29116e.png"] {
    content: url("https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless");
}
summer adder
clear siren
#
 { content: url("xxxx") !important; }``` will this not work? won't the webhooks have a username?
edgy sentinel
#

what does -xxxxxxxxxxxxxxx stand for here

#

the userId of webhooks is just the webhook id

clear siren
#

random numbers that each user has I dunno what they are

edgy sentinel
#

theres no way to know if its a webhook or user with pure css

clear siren
#

oh you're right the 'username' is random for each message, nvm (or rather it's the timestamp)

summer adder
#

anyways it worked, thx. doubles as my call to action and for suspicious accounts

edgy sentinel
#

if you care, i can add a way to differentiate whether a message is a webhook, bot or user

#

via the ThemeAttributes plugin

#

would be really easy

summer adder
#

wdym

#

doesnt discord already do that with the tags

clear siren
#

yeah those could be used in a selector

edgy sentinel
#

not really

#

they dont let u differentiate between bot and webhook

summer adder
#

i mean

#

it says webhook right there

clear siren
#

webhooks do have data-tag="webhook" in them

edgy sentinel
#

thats MoreUserTags lmao

#

but yes true you could use that

clear siren
#

yeah but still

edgy sentinel
#
.messageListItem__6a4fb:has(.botTag__11e95[data-tag="webhook"]) .avatar__08316[src="/assets/5d6a5e9d7d77ac29116e.png"] {
    content: url("https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless");
}
#

cursed

summer adder
#

ill disable the plugin and see whjat this does cause im too dumb to figure out myself

#

so far i see no difference

#

@cloud jolt

#

nope

#

then again

#

im stupid

#

venbot isnt even a fucking webhook

#

weird

#

even with everything turned off and that code put in

#

im not seeing anything

#

@edgy sentinel im big stupid, what is this supposed to do

edgy sentinel
#

thats a bot not webhook

#

or rather

summer adder
edgy sentinel
#

you don't have MoreUserTags enabled

#

either one of those

summer adder
#

oh it NEEDS to be enabled

#

alrightie

edgy sentinel
#

yeah bestie 😭

#

you can use the previous one too

#

this one ONLY targets webhooks

#

no normal users

summer adder
#

alrightie

#

yeah i had disabled it for this css cause i thought i needed to 😭

#

alrightie ill go look at it on my github webhook

#

what the carp

#

nothing

#

and the codes in my quickcss!!!

clear siren
#

yeah because that has an avatar

summer adder
#

ah

#

look at them go

#

:3

clear siren
#

:3

summer adder
#

thats it

#

i need a code

#

thats just

#

(psuedo code)

teal cave
#

every bot is shig

summer adder
#

if image
replace with shiggy gif

#

everyone

#

everything

#

shig.

clear siren
#

that's easy enough, img { content: url(shig.gif) !important; }

summer adder
#

lemme try

#

ill put it in theme folder so its toggleble

#

okay so

#

you got the wrong shiggy gif destination

#

or something happened

clear siren
#

works for me

summer adder
#

maybe i just need to refresh my client after

#

nope

#

maybe. dont put it in theme folder for toggling.

clear siren
#

img { content: url(https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless) !important; } works in quickcss

#

but now that I removed it all avatars broke lol gotta restart client

summer adder
#

lol

clear siren
summer adder
#

EVERYTHINGS SHIGGY

#

AMAZING

#

now time to put it in the theme folder

#

okay

summer adder
#

put that exact code

#

into a css file

#

and into the themes folder

#

when you toggle the theme back off

#

all images reset

#

so your icons wont be broken

clear siren
#

yeah well not like I want to keep that as a theme lol

summer adder
#

why not though

#

its amazing

clear siren
#

want more amazing? * { background: url(https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless) !important;}

summer adder
#

please tell me

#

that this just makes

#

the background of discord

#

shaggy

#

shiggy*

#

fuck off autocorrect

edgy sentinel
#

it makes the background of everything shiggy

#

aka unusable

summer adder
#

perfect*

edgy sentinel
oak plover
#

shiggy overdrive

mortal mantle
#

I love troll snippets

warm bough
#

how can I find the variable that controls the colour of a button when it's pressed or hovered over, like those blurple ones you just find around discord or even ones like the delete account option?

deft niche
#

how do i edit the message text class? i tried span but its not working

#

(message text class as in the text element that displays message content)

clear siren
deft niche
clear siren
#

what are you trying to achieve specifically

#

I can write you the code you need

deft niche
#

oh wait it works now, nevermind, idk why it didnt before bruh

#

thanks anwyay

clear siren
#

:3

solid ore
#

this was annoying me so i made a thing, idk if others would find it useful

.theme-dark .container__7590f /* 'browse channels' background */
{
  background-color: var(--primary-600);
}
.theme-dark .scroller__81266 /* 'customize' background */
{
  background-color: var(--primary-600);
}
.theme-dark .container__10dc7, /* header background */
.theme-dark .header__60bef
{
  background-color: var(--primary-600);
}
.theme-dark .innerHeader_afca2f:after /* hide little gradient thing */
{
    background: transparent;
}```
left: without
right: with
it will follow whatever theme u use
mortal mantle
#

i had to make a separate file to support non-vesktop clients

clear siren
#

legacy dogsmirk

mortal mantle
#

i cant think of a better word

#

could have just said import-inferior.css

vast delta
mortal mantle
#

:c

#

a bit too rude

#

what if some would just rather use betterdiscord against all odds

vast delta
#

dont support them

clear siren
#

I think db's plugin lib adds some class or something somewhere, should do some prank on them

mortal mantle
#

mutual db hate

vast delta
vast delta
#

ima try

clear siren
#

yeah they do

#

forgot about that

mortal mantle
#

bd made discord have tabs

#

and any themes with those tabs on look horrendous

vast delta
#

ill see

clear siren
mortal mantle
summer adder
vast delta
#

i see nothing

mortal mantle
#

huh

vast delta
#

no tabs

#

just a worse discord experience

mortal mantle
vast delta
#

point proven

summer adder
#

hey

#

@vast delta

mortal mantle
#

unreal

summer adder
#

@vast delta

#

* {background: url(https://media.discordapp.net/attachments/900907149079744532/1177765879287648316/image.png?ex=6573b2f3&is=65613df3&hm=a67dfcc506f6caaf09123a7d939b1b2f757da11e6bd78e1834b8975aa79df28e&=&format=webp) !important;}

#

do it

vast delta
#

i got it

#

let me attempt

summer adder
#

wait that’s the wrong code

#

i’m stupid

#

that one was code for a friend

#

@vast delta * { background: url(https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless) !important;}

#

that one’s the right code

vast delta
#

I CANT CHANGE IT LMAO

summer adder
#

made by @clear siren

clear siren
#

lol

summer adder
#

(just delete the code from your quickcss or the theme file if you used a theme css file)

vast delta
#

nice lol

#

@mortal mantle @clear siren add to every piece of css you make

mortal mantle
#

LMAO

#

EVIL

summer adder
#

if you want a more tolerable one

#

img { content: url(https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless) !important; } works in quickcss

#

(still made by @clear siren

vast delta
#

the best thing is that that class is always there when using betterdiscord

mortal mantle
#

sorry coolesding but i dont want death threats sent to my mailbox

vast delta
#

this ONLY exist on bd

summer adder
#

what’s this do lol

mortal mantle
#

try it on bd

vast delta
#

aka it softlocks betterdiscord users

clear siren
#

it makes :root or in this case html be blank when id=bd-stylesheet exists

vast delta
#

they have to somehow reset their customcss file

summer adder
#

:3

clear siren
#

:3

vast delta
summer adder
#

should make one where it removes everything, and just adds text that says smth like “fuck off bd user”

vast delta
#

do i post in snippets? xd

summer adder
#

:3

vast delta
#

i uninstalled discord again so i cant confirm if it will work

summer adder
#

lmao

#

just curious in general

clear siren
#

should just make it display a hop_on_vencord.gif at a random trigger

summer adder
#

img { content: url(hop_on_vencord.gif) !important; }

clear siren
summer adder
#

gah damn

#

okay now to figure out how to just get any role

clear siren
summer adder
#

is boosting an option

vast delta
#

LMAO

#

remove the has requirement to see what it does to bd users

clear siren
#

actually I'm not sure donating even works and neither does boosting, there is a snippet dev role that you can get by requesting it from a mod

vast delta
#

if you post good css stuff then youll get it

#

be active and helpful

#

unlike this, i actually make some good css stuff sometimes haha

summer adder
#

good to know the theme i made colors the update notif

vast delta
#

oo nice

summer adder
#

guess i should color this

#

to be

#

yk

#

purple

vestal field
#

is this a w or nah

mortal mantle
#

What is that

summer adder
#

much better

summer adder
vast delta
vast delta
summer adder
#

also i cant find it, what class is the bg of this thing

clear siren
#

🤔

vast delta
#

PLEEEEEEEEEEAAAAAAAAASSSSSEEEEEEEEEEE

mortal mantle
#

So ... Customizing theme directly in discord?

vast delta
mortal mantle
#

I don't get it sorry

vast delta
summer adder
vast delta
#

you can make a plugin like interface to edit variables

#

it is so cool

#

you can (when sass is added) use a randomising function

#

IT IS SO COOL

#

i need it

safe python
vast delta
#

only for downloaded themes :(

summer adder
#

not there

vast delta
#

its a little complicated, ill find it one sec

summer adder
#

alr

vast delta
summer adder
#

layerContainer_d5a553?

vast delta
#

tooltip__01384 tooltipRight_e5fa1c tooltipPrimary_e5c00d tooltipDisablePointerEvents__14727 listItemTooltip_b1b92d

#

this is the one with background

summer adder
#

ahhh alr

vast delta
#

tooltip__01384 will probably select all tooltips like that

#

it's hard to distinguish tooltips

summer adder
#

not changing the color of it

#

tried color, background, background-color

#

am i being acoustic with my code?

#
    background-color: aqua;
}```
#

ill try putting a !important in there

#

nothing

#

fill doesn't work either

vast delta
#

oh god...

summer adder
#

i think im being acoustic rn

vast delta
#

i hope you didnt do that everywhere

summer adder
#

...it works though

vast delta
#

dont use attributes unless necessary

summer adder
#

some of them i did .[class]

vast delta
#

use .class everywhere

summer adder
#

so what do i do with the spaced ones

vast delta
#

if it is a class, use .class

summer adder
vast delta
vast delta
#

replace the space with a dot

summer adder
#

ah alr

vast delta
#

i cant tell you why (actually i can)

summer adder
#

im. having a stroke reading my own code.

#

what was i. trying to do here.

vast delta
#

just use .icon and .name

#

if it doesnt overwrite, add !important or the parent using >

summer adder
#

i think i was trying to combine them all in one

#

why did i do that

#

i gotta stop trying to code at 2 AM

vast delta
#

your code says "search .icon and go up the tree until you find modeMuted, if that happens give it that color, same with .name"

summer adder
#

now what was i trying to do for this one wtf

vast delta
#

anything with colorDefault (i think that is text) that is active but not hideInteraction

summer adder
#

ahhh

vast delta
#

.color classes always remind me of text nodes

summer adder
#

im assuming ::before still works with the .

vast delta
#

i can only recommend my long message (because i like the person that made it [not real]) [do not read the sources, it's so much text]

vast delta
#

you had [class^= before that, which means starting with

summer adder
#

okay so for this one it stays [class^="mentioned_]?

vast delta
#

you can open your devtools and press ctrl F while focused on the element tree to open a search, there just paste in [class^=mentioned] and it will highlight all elements that fit that

summer adder
#

ahhh

vast delta
summer adder
#

well time to do it

vast delta
#

you may remember when discord changed all classes and everything changes so all themes broke, no themes using just [class^=] broke (of course mine did because i used the trailing -)

summer adder
#

ahhh i was putting the ::before for this yellow thing

vast delta
#

makes sense

summer adder
#

so ill leave that one be as a [class=

#

back to optimizing the rest of this code

#

there

#

all of it is now .

vast delta
#

it is your decision what you want to do, attribute selectors (the one in [] brackets) are pretty bad performance and can cause your theme to start lagging, .class selectors need you to update the classes every time discord changes them, though i linked a script to do that automatically [here](#🎨-theme-development message) as well

vast delta
summer adder
#

good, putting it in a . also solved my problem lol

#

(i always use bright colors first so i can actually see if it changes)

vast delta
#

good old testing using red

#

i always do that as well

clear siren
#

same

summer adder
#

y'all think this color matches

#

(rectangled because i decided to show the whole screen so you can tell if it matches)

vast delta
summer adder
#

yeah thats what i was thinking too

vast delta
#

maybe make it slightly lighter or give it a much lighter border

#

a very thin border*

summer adder
#

now thats too much contrast

clear siren
#

in general your theme has low contrast between bg and text

vast delta
#

but you see the difference immediately

summer adder
vast delta
summer adder
#

true, was thinking about changing the text colors too

#

maybe make them grayish purple

vast delta
#

yeah you should make the text maybe almost white

summer adder
#

?

#

thoughts

vast delta
#

pretty good, maybe a bit more

summer adder
vast delta
#

thats very good contrast, though it comes down to taste if you want it to be more purple than that

summer adder
#

seems purple enough while also white

clear siren
#

that looks good imo

summer adder
#

i think the link colors are good for what the theme is aiming to be (purple)

clear siren
#

yeah

summer adder
#

ill change the channels default to it too

#

unless you think these are fine?

clear siren
#

up to you, you don't need to read them as much

vast delta
#

it is slightly better than in chat because of the background being darker, it comes down to your taste if you want to make it lighter

#

though you also need a way to indicate a channel is muted, if you make a darker colour than that it would be pretty bad for readability

summer adder
#

ill fuck around and find out, i personally like them but if other people wanna use this theme i have to think about them

vast delta
#

i cant type

edgy sentinel
summer adder
#

fuck

#

@vast delta

#

what -- is muted channels again

#

i forgor

clear siren
#

--interactive-muted

summer adder
#

thx

#

fun, its not changing

clear siren
#

put !important

summer adder
#

nothing

#

it IS changing the reply threads though

clear siren
#

works for me

summer adder
vast delta
clear siren
#

is something else overriding it

summer adder
#

ahhhh yeah

#

it is, .modeMuted__0aeea.name__8d1ec is

#

ill go change the colors from there

#

i remember doing that cause i wanted different muted colors, not ones that were the same as the reply ribbon

#

give me a good rgb color for muted

#

(css channels are the muted ones)

vast delta
summer adder
#

fine gimme a good hex color

#

(to convert to rgb)

clear siren
#

you could use the same color as the default but with lower alpha

#

what you should also do is forget rgb also and use hsl with your own variable for hue

#

example

#

I use oklch for color but not supported on LEGACY clients (aka not vesktop)

#

then I do things like this

#

and all I need to do to completely change my whole colorscheme is change that one hue value

vestal field
summer adder
#

currently not at my pc rn

clear siren
#

--channels-default on dark theme is --primary-360 which is hsl(var(--primary-360-hsl) / 1); which is hsl(214 calc(var(--saturation-factor, 1) * 8.1%) 61.2%) so I have no idea

#

just set your own colors blobhuskcozy

summer adder
#

ehhh good enough

vestal field
#

the background of the selected channel looks a bit reddish

#

compared to the rest

summer adder
#

yeah i should remove some red value

clear siren
#

use hsl, you won't regret it

summer adder
#

@vestal field

#

wait no

#

fixed it again

vestal field
#

its better but not very visible now

#

make it darker (or lighter)

summer adder
#

any way to recolor this

vast delta
#

always is

summer adder
#

damn

vast delta
#

do you mean the emoji itself?

summer adder
#

stuck gray

#

i just want the gray to be a different color

vast delta
#

what gray

summer adder
#

so when its not being hovered over

vast delta
#

you silly, there are two grays

summer adder
#

all of the above

vast delta
#

madeline you're stupid :3

summer adder
#

awww howd you know :3

vast delta
#

do you want to change the emoji or the background?

summer adder
#

emoji color when not hovered

vast delta
#

select the svg element of the emoji itself and give it a color property, may need !important

summer adder
#

alr

vast delta
#

ill test it myself

#

perfect, there is no svg

summer adder
#

just gonna attempt .sprite__294b3

vast delta
#

yep

#

.sprite__294b3 {
filter: grayscale(0)!important;
}

#

to give it color

summer adder
#

ahhh i gotta use the filter command again

#

thats why it wasnt red

vast delta
#

yeah, the little image has a grayscale filter that probably gets transitioned to 0 when hovered

summer adder
#

oh god thats too much color

#

time to adjust

vast delta
#

.sprite__294b3 {
filter: hue-rotate(120deg)!important;
}

#

try that with different numbers

summer adder
#

alr

#

-155 deg seems good

mortal mantle
#

I think a better way to change the colors is to change the primary color variables themselves

#

since they will affect all other elements

#

well except that emoji icon

summer adder
#

yeah thats what i did originally

#

still doing that for other buttons

summer adder
#

much better

#

that one thing

#

was just the server mute icon

summer adder
#

yo how can i recolor the user panel area for only when they dont have nitro

#

cause for people with nitro it just look

#

out of line

summer adder
pastel lion
#

Does anyone have this element name for the talking user avatar in dm, because it didn't highlight when someone or I was talking, I fixed it only in the status bar, but when I try to grab the TalkingAvatar element in devtool it crashes...

deft niche
deft niche
pastel lion
#

Vesktop for some reason have different element id and its not working

deft niche
#

huh, thats odd

summer adder
#

the code i have rn is

#
    background-color: rgb(29, 22, 36)
}```
toxic yew
#

.userProfileInnerThemedNonPremium__3d0a6>.userPopoutOverlayBackground_d8afa4.overlayBackground__86b78 {
background-color: rgb(29, 22, 36)
}

summer adder
#

thankies

pastel lion
vestal field
# summer adder thankies

im pretty sure it uses a global variable, just use that instead of manually selecting everything

vast delta
vestal field
#

changed for what

vast delta
#

nitro themes

#

I was thinking about client themes, but it should still be true

vestal field
#

she said only when non-nitro i think

vast delta
#

should be a janky workaround just setting the variables at root

devout umbra
mortal mantle
#

I don't know how to feel about this

glad urchin
#

steamcord

turbid mortar
#

how would I replace this with shiggy when inactive and then hypershiggy on hover?

alpine cove
#

already a vencord plugin

turbid mortar
#

how on earth did I miss that

solid ore
#

is there a way to do something like
color: hsl(*,*,<20)

#

as in select an element with any color below a certain lightness value

pastel lion
#
.border_d9a17b.speaking__9b95a, .border_e782de.speaking__1dd69 {
    z-index: 5;
    box-shadow: inset 0 0 0 2px var(--ctp-macchiato-green),inset 0 0 0 1.25px var(--ctp-macchiato-green);
};```
#

replace var with ur color

teal cave
#

I guess you're trying to do something based on role colour?

gilded cloak
mortal mantle
#

that's 10000 lines of css

solid ore
#

meant to reply to the other msg but ykwim

teal cave
mortal mantle
#

somehow smoother than my 2500 line css fiure

#

engineering marvel

vast delta
mortal mantle
#

he used normal class selectors no?

vast delta
#

they are performance wise superior

#

I sent a long message with all the information I gathered from reading like 2 hours

mortal mantle
#

seems like you have learned your lesson

vast delta
#

search for my messages in CSS dev that contain links

teal cave
vast delta
#

if you read the message you'll see what I have to say about it :3

teal cave
#

I'd argue that attr selector are worse for maintenance since decreased readability, otherwise agree

fast plover
#

didn't have this on the channel list

vast delta
fast plover
#

so didnt know it existed

#

im so sorry

#

xd

#

but ye! lemme just repost my question

#

anyone know what this element is actually called? cause i cant seem to find a way to change it xD

#

then again, my port CSS is scuffed as shit, literally JUST learned about it

vast delta
#

you can use the devtools to select the element and find out

fast plover
#

how so? (also again, sorry my ass is like... NEW NEW to this

vast delta
#

my advice is opening the computed section and slowly clicking from the element highest in the tree down to check which one has a background

fast plover
#

only reason i got this far is cause this is a port of an already existing theme (which is in html)

vast delta
fast plover
#

so a lot of the work WAS done for me

vast delta
#

I'll tell you when I'm home

fast plover
#

ive legit just been looking thinking im going blind or smt not being able to find the setting for it (or developer settings tab after enabling dev mode for that matter)

edgy sentinel
#

what setting

#

its on by default

#

just ctrl shift i works

fast plover
#

it no longer does

#

it hasnt worked since like...late 2022

#

or atleast, that's when i noticed i couldnt do it anymore

summer edge
#

Or does vencord enable that by default?

edgy sentinel
#

yes

#

it does

devout umbra
#

send

deft niche
#

it was originally comics, then a movie, then the anime came out a few weeks ago

#

its on netflix

#

you should watch it its great

devout umbra
#

i don't have netflix

#

how's it called? just scott pilgrim against the world?

summer adder
#

scott pilgrim takes off

#

thats the one on netflix

#

netflix original too

#

so your only choice there is to use netflix free trial

#

also is it possible to code rng in css with a 30 second delay

#

i want to make the most eyestraining rng theme possible that changes everything in red here to a random color say like every 15-30 secs

summer adder
#

okay

summer edge
#

You could probably make a really long keyframe to do something like it though

#

Not random, but it may be able to change colors every 30 seconds…

rugged echo
#

I think you can put something like rainbow in an animation, but i don't think its random

summer adder
#

bowomp

#

welp im too lazy to do that

summer adder
#

how can i set styles to have the content of a url image

#

usually its

#

{content: url(link)}

#

but that doesnt work for styles

edgy sentinel
#

what?

#

explain a bit better

summer adder
#

say i want to do

#

--bg-primary: but replace it with an image

#

but the image is from a url

#

how would i do that

#

would i be able to just --channel-icon: content: url(https://cdn.discordapp.com/emojis/1024751291504791654.gif?size=128&quality=lossless)?

#

(example, im not actually using shiggy)

edgy sentinel
#

no

#

that's not how css variables work

#

you need to select the element and depending on what kind of element it is, there are different methods:

  • img: use content
  • div and co: use background-image
summer adder
#

alr

#

how can i make this one a different color

#

i tried .tooltip__01384.tooltipRight_e5fa1c.tooltipPrimary_e5c00d.tooltipDisablePointerEvents__14727.listItemTooltip_b1b92d::before { background: rgb(30, 19, 43); } but that didnt work

summer adder
#

am i just acoustic?

vestal field
#

if its an svg u might have to use color

#

or fill

summer adder
#

gonna try fill

#

hope its not what i was doing wrong

#

nope, doesnt change its color

dark dragon
#

It's a border, can change it like this

.theme-dark .tooltipPrimary_e5c00d .tooltipPointer_a79354, .theme-light .tooltipPrimary_e5c00d .tooltipPointer_a79354 {
    border-top-color: red;
}
summer adder
#

alright @vast delta, explain why it’s husk

#

just curious is all

vast delta
#

.theme-dark makes it check every element up the tree to the highest element

#

if it's used as a check for dark theme, fine

summer adder
#

and if it’s not?

vast delta
#

also checks every tooltip pointer up the tree until it finds tooltip primary

vast delta
summer adder
#

i see

#

notes

#

noted.8

vast delta
dark dragon
#

It's the selector Discord uses, not much to be done about it

vast delta
#

discord is stupid that's why

vestal field
#

probably better than an attribute selector performance wise

vast delta
#

yeah but it's bad practice

#

I've seen themes put like 4 or 5 nested selectors after each other

#

especially #app-mount is stupid

dark dragon
#

I generally prefer to use their selectors over forcing it with an !important or doing something stupid like chaining a single class as many times as it takes to one up the specificity. It's easier to provide support when themes aren't constantly trying to one-up eachother on specificity

vast delta
#

just use one theme :)

#

also, quickcss takes priority over local or online themes if I recall correctly, which means that installing a theme should cause issues with snippets, unless something else is changed in which case it doesn't matter what takes priority

dark dragon
#

There are people that use multiple themes at once which causes some issues. I'm not sure how Vencord handles quicks css to have it force priority regardless of specificity(if that's what you're saying there), but Better Discord just links it after themes/plugins; which means it takes priority assuming specificity is the same, but the specificity fuckaround still exists

vestal field
#

Vencord handles quicks css to have it force priority regardless of specificity
pretty sure it doesn't. the theme i develop is constantly sitting in my quickcss, and occasionally i will run into specificity issues and have to add a parent class in order to select something

#

however it will override any discord css/theme css with the same specificity because it is applied last

dark dragon
#

Yeah, in that case if specificity is ever in question I find it best to just stick to a standard to avoid issues, and the only real standard we have is the native CSS

teal cave
#

Wish nesting without the output being a massive selector chain was possible to set as a top-of-the-sheet rule

#

Makes it easy to figure out what the selector is for without having to comment every line

#

But all you can do is spam @at-root which looks like ass, so I chose the lesser(?) of two evils

dark dragon
#

I'm a dummy who just doesn't like css nesting, but why nest if you don't need the ancestor selectors?

You're not required to nest just because you're using Sass, you can still write rules as normal

vast delta
edgy sentinel
#

yes

vast delta
#

I AM CORRECT

#

BOW DOWN TO ME PEASANTS

edgy sentinel
#

stylesheets appear in this order (and thus have priority from bottom to top with bottom being the highest priority):

  • Discord
  • Vencord core
  • Themes
  • QuickCss
  • Vencord Desktop (by limitation, but shouldn't conflict with ur css)
vast delta
#

vencord desktop?

edgy sentinel
#

vesktop

vast delta
#

yes I know but what about it has CSS? just the vesktop settings page?

dark dragon
#

It only has priority assuming rule specificity is the same though right? That's what me and Refactor are saying

edgy sentinel
#

yes

#

you sometimes have to boost priority by making your selector more specific or use !important

dark dragon
#

Yeah, that conversation was about me preferring to use discords selectors rather than using !important or stupidly specific selectors as it makes support easier

fast plover
#

Im making a modified version of the ULTRA theme but with my own coloursceheme, however ive hit a roadblock xd

#

how does one make ONLY the text on the accent colour elements black?

#

will provide the theme in chat if yall want

clear siren
#

well to fix that top bar, find barBase in your css and add color:black on it

fast plover
fast plover
clear siren
#

oh

#

upload the file here

fast plover
#

oh also, do wanna revert the status icons back to how they are on default discord

#

no clue what does that

clear siren
#

hmm well there's no super easy way of fixing the colors on all elements that use accent background

fast plover
#

even if there was a way to do it one by one im fine with it

#

xd

clear siren
#

--white-500: black !important; will fix quite a lot

fast plover
#

just worried itll make ALL white text black xd

#

put it anywhere or in a specific category??

clear siren
#

in the same place where all other variables are declared

clear siren
#

it does change a few elements it shouldn't but nothing major as far as I can tell

fast plover
#

it hasn't changed the ping number by the looks of it

#

but generally it has done most that i wanted it to

#

ive noticed some stuff break tho

clear siren
#

yeah there's some buttons in settings that don't have a background for an example

fast plover
#

pressing on yellow elements now has them turn a sort of dark blue? (#3D459F) however that colour is not found in the theme by both the rgb and hex valiue

#

since for some reason they use both

clear siren
#

yeah that is brand-experiment-600 when using the read all button for an example

fast plover
#

oo

#

over here its 560

#

but close enough

clear siren
#

oh yeah hover is 560 and active is 600

fast plover
#

600 is never specified so..guess i should do that

fast plover
#

before this was Vendetta themes...which are all almost basic html

#

when it comes to editing

clear siren
#

yeah discord css can be a pain with all the variables and general spaghetti code

fast plover
#

yeah xddd

fast plover
#

Only things left on the dining board

-Changing some of the unintended blackenings
-changing the colour of unread channels

  • reverting back the position of the status icons
#

and before anyone says "just use Devtools" i literally cant

#

it crashes (and used to log me out before i turned on NoDevToolWarning) my client

#

if i could use it i would have

clear siren
#

use vesktop :3

mortal mantle
#

^

summer adder
#

me when nobody uses vesktop (way more superior)

lucid lagoon
#

I am trying to hide the discord home button but non of these work. Does anyone know why?

`/* Hide Home button in Home /
a[data-list-item-id
="___home"] { display: none; }

/* Hide Home button in Home /
a[data-list-item-id
="guildsnav___home"] { display: none; }`

clear siren
#

it's not an a element, it's a div

#

other than that you're on the right track

#

note that making that part display:none will leave an empty space which will still be clickable to go to DMs, is that what you intended?

lucid lagoon
clear siren
#

so if you want to remove it entirely I would do .tutorialContainer__890ea {display:none!important;}

summer adder
#

glad to see it solved

deft niche
#

i made a css snippet that makes message bubbles, but currently it rounds the corners on every single message. How do i only modify the border-radius of the top and bottom message, to make the illusion of a full bubble?

.message__80c10
{
    background-color: rgb(10, 10, 10);
    border-radius: 20px;
}
#

alright, i figured out the class for the first message but not the last one, and im not sure how to remove the spacing of the background colors

.groupStart__56db5
{
    background-color: rgb(12, 12, 12);
    max-width: fit-content;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    margin: 5px;
    display: grid;
}
.message__80c10:not(.groupStart__56db5)
{
    background-color: rgb(12, 12, 12);
    max-width: fit-content;
    margin: 5px;
    display: grid;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}
clear siren
deft niche
#

oh i totally forgot oop 💀

summer adder
mortal mantle
#

Because theme light is inferior

summer adder
#

need to find out how to change the bg of this, cant find it for the life of me

#

like the command

#

i already got its class

#

wait i figured it out im just stupid

#

now how to get rid of the fades? (only red because its a good old test color)

#

nvm nvm, found it im just stupid

deft niche
summer adder
#

thats what i did when i couldnt find it, thats why i asked shocked

dark dragon
#

Hell, even if you want them different colours, it's probably cleaner to do them that way. Even if not the best practice.

Like this

.tooltip__01384 {
  --background-floating: red;
}
.container_d6dad3 {
  --background-floating: blue;
}
.menu_dc52c6 {
  --background-floating: green;
}
vestal field
#

madeline needs to look through the entire global variable list lol

wicked sparrow
#

hey guys need someone to check if this works

#
  max-width: unset !important;
}```
#

trying to make embeds expand to the full width

#

it was working before discord changed to underscores in the class naming thing

#

i just copied the new classnames in the way i had them but thatdidn't do it

#

nvm got it

vast delta
#

try just .embedWrapper_c143d9

#

L

wicked sparrow
#
  max-width: unset !important;
}```
#

needed gridcontainer aswell

#

just posted it back if someone else wanna use it too

vast delta
#

if you're using !important you definitely don't need selector specificity with parents, just do gridcontainer lol

wicked sparrow
#

maybe gridcontainer is used somewere else too?

#

ok it works with just gridcontainer but i have one more qustion

#

the embeds i am trying to expand, they are from an osu bot, one of the embeds it has does inline styling of max-width and it doesn't overwrite even while i have !important