2023-08-31 01:49:53 +02:00
# ThemeAttributes
2024-05-15 01:07:33 +02:00
This plugin adds data attributes and CSS variables to various elements inside Discord
2023-08-31 01:49:53 +02:00
This allows themes to more easily theme those elements or even do things that otherwise wouldn't be possible
## Available Attributes
### All Tab Bars (User Settings, Server Settings, etc)
`data-tab-id` contains the id of that tab

### Chat Messages
- `data-author-id` contains the id of the author
2024-05-12 06:57:48 +10:00
- `data-author-username` contains the username of the author
2023-08-31 01:49:53 +02:00
- `data-is-self` is a boolean indicating whether this is the current user's message

2024-05-15 01:07:33 +02:00
## CSS Variables
### Avatars
`--avatar-url-<resolution>` contains a URL for the users avatar with the size attribute adjusted for the resolutions `128, 256, 512, 1024, 2048, 4096` .
