#**colored role pills**
1 messages · Page 1 of 1 (latest)
what
WHY DID @import go to that
Hey that me
yeah
i clicked random person on the member list
next time click me 
Ummmm.... what am I doing wrong? lol
If I take the code block out of quickcss, it loads fine
that's crazy
I was updating my version of this snippet literally last night
bug
my very scuffed fix for the remove role icon btw ```scss
[class^="roleRemoveIcon_"] {
left: calc(
4px + /* Pill padding /
1px + / "Remove Role" /
4px + / Circle margin /
12px/2); / Circle size */
}
ok i updated it, hopefully this is fixed now
also role remove button works i think
One day you will make this an @ import
making it an import means i actually have to maintain it (im not going to)
typical Css dev
i already have two themes to maintain 
midnight my beloved
Thank you 
its not
class updater is reliable enough now
plus its easier to convert from hard classes to attributes and not the other way around
Hi, thank you for this, the remove button doesn't have the X, I use the updated code
how do i use that?
is there a snippet of this that works in ptb?
Using rglöckchen's profile as an example, the colours don't show up
they do, also on your profile
does this still work on lastest discord update, ive been seeing alot about an update recently that broke a lot of stuff
well i have, thats why im asking
and did it work when you tried it?
no
Ok then it doesnt work anymore
Guess I’ll have to do it myself
@valid pivot
ty
impossible without javascript
Still works for me
I do have the refresh turned off in experiments though.
If that changes things.
assuming you're meaning this
Yes, that's the UI update that is breaking everything everywhere lmao
Remove role is broken
#1335796176406184018 message should fix it
hm, seems something is scuffed with the way this snippet does things. Works fine with my own ```css
[class^="role_"] {
position: relative;
overflow: hidden;
[class^="roleRemoveButton_"],
div > [class^="roleRemoveButtonCanRemove_"]
{
position: static;
[class^="roleCircle_"]::before {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: inherit;
opacity: 0.2;
z-index: 0;
}
}
[class^="roleName_"] { z-index: 1; }
[class^="roleRemoveIcon_"] {
left: calc(
4px + /* Pill padding /
1px + / "Remove Role" /
4px + / Circle margin /
12px/2); / Circle size */
}
}
Ah, it was just a conflict of themes, I fixed
alr
mine never broke
so just use this
I am on refreshed..
it doesn't seem to work
wait lemme try smth
so am I
huh than Ig the problem on my css
This also still works for me with refresh, just as another data point
ye it works, I just had a conflicting css
This breaks with role gradients btw
did a quick fix for the new gradient roles that came out https://i.imgur.com/a7IkQSQ.gif
.role_dfa8b6.pill_dfa8b6 .twoColorGradient_e5de78::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(
90deg,
var(--custom-gradient-color-1),
var(--custom-gradient-color-2),
var(--custom-gradient-color-3)
);
background-size: 50% 100%;
transition: background-position 0s;
}
.role_dfa8b6.pill_dfa8b6:hover .twoColorGradient_e5de78::before {
animation: seamlessGradient 5s linear infinite;
}
@keyframes seamlessGradient {
0% {
background-position: 0% 0%;
}
100% {
background-position: 100% 0%;
}
}
Dont think this works anymore
shame. it looks so good
what is not working exactly
this entire thing. It does absolutely nothing for me
.role_dfa8b6.pill_dfa8b6 {
position: relative;
background: none;
border: none;
padding-left: 28px;
margin-right: -4px;
> span {
z-index: 1;
}
.roleRemoveButton_dfa8b6 {
position: absolute;
inset: 0;
}
.roleName_dfa8b6 {
margin-left: -4px;
padding-right: 6px;
}
.roleIcon__1e6f1 {
transform: translateX(-4px);
}
.roleCircle__4f569 {
margin: 6px 8px;
&::before {
content: '';
display: block;
position: absolute;
background-color: inherit;
inset: 0;
border-radius: 16px;
opacity: 0.4;
}
}
.twoColorGradient_e5de78::before {
content: "";
background: inherit;
background-size: 50% 100%;
transition: background-position 0s;
}
.threeColorGradient_e5de78::before {
content: "";
background: inherit;
background-size: 50% 100%;
transition: background-position 0s;
}
&:hover {
.twoColorGradient_e5de78::before,
.threeColorGradient_e5de78::before {
animation: seamlessGradient 5s linear infinite;
}
}
}
.expandButton_fccfdf.pill_fccfdf,
.vc-permviewer-role-button {
border-color: transparent;
border-radius: 16px;
background-color: rgb(0 0 0 / 0.1);
&:hover {
background-color: rgb(0 0 0 / 0.2);
}
}
try this out
@keyframes seamlessGradient {
0% {
background-position: 0% 0%;
}
100% {
background-position: 100% 0%;
}
}
this too for the gradient animation
doesnt seem to do anything
just gets rid of the remove role button
do i got to enable something? @tall ember
might be a conflict with another theme you're using
I aint using any themes tho
I was in that screenshot
But i disabled it
And it no longer works
Does my version work?
#1335796176406184018 message
If not, it’s likely something on your end
im not really sure if its something on my end because like, im using the latest version of discord. with minimal CSS, no themes, etc
its possible one of these might mess with it?
yeah its definitely related to one of those
because when I remove those plugins its fixed
is it possible to make them compatible?
tested all of them
its better role dot that is the issue
it seemingly makes remove role pop up a lot more, not just when hovering over the circle? but other than that I think it works fine now
But just in case I did something wrong
.role_dfa8b6.pill_dfa8b6 {
position: relative;
background: none;
border: none;
padding-left: 28px;
margin-right: -4px;
> span {
z-index: 1;
}
.roleRemoveButton_dfa8b6 {
position: absolute;
inset: 0;
}
.roleName_dfa8b6 {
margin-left: -4px;
padding-right: 6px;
}
.roleIcon__1e6f1 {
transform: translateX(-4px);
}
.roleCircle__4f569 {
margin: 6px 8px;
&::before {
content: '';
display: block;
position: absolute;
background-color: inherit;
inset: 0;
border-radius: 16px;
opacity: 0.4;
}
}
.twoColorGradient_e5de78::before {
content: "";
background: inherit;
background-size: 50% 100%;
transition: background-position 0s;
}
.threeColorGradient_e5de78::before {
content: "";
background: inherit;
background-size: 50% 100%;
transition: background-position 0s;
}
&:hover {
.twoColorGradient_e5de78::before,
.threeColorGradient_e5de78::before {
animation: seamlessGradient 5s linear infinite;
}
}
}
.expandButton_fccfdf.pill_fccfdf,
.vc-permviewer-role-button {
border-color: transparent;
border-radius: 16px;
background-color: rgb(0 0 0 / 0.1);
&:hover {
background-color: rgb(0 0 0 / 0.2);
}
}
@keyframes seamlessGradient {
0% {
background-position: 0% 0%;
}
100% {
background-position: 100% 0%;
}
}
[class^="role_"] {
position: relative;
overflow: hidden;
> [class^="roleRemoveButton_"],
> div > [class^="roleRemoveButtonCanRemove_"]
{
position: static;
> [class^="roleCircle_"]::before {
content: "";
position: absolute;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: inherit;
opacity: 0.2;
z-index: 0;
}
}
> [class^="roleName_"] { z-index: 1; }
[class^="roleRemoveIcon_"] {
left: calc(
4px + /* Pill padding */
1px + /* "Remove Role" */
4px + /* Circle margin */
12px/2); /* Circle size */
}
}```
forgive me i dont know how to put it in the CSS thing
you don't need to use both of ours code, just one of them
the popup being buggy is from my side, i haven't gotten to fixing it
i need to rewrite the code fully, cuz for the current version i used refractor code as base
This one works, but doesnst ssupport gradient roles.
Apologize if some of my messages look scuffed. my keyboard is dumb.
i rewrote my snippet, fixed all the issues with it, if you want it
I do.
Please send me it.
Add this to the top of your custom css:
@import url('https://raw.githubusercontent.com/moonself/Vencord-Repos/refs/heads/main/Full%20Role%20Pills');```
Need to add this to the custom css for the snippet to function:
```css
:root {
--pill-roundness: 16px;
--pill-opacity: 30%;
}
@sullen dust
Do i delete the old code? @tall ember
yeah, you can delete all the old stuff
the import is enough
@tall ember tis missing the animated effect when hovering.
it should animate when hovering the dot itself
Not working for me
it was working for me perfectly fine, I'll look into it
any kind soul to update it for the latest Discord mess?
I tried, but failed
@import url('https://raw.githubusercontent.com/moonself/Vencord-Repos/refs/heads/main/Full%20Role%20Pills');
well, something happened here
I removed all my snippets and theme
oh right you need this
:root {
/* Role Pill Settings */
--pill-roundness: 16px;
--pill-opacity: 30%;
--pill-border: false; /* "true" to enable */
}
thank you
snippet got killed by new role design
I completely forgot this was a snippet until it broke. My brain just incorporated this as a default Discord visual (cos it makes so much sense). I was damn near having an aneurysm trying to find the Discord setting to fix it before I remembered it's CSS lmao
hope to get fix soon 😅
I've been poking at your code for this for a couple days now but it seems like Discord completely changed the role list and I don't know enough CSS to fix to the new rules. Are you willing to take a peek? No pressure if the answer is no, I just relied on this a lot for modding (easier to see what roles someone has at a glance when it's bigger than a dot lol)
/* Role pill background colour */
:is([data-list-id^="roles-"], [data-list-item-id^="roles-"]) > div {
position: relative;
> * { z-index: 1; }
> [class*="-roleCircle"]::before {
content: "";
position: absolute;
inset: 0;
background: inherit;
border-radius: var(--radius-round);
opacity: 0.3;
z-index: 0;
pointer-events: none;
}
}
this is my own version and does not look the same as theirs, but it works mostly the same
I have updated the repo and fixed the issues
Thank you!! 💕
both the original and fripe/moon's snippets died with today's css hell
i am fixing it right now, will update the repo shortly
might aswell ask refactor if they're chill with deleting so you can repost /j
i was thinking about posting my snippet in #🎨-css-snippets so people wouldn't need to search it all the way here for it