# Allow @import within Obsidian.css

**URL:** <https://forum.obsidian.md/t/allow-import-within-obsidian-css/810>\
**Category:** Feature requests\
**Tags:** custom-css\
**Created:** [May 30, 2020, 4:55am UTC](https://forum.obsidian.md/t/allow-import-within-obsidian-css/810 "2020-05-30T04:55:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fitza](https://forum.obsidian.md/user_avatar/forum.obsidian.md/fitza/32/596_2.png) [@fitza](https://forum.obsidian.md/u/fitza)\
**Post date:** [May 30, 2020, 4:55am UTC](https://forum.obsidian.md/t/allow-import-within-obsidian-css/810/1 "2020-05-30T04:55:43Z")

</div>

I’m already using (and testing) different community themes. However, there is a set of custom CSS that I want to always have no matter the theme. Instead of having to paste the whole block of code each time into the obsidian.css, I would like to paste the `@import 'custom.css'` line to the top of the obsidian.css file.

---

<div class="post-metadata">

**Author:** ![benperkins](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/97f17d/32.png) [@benperkins](https://forum.obsidian.md/u/benperkins)\
**Post date:** [June 17, 2020, 3:01pm UTC](https://forum.obsidian.md/t/allow-import-within-obsidian-css/810/2 "2020-06-17T15:01:03Z")

</div>

I’ll second this. If using the `@import` statement is a no-go for some reason, Obsidian could instead merge CSS from a static user CSS file.

---

<div class="post-metadata">

**Author:** ![robertandrews](https://forum.obsidian.md/user_avatar/forum.obsidian.md/robertandrews/32/27353_2.png) [@robertandrews](https://forum.obsidian.md/u/robertandrews)\
**Post date:** [November 24, 2022, 2:18pm UTC](https://forum.obsidian.md/t/allow-import-within-obsidian-css/810/3 "2022-11-24T14:18:53Z")

</div>

+1 for this. Weird.

---

<div class="post-metadata">

**Author:** ![JeffHester](https://forum.obsidian.md/user_avatar/forum.obsidian.md/jeffhester/32/24518_2.png) [@JeffHester](https://forum.obsidian.md/u/JeffHester)\
**Post date:** [December 9, 2022, 4:18am UTC](https://forum.obsidian.md/t/allow-import-within-obsidian-css/810/4 "2022-12-09T04:18:43Z")

</div>

Not just weird. It’s a major headache. In my case, for example, it would sure be nice to put 1.1 MB of Base64 Encoded fonts somewhere other than my main theme CSS.

I’m guessing this has to do with portability. Before V1.0 themes were contained in a single CSS file that was intended to be shared among users. But now a theme comes in a directory that holds both `theme.css` and `manifest.json`. A change like that seems a nod in the direction of allowing a broader concept of theme. It certainly means that a theme should allow for multiple CSS files and use of `@import`.
