This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video controls autoplay loop width=”360” height=”240” poster=”placeholder.jpg”> | |
<source src="assets/video.mp4" type="video/mp4"> | |
<source src="assets/video.webm" type="video/webm"> | |
</video> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--font-primary: sans-serif; | |
--font-secondary: serif; | |
/* set base values */ | |
--text-base-size: 1em; | |
--text-scale-ratio: 1.2; | |
} | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--font-primary: sans-serif; | |
--font-secondary: serif; | |
/* set base values */ | |
--text-base-size: 1em; | |
--text-scale-ratio: 1.2; | |
/* type scale */ | |
--text-xs: calc(1em / (var(--text-scale-ratio) * var(--text-scale-ratio))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* set base values */ | |
--text-base-size: 1em; | |
--text-scale-ratio: 1.2; | |
/* type scale */ | |
--text-xs: calc(1em / (var(--text-scale-ratio) * var(--text-scale-ratio))); | |
--text-sm: calc(1em / var(--text-scale-ratio)); | |
--text-md: calc(1em * var(--text-scale-ratio)); | |
--text-lg: calc(1em * var(--text-scale-ratio) * var(--text-scale-ratio)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
--baseline: 24px; | |
/* spacing values */ | |
--space-sm: calc(var(--baseline)/2); | |
--space-md: var(--baseline); | |
--space-lg: calc(var(--baseline)*2); | |
--space-xl: calc(var(--baseline)*3); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* spacing values */ | |
--space-xxxs: 0.25em; | |
--space-xxs: 0.375em; | |
--space-xs: 0.5em; | |
--space-sm: 0.75em; | |
--space-md: 1.25em; | |
--space-lg: 2em; | |
--space-xl: 3.25em; | |
--space-xxl: 5.25em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.component { | |
font-size: 1.2em; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.component h1 { | |
font-size: 3em; // the size is no longer affected by the --text-scale-ratio | |
font-size: calc(var(--text-base-size) * 3); // use base size to create new value - off scale | |
font-size: calc(var(--text-xxl) - 0.8em); // use original font size to create new value - off scale | |
font-size: var(--text-xl); // update the value of the font size using a different variable | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* typography */ | |
--color-text: var(--gray-10); | |
--color-text-heading: var(--black); | |
--color-text-subtle: var(--gray-6); | |
--color-link: var(--color-primary); | |
--color-link-visited: var(--color-primary-dark); | |
} | |
body { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root { | |
/* typography */ | |
--color-text: var(--gray-10); | |
--color-text-heading: var(--black); | |
--color-text-subtle: var(--gray-6); | |
--color-link: var(--color-primary); | |
--color-link-visited: var(--color-primary-dark); | |
} | |
.theme--dark { |
OlderNewer