Created
January 16, 2022 10:21
-
-
Save Rishi-Bidani/e45c5281858f737b05cc6daa8724d901 to your computer and use it in GitHub Desktop.
Starter css for every project
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
* { | |
padding: 0; | |
margin: 0; | |
} | |
/* COLOURS */ | |
:root { | |
--primary: black; | |
--secondary: white; | |
--tertiary: #f2f2f2; | |
--quaternary: #f2f2f2; | |
--bg-color: whitesmoke; | |
} | |
/* Other important variables */ | |
:root { | |
--navbar-height: 60px; | |
--title-height: clamp(1.94rem, 1.46rem + 2.4vw, 3.17rem); | |
} | |
html { | |
scroll-behavior: smooth; | |
} | |
body { | |
background-color: var(--bg-color); | |
} | |
.flex { | |
display: flex; | |
} | |
.flex--column { | |
flex-direction: column; | |
} | |
.center { | |
text-align: center; | |
margin: auto; | |
} | |
.title { | |
font-size: var(--title-height); | |
font-weight: bold; | |
color: var(--primary); | |
} | |
section.container { | |
height: 100vh; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment