# Use Anki CSS in addon

**URL:** <https://forums.ankiweb.net/t/use-anki-css-in-addon/67271>\
**Category:** Development\
**Created:** [October 31, 2025, 10:02am UTC](https://forums.ankiweb.net/t/use-anki-css-in-addon/67271 "2025-10-31T10:02:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kfeine](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@kfeine](https://forums.ankiweb.net/u/kfeine)\
**Post date:** [October 31, 2025, 10:02am UTC](https://forums.ankiweb.net/t/use-anki-css-in-addon/67271/1 "2025-10-31T10:02:31Z")

</div>

Hello,

I’m developping an addon, which show a page using AnkiWebView and view.setHtml. I managed to load webview.css, but I would like to load other parts of Anki CSS. For example, in the deck stats page, I see that \_app/immutable/assets/0.CpI1RXib.css and HelpModal.6AtxmQWv.css are useful to show modals. How can I load them in my page?

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![kfeine](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@kfeine](https://forums.ankiweb.net/u/kfeine)\
**Post date:** [October 31, 2025, 10:04am UTC](https://forums.ankiweb.net/t/use-anki-css-in-addon/67271/2 "2025-10-31T10:04:03Z")

</div>

Here is my source code: `https://framagit.org/kfeine/anki-suivi-vocabulaire-langues-bibliques`

---

<div class="post-metadata">

**Author:** ![abdo](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/abdo/32/654_2.png) [@abdo](https://forums.ankiweb.net/u/abdo)\
**Post date:** [October 31, 2025, 3:13pm UTC](https://forums.ankiweb.net/t/use-anki-css-in-addon/67271/3 "2025-10-31T15:13:02Z")

</div>

There’s no reliable way to load these CSS files. I recommend copying them from Anki’s source code to your add-on’s source instead as needed:

> <https://github.com/ankitects/anki/blob/dac26ce67147b261d79a56092320cc2f5af0d990/ts/lib/components/HelpModal.svelte#L176>

---

<div class="post-metadata">

**Author:** ![kfeine](https://avatars.discourse-cdn.com/v4/letter/k/ba8739/32.png) [@kfeine](https://forums.ankiweb.net/u/kfeine)\
**Post date:** [October 31, 2025, 5:35pm UTC](https://forums.ankiweb.net/t/use-anki-css-in-addon/67271/4 "2025-10-31T17:35:04Z")

</div>

Thanks for your quick response! I hoped there was a way not to duplicate the code. At least it’s quite simple this way.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [November 30, 2025, 5:35pm UTC](https://forums.ankiweb.net/t/use-anki-css-in-addon/67271/5 "2025-11-30T17:35:22Z")

</div>

Closed on November 30, 2025, 5:35pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
