Skip to content

Instantly share code, notes, and snippets.

@Hoekstraa
Created November 14, 2023 13:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Hoekstraa/311778955324c1f5c34fe5ebeeca5902 to your computer and use it in GitHub Desktop.
Save Hoekstraa/311778955324c1f5c34fe5ebeeca5902 to your computer and use it in GitHub Desktop.
Minimal CSS theme
/*
Massively extended version of
https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41
*/
:root {
--background: #1a1a1a;
--foreground: #dadada;
--dim: #9a9a9a;
font-family: sans-serif;
font-size: 1.5em;
line-height: 1.75;
margin: auto;
max-width: 70ch;
padding: 3em 1em;
background-color: var(--background);
color: var(--foreground);
}
img {
width: 100%;
}
/* Optional 100 more bytes */
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 3em 0 1em;
}
p,
ul,
ol {
margin-bottom: 2em;
}
/* https://css-tricks.com/styling-links-with-real-underlines/ */
a {
color: var(--foreground);
text-decoration-color: var(--foreground);
text-decoration-thickness: .125ch;
text-underline-offset:3px;
}
a:visited {
text-decoration-color: var(--dim);
color: var(--dim);
text-decoration-thickness: .100ch;
text-underline-offset: 2px;
}
a:hover {
text-decoration-thickness: .100ch;
text-underline-offset:2px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment