# Modifying icon size in panel

**URL:** <https://forum.getkirby.com/t/modifying-icon-size-in-panel/34558>\
**Category:** Questions\
**Tags:** v4\
**Created:** [August 6, 2025, 2:30am UTC](https://forum.getkirby.com/t/modifying-icon-size-in-panel/34558 "2025-08-06T02:30:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iriseel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/iriseel/32/15575_2.png) [@iriseel](https://forum.getkirby.com/u/iriseel)\
**Post date:** [August 6, 2025, 2:30am UTC](https://forum.getkirby.com/t/modifying-icon-size-in-panel/34558/1 "2025-08-06T02:30:03Z")

</div>

I’m trying to make the icon sizes in my panel display larger:

 ![Screenshot 2025-08-05 at 10.17.32 PM](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/3X/6/d/6de488c2678b590a2787785a7bb9d858e05a560b.png)

I’ve been following the advice given to similar problems in the past, but so far the solutions haven’t worked for me. I’ve created an assets/css/custom-panel.css with this code:

```auto
.k-items[data-layout="cards"] .k-item-image .k-icon {
	--icon-size: 64px;
}

.k-items[data-layout="cardlets"] .k-item-image .k-icon {
	--icon-size: 48px;
}

```

which I direct to in config/config.php:

```auto
<?php 
return [
    'panel' => [
        'css' => 'assets/css/custom-panel.css'
    ]
];

```

And this is my site.yml, which sets the icons:

```auto
title: Site

options:
  title: false

sections:
  Pages:
    type: pages
    status: listed
    layout: cardlets
    create: false
    image:
      query: page.icon
      icon: "{{ page.icon.or('📝') }}"
      back: blue-700
      color: white
  unlisted:
    label: Unlisted pages
    type: pages
    status: unlisted

```

But my icons always stay the same size.

---

<div class="post-metadata">

**Author:** ![GB\_DESIGN](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/gb_design/32/14956_2.png) [@GB\_DESIGN](https://forum.getkirby.com/u/GB_DESIGN)\
**Post date:** [August 6, 2025, 8:11am UTC](https://forum.getkirby.com/t/modifying-icon-size-in-panel/34558/2 "2025-08-06T08:11:39Z")

</div>

`.k-icon` requires an SVG icon, which is not the case with an emoji.  
The emoji is contained in a `span`  
Therefore, you must choose a different CSS rule for this:

```css
.k-items[data-layout=“cards”] .k-item-image span {
   font-size: 64px;
}

```

```css
.k-items[data-layout=“cardlets”] .k-item-image span {
   font-size: 48px;
}

```

---

<div class="post-metadata">

**Author:** ![iriseel](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/iriseel/32/15575_2.png) [@iriseel](https://forum.getkirby.com/u/iriseel)\
**Post date:** [August 7, 2025, 4:10am UTC](https://forum.getkirby.com/t/modifying-icon-size-in-panel/34558/3 "2025-08-07T04:10:02Z")

</div>

Thanks for your reply! Although amending it to target span didn’t fix the problem for me, your suggestion prompted me to take a look at the elements in the inspector, and I found that modifying the code to this achieved the desired effect!

```auto
.k-items[data-layout="cardlets"] .k-icon-frame [data-type=emoji] {
	font-size: 64px;
}

.k-items[data-layout="list"] .k-icon-frame [data-type=emoji] {
	font-size: 24px;
}

```
