PHPackages                             inixmedia/kern-ux-form-theme - 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. [Templating &amp; Views](/categories/templating)
4. /
5. inixmedia/kern-ux-form-theme

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

inixmedia/kern-ux-form-theme
============================

Symfony form theme for KERN UX, the design system for German public administration (https://www.kern-ux.de)

1.0.0(1mo ago)02MITPHPPHP &gt;=8.1CI passing

Since Jul 12Pushed 1mo agoCompare

[ Source](https://github.com/svenpet90/kern-ux-form-theme)[ Packagist](https://packagist.org/packages/inixmedia/kern-ux-form-theme)[ RSS](/packages/inixmedia-kern-ux-form-theme/feed)WikiDiscussions main Synced 1w ago

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

KERN UX Form Theme for Symfony
==============================

[](#kern-ux-form-theme-for-symfony)

A Symfony form theme that renders forms with the markup of [KERN UX](https://www.kern-ux.de/komponenten/), the open design system for German public administration — analogous to Symfony's built-in `bootstrap_5_layout.html.twig`.

The theme covers the KERN form components: text inputs, textareas, selects, radio/checkbox groups (as `kern-fieldset`), single checkboxes, buttons, hints, and error messages (inline `kern-error` per field, `kern-alert` on the root form). Following the KERN guidelines it marks *optional* fields instead of required ones and uses `aria-required` rather than the native `required`attribute.

> **Note:** This package ships markup only. Your application must include the KERN UX styles itself, e.g. via [`@kern-ux/native`](https://www.npmjs.com/package/@kern-ux/native).

Requirements
------------

[](#requirements)

- PHP 8.1+ (PHP 8.4+ for Symfony 8)
- Symfony 6.4, 7.x or 8.x (`symfony/form` + `symfony/twig-bridge`)

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

[](#installation)

```
composer require inixmedia/kern-ux-form-theme
```

If you don't use Symfony Flex, register the bundle manually:

```
// config/bundles.php
return [
    // ...
    Inixmedia\KernUxFormTheme\KernUxFormThemeBundle::class => ['all' => true],
];
```

Usage
-----

[](#usage)

Enable the theme globally:

```
# config/packages/twig.yaml
twig:
    form_themes:
        - '@KernUxFormTheme/kern_layout.html.twig'
```

Or per template:

```
{% form_theme form '@KernUxFormTheme/kern_layout.html.twig' %}

{{ form(form) }}
```

Rendered markup
---------------

[](#rendered-markup)

A simple text field row renders as:

```

    Vorname
    Wie im Ausweis angegeben

```

Expanded choices become a KERN fieldset:

```

    Anrede

            Frau

        ...

```

Development
-----------

[](#development)

```
composer install

# Run the test suite (renders real forms through the theme)
composer test

# Lint the Twig templates
composer lint
```

License
-------

[](#license)

Released under the [MIT License](LICENSE).

KERN UX itself is developed by the German federal and state governments; see [kern-ux.de](https://www.kern-ux.de/) for the design system's own licensing.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance90

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

50d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/97380444?v=4)[Sven Petersen](/maintainers/svenpet90)[@svenpet90](https://github.com/svenpet90)

---

Tags

symfonytwigformaccessibilitygovernmentform-themedesign-systemkern-uxkern

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/inixmedia-kern-ux-form-theme/health.svg)

```
[![Health](https://phpackages.com/badges/inixmedia-kern-ux-form-theme/health.svg)](https://phpackages.com/packages/inixmedia-kern-ux-form-theme)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.7M442](/packages/easycorp-easyadmin-bundle)[mati365/ckeditor5-symfony

CKEditor 5 integration for Symfony

273.7k](/packages/mati365-ckeditor5-symfony)

PHPackages © 2026

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