<h1 class="grays">Color fonts</h1>
<h1 class="purples">Color fonts</h1>
<h1 class="mint">Color fonts</h1>
@font-face {
font-family: 'Rocher';
src: url(https://assets.codepen.io/9632/RocherColorGX.woff2);
}
body {
font-family: 'Rocher';
text-align: center;
font-size: 50px;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
h1 {
margin: 0;
}
@font-palette-values --Grays {
font-family: Rocher;
base-palette: 9;
}
@font-palette-values --Purples {
font-family: Rocher;
base-palette: 6;
}
@font-palette-values --Mint {
font-family: Rocher;
base-palette: 7;
}
.grays {
font-palette: --Grays;
}
.purples {
font-palette: --Purples;
}
.mint {
font-palette: --Mint;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.