This file contains hidden or 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
// ============================================== | |
// Utility - Spacing | |
// ============================================== | |
:root { | |
--sizeBase: 1rem; | |
// Sizing | |
--size0: 0; | |
--size2: calc(var(--sizeBase) - 0.8rem); |
This file contains hidden or 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
<!-- Usage --> | |
<div class="type-s-24 type-w-500"> | |
I'm a 24px text | |
</div> |
This file contains hidden or 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
.onboarding-step { | |
display: none; | |
} | |
.onboarding-step.active { | |
display: block; | |
} |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Unique page title - My Site</title> | |
<link rel="stylesheet" href="/assets/css/styles.css"> |
This file contains hidden or 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
--- | |
interface Props { | |
lightBasePath: string; | |
darkBasePath: string; | |
alt: string; | |
width: string; | |
height: string; | |
} | |
const { lightBasePath, darkBasePath, alt, width, height } = Astro.props; |
This file contains hidden or 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
/* | |
Base Sizes: | |
https://chrisburnell.com/clamp-calculator/?font-size-root=10&size-min=14&size-max=16&viewport-min=516&viewport-max=960&viewport-units=vi | |
*/ | |
:root { | |
--size-2: 0.2rem; | |
--size-4: 0.4rem; | |
--size-6: clamp(0.4rem, 0.168rem + 0.45vi, 0.6rem); | |
--size-8: clamp(0.6rem, 0.368rem + 0.45vi, 0.8rem); | |
--size-10: clamp(0.8rem, 0.568rem + 0.45vi, 1rem); |