Skip to content

Instantly share code, notes, and snippets.

@dev-math
Last active January 4, 2023 01:20
Show Gist options
  • Select an option

  • Save dev-math/bf02e10c569b8654ca98558b3eab0c53 to your computer and use it in GitHub Desktop.

Select an option

Save dev-math/bf02e10c569b8654ca98558b3eab0c53 to your computer and use it in GitHub Desktop.
/* example root https://github.com/kevin-powell */
/* :root { */
/* --clr-accent-500: hsl(12, 60%, 45%); */
/* --clr-accent-400: hsl(12, 88%, 59%); */
/* --clr-accent-300: hsl(12, 88%, 75%); */
/* --clr-accent-100: hsl(13, 100%, 96%); */
/**/
/* --clr-primary-400: hsl(228, 39%, 23%); */
/**/
/* --clr-neutral-900: hsl(232, 12%, 13%); */
/* --clr-neutral-200: hsl(0 0% 97%); */
/* --clr-neutral-100: hsl(0 0% 100%); */
/**/
/* --ff-primary: "Be Vietnam Pro", sans-serif; */
/**/
/* --ff-body: var(--ff-primary); */
/* --ff-heading: var(--ff-primary); */
/**/
/* --fw-regular: 400; */
/* --fw-semi-bold: 500; */
/* --fw-bold: 700; */
/**/
/* --fs-300: 0.8125rem; */
/* --fs-400: 0.875rem; */
/* --fs-500: 0.9375rem; */
/* --fs-600: 1rem; */
/* --fs-700: 1.875rem; */
/* --fs-800: 2.5rem; */
/* --fs-900: 3.5rem; */
/**/
/* --fs-body: var(--fs-400); */
/* --fs-primary-heading: var(--fs-800); */
/* --fs-secondary-heading: var(--fs-700); */
/* --fs-nav: var(--fs-500); */
/* --fs-button: var(--fs-300); */
/**/
/* --size-100: 0.25rem; */
/* --size-200: 0.5rem; */
/* --size-300: 0.75rem; */
/* --size-400: 1rem; */
/* --size-500: 1.5rem; */
/* --size-600: 2rem; */
/* --size-700: 3rem; */
/* --size-800: 4rem; */
/* --size-900: 5rem; */
/* } */
/* https://piccalil.li/blog/a-modern-css-reset */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin */
* {
margin: 0;
padding: 0;
font: inherit;
}
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
list-style: none;
}
/* Set core root defaults */
html:focus-within {
scroll-behavior: smooth;
}
html,
body {
height: 100%;
}
/* Set core body defaults */
body {
text-rendering: optimizeSpeed;
line-height: 1.5;
}
/* A elements that don't have a class get default styles */
a {
color: inherit;
text-decoration: none;
}
/* Make images easier to work with */
img,
picture,
svg {
max-width: 100%;
display: block;
}
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
html:focus-within {
scroll-behavior: auto;
}
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* styling */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment