AnatomyOf

Anatomy of a CSS file

example.css
1/* A minimal stylesheet. To center a div, see: the rest of your career. */
2
3:root {
4 --gap: 1rem;
5}
6
7p {
8 margin: var(--gap);
9 color: #222;
10}
11
12@media (prefers-color-scheme: dark) {
13 p {
14 color: #eee;
15 }
16}
CSS (Cascading Style Sheets) is a style sheet language used for describing the presentation of a document written in a markup language like HTML.