All colors are available through CSS variables. Aside from black and white, there are 10 base colors. Each base color has two shades and two tints. There are seven tints of black (i.e., seven shades of gray). You can refer to them directly in your CSS like this:
There are also classes for each color to set the background color of an element:
Use these classes to set text color:
There are aliases for colors used in the display of rubric and assessment scores.
They come in dark and light shades for backgrounds, and in dark shades for text
colors. The number at the end corresponds to the score value being rendered, in
the range 0 - 5. You can also refer to the colors directly in CSS expressions,
e.g.,var(--score-0)
or var(--score-light-5)
.
Shown with outline classes.
This also works if you have to nest the image for whatever reason.
These buttons are used as menu buttons. Icons can be SVGs or fonts. (In the example below, the first button uses an SVG while the second button uses an icon font.) There are also two color variations, light and red.
Some button styles come with a box shadow, which could be unwanted on a dark background. In such cases, use the following helper class to remove the box shadow:
These buttons are used in the classroom on a dark background and should take up the width of the sidebar.
These are the classroom versions of text buttons (buttons that look like links). Note that in the examples below, the background is not part of the button.
All <a> elements will automatically have these styles applied:
I am a link!Certain links, such as HCs and links within blocks of text, should always be underlined.
I am a link!In some situations, you can't apply the class to the link itself (for example, when the HTML is generated from Markdown). In such cases, you can apply the following helper class on a parent element instead:
This style is meant to be used with tooltips:
All spacing is based on a 4px grid system. Note that we override the default sizes provided by Basscss.
Shorthand | Description |
---|---|
m | Margin |
p | Padding |
t | Top |
r | Right |
b | Bottom |
l | Left |
x | X-axis (left and right) |
y | Y-axis (top and bottom) |
n | Negative (margin and x-axis only) |
0 | 0px |
1 | --space-1 (4px) |
2 | --space-2 (8px) |
3 | --space-3 (12px) |
4 | --space-4 (16px) |
5 | --space-5 (20px) |
6 | --space-6 (24px) |
7 | --space-7 (28px) |
10 | --space-10 (40px) |
The preferred method is to compose these margin and padding classes together like this:
Alternatively, you can use CSS variables to set margin and padding in your custom CSS:
To update the progress bar, adjust the width of the bar element. Here's an example shown in jQuery:
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Example | Example | Example |
Example | Example | Example |
To use these table styles, add the fds-table class to the <table> element:
Heading 1 | Heading 2 | Heading 3 |
---|---|---|
Example | Example | Example |
Example | Example | Example |
If you want a hover effect on table rows, use the table-hover class in addition to fds-table. Note that this should only be used on tables where the entire row is actionable.