- Getting Started With CSS
- Removing the Dice Icon In Buttons
- How Elements are Displayed
- Images and Colours
- Text and Fonts
- CSS Grid Layouts
- Understanding Selectors
- How To Hide and Reveal Things With CSS
- Inheritance and Specificity
- Your Own Styles on Roll20
- Advanced Positioning
- Character Sheet – CSS Example
This post focuses on colours, images, and the background of elements. If you do nothing with the background, you get a simple white sheet, and that doesn’t look great. Applying a little colour works wonders, and being able to add images, for things like a logo, is a great feature.
You can assign a colour to many things, like fonts or borders, but here we are focussing on the background. When assigning a colour, use any of the colour values described on this tab.
Note: I’m English, and use the English spelling for colour in conversation. But the CSS property uses the American spelling, color, so when I’m referring to the property I use that spelling.
Named Colours
background-color: red;
background-color: green;
background-color: blue;
Code language: CSS (css)

The simplest way to assign a colour is to use a name. CSS has 140 named colours, from obvious ones like red, green, blue, and black, to more obscure ones like ghostwhite, powderblue, and more.
If you are using VS Code as your Code Editor, just type background-color: and it will show you a big list of colours you can scroll through.
In the Castle Falkenstein sheet I am using as an example, I exclusively use named colours to show you don’t usually need to use anything else. You can stop reading here if you like.
Hexadecimal Colours, aka Hex Colours
background-color: #ff0000;
background-color: #008000;
background-color: #0000ff;
Code language: CSS (css)
In that picture above, see the codes like #808080? Those are the hex-values of the colours. Hex values are probably the most common way to express colour values on the web.
You don’t need to worry about what the digits actually are – just search for a colour wheel site, pick a colour, and let it tell you the hex value of your colour. That can also help you pick complementary and contrasting colours for your sheet.
Another thing you can do is use a colour picker, like this one. Just upload a picture, and click on it to find the hex value of the image at that point.
RGB Colours
background-color: rgb(255,0,0);
background-color: rgb(0,128,0);
background-color: rgb(0,0,255);
Code language: CSS (css)
Any colour can also be expressed as an RGB colour, which is similarly divided into 3 parts, this time separated by a comma, like this: rgb(0, 128, 0). Each part is a number scale from 0 to 255, and again the first part is red component, then green, then blue (hence the name RGB).
There are even more colour units, but those are all you need to know about for now.
Properties in this Page
- background-image
- background-color
- background-position
- background-repeat
- background
- object-fill
- opacity
Further Reading: W3Schools pages on colours and the Roll20 Wiki page on images.