# Applying a custom theme (style)

**URL:** https://community.silverbullet.md/t/applying-a-custom-theme-style/945
**Category:** Guides
**Created:** [September 4, 2024, 5:16pm UTC](https://community.silverbullet.md/t/applying-a-custom-theme-style/945 "2024-09-04T17:16:09Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![overbuilt](https://community.silverbullet.md/letter_avatar_proxy/v4/letter/o/bb73d2/32.png) [@overbuilt](https://community.silverbullet.md/u/overbuilt)
#### Post date: [September 25, 2024, 12:31am UTC](https://community.silverbullet.md/t/applying-a-custom-theme-style/945/2 "2024-09-25T00:31:42Z")

</div>

What would be a good way to switch between themes?  
To disable style script I change `space-style` to `css space-style`.  
If themes are built with css scoping (prefixing styles with top level class), then I think, in main `SETTINGS`, we could use page decorators.

- to apply theme to all pages

```auto
pageDecoration:
  cssClasses:
  - custom-theme

```

- to apply to some pages

```auto
objectDecorators:
- where: 'name =~ /^Inbox\//'
  attributes:
     pageDecoration.cssClasses: "custom-theme"

```

---

_[View the full topic](https://community.silverbullet.md/t/applying-a-custom-theme-style/945)._
