PHPackages                             medienbaecker/kirby-svg-preview - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. medienbaecker/kirby-svg-preview

ActiveKirby-plugin[Utility &amp; Helpers](/categories/utility)

medienbaecker/kirby-svg-preview
===============================

Inline SVG previews and thumbnails in the Kirby Panel

1.0.1(3w ago)53↓100%MITJavaScript

Since May 13Pushed 3w ago1 watchersCompare

[ Source](https://github.com/medienbaecker/kirby-svg-preview)[ Packagist](https://packagist.org/packages/medienbaecker/kirby-svg-preview)[ RSS](/packages/medienbaecker-kirby-svg-preview/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (3)Used By (0)

Kirby SVG Preview
=================

[](#kirby-svg-preview)

Renders SVG files inline in the Kirby Panel so `currentColor` paths follow the panel text colour instead of disappearing into the dark frame. Adds `viewBox` and `currentColor` rows to the file detail metadata, and exposes CSS variables for colour and padding.

Without this plugin, SVGs render via ``, which doesn't propagate `color` into the SVG document, making `currentColor` paths fall back to the SVG's own default (black) and become invisible against the Panel's chequered frame (almost black).

Installation
------------

[](#installation)

### Composer

[](#composer)

```
composer require medienbaecker/kirby-svg-preview
```

### Manual

[](#manual)

Download and copy this repository to `/site/plugins/kirby-svg-preview`.

What it does
------------

[](#what-it-does)

### File view

[](#file-view)

The file detail view inlines the SVG and adds two SVG-specific rows to the metadata: the `viewBox` and whether the file uses `currentColor`.

[![File detail view with SVG-specific metadata rows](.github/file-view.png)](.github/file-view.png)

### Files sections/fields

[](#files-sectionsfields)

Thumbnails in `files` sections and fields render inline, so `currentColor` paths follow the surrounding text colour instead of disappearing into the dark frame.

[![Inline SVG thumbnails in a files section](.github/section.png)](.github/section.png)

### Structure/object field

[](#structureobject-field)

Structure and object fields use the same underlying image components.

[![Inline SVG previews in a structure field table](.github/structure.png)](.github/structure.png)

### Upload dialog

[](#upload-dialog)

The same inline rendering applies during upload, so you see the final colour before the file is saved.

[![Inline SVG preview while uploading a file](.github/upload-dialog.png)](.github/upload-dialog.png)

### Customisation

[](#customisation)

Two CSS variables let you tune the previews:

```
:root {
  --k-svg-preview-padding: 20%; /* default */
  --k-svg-preview-color: var(--color-white); /* default */
}
```

Override them in your panel CSS (set via the [`panel.css`](https://getkirby.com/docs/reference/system/options/panel#custom-panel-css) config option) globally or scope them under any selector — e.g. `.k-svg-file-preview { --k-svg-preview-padding: 5%; }` to give the detail view less padding than the small thumbnails. SVGs with hardcoded fills keep their own colours; only `currentColor` paths respond to `--k-svg-preview-color`.

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance94

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

27d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7975568?v=4)[Thomas Günther](/maintainers/medienbaecker)[@medienbaecker](https://github.com/medienbaecker)

---

Top Contributors

[![medienbaecker](https://avatars.githubusercontent.com/u/7975568?v=4)](https://github.com/medienbaecker "medienbaecker (2 commits)")

### Embed Badge

![Health badge](/badges/medienbaecker-kirby-svg-preview/health.svg)

```
[![Health](https://phpackages.com/badges/medienbaecker-kirby-svg-preview/health.svg)](https://phpackages.com/packages/medienbaecker-kirby-svg-preview)
```

###  Alternatives

[distantnative/retour-for-kirby

Manage redirects and track 404s right from the Kirby CMS Panel

14695.1k1](/packages/distantnative-retour-for-kirby)[belugadigital/kirby-navigation

Kirby 5 field for hierarchical menus with drag &amp; drop level indentation.

8613.8k](/packages/belugadigital-kirby-navigation)[medienbaecker/kirby-modules

Easily add modules to your pages

885.4k1](/packages/medienbaecker-kirby-modules)[arnoson/kirby-vite

Vite helper for Kirby CMS

9763.1k3](/packages/arnoson-kirby-vite)[medienbaecker/kirby-alter

241.6k](/packages/medienbaecker-kirby-alter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
