#π¨-theme-development
1 messages Β· Page 28 of 1
what they think
.wrapper__8a5dd {
width: 100%;
max-width: 300px;
height: auto;
background-color: #6b6868a6;
display: flex;
flex-direction: column;
justify-content: center;
padding: 20px;
border-radius: 20px;
}
.header__4ecb7 {
font-size: 12px;
margin-top: 0;
text-align: center;
color: #ffffff;
width: 100%;
}
.button_f73214 {
align-items: center;
margin-top: 20px;
padding: 12px 24px;
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 8px;
font-size: 20px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.button_f73214:hover {
background-color: #45a049;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
color: #f0f0f0;
transform: scale(1.05);
}
.guildIconImage_c1aa48 {
width: 60px;
height: 60px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-bottom: 10px;
}```
What do you think of the style I made for the invitations?
the banner overlaps slightly
is there a way to trigger that modal
its probably somewhere but im lazy to find out where
honestly all the invites need is a small change in height and support for themes (in my opinion)
I love this
this doesnt work
upload a folder
yeah thanks
oh
thats VERY SLIGHTLY DIFFERENT
.title__76592
.instructions_e266ce
these classes are interesting
.uploadDropModal_cfadae.error_d2567f .title__76592,
.uploadDropModal_cfadae.error_d2567f .instructions_e266ce {
visibility: hidden;
}
.uploadDropModal_cfadae.error_d2567f .title__76592::before {
content: "That was ";
position: relative;
right: 20px;
visibility: visible;
}
.uploadDropModal_cfadae.error_d2567f .title__76592::after {
content: "fucking stupid";
position: relative;
top: -22px;
right: -25px;
visibility: visible;
font-style: italic;
}
.uploadDropModal_cfadae.error_d2567f .instructions_e266ce::before {
content: "Don't ever post that bullshit again";
position: relative;
left: 2.8rem;
visibility: visible;
}
.uploadDropModal_cfadae.error_d2567f .instructions_e266ce::after {
content: "You fucking degenerate";
position: relative;
right: 4.8rem;
visibility: visible;
}
thats the closest I can get with this absolute shit code
brokes the banner image
Brokes the banner image π
lmao
hi how to send in #π¨-css-snippets ?
i have made this css /* Hide "new" shop icon */ .marketingButtonImage_bc16c8 {display: none;} .shyButton__30111 {background: transparent;} .newBadge__5fcc2 {display: none;}
make a #π©-modmail ticket and ask for the role
What do you mean it doesn't work?
?
Better
Is that better?
.wrapper__8a5dd {
width: 100%;
max-width: 300px;
height: auto;
background-color: #6b6868a6;
display: flex;
flex-direction: column;
justify-content: center;
border-radius: 10px;
}
.header__4ecb7 {
font-size: 12px;
margin-top: 0;
text-align: center;
color: #ffffff;
width: 100%;
}
.button_f73214 {
align-items: center;
margin-top: 20px;
padding: 12px 24px;
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 8px;
font-size: 20px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.button_f73214:hover {
background-color: #45a049;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
color: #f0f0f0;
transform: scale(1.05);
}
.guildIconImage_c1aa48 {
width: 60px;
height: 60px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-bottom: 10px;
}
.inviteSplashImage_f28d23 {
border-radius: 10px;
}```
I think I've fixed it
How long does it normally take to reply to tickets requesting to publish my snippet?
idk but im gonna be honest with you, i don't really see the point of your snippet
i do, it cleans up the invite thing and makes it look nicer
i wouldnt say cleans up, just makes it shorter and with rounded corners?
well there are a lot of useless things in that channel but still thatβs what it does
fair
But that's not the invitation snippet I want to publish xd
i see
And so what it does is what Krystal says, it cleans up the invitation, adds borders and improves the aesthetics a bit (or makes it worse depending on your taste), (Sorry for my English, I don't speak English and I'm trying to)
exactly what i thought it does, even still there are a lot of weird css in that channel and this is one of those just to make Discord look better (itβs fine. Iβm not good at English either)
ok heres some feedback based on your code above (idk if you've changed it since then)
- there seems to be quite a bit of redundant code, like the
display: flex;
flex-direction: column;
justify-content: center;
- i'd advise against changing colors, because people probably want their themes to still work with it
- uneven padding, there's a big gap between the button and the text, but everything else is close together
also the element behind the rounded banner has a different background color
sorry for the criticism lol initially i didn't realize the roundness changes because of my theme
Yes, some things have already been fixed like the different background.
I don't know if it looks good (the background is transparent so it doesn't affect if you have different themes)
.wrapper__8a5dd {
width: 100%;
max-width: 300px;
background-color: transparent;
display: flex;
flex-direction: column;
justify-content: center;
}
.header__4ecb7 {
font-size: 12px;
margin-top: 10px;
text-align: center;
color: #ffffff;
width: 100%;
}
.button_f73214 {
align-items: center;
margin-top: 20px;
padding: 12px 24px;
background-color: #4caf50;
color: #fff;
border: none;
border-radius: 8px;
font-size: 20px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.button_f73214:hover {
background-color: #45a049;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
color: #f0f0f0;
transform: scale(1.05);
}
.guildIconImage_c1aa48 {
width: 60px;
height: 60px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-top: 15px;
}
.guildName__22ec8 {
margin-top: 15px;
}``` I don't know if it looks bad
just dont set any color or background-color at all
unless there's a specific reason for it
couldnβt you use discord variables for the backgrounds
yes but they are already set to discord variables so what's the point
unless you want to like color mix or something?
I want to blur this fill bar, but if I blur it, it combines with the background stuff
Is there a way to blur it before adding it as the img background, so like hypothetically, i could give it a massive blur to use pretty much the avg color of the img for the bar fill?
this is what i'm doing for it now
#vc-spotify-player .barFill__1f56b {
background-image: var(--vc-spotify-track-image);
background-size: 240px;
background-position-y: center;
filter: blur(2px) brightness(120%);
}```
and here's the whole css
background: var(--bg-overlay-3, var(--background-secondary-alt));
would probably look better
quick snippet I use, didn't see anything like it in #π¨-css-snippets . reduces the spacer above the message box ```css
/* reduce scrollerSpace (right above message box) from 30px to 15px */
.scrollerSpacer__6b1b6 {
height: 15px;
}
(I use 0px space between message groups, so this makes the UI look a lot more consistent and less jarring.)
You say that like snippets are very serious and high quality 
I think they meant to say the snippets are basic and most probably have been already discussed, plus Sam said they're learning CSS so the code might not be efficient, I get the point of refact0r since a novice is trying to publish things as crazy great feature I did and I'm proud, it isn't a funny snippet or so, just... basic stuff. People here knows how to do basic things and if not they ask here, no need a snippet to change bg, rounded corners or center elements. Just how I see it π
same
@grand surge I figured a way to do it... kinda
[data-list-item-id^="members-"]:has([src*="id"]) {
display:none;
}
It matches the avatar URL
might not work for users without an avatar
I don't think anyone that uses classes with hashes for serious css should be able to post
It's extremely annoying to fix css every time they reroll hashes
it works lol thank you
I wish discord didn't have so many similar class names and attribute selectors worked fine
meanwhile we have at least 3 classes that start with "avatar_"
fake CSS :selector

i am already doing some fuckery
that does what i want
but
I have this hacky thing
vee would be so fucking disappointed in this btw
there is no way of selecting an element based off its content, right?
There's 20ish container_ and content_
like, if I want to hide a specific category in the channel list, I can't just select one by its name
TL;DR: This here effectively takes an array, passes that to findByProps, and returns the module[arguments[0]]
Aria-label perhaps
Why is that husk
I tried, but it didn't work
I basically wanted to hide the "Active Now" category that sometimes pops out when someone is in a VC
Screenshot?
it's usually at the bottom, so I tried using last-child, but it didn't work either
.nowPlayingColumn_b025fe is the one in the friends page?
join a random vc here
another one
xD
wait, I can remove it from my channel list
this one
maybe you could use a css after .sectionDivider__9dbcb selector
i forgot the order of the +
:has(+[class*="sectionDivider"])
Lets you select in the other direction
thats cool
didnt know you could do that
that's too advanced for me to understand yet, ugh
also because there's more than 1 .sectionDivider_ in the channel list
OK I'm getting on to write it
I was thinking something like :vc-find(container, spineBorder) to get .container__342a0
would anyone be interested in seeing this be a (hacky) reality
btw do I leave the vc or does anyone still need it for the classes?
you can leave

I still need

I'll join back
@bleak gust
#channels li[class*=containerDefault]:has([class*=wrapperStatic]) {
&, & + * { display: none; }
}
What the fuck
huh
whar
Nesting is nice
&, & + * { display: none; }
"hide this and the thing that follows me"
wow
wait, this also hides pinned channels, oops
It does look kinda similar to :(){:|:&};: tbh
community only feature
I see
never seen one ngl
nop
maybe, I haven't manually toggled it though
favorite
ohhhh
try that
horror
more husk
better settings experiments is 
working as intended actually
Oh, it does this without BetterSettings
I use it to move up stuff that is at the bottem that deserves to be at the top
now it's just a matter of hiding the section divider
fair, I'm used to scrolling ig

[aria-label="Channels"] > [class^=sectionDivider] {
display: none;
}
I just have this on
so this is nested css?
let me find a better example of nested css, that isn't a good example
@pure cairn
/* Reduced enhanced markdown margins */
[class^=message] [id^=message-content] {
h1, h2, h3, li {
margin: 0px;
}
ol, ul {
margin-top: 0px;
}
}
equivilant to
[class^=message] [id^=message-content] :is(h1, h2, h3, li) {
margin: 0px;
}
[class^=message] [id^=message-content] :is(ol, ul) {
margin-top: 0px;
}
BetterSettings only touches the top-level menu, any sub(-sub)-menus are vanilla
yes
n>1 sets of {}
yeah right
why i can't react emoji?
Scss has supported that for years, but real css added it fairly recently
the quickcss editor does not like it
yea, my work codebase is based on postcss with a scss-like nesting plugin
the qickcss doesnt even like :has()
I think the quickcss editor is a bit outdated
π
no, monaco just still haven't fixed that
I don't mean quickcss is outdated with monaco, I mean monaco is outdated with css
isn't monaco just vscode's text thing? vscode doesn't have problems with it
so, if I were to nest this
[class*=messageContent] :is(h1, h2, h3) {
color: var(--main-color);
}
[class*=messageContent] strong {
color: var(--main-color);
}```
it would turn into
```css
[class*=messageContent] {
h1, h2, h3 {
color: var(--main-color);
}
strong {
color: var(--main-color);
}
}
or even
[class*=messageContent] {
h1, h2, h3, strong {
color: var(--main-color);
}
}
yeah that
yop
I really enjoy &
/* bouncy buttons */
button,
[role="button"],
a[href^='/channels'],
[aria-label="Servers"] [class^=listItem] {
&:hover { filter: brightness(0.95); scale: 0.95; }
&:active { filter: brightness(0.9); scale: 1.05; }
transition: scale 0.6s cubic-bezier(0.34, 2, 0.64, 1);
}
we love monaco editor jank
so nesting is essentially a way to shrink down code?
Pretty much yeah
that is basically:
[role="button"],
a[href^='/channels'],
[aria-label="Servers"] [class^=listItem] {
transition: scale 0.6s cubic-bezier(0.34, 2, 0.64, 1);
}
:is([role="button"],
a[href^='/channels'],
[aria-label="Servers"] [class^=listItem]):hover {
filter: brightness(0.95); scale: 0.95;
}
:is([role="button"],
a[href^='/channels'],
[aria-label="Servers"] [class^=listItem]):active {
filter: brightness(0.9); scale: 1.05;
}
so yea, 100% just to shrink code
Anything you can write with nesting you can write without

people who code really like to use less characters
well, I've learned something new, thank you
Less code means less code to debug
this is very true
is it more/less efficient?
button:hover,
[role="button"]:hover,
a[href^='/channels']:hover,
[aria-label="Servers"] [class^=listItem]:hover {
filter: brightness(0.95);
transform: scale(0.95);
}
button:active,
[role="button"]:active,
a[href^='/channels']:active,
[aria-label="Servers"] [class^=listItem]:active {
filter: brightness(0.9);
transform: scale(1.05);
}
button,
[role="button"],
a[href^='/channels'],
[aria-label="Servers"] [class^=listItem] {
transition: transform 0.6s cubic-bezier(0.34, 2, 0.64, 1);
}
is it possible to add a bottom margin to this scrollbar?
:is is one of the most useful tools behind nesting
does anybody have a snippet to hide the clown avatar decoration? if not, a snippet that hides all avatar decorations works too
i did this yesterday too π
or maybe: [class^="avatarDecoration"]
when anyone is making a snippet to remove clown decors?
/* hide clown avatar decorations */
[class^=avatarDecoration_]:has(img[src^="https://cdn.discordapp.com/avatar-decoration-presets/a_5e1210779d99ece1c0b4f438a5bc6e72.png"]) {
display: none;
}
it's ugly
so is this not possible?
dunno, my theme completely hides them
if you add margin-bottom to this scroller element you get bottom margin on the scrollbar too
but other than that not really possible
maybe there is an other way around?
not sure if you can do some weird tricks with overflows and transforms etc
can't try now, gotta go to work
I've read a bit the mozilla docs about nesting
if I understood correctly, both
a {
b { ```
and
```css
a {
& b {```
work fine, right?
yeap
Yep
correct
ok good
& is replaced with the surrounding selector
though doing that except when absolutely n ecessary is a readability nightmare
yeah I can imagine
but what about the
a {
& + b {```
selectors
because I'm confused
I don't understand how it's applied
given
<h2>Heading</h2>
<p>This is the first paragraph.</p>
<p>This is the second paragraph.</p>```
and
```css
h2 {
color: tomato;
+ p {
color: white;
background-color: black;
}
}```
does it basically apply the 1st line to the first <p> and the 2nd line to the second one?
If there is no &, that's the sane as if there was & in front
oh wait, it only applied the style to the 1st element
It applies to h2 + p, which is the first one
meanwhile, if I were to write & + p + p, it would select the 2nd one
oh ok, now I got it
Improved?
header.header__77c95::after {
content: "";
top: 0;
left: 0;
position: absolute;
width: 100%;
height: 100%;
background: var(--bg-overlay-chat, var(--background-primary));
-webkit-mask-image: linear-gradient(to top right, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 1) 100%, rgba(0, 0, 0, 1) 100%), linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
z-index: -1;
}```
MUCH better imo
What's the difference
.wrapper__8a5dd {
width: 100%;
max-width: 300px;
background-color: var(--background-tertiary);
display: flex;
flex-direction: column;
justify-content: center;
border: 1px solid var(--border-strong);
border-radius: 10px;
}
.header__4ecb7 {
font-size: 12px;
margin-top: 10px;
text-align: center;
color: #ffffff;
width: 100%;
}
.button_f73214 {
align-items: center;
margin-top: 20px;
padding: 12px 24px;
background-color: var(--brand-experiment);
color: #fff;
border: none;
border-radius: 8px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.button_f73214:hover {
background-color: var(--brand-experiment);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
color: #ffffff;
transform: scale(1.05);
}
.guildIconImage_c1aa48 {
width: 60px;
height: 60px;
border-radius: 50%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
margin-top: 15px;
}
.guildName__22ec8 {
margin-top: 15px;
}``` The code is already adaptable to any theme you have in case you like it.
so yeah I started making a style just to set a background image and clear all the other backgrounds manually one by one instead of using the nuclear option of using the vars I did before
yeah I used to do this but it just causes trouble with many random elements being unreadable basically
I could've used some of these without causing issues but yeah
@plain kelp hey question discord has nested css now correct?
Last I heard it used an outdated electron, dunno if they've updated
Okay thanks
works on vesktop though iirc
I know that much was just wondering if discord added it (sorry if this sounded rude)
Someone asked if I could update a css version and I was like tf first of all second not how that works to my knowledge (electron and discord) (yes they meant actual css to make it nested)
i think it works now
try css div { div { color: red; } } in quickcss
but the monaco editor still thinks its an error
Alr thanks
Does it display as an error?
They said it works but shows up as an error
Wait
I just realized you said that
Mb
agree
Better than the others
Also, did the highlight color in discord app change?
that looks darker than it was before
It was slightly darker in web for a while, and I think it's the same color here now too
Ok yeah it is the same color as web now
nice, always thought it looked bad
Using css to change content is generally not a great experience
i want to do something like "welcome! (username)"
It can be done, sometimes, but a plugin can do it much better
What's the default one?
im too lazy to change it :p
Like, the most recent one in #1032200195582197831
ye i seen it
Oh and using
::selection {
background: blue;
}```
also applies the same one when unfocused
should be different when not focused
also bump
although i'm also getting off now, so not very useful bump
idk
any way to disable shop?
how can i rename myself using user id?
my brain blow up rn lol
Actually, you'd need to specify your user ID in that, otherwise you'd change everyone's name instead of just yours
I guess you could use the UID stored in your pfp as identifier

real
hey uhh
@pure cairn do u know how to make everything unclickable
or remove everything from discord
* { pointer-events: none; }
ty
Pretty sure this is blocked by automod

also can i only make this for a user?
with user id
Just block them
That'd be a security issue
I don't think you could even do that with a plugin lol
Unless you want to hide everything from a certain user
And not for the user
You could very easily make a plugin that hides everything if you're a particular user
But tricking them into installing it would be harder
yeah ik
he said he disabled the css a long ago π
For a more subtle effect, consider *:nth-child(15) { display: none }
How old are you, 15? xD
bro thinks hes funny
Ohh you're 17 actually, that explains a lot xD
ye thanks for understanding
what does this do?
im going to use it
soo
@plain kelp
oops
using a screen reader
Anyone got any idea on how to make an attribute selector that uses role info to filter out classes?
[class^=container__]:has(role=contentinfo)
doesn't really work and I am still pretty new to the :has thing.
the attribute has to be also wrapped in []
14% of Americans can't read? the education system there seems to need fixing.
As an american, Yes the education system is bad but that 14% is people who moved here from foreign countries or people who live in the the middle of nowhere
Oh wait, the data is just about English? thought it was about reading in general.
π²π½ estoy haciendo un estilo para esa cosa que se ve cuando se inicia un chat por primera vez
πΊπΈ I'm making a style for that thing that you see when you first start a chat room
I can't think of anything to add to it xdd
tbh personally i j hide that whole thing
is that this?
think so
yup
opinion on this (small) redesign of the quick searcher (unsure about backdrop shadow)
pretty epic
I'm doing a reversion of my code and it's burning better, tomorrow I'll share it with you.
it's fine i dont need it
this is looking great
oh this is really cool
looks like a keystroke launcher
i think i saw something like this already
Yeah, similar was inspired by it
still quite different
anybody know how to change the color of svgs?
fill?
I tried to remove the message "This is the beginning of your direct message history with..." but it didn't work.
With these bad codes that I'm doing I learn a little xd
What I did eliminate is the groups in common
i can try to do it for you
Okay, thank you
just checked, i dont think its possible to remove that part
I tried it and it deleted everything (the user name, the message and the buttons).
.container_cd7d9c {
display: flex;
align-items: center;
border-radius: 45px;
padding: 20px;
box-shadow: 0 2px 3px var(--border-strong);
border: 1px solid var(--border-strong);
background-color: var(--background-modifier-accent);
}
.container__861ca {
display: flex;
justify-content: center;
align-items: center;
}
.avatarContainer_d42438 {
display: flex;
align-items: center;
margin-right: 10px;
}
.defaultColor__30336.marginBottom20__9fcf3 {
text-align: center;
margin-bottom: 10px;
font-size: 15px;
}
.mutualGuilds__09c57,.avatar_b8e04b,.divider__9daf4{
display: none;
}
.contents__322f4{
display: flex;
justify-content: center;
align-items: center;
}```
this is my code
I receive CONSTRUCTIVE critiques
.container_cd7d9c>.description__51014 {
font-size: 0;
}
someone thought of making an arc (browser) themed theme for discord yet?
huh, this looks interesting
true
oh wait
folders at the top
servers below
hmmmm
what
btw the top 3 things are favorite tabs
not really possible to recreate that in discord without a custom plugin
idk if its even possible with one lol
thats not how the browser works though
favourite experiments maybe?
then put folders at the bottom
those little page dots are like little mini profiles
that wouldn't look as good anymore tho, it'd be cooler if the folder opened at the bottom
also these are literal folders
yeah I know, but what would you put at the top then?
nothing as its optional in the browser itself
oh fair
maybe dms and favorite tab
DMs | Favourites | maybe the "read all" button?
nah, the button would fit best in the bottom section
theres also a button at the top that like
gets rid of the sidebar for a popout sidebar
oo
server add button could be used with the button in the bottom right of the sidebar
I was thinking about the "+ new tab" one
its also in there
how about
DMs | Favourites | Discovery
?
could be cool yeah
although i dont think alot of people use discovery
but that might just be me
Ngl I've never used it either
replace discord logo with vennie gif xd
The Vencord Company of DΓΌsseldorf
ive already done this
Yeah
yeah i did that
could also use the logo arc has top left
theres also an update for the windows beta today
(hopefully it fixes theme saturation)
cool
I would've used this for the settings button
here move 3 layers of classes
But idk where that is on the browser
the settings are in a popout in the top left logo
I see
but im pretty sure the bottom left thing would work too
What's that for?
because on mac that has a menu that also has the settings in it
on windows only looking at ur history
oh yeah the bottom could just be the vc stuff
How customizable are the colors?
Like, are there any presets or can you just use whatever you want
boo womp
Bottom slider is for transparency?
thats what it should be
rn its for some reason bugged and set to saturation
π
I see
By the way, was it a theme or a plugin? I don't remember anymore
that was a css snipet i saw somewhere
this
Me likey
Yeah, this seems fun
I won't be able to start working on it this weekend though, most likely from next week onwards

Might be a way to properly learn to theme as well
.container_cd7d9c {
display: flex;
align-items: center;
border-radius: 45px;
padding: 20px;
box-shadow: 0 2px 3px var(--border-strong);
border: 1px solid var(--border-strong);
background-color: var(--background-modifier-accent);
}
.container__861ca {
display: flex;
justify-content: center;
align-items: center;
}
.avatarContainer_d42438 {
display: flex;
align-items: center;
margin-right: 10px;
}
.defaultColor__30336.marginBottom20__9fcf3 {
text-align: center;
margin-bottom: 10px;
font-size: 15px;
}
.mutualGuilds__09c57,.avatar_b8e04b,.divider__9daf4{
display: none;
}
contents__322f4{
display: flex;
justify-content: center;
align-items: center;
}
.container_cd7d9c>.description__51014 {
font-size: 0;
}``` New version, this one removes the message "Here begins the history with...", Thanks for the help to autumnvn
.pollContainer_cfb8c7 {
background: #0a0a0a;
}
[class^=pollContainer_] {
background: #0a0a0a !important;
}
only the first one does anything while the second does nothing, is there any reason for that?
maybe there's multiple classes with that name
if the class u wanna select is like .class1.class2.class3 and pollcontainer is not the first one then it wont work, try using *= instead of ^=
I have a similar snippet but I used * instead of ^
/* fix unthemed polls */
[class*="pollContainer_"] {
background-color: var(--background-secondary);
}```
but u should also specify a parent elemwnt so it doesnt effect other things
last part was not necessary lol
Oh thanks.
Is pollContainer the first class? Because ^= is starts-with
Yeah it was actually the last class, I just used =*
mv a b; git add a b; git commit; git push
Same way as you do anything with git
I pressed ., opened the online vscode editor and pushed from there
Blindly copypasting commands from the internet
trying to recolor the message area but i cant seem to get the edges
Discord is weird, thats not part of the message area
part of form_d8a4a1
I believe, unless you have some other styling
wait so i dont use form_d8a4a1?
either try using !important or removing that idk
what did you use to color that area green?
just "green"
background-color: green;
oh yeah i meant the class
π
https://fonts.google.com/specimen/Nunito
is this the font they use for the browser?

if any one wants to use this (no access to #π¨-css-snippets moment / inspired by #π¨-css-snippets message)
https://raw.githubusercontent.com/Faf4a/snippets/main/QuickSwitcher/main.css
nice but the corner radiuses don't match. Use this formula for a matching border radius: Outer = Padding + Inner
Is there a way to color pick from the screen using just css?
What does that mean
You cannot set border-color: pixel(123, 456); if that's what you mean
no like u kno sample a color from a certain pixel
like the eyedropper in photoshop
im tryna make my discord and spotify match like this, and spotify has colors for stuff, and i wanna make it auto switch with spotify
Unless there's a suitable css variable in scope, that's not possible
its probably possible with javascript then, could i make my own plugin then just take the color from there?
what do you guys think of the Header bars transparency and the input area? ^^
Transparent header bar is cool, yeah
I don't suppose you've found any way to do it without messing up the scrollbar?
not yet
looks cool
my scrollbar is already messed up because of chatbubbles π
but without doing the input, only the header, the scrollbar would be OK
i personally like the one with the board and background
Thank you
.container_cd7d9c {
display: flex;
align-items: center;
border-radius: 45px;
padding: 20px;
box-shadow: 0 2px 3px var(--border-strong);
border: 1px solid var(--border-strong);
background-color: var(--background-modifier-accent);
}
.container__861ca {
display: flex;
justify-content: center;
align-items: center;
padding: -50px;
}
.avatarContainer_d42438 {
display: flex;
align-items: center;
margin-right: 10px;
}
.defaultColor__30336.marginBottom20__9fcf3 {
text-align: center;
margin-bottom: 10px;
font-size: 15px;
}
.mutualGuilds__09c57,.avatar_b8e04b,.divider__9daf4{
display: none;
}
.container_cd7d9c>.description__51014 {
font-size: 0;
}```
Any suggestions?
.bar__004d9 {
display: flex;
flex-direction: column;
align-items: center;
/*background-color: var(--background-floating); Unlock this option if you do not want the red color in unread mentions.*/
border-radius: 26px;
padding: 10px;
box-shadow: 0 2px 4px var(--elevation-high);
}
.barText__32a63 {
font-size: 14px;
font-weight: bold;
}
.voiceChannelsUsers__6b5c5 {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}```
what they think
this one also includes the message that you have unseen mentions
and NEW (MESSAGES) UNREADED
Half transparent black or half transparent red?
In the code is already corrected that line of the code that gives the color to the bubbles, you have to remove the /* */ to be able to remove the red color to the unread mentions.
thank you if you use it β€οΈ
Pretty sure you can just use modmail and try to get a css snippet dev, you deserve it.
the role is pretty much just a way to make sure bad css code doesn't get spammed in there.
I am working on a code that if I believe that I can have access to #π¨-css-snippets
.vc-addon-name {
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: bold;
color: var(--text-normal);
}
.vc-addon-note {
font-size: 15px;
color: var(--text-low-contrast);
}
.inputDefault__22335 {
border: 1px solid var(--border-strong);
border-radius: 5px;
padding: 8px 12px;
font-size: 16px;
width: 400px;
box-sizing: border-box;
}
.inputDefault__22335:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.select_fe2671{
margin-left: -100px;
}
```How is it coming along?
makes some plugin names go out of the box for me
wait I check
Fixed and new changes added
is it me or does vencord shift the svg of the select thing too much to the right
yeah it does
wait i'm confuse i'm trying to learn the css variables but i cant figure out how to add outlines to stuff
like a black outline around buttons
i see stuff like ```css
--button-outline-primary-border: var(--primary-500);
and i change it to black but nothing?
halp
border: radius style color
e.g border: 1px solid var(--button-outline-primary-border)
yes
Fixed in my code css .vc-addon-name { align-items: center; justify-content: center; font-size: 20px; font-weight: bold; color: var(--text-normal); } .vc-addon-note { font-size: 15px; color: var(--text-low-contrast); } .inputDefault__22335 { border: 1px solid var(--border-strong); border-radius: 5px; padding: 8px 12px; font-size: 16px; width: 400px; box-sizing: border-box; } .inputDefault__22335:focus { outline: none; border-color: #007bff; box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); } .select_fe2671{ margin-left: -100px; } .icons__374b3{ margin-left: -20px }
use padding: 10px, much better
wait what are you trying
i'm trying to add to the theme so that buttons and other ui stuff has black borders
i dont really understand this css isnt my strong suit
not literally everything
buttons, modal, channels stuff like that
if i just knew how i'd do it myself lol
like this?
YES
You can easily do it yourself,
press CTRL + SHIFT + I
Then click the top left thingy looking like an arrow
in?
.vc-addon-name {
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: bold;
color: var(--text-normal);
}
.vc-addon-note {
font-size: 15px;
color: var(--text-low-contrast);
}
.inputDefault__22335 {
border: 1px solid var(--border-strong);
border-radius: 5px;
padding: 8px 12px;
font-size: 16px;
width: 400px;
box-sizing: border-box;
}
.inputDefault__22335:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.select_fe2671 {
padding: 10px;
}
locked behind a flag in settings.json
<div class="">
linux:
~/.config/discord/settings.json
windows:%appdata%/discord/settings.json
osx:~/Library/Application Support/discord/settings.jsonadd
"DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING": true,, ensure valid json
the class is nothing
dyk if vencord intends the svg to be weirdly padded
what r u trying to edit
channels
more context?
see ss above
the container div is just not classed
padding is offset
yeah but where is this
you could check the source yourself
ur selecting the wrong element
.link_ddbb36 {
border: 1px solid black;
}
``` this would be for the channels
change black to your color
they dont change anything besides gap n height for vc-plugins-filter-controls
.vc-addon-card {
background-color: var(--background-floating);
border-radius: 25px;
border: 1px solid var(--border-strong);
}
.vc-addon-name {
align-items: center;
justify-content: center;
font-size: 20px;
font-weight: bold;
color: var(--text-normal);
}
.vc-addon-note {
font-size: 15px;
color: var(--text-low-contrast);
}
.inputDefault__22335 {
border: 1px solid var(--border-strong);
border-radius: 5px;
padding: 8px 12px;
font-size: 16px;
width: 400px;
box-sizing: border-box;
}
.inputDefault__22335:focus {
outline: none;
border-color: #007bff;
box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.select_fe2671 {
margin-left: -100px;
padding: 10px;
}```
Well, so far I leave the snippet, if you have suggestions tell me and I'll add it β€οΈ
Complete and updated code.
I hope to soon have access to#π¨-css-snippets so that I can publish my snippets in that channel and they don't get lost in oblivion in this channel xd
but I have already made 3 requests and all 3 have been rejected.
I'm going to try again with that code to see if they accept me xd
are there any tips for using gif backgrounds with less lag?
cuz i use an imgur link and when the theme is on it like halves the framerate lol
i'm gonna try an image squence and see if it helps
this is a dumb question but is there any way to get randomness with a theme? like with css i mean
not without js
css is only loaded once, it's all preprocesses
also, that would be a function, which is in programming languages, which css is not
i thought not just checking!
yeah i wish themes supported js that'd be sick
or like have themes come with built-in plugins
i made something interesting i think:
It's a moving background image.
(don't bully my pink theme π₯Ί)
Here's the css for any1 interested:
body {
/* you can use any image ovb */
background: center/cover url('https://i.imgur.com/Uo77Ezk.png');
overflow: hidden;
width: 100vw;
height: 100vh;
/* you can change speed by changing the 300 number */
animation: moveBackground 300s infinite linear;
}
@keyframes moveBackground {
from {
background-position: center center;
}
to {
/* bg image dimensions here:*/
background-position: 4051px 2532px;
}
}```
https://cdn.discordapp.com/attachments/1134844326933954622/1225659492881137745/owo.mp4?ex=6621ef5a&is=660f7a5a&hm=a783cefc212ff9fc905779fbfb152c3fb9fca0814ac4893f8e7876ee2ee0e7ab&
looks pretty nice
thank u β€οΈ
That's pretty

this would probably only look good for images that would look good tiled
oh my god i could do minecraft dirt.png
what is this reffered to and how do i change it
like the window title
or something
depending what you want to do exactly, there might be options for faking it
the wordmark
You mean the watermark?
I had a snippet somewhere to remove that, but the classes might need some updating
neat effect, just be careful that constant fullscreen animation can be expensive
unless you make it pregenerated
baked
pregante 
preganenant!?
yeah it doesnt seem to work
Old classes
yur :p
Does splitting themes into multiple css subfiles affect performance in any way?
tried this and it didnt work
.typeWindows_e41dab>.wordmark__5b8c9 {
visibility: hidden;
}
.typeWindows_e41dab>.wordmark__5b8c9:after {
content:'coughii';
}
still just removed :/
/* Get rid of the whole thing */
.wordmark__5b8c9.wordmark__5b8c9 {
display: none;
}
/* OR */
.wordmark__5b8c9.wordmark__5b8c9 svg {
display: none;
}
.wordmark__5b8c9.wordmark__5b8c9::before {
content: "BlurredVision";
}
.wordmark__5b8c9.wordmark__5b8c9::after {
content: "v69 lololol";
}
sire
Also visibility: hidden does not remove it
Pretty sure it just becomes transparent or something
Bump

slight penalty initially loading the theme, after that nop
Hmmm
why do you want to split your theme, out of curiosity
To make it easier to debug/mantain
I'm also splitting my theme
Basically
I was planning on splitting it into different sections
Server/channel list
Chat area
Members list
Expensive on what exactly?
Cpu?
consider using scss, which adds a bunch of features but the important one to you seems to be separate files while editing that compiles to one css file after
I just want to make my theme so that you can grab parts of it as snippets or all of it with the snippets @imported
oh god please no

Wuzzdat
I'm already trying to learn css, why is there another letter now?
it's a superset of css, so valid css is also valid scss, you don't need to relearn anything
it's a preprocessor that adds a few features and compiles into css
most of its features are part of css these days
Mhm
scss was more useful in the past but these days I don't see any good reason to use it
they would
Or does scss have less loading time than them?
the loading time is negligible unless you load the imports from the internet then there's networking to consider
^
Well, from github
I do mine from my github and I see no load delay tbh
by the time discord has loaded, so has all your css
unless github breaks
my view is scss always, bc my perspective is that it's easier to switch now than when the theme grows
but that's from my experience making truly gigantic themes with ~100 files
horror
understandable lol
Just 1 for import/customization
And some others for the different parts of the client
I'm not going to have 1 separated file for every component, that would be horrific to update and maintain

I've also not fully decided how I'm gonna split parts into their own files
but yeah I want to make my theme basically have many of its parts be used standalone and/or with other themes
anything that can be used like that deserves its own file and they go to https://github.com/nvhhr/discordcss/tree/main/snippets
this the structure I'm happy with currently: https://github.com/Saltssaumure/elysium-discord-theme/tree/main/scss
mainfor different regions of discord eg. members list, chat bar, settings menumodfor client mod specific stuffpartfor abstracts or components that appear all over, eg. font, buttonspluginfor plugin specific stuff
root folder contains the big importer, plus stuff that's used in other files
Client specific stuff like the Vencord menus etc?
yep
Me likey
I plan on making my theme so that it's like many themes in one, by making a robust base and then a bunch of preset files that set a bunch of variables I've set up and override some rules if needed
having the foresight to do that is great
what version of chromium is stock discord stable running on
ptb is on 28.2.7
would like to check stable except it's installing one billion updates since hte last time I opened it
π
ok yup stable's the same as ptb, 28.2.7
electron 28 so chromium 120
waiting for chromium at least 121 so I can use scrollbar without prefixing
yay, yippee, hooray
if stable is really on chromium 120 it changes everything
oklch is the best because you can easily change the hue of a color and the perceived brightness and saturation will not change
No, hcl is a chemical
can navigator.userAgent lie?
I have no idea, I doubt it

That's actually good
no more being blinded by yellow and cyan?!
hue caturation lightness
mreow

this is an accessibility w
yep
maybe WCAG will also be able to update their guidelines on contrast based on this, to replace their current really weird definition that lets edge cases through https://www.w3.org/TR/WCAG20/#relativeluminancedef
the only weird thing about oklch is that L value 1 is always white no matter what the saturation, but L .99 with full saturation gives you the maximum brightness of a color

So, does stable support OKLCH?
from my understanding it should
If it does, that'd be great
Letting people choose 1 color to customise the whole theme palette sounds great
yeah thats pretty strange
and i know its supposed to be scientific and shit but sometimes it just goes a bit too far
Woooo
but i guess thats just the result of a lifetime of me looking at rgb media
actually I'm mistaken, the max saturation and max brightness for that given saturation is a moving target lol at least according to the picker on https://oklch.com/
these shapes are hurting my brain
Random question
Is there a way to check for an element color and apply another style to it when meeting certain parameters?
unfortunately not

Shame
I'll add a comment to the import file that says
/* don't choose a color that's too dark you dumbass */```

Is this page completely fucked up on desktop for anyone else, or is it just me? https://en.wikipedia.org/wiki/CIE_1931_color_space
The CIE 1931 color spaces are the first defined quantitative links between distributions of wavelengths in the electromagnetic visible spectrum, and physiologically perceived colors in human color vision. The mathematical relationships that define these color spaces are essential tools for color management, important when dealing with color inks...
yep
lol
Yup
regarding this, it's actually funny that you can do it for the elements children but not the element itself using container queries
this guy editing on mobile did it, it seems
can't tell if troll or catastrophic typo
Probably typo
looking at this person's edit history over all of wikipedia, they've done this but only on articles on colour spaces
I don't get it man
A sort of :has with color values?
Dunno what container queries are yet, sadly
basically you can do @container style(color:red) { color:blue; } and it will find elements that have color:red and make their children color:blue
but you can't do that for the element itself, only its children
what were you envisioning
i'm confused why are there js selectors in css snippets?
? elaborate please
:is([class^="inlineMediaEmbed_"], [class^="messageAttachment_"]) {
max-width: 550px !important;
max-height: 550px !important;
}
:is([class^="inlineMediaEmbed_"], [class^="messageAttachment_"]) [class^="imageWrapper_"] {
max-width: 550px !important;
max-height: 550px !important;
width: max-content !important;
height: max-content !important;
aspect-ratio: unset !important;
}
:is([class^="inlineMediaEmbed_"], [class^="messageAttachment_"]) [class^="imageWrapper_"] :is(img, video) {
max-width: 550px !important;
max-height: 550px !important;
width: max-content !important;
height: max-content !important;
}
:is([class^="inlineMediaEmbed_"], [class^="messageAttachment_"]) [class^="imageWrapper_"] [class^="loadingOverlay_"] {
aspect-ratio: unset !important;
}
[class^="oneByOneGrid_"] {
max-height: 550px !important;
}
[class^="imageContainer_"]:has([aria-label="GIF"]) + [class^="altText_"] {
display: none;
}
for example
that's just modern css
which part do you think is js?
where do i even put that
idk i'm just confused cuz i'm trying to add the snippet but it aint workin :/
it could just be broken
my whole css breaks if i do
any of those types
[class^="imageWrapper_"] img[class^="lazyImg"] { object-fit: contain !important; }
that breaks it
all of those types break it
demonstrate where you're putting it
i tried both above and below my normal css
no worky :/
like
<imports here>
snippet
css
i also tried snippet after
and snippet before imports
imports always go first, but regardless, can you take a screenshot
it might not be a useful snippet, but shouldn't break the rest of your css from what I can see
OHHHHHH
WAIT
WTF
I DUPLICATED MY WHOLE PROJECTAND WAS APPARENTLY EDITING THE MIDDLE
IDEK
Please, use
codeblocks

where do i send already finished themes
if it's your work and you want to allow anyone to do anything with it, ask someone (idk who) for snippet dev role to post in #π¨-css-snippets
me neither 
i've seen mods like,, twice
Try making a #π©-modmail ticket
i was gonna do that ye
TO: ven@cord.com
SUBJECT: giv roll

Can I get the snippet for this? 
only the search changed, you mean that?
.search_ac353c:not(.open_d3ab4e) .searchBar__5a20a {
width: 22px;
background-color: transparent;
}
.searchBarComponent__8f95f, :not(.open_d3ab4e) > .searchBar__5a20a {
background: transparent !important;
}
.search_ac353c:not(.open_d3ab4e) .iconLayout__9d9a4 {
cursor: pointer!important;
}
.search_ac353c:not(.open_d3ab4e) .iconContainer__9f124 {
transform: scale(1.4);
}
.search_ac353c:not(.open_d3ab4e) .icon__5c8c7 {
color: var(--interactive);
}
.search_ac353c:not(.open_d3ab4e):hover .icon__5c8c7 {
color: var(--interactive-active);
}```
this could be added to a sniplet i think
(oops)
oh then it was not the video oops
yeah, ty!<3
also, can I get the one to hide this?
u want to hide notification settings?
[aria-label="Notification Settings"].iconWrapper_de6cd1 {
display: none;
}```
ty
amoled-cord + mine which i named "Smooth harmony" >< but i haven't relesased this transparent titlebar yet
i just can't ><
yeah I also tried the break on subtree modifications in devtools on the layercontainer
yeah it needs more than that to be able to see body background
https://github.com/nvhhr/discordcss/blob/main/snippets/actuallybasicbackground.theme.css I published this just now
there's many elements on top of body that need to be cleared out of the way
is there a template for a theme in vencord bc idk how to start with vencord theme creatino
not really
how do i start then
first learn css
do you know any css
yea
ok then open up devtools with ctrl+shift+i
inspect elements and write new styles for them
all i can say is that discord theming is not fun at all
why
discord for some reason has multiple layers of css stacked on eachother that serve as just backgrounds
ohhh Man
I am writing a theming guide but no plans on anything like a template, although my theme that I release soon will maybe work as a good base
k nice
I'm trying to make my theme so that it consists of a bunch of snippets that work standalone, and making presets to have many different looks from one base theme
setTimeout(function(){debugger;},3000); Pauses after 3 seconds of running it, so run the function > select text > wait until break > do your stuff
u have to hide the background
yeah this works well
anyone knows how the class is called for the background (i wanna set background to image)




