# Community Styling Guide: Custom Wraps & Elements

**URL:** <https://community.sketch-your-mind.com/t/community-styling-guide-custom-wraps-elements/26>\
**Category:** FAQ\
**Tags:** community-faq\
**Created:** [March 29, 2026, 4:17pm UTC](https://community.sketch-your-mind.com/t/community-styling-guide-custom-wraps-elements/26 "2026-03-29T16:17:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zsolt](https://community.sketch-your-mind.com/user_avatar/community.sketch-your-mind.com/zsolt/32/7_2.png) [@Zsolt](https://community.sketch-your-mind.com/u/Zsolt)\
**Post date:** [March 29, 2026, 4:17pm UTC](https://community.sketch-your-mind.com/t/community-styling-guide-custom-wraps-elements/26/1 "2026-03-29T16:17:13Z")

</div>

To help make our posts more visual and organized, we’ve added several custom Markdown Wraps. These allow you to center content, create buttons, and handle dark/light mode images easily.

* * *

## 1. Centering Content

Use the `center` wrap to align images, text, or headers to the middle of the post.

```auto
[wrap=center]
Your content here (images, text, etc.)
[/wrap]

```

This is centered

## 2. Interactive Buttons

You can turn any text or link into a styled button. To make the whole button clickable, wrap the `[wrap]` inside the Markdown link brackets.

```auto
[[wrap=button]Click Me[/wrap]](https://your-link.com)

```

Dummy Button

Placing Buttons Side-by-Side:  
To place two buttons next to each other on the same line, simply place the Markdown links one after another:

```auto
[[wrap=button]Button 1[/wrap]](https://link1.com) [[wrap=button]Button 2[/wrap]](https://link2.com)

```

Button 1 Button 2

## 3. Light & Dark Mode Images

If you have a diagram or icon that needs to change based on the user’s theme, use these specific wrappers:

```auto
[wrap=light-version]
!(upload://...)
[/wrap]

[wrap=dark-version]
!(upload://...)
[/wrap]

```

 ![document light](https://community.sketch-your-mind.com/uploads/default/original/1X/d353829a20f1b33df3a6aa6b2a774277c8807ea6.png)

 ![document dark](https://community.sketch-your-mind.com/uploads/default/original/1X/ab5b8a363f7f3cb4fc1151213ab4bae8f9eae586.png)

_The system will automatically hide the version that doesn’t match the user’s current theme._

## 4. Compact “Tight” Text

Discourse adds a significant gap between paragraphs by default. To group lines closer together and automatically hide accidental empty lines, use `tight-text`. This is especially useful when adding legend text to images:

```auto
[wrap=tight-text]
[wrap=light-version]
![document light|100x100](upload://u9tFhYuHvo1R9ZMjfuc6liAgTt4.png)
[/wrap]
[wrap=dark-version]
![document dark|100x100](upload://orTLMN0JClUfBLVfwRNKoYTkbcy.png)
[/wrap]
Fig1.: Image legend
[/wrap]

```

 ![document light](https://community.sketch-your-mind.com/uploads/default/original/1X/d353829a20f1b33df3a6aa6b2a774277c8807ea6.png)

 ![document dark](https://community.sketch-your-mind.com/uploads/default/original/1X/ab5b8a363f7f3cb4fc1151213ab4bae8f9eae586.png)

Fig1.: Image legend

**NOT:**

 ![document light](https://community.sketch-your-mind.com/uploads/default/original/1X/d353829a20f1b33df3a6aa6b2a774277c8807ea6.png)

 ![document dark](https://community.sketch-your-mind.com/uploads/default/original/1X/ab5b8a363f7f3cb4fc1151213ab4bae8f9eae586.png)

Fig1.: Image legend

## 5. Using System Icons

You can insert SVG icons from the FontAwesome library directly into your text.

Basic Usage:

```auto
[wrap=icon id=download][/wrap]
[wrap=icon id=amazon][/wrap] Buy on Amazon

```

Excample:

Finding Icons:  
Browse thousands of available icons at [FontAwesome.com](http://FontAwesome.com). Use the Free filter; if an icon doesn’t appear, contact an admin to add it to the site’s allowed subset.

* * *

## 6. Important: Rules for Nesting Wraps

The Discourse parser is sensitive to how wraps are nested. Putting nested wraps on the same line usually causes a rendering error.

❌ This will NOT work:

```auto
[[wrap=button][wrap=icon id=download][/wrap]Download Sample[/wrap]](https://example.com)

```

_(The icon wrap will break the button styling.)_

✅ This WILL work:  
Nesting only works reliably if the start and end of each wrap are on their own new lines. You can use this method to center buttons or group them within tight text:

```auto
[wrap=center]
[[wrap=button]Download Now[/wrap]](https://link.com)
[/wrap]

```

* * *

## Summary Cheat Sheet

| Feature | Wrap Syntax | Result |
| --- | --- | --- |
| Center | `[wrap=center]...[/wrap]` | Aligns content to middle |
| Buttons | `[[wrap=button]Text[/wrap]](URL)` | Creates a styled, clickable button |
| Dark/Light | `[wrap=dark-version]...[/wrap]` | Shows only when Dark Mode is active |
| Tight Text | `...[/wrap]` | Removes gaps between paragraphs |
| Icons | `[wrap=icon id=name][/wrap]` | Inserts an SVG icon (e.g. `download`) |
