Smart Card State for Templates

AnkiWeb addon 383260719

Wraps card HTML in a state class container so CSS can switch layouts between new, learn, review, and relearn states.
AI-generated summary; may contain mistakes.

appearancecard-templates

Open on AnkiWeb Ask about alternatives

AnkiWeb

Rating
1 (πŸ‘ 1 Β· πŸ‘Ž 0)
Updated
2026-08-15
Anki versions
2.1.66~
Description language
en

Maintenance

active

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

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

Better Markdown Anki

Renders flashcards with advanced markdown, LaTeX math, syntax highlighting, theme-aware styling, tag badges, and interactive cloze toggles via React components.

formattingappearancecard-templatescloze

Rating 24 πŸ‘ 20 Β· πŸ‘Ž 4 ⭐ 31 Anki 2.1.66~ Updated 2026-08-02
Export to Html 2025

Exports Anki decks to standalone HTML files with custom templates, CSS, queries, embedded images, and live preview.

exportfork-or-reupload

Rating 3 πŸ‘ 2 Β· πŸ‘Ž 1 ⭐ 1 Anki 23.09~ Updated 2025-12-15

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.