UNPKG

624 BCSSView Raw
1body {
2 background: #03051a;
3 display: flex;
4 justify-content: center;
5 align-items: center;
6 height: 100vh;
7 width: 100vw;
8 margin: 0;
9}
10
11h1 {
12 color: white;
13 display: block;
14 font-family: monospace;
15 font-size: 4rem;
16 font-weight: 100;
17}
18
19@supports (background: paint(something)) {
20 h1 {
21 /*
22 Optionally set property values.
23 This can be done at root or local scope
24 */
25 --extra-confettiNumber: 40; /* defaults to 30 */
26 --extra-confettiLengthVariance: 12; /* Defaults to 15 */
27 --extra-confettiWeightVariance: 3; /* Defaults to 4 */
28
29 background: paint(extra-confetti);
30 }
31}
\No newline at end of file