Skip to content

Style anki text with HTML tag#1143

Open
XSAM wants to merge 1 commit intopot-app:masterfrom
XSAM:style-anki-text
Open

Style anki text with HTML tag#1143
XSAM wants to merge 1 commit intopot-app:masterfrom
XSAM:style-anki-text

Conversation

@XSAM
Copy link
Copy Markdown

@XSAM XSAM commented Jul 8, 2025

This PR adds HTML tags to the Anki text, so users can easily style their Anki cards by changing the Styling setting

Comparison of the back of the Anki card

Before

image

After (with #1142 and my custom CSS style)

.card {
    font-family: arial;
    font-size: 20px;
    text-align: center;
    color: black;
    background-color: white;
}

.back {
  text-align: left;
}

.explanation.trait {
  color: #5d2fc1
}

.explanation.explain.primary {
  font-weight: 700;
  font-size: 18px;
  color: #1d2a57;
}

.explanation.explain.secondary {
  font-size: 16px;
  color: #0580e8;
}

.sentence {
  color: #1d2a57;
  font-size: 17px;
}
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant