Skip to content

Instantly share code, notes, and snippets.

@matsumurae
Last active November 30, 2021 11:07
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matsumurae/1277aae1af3f94ecf9d0a427fc308fef to your computer and use it in GitHub Desktop.
Save matsumurae/1277aae1af3f94ecf9d0a427fc308fef to your computer and use it in GitHub Desktop.
Dracula theme inspired Anki cards

## 👋

I've created Dracula inspired theme for Anki Cards. You're going to find Basic and Cloze cards. You can see theme here.

Basic

Cloze

<div class="card-container">
<div class="tags">
{{Tags}}
</div>
{{Front}}
<div class="back">
{{Back}}
</div>
</div>
<div class="card-container">
<div class="tags">
{{Tags}}
</div>
{{Front}}
</div>
html {
overflow: scroll;
overflow-x: hidden;
}
/* Tags on top */
.tags {
color: #A6ABB9;
opacity: 0;
font-size: 10px;
width: 100%;
text-align: center;
text-transform: uppercase;
position: fixed;
padding: 0;
top:0;
right: 0;
}
.tags:hover {
opacity: 1;
position: fixed;
}
/* Card container */
.card-container {
padding: 0px 0px;
max-width: 700px; /* Size card */
margin: 0 auto; /* Center in the middle */
word-wrap: break-word;
}
/* Card */
.card {
font-family: Menlo, baskerville, sans;
font-size: 18px;
text-align: center;
color: #f8f8f2;
line-height: 1.6em;
background-color: #282a36;
}
/* Back on bottom */
.back {
display: block;
margin-top: 20px;
}
.back,
.back i {
font-size: 15px;
color:#D7DEE9;
font-style: italic;
}
/* For images */
img {
display: block;
max-width: 100%;
max-height: none;
margin-left: auto;
margin: 10px auto 10px auto;
}
/* Styles for bold, italic, underline and links */
b {
color: #ff79c6 !important;
}
u {
text-decoration: none;
color: #8be9fd;
}
i {
color: #ff5555;
}
a {
color: #6272a4 !important;
text-decoration: none;
font-size: 10px;
font-style: normal;
}
/* Mobile only */
.mobile .card {
color: #f8f8f2;
background-color: #282a36;
}
.mobile .tags:hover {
opacity: 1;
position: relative;
}
<div class="card-container">
<div class="tags">
{{Tags}}
</div>
{{cloze:Text}}
{{#Extra}}
<div class="extra">
{{Extra}}
</div>
{{/Extra}}
</div>
<div class="card-container">
<div class="tags">
{{Tags}}
</div>
{{cloze:Text}}
</div>
html {
overflow: scroll;
overflow-x: hidden;
}
/* Tags on top */
.tags {
color: #A6ABB9;
opacity: 0;
font-size: 10px;
width: 100%;
text-align: center;
text-transform: uppercase;
position: fixed;
padding: 0;
top:0;
right: 0;
}
.tags:hover {
opacity: 1;
position: fixed;
}
/* Card container */
.card-container {
padding: 0px 0px;
max-width: 700px; /* Size card */
margin: 0 auto; /* Center in the middle */
word-wrap: break-word;
}
/* Card */
.card {
font-family: Menlo, baskerville, sans;
font-size: 18px;
text-align: center;
color: #f8f8f2;
line-height: 1.6em;
background-color: #282a36;
}
/* Cloze styles */
.cloze,
.cloze b,
.cloze u,
.cloze i {
font-weight: bold;
color: #50fa7b !important;
}
/* Extra on bottom */
.extra {
display: block;
margin-top: 20px;
}
.extra,
.extra i {
font-size: 15px;
color:#D7DEE9;
font-style: italic;
}
/* For images */
img {
display: block;
max-width: 100%;
max-height: none;
margin-left: auto;
margin: 10px auto 10px auto;
}
/* Styles for bold, italic, underline and links */
b {
color: #ff79c6 !important;
}
u {
text-decoration: none;
color: #8be9fd;
}
i {
color: #ff5555;
}
a {
color: #6272a4 !important;
text-decoration: none;
font-size: 10px;
font-style: normal;
}
/* Mobile only */
.mobile .card {
color: #f8f8f2;
background-color: #282a36;
}
.mobile .tags:hover {
opacity: 1;
position: relative;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment