Anki add-on: CSS Injector - Change default editor styles

Allows you to override the default styling of lists, links, etc. within Anki's fields, as well as the overall look of the editor. How to use it: navigate to the add-on folder (Tools → Add-ons → CSS Injector - Change default editor styles → click "View Files") edit the CSS files located in the folder user_files . editor.css is for general editor styles outside of fields field.css affects content within fields restart the editor Selectable attributes: Here's what the add-on adds to the whole document : And here's what's selectable on anki-editable : Night mode specific styling is also supported: Use class .nightMode or .night_mode . Changelog 21.02.23 patch for Anki versions 2.1.55-2.1.58+ 26.05.22 hotfix for older systems that don't support optional chaining operator yet 25.05.22 support legacy versions (<2.1.49) add new selectable attributes: editor : "svelte" (2.1.50+) or "legacy" (below 2.1.49) pointversion : exact patch version of Anki install use reliable method of obtaining <anki-editable> (thanks to Hikaru!) this should also fix the HTML root node not receiving attributes fix change notetype behavior (again) greatly reduce complexity of add-on 22.05.22 fix broken browser behavior fix styles not applying when switching to notetype with more fields fix notetype specific styles not applying to first note in add mode 19.04.22 add notetype name, field name, field index (ord) as selectable attributes to body and shadow roots (anki-editable) 03.04.22 restructure and publish source code yet another fix for 2.1.50 API changes 19.01.22 Hotfix for 2.1.50 05.10.21 allow specific styling for night mode and individual note types move CSS folder to user_files to preserve them on updates 11.05.21 publication Made by Matthias Metelka | @kleinerpirat Thanks to Hikaru Y. for his amazing contribution to this add-on, and to ijgnd , Thomas Kahn and shallash , for their great suggestions and continued testing! - inspired by Henrik Giesel: https://forums.ankiweb.net/t/access-to-dom-element-in-editorfield/8782/8

GitHub repository: kleinerpirat/anki-css-injector
Repository description: Allows you to style field content in Anki's editor.
Languages: TypeScript, JavaScript, Shell, Python, CSS