Smart Card State for Templates

AnkiWeb addon 383260719

Automatically switches card layouts between new, learning, review, and relearning states by wrapping card HTML in state classes for CSS styling.
AI-generated summary; may contain mistakes.

card-templates

Open on AnkiWeb Find alternatives

AnkiWeb

Votes
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2026-08-15
Anki versions
2.1.66~
License
MIT (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-08-15 (78 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.202.1.66+2026-08-15
History across monthly snapshots

Loading…

Similar addons

Bible Memorizer

Imports scripture verses as notes with multiple cards and lets you recite passages from memory, revealing verses at detail levels matching their learning state.

card-creationreview-flowcard-templates

24 votes 80% approval πŸ‘ 23 Β· πŸ‘Ž 1 ⭐ 3 Anki 25.09.4~ Updated 2026-05-18
Better Markdown Anki

Renders Anki flashcards with enhanced markdown, LaTeX math, syntax highlighting, theme-aware styling, and interactive cloze toggles via React-based note types.

formattingappearancecard-templatescloze

25 votes 65% approval πŸ‘ 21 Β· πŸ‘Ž 4 ⭐ 31 Anki 2.1.66~ Updated 2026-10-15
SM-20 Custom Scheduler & Algorithm Arena

Brings experimental SM-2, SM-15, SM-19, SM-20, and FSRS v6 schedulers plus a weighted ensemble mode to Anki Desktop, with settings, prediction inspection, and optional optimization.

schedulingfsrsbeta

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 Anki 26.05~ Updated 2026-08-02
Memory Mosaic πŸŸ₯🟨🟩🟦

Displays all cards as an interactive colored grid showing learning states or property gradients, with sorting, tooltips, click-to-browse, due indicators, progressive loading, and automatic updates.

statistics

9 votes 70% approval πŸ‘ 9 Β· πŸ‘Ž 0 ⭐ 1 Anki 25.02.5~ Updated 2025-05-25

Description

⚑ Smart Card State

Automatically switch your card layout between New (Learn) and Review (Recall) modes based on the card's current learning state.

What It Does

  • New Cards β†’ Flashcard mode: show the definition and hints.
  • Review Cards β†’ Quiz mode: fill-in-the-blank, hide hints.
  • Learn / Relearn Cards β†’ Intermediate states for short-term learning steps.

The add-on wraps your card HTML inside a container with a state class, so you can style each state differently using plain CSS β€” no JavaScript required.

πŸš€ Quick 1-Step Setup

Paste this into your card template Styling (CSS) tab:

/* Hide fill-in box on NEW cards */
.state-new .fill-in-box { display: none; }

/* Hide hints on REVIEW cards */
.state-review .hint-box { display: none; }

Available States

  • .state-new β†’ First time learning a card
  • .state-learn β†’ Card currently in learning steps
  • .state-review β†’ Graduated card in review cycle
  • .state-relearn β†’ Card in relearning / lapse state

Data Attributes

In addition to the CSS classes, the wrapper exposes data attributes for advanced styling or scripting:

  • data-state β†’ Current state: new, learn, review, relearn
  • data-reps β†’ Number of times the card has been reviewed
  • data-card-id β†’ The card's unique ID

Requirements

  • Supported: Anki 2.1.20+ to 26.x+ (Light & Dark mode).
  • License: MIT License.