# Rounded Borders for images, oneboxes, blockquotes & more

**URL:** https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044
**Category:** Theme component
**Created:** [July 6, 2022, 3:23am UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044 "2022-07-06T03:23:34Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [July 6, 2022, 3:23am UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/1 "2022-07-06T03:23:34Z")

</div>

Created a very simple component to change the borders of images, oneboxes, blockquotes and staff notices shown in topics.

Allows change of the following settings

- set image rounding intensity
- set image border width
- set image border color
- set onebox rounding intensity
- change onebox border width
- change onebox border color
- change onebox background color
- set rounding blockquotes intensity
- remove left border from blockquotes
- set ‘staff color’ rounding intensity
- [topic thumbnail](https://meta.discourse.org/t/topic-list-thumbnails-theme-component/150602) support for:
  - list rounded corners
  - grid rounded corners
  - placeholder bg
  - placeholder icon color
  - grid topic title bg

### Light mode with 10px rounding and no border

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/d/f/3df0084e32a6ccd0a374785bf412c1dfa0f87a89.jpeg)

### Dark mode with 10px rounding and 2px border

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/2/4/22450db3a404e0cfc16784eca5a5c0d5ded38127.jpeg)

### Including onebox support

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/3/f/83fb44f5a4f15dfadcd48a71421ada20bb4e1f28.png)

### Blockquote rounding (15px)

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/f/1/2f18a057c3cf8898304166cd1d7394bfe687734c.png)

Or remove left border from blockquotes:

 ![image](https://global.discourse-cdn.com/meta/original/4X/1/7/e/17e201946b8d2dd7f09a1fbfe8f22f017bbc7938.png)

### Rounded staff color

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/8/1/781f8440106bba6c20f8567ef1bb683af5a46b30.png)

### Support for [Topic Thumbnails](https://meta.discourse.org/t/topic-list-thumbnails-theme-component/150602)

List view

 ![image](https://global.discourse-cdn.com/meta/original/4X/9/7/4/974a333aa051160abe308c943cf6a3843fb8cf52.png)

Grid view

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/5/7/55783fe914495ecabe91f05ec9a368739a0a5d34.jpeg)

| | | |
| --- | --- | --- |
| 🕶 | **Preview** | Screenshots above / [Live Preview](https://discourse.theme-creator.io/theme/MarcP/rounded-borders) |
| 🔗 | **Github Repo** | [Rounded Image Borders](https://github.com/MarcRez33/discourse-round-image-borders) |
| 🛠 | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [July 6, 2022, 3:01pm UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/2 "2022-07-06T15:01:36Z")

</div>

Thank you this is quite nice.

---

<div class="post-metadata">

### Author: ![WorldIsMine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/worldismine/32/455660_2.png) [@WorldIsMine](https://meta.discourse.org/u/WorldIsMine)
#### Post date: [February 21, 2023, 7:35am UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/3 "2023-02-21T07:35:26Z")

</div>

Thank you! Been using it for a while now.

---

<div class="post-metadata">

### Author: ![nafets-lesierk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nafets-lesierk/32/334948_2.png) [@nafets-lesierk](https://meta.discourse.org/u/nafets-lesierk)
#### Post date: [October 25, 2023, 1:42pm UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/4 "2023-10-25T13:42:36Z")

</div>

Really nice. One update wish. Would be cool if we could add padding between the border and the paste. Cheers!

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [October 26, 2023, 4:39am UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/5 "2023-10-26T04:39:50Z")

</div>

Please enlighten your suggestion with a screenshot, I don’t fully understand it.

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [April 30, 2024, 11:43am UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/6 "2024-04-30T11:43:27Z")

</div>

I have pushed a few improvements:

- You can adjust avatar rounding now (default, circle = 50%)
- Some improvements for buttons. If button rounding is enabled category dots get fixed minimal rounding + modals are included now.

---

<div class="post-metadata">

### Author: ![robbie.morrison](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robbie.morrison](https://meta.discourse.org/u/robbie.morrison)
#### Post date: [April 29, 2025, 5:39pm UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/7 "2025-04-29T17:39:36Z")

</div>

I installed the **Rounded Borders** to my Default theme and left the provided defaults. But I don’t understand how this applies.

Does this work on a per‑uploaded‑image basis, site‑wide going forward, or site‑wide for everything?

Do I just need to upload and JPG and let it do its thing? Do I get some choices at that juncture? I am on a production site so I don’t like to experiment too much. Puzzled. TIA.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [April 29, 2025, 11:32pm UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/8 "2025-04-29T23:32:53Z")

</div>

I can’t say for sure. But I believe it would be once installed moving forward. A test Upload new image and see if it has applied border. If not try the wrench on a specific post not topic and choose rebuild hmtl.

If it is not applied in either case you may need to check TC settings. Also ensure you have added it to themes in use. Refresh page to ensure settings are in effect as you maybe viewing cached pages.

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [April 29, 2025, 11:37pm UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/9 "2025-04-29T23:37:26Z")

</div>

They are CSS customizations, so they apply site-wide.

It’s mostly a personal component I decided to make public, so you may have to experiment with various settings to see how it works. Some settings have a toggle that has to be enabled before the settings are applied.

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/b/3/2b37465b7eb7a07fb96946ea790b7d9a45b7d878.png)

This is all you need for images (default is off btw). Anything below allows rounding for other elements as you wish.

---

<div class="post-metadata">

### Author: ![robbie.morrison](https://avatars.discourse-cdn.com/v4/letter/r/c5a1d2/32.png) [@robbie.morrison](https://meta.discourse.org/u/robbie.morrison)
#### Post date: [April 30, 2025, 7:21am UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/10 "2025-04-30T07:21:51Z")

</div>

Can I suggest a small tweak to the interface (in red):

 ![The image shows a user interface for adding "Rounded Borders" as a component to theme settings in a platform, where each theme setting is off by default and must be enabled by clicking a specific button. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/4/8/5483280f42b0cab31cc67f37fcb22b1d0cfbfd74.png)

---

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [April 30, 2025, 7:23am UTC](https://meta.discourse.org/t/rounded-borders-for-images-oneboxes-blockquotes-more/232044/11 "2025-04-30T07:23:46Z")

</div>

Pretty sure that’s in core translations.
