Skip to content

Instantly share code, notes, and snippets.

@jansendotsh
Created December 4, 2022 06:36
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 jansendotsh/aef0e281fba70767677af1784a2f41bc to your computer and use it in GitHub Desktop.
Save jansendotsh/aef0e281fba70767677af1784a2f41bc to your computer and use it in GitHub Desktop.
Fosstodon WriteFreely theme w/ Dracula
/* Fosstodon Hub theme written by Kev Quirk (https://kevq.uk) and released under the GPL v3 license (https://www.gnu.org/licenses/gpl-3.0.en.html). */
/* Create colour variables to be used throughout the theme (makes colours easier to change globally). */
:root {
--main: #50fa7b;
--light: #f8f8f2;
--lighter: #bd93f9;
--dark: #282a36;
--accent: #44475a;
}
/* ----------BODY ITEMS---------- */
body {
background-color: var(--dark);
color: var(--light);
}
body h1 a, body header h2 a {
color: var(--lighter);
}
body h1 a:hover, body header h2 a:hover {
color: var(--light);
}
body#post article h2, body#post article h3, body#post article h4, body#post article h5 {
color: var(--lighter);
}
body footer nav {
color: var(--light);
}
body #post footer nav a, body#collection footer nav a, body#post footer nav a, body#subpage footer nav a {
margin-top: 0;
color: var(--lighter);
}
body #post code, body#collection code, body#post code, body#subpage code {
background-color: var(--light);
border: 1px solid var(--light);
color: var(--dark);
padding: .2em .4em;
font-size: .86em;
-webkit-border-radius: .25em;
-moz-border-radius: .25em;
border-radius: .25em;
}
body#collection a.read-more, body#subpage a.read-more {
color: var(--lighter);
}
/* ----------END BODY ITEMS---------- */
/* ----------NAVIGATION & LINKS---------- */
a {
color: var(--main);
}
a.user.hidden.pin.action, a.user.hidden.delete.action, a.user.hidden.action {
color: var(--light);
}
a.pinned {
color: var(--lighter);
}
a.btn.cta, a.btn.submit, a.btn[type="submit"], button.cta, button.submit, button[type="submit"], input.cta, input.submit, input[type="submit"], select.inputform.cta, select.inputform.submit, select.inputform[type="submit"], textarea.inputform.cta, textarea.inputform.submit, textarea.inputform[type="submit"] {
border: 1px solid var(--light);
background: var(--light);
color: var(--dark);
}
a.btn.cta:hover, a.btn.submit:hover, a.btn[type="submit"]:hover, button.cta:hover, button.submit:hover, button[type="submit"]:hover, input.cta:hover, input.submit:hover, input[type="submit"]:hover, select.inputform.cta:hover, select.inputform.submit:hover, select.inputform[type="submit"]:hover, textarea.inputform.cta:hover, textarea.inputform.submit:hover, textarea.inputform[type="submit"]:hover {
border: 1px solid var(--lighter);
background-color: var(--lighter);
text-decoration: none;
}
.post-title a:link, .post-title a:visited {
color: var(--lighter);
}
#post nav a:not(.home), header nav a {
color: var(--light);
}
nav#manage ul a {
display: block;
color: var(--lighter);
background-color: var(--accent);
padding: 0 .5em;
margin: 0;
}
nav#manage ul a:hover {
color: var(--light);
}
nav#manage ul ul {
background: var(--accent);
}
/* ----------END NAVIGATION & LINKS---------- */
/* ----------HEADERS---------- */
#official-writing h2, #official-writing h3, #official-writing h4, #wrapper h2, #wrapper h3, #wrapper h4 {
color: var(--lighter);
}
header p.description {
color: var(--light);
}
/* ----------END HEADERS---------- */
/* ----------TABLES---------- */
th {
background: var(--main);
color: var(--dark);
padding-left: 10px;
padding-right: 10px;
}
td {
border: solid 1px var(--accent);
padding-left: 10px;
padding-right: 10px;
}
/* ----------END TABLES---------- */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment