Design system breakdown
Maggioli Group — A public-administration workbench built as web components, with the agent guides inside the npm package.

Fit guidance has no recorded field-level check date. No readiness audit recorded.
Magma started in February 2020 in the R&D department of Maggioli Group, an Italian company whose software is used in municipal offices, local police and technical offices, according to its maintainers. Magma 2 reached stable on 30 September 2026 with 116 web components, DTCG tokens and a codemod that moves Magma 1 projects over. The public GitHub repository was created on 3 June 2026, and Magma 1 stays on a support branch.
Maggioli's own design system team maintains it, in the open on GitHub. Work is trunk-based on main with Conventional Commits, and every pull request is labelled by risk. The public API of every component is committed as a text snapshot, magma.api.txt, and a semver check compares each change with it, so a breaking change has to be declared. Releases go out per package on stable and beta channels, and the React and Angular wrappers release together with the core.
The identity-bearing decisions, rendered. Names and values are illustrative — refer to the system’s official tokens reference for the canonical, current set.
--magma-accent-emphasis
Primary action, links and focus. A solved step of the Maggioli blue #00379e
--magma-surface-default
Page surface
--magma-text-default
Default text
--magma-danger-emphasis
Destructive actions and errors
--magma-radius-md
Medium corner, squircle by default
--ease-out-expo
The easing the components use most
The full picture — palette, type ramp, spacing grid, radius, elevation and motion, restated in our own structure from Magma’s public references. Factual values for study; the official docs remain canonical.
Editable editorial reference. 50/112 fields have an explicit source and 50 have a recorded check date. Context sources are not proof of every value; verify current values with the maintainer before implementation.
Inspect every field and its evidence (JSON)Canvas
Default page background (dark mode: #1d1d1d)
--magma-surface-default
Surface Raised
Cards and raised panels, lighter than the canvas (dark mode: #303030)
--magma-surface-raised
Text Default
Primary text (dark mode: #fcfcfc)
--magma-text-default
Text Muted
Secondary text (dark mode: #e4e4e4)
--magma-text-muted
Accent / Maggioli Blue
Primary actions, links and focus; contrast-solved step of the Maggioli brand blue #00379e (dark mode: #becade)
--magma-accent-emphasis
Success
Success states (dark mode: #8fd9aa)
--magma-success-emphasis
Danger
Errors and destructive actions (dark mode: #fdb8b2)
--magma-danger-emphasis
Warning
Warnings and pending states (dark mode: #febe00)
--magma-warning-emphasis
Border Default
Functional outlines of fields and controls (dark mode: #6f6f6f)
--magma-border-default
Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
Weights: 500, 700, 900
Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif
Weights: 400, 700
Merriweather, Times, 'Times New Roman', serif
Weights: 300, 400, 700
'Roboto Mono', 'Courier New', monospace
Weights: 400
Base unit 4px (Tailwind --spacing is 0.0025rem, so utility steps read in hundredths: p-400 = 1rem)
Shadow Xs
Shadow Md Sharp (Cards)
Shadow 2xl (Modals)
Exactly what ships in magma-design.md — plus the same token snapshot restated as CSS custom properties. Copy either, or feed the Markdown straight to an AI coding tool as styling context.
Restated from magma-design-system.github.io and magma-design-system/magma, links last checked 2026-10-23. The file lists its sources and method in a provenance block at the top.
# Magma — Design Style Reference
```yaml
# How this file was made. Sources are first-party; nothing here is
# read from a rendered page. Full breakdown at source_page below.
method: restated-from-official-tokens-package
confidence: high
verified_at: 2026-10-23
source_page: https://www.designsystems.one/design-systems/magma
sources:
- https://magma-design-system.github.io/docs/
- https://magma-design-system.github.io/docs/tokens/
- https://magma-design-system.github.io/docs/foundation/color/
- https://unpkg.com/@maggioli-design-system/design-tokens@15.2.2/dist/dtcg/base.tokens.json
- https://unpkg.com/@maggioli-design-system/styles@17.3.0/dist/dtcg/globals.tokens.json
- https://github.com/magma-design-system/magma
```
> **Unofficial, community-authored reference.** Compiled by [designsystems.one](https://www.designsystems.one). Not affiliated with, endorsed by, or sponsored by Maggioli Group. "Magma" and related marks belong to their respective owners. This document describes publicly observable style attributes in original words — it contains no copied documentation, logos, icon artwork, or original token files. Always defer to the official source for canonical, current values.
**System:** Magma
**Owner:** Maggioli Group
**Official documentation:** https://magma-design-system.github.io/docs/
**Visual character:** Public-service workbench: contrast-solved neutral grays, one Maggioli blue, heavy Roboto headings over plain Karla text, and squircle corners that soften dense, form-heavy screens.
---
## Summary
A public-administration workbench built as web components, with the agent guides inside the npm package.
_Editorial confidence: high. Values are drawn from well-documented public token references. Provided by the Magma maintainers. Values read on 2026-10-22 from the DTCG exports published in @maggioli-design-system/design-tokens@15.2.2 and @maggioli-design-system/styles@17.3.0. Colors describe the default theme in light mode, with the dark-mode value in each role. rem sizes are relative to the document root. Radius values are the default squircle corner shape; the round-shape value is in the name. Elevation shadows scale with the --depth theme axis (0 in the flat depth). Field-level evidence: 50/112 claims source-linked, 50/112 dated. Confidence is not verification; validate canonical values before implementation._
[Inspect every field and its evidence](https://www.designsystems.one/api/style-spec?system=magma)
## Color tokens
| Color | Value | CSS variable | Role |
| --- | --- | --- | --- |
| Canvas | `#f2f2f2` | `--magma-surface-default` | Default page background (dark mode: #1d1d1d) |
| Surface Raised | `#f8f8f8` | `--magma-surface-raised` | Cards and raised panels, lighter than the canvas (dark mode: #303030) |
| Text Default | `#050505` | `--magma-text-default` | Primary text (dark mode: #fcfcfc) |
| Text Muted | `#494949` | `--magma-text-muted` | Secondary text (dark mode: #e4e4e4) |
| Accent / Maggioli Blue | `#2467e7` | `--magma-accent-emphasis` | Primary actions, links and focus; contrast-solved step of the Maggioli brand blue #00379e (dark mode: #becade) |
| Success | `#008039` | `--magma-success-emphasis` | Success states (dark mode: #8fd9aa) |
| Danger | `#c44041` | `--magma-danger-emphasis` | Errors and destructive actions (dark mode: #fdb8b2) |
| Warning | `#8e6a00` | `--magma-warning-emphasis` | Warnings and pending states (dark mode: #febe00) |
| Border Default | `#c4c4c4` | `--magma-border-default` | Functional outlines of fields and controls (dark mode: #6f6f6f) |
## Typography
- **Display:** Roboto — weights 500, 700, 900 — `Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif`
- **Body:** Karla — weights 400, 700 — `Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif`
- **Reading:** Merriweather — weights 300, 400, 700 — `Merriweather, Times, 'Times New Roman', serif`
- **Mono:** Roboto Mono — weights 400 — `'Roboto Mono', 'Courier New', monospace`
## Type scale
| Step | Size | Line height |
| --- | --- | --- |
| title-h1 | `3rem` | `1` |
| title-h2 | `2.25rem` | `1.111111` |
| title-h3 | `1.875rem` | `1.2` |
| title-h4 | `1.5rem` | `1.333333` |
| info-paragraph | `1.25rem` | `1.6` |
| info-detail | `1rem` | `1.5` |
| info-caption | `0.875rem` | `1.428571` |
| info-label | `0.75rem` | `1.333333` |
## Spacing
Base unit: `4px (Tailwind --spacing is 0.0025rem, so utility steps read in hundredths: p-400 = 1rem)`
Scale: `4px` · `8px` · `16px` · `24px` · `32px` · `48px` · `64px` · `96px`
## Corner radius
| Name | Value |
| --- | --- |
| none | `0px` |
| 3xs (round shape: 4px) | `6px` |
| xs (round shape: 8px) | `14px` |
| md (round shape: 12px) | `20px` |
| xl (round shape: 20px) | `36px` |
| full | `1000px` |
## Elevation / shadows
| Name | Value |
| --- | --- |
| shadow-xs | `0 1px 2px 0 rgb(0 0 0 / 0.05)` |
| shadow-md-sharp (cards) | `0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06)` |
| shadow-2xl (modals) | `0 25px 50px -12px rgb(0 0 0 / 0.25)` |
## Motion
| Name | Value |
| --- | --- |
| duration-200 | `200ms` |
| duration-300 | `300ms` |
| ease-out-expo | `cubic-bezier(0.19, 1, 0.22, 1)` |
| ease-out-sine | `cubic-bezier(0.39, 0.575, 0.565, 1)` |
## Quick start (CSS)
```css
/* Magma — illustrative tokens, restated as CSS custom properties.
Unofficial reference by designsystems.one; values are indicative, not
canonical. Native dp/sp values are omitted, never silently converted.
Official reference: https://magma-design-system.github.io/docs/
Reference scope: Provided by the Magma maintainers. Values read on 2026-10-22 from the DTCG exports published in @maggioli-design-system/design-tokens@15.2.2 and @maggioli-design-system/styles@17.3.0. Colors describe the default theme in light mode, with the dark-mode value in each role. rem sizes are relative to the document root. Radius values are the default squircle corner shape; the round-shape value is in the name. Elevation shadows scale with the --depth theme axis (0 in the flat depth).
Field evidence: https://www.designsystems.one/api/style-spec?system=magma */
:root {
/* Color */
--magma-surface-default: #f2f2f2; /* Default page background (dark mode: #1d1d1d) */
--magma-surface-raised: #f8f8f8; /* Cards and raised panels, lighter than the canvas (dark mode: #303030) */
--magma-text-default: #050505; /* Primary text (dark mode: #fcfcfc) */
--magma-text-muted: #494949; /* Secondary text (dark mode: #e4e4e4) */
--magma-accent-emphasis: #2467e7; /* Primary actions, links and focus; contrast-solved step of the Maggioli brand blue #00379e (dark mode: #becade) */
--magma-success-emphasis: #008039; /* Success states (dark mode: #8fd9aa) */
--magma-danger-emphasis: #c44041; /* Errors and destructive actions (dark mode: #fdb8b2) */
--magma-warning-emphasis: #8e6a00; /* Warnings and pending states (dark mode: #febe00) */
--magma-border-default: #c4c4c4; /* Functional outlines of fields and controls (dark mode: #6f6f6f) */
/* Typography */
--font-display: Roboto, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-body: Karla, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-reading: Merriweather, Times, 'Times New Roman', serif;
--font-mono: 'Roboto Mono', 'Courier New', monospace;
/* Type scale */
--text-title-h1: 3rem; /* line-height 1 */
--text-title-h2: 2.25rem; /* line-height 1.111111 */
--text-title-h3: 1.875rem; /* line-height 1.2 */
--text-title-h4: 1.5rem; /* line-height 1.333333 */
--text-info-paragraph: 1.25rem; /* line-height 1.6 */
--text-info-detail: 1rem; /* line-height 1.5 */
--text-info-caption: 0.875rem; /* line-height 1.428571 */
--text-info-label: 0.75rem; /* line-height 1.333333 */
/* Spacing */
--space-1: 4px;
--space-2: 8px;
--space-3: 16px;
--space-4: 24px;
--space-5: 32px;
--space-6: 48px;
--space-7: 64px;
--space-8: 96px;
/* Radius */
--radius-none: 0px;
--radius-3xs-round-shape-4px-: 6px;
--radius-xs-round-shape-8px-: 14px;
--radius-md-round-shape-12px-: 20px;
--radius-xl-round-shape-20px-: 36px;
--radius-full: 1000px;
/* Elevation */
--shadow-shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-shadow-md-sharp-cards-: 0 0 1px 1px rgb(0 0 0 / 0.06), 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
--shadow-shadow-2xl-modals-: 0 25px 50px -12px rgb(0 0 0 / 0.25);
/* Motion */
--motion-duration-200: 200ms;
--motion-duration-300: 300ms;
--motion-ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
--motion-ease-out-sine: cubic-bezier(0.39, 0.575, 0.565, 1);
}
```
## Origin
Magma started in February 2020 in the R&D department of Maggioli Group, an Italian company whose software is used in municipal offices, local police and technical offices, according to its maintainers. Magma 2 reached stable on 30 September 2026 with 116 web components, DTCG tokens and a codemod that moves Magma 1 projects over. The public GitHub repository was created on 3 June 2026, and Magma 1 stays on a support branch.
## Governance
Maggioli's own design system team maintains it, in the open on GitHub. Work is trunk-based on main with Conventional Commits, and every pull request is labelled by risk. The public API of every component is committed as a text snapshot, magma.api.txt, and a semver check compares each change with it, so a breaking change has to be declared. Releases go out per package on stable and beta channels, and the React and Angular wrappers release together with the core.
## Known for
- One source for every framework. 116 standard custom elements, with generated React and Angular wrappers that add types, events and form bindings. Options are plain attributes, so plain HTML, server templates and a CMS get the same components.
- Colour solved for contrast. The ramps are generated with Adobe Leonardo, and each role (text, border, accent) takes a step chosen against a contrast target instead of picked by eye.
- Agent guides inside the package. The core, React and Angular packages each ship an AGENTS.md, and every component has its own with usage, patterns and anti-patterns. An agent reads the guide for the version you installed, not the one it remembers.
## Underrated
- mds-pref is a ready-made panel for mode, contrast, motion, theme and language, and every component follows what it sets. Most systems leave that wiring to each product.
- The tokens ship as DTCG 2025.10 with a resolver. Light, dark, two themes and their more-contrast variants are seven files you merge in a build, not a naming convention you have to trust.
- mds-input-date-range is a form-associated element: two dates, one shared calendar, one value in the form. Most date range pickers fake that with two inputs.
## Watch out for
- It is tuned for tools people use for hours: restrained colour, dense forms and tables, a brand that steps back. A brand-led consumer product needs a theme of its own, and the maintainers say custom themes are not a consumer feature yet.
- The public history is short: the GitHub repository was created on 3 June 2026, so there is little track record to judge it by. The maintainers list no MCP server, component registry or Figma Code Connect, the docs have no llms.txt (the URL returns 404), and the Figma variables cover palette and sizing only.
## Components worth studying
- **mds-pref** — A preference panel that writes mode, contrast, motion, theme and language once, and every component follows.
- **mds-input-date-range** — A form-associated date range: two dates, a shared range calendar and presets, submitted as one value.
- **mds-policy-ai** — A disclosure marker for AI-generated content. What an AI produced is always marked, so the user knows what to check.
## When to choose Magma
Pick Magma for form- and data-heavy back-office tools when several teams on different stacks, plain HTML, server templates, React, Angular, have to share one look and one accessibility baseline. Read it either way for how to ship agent guides with a package. Skip it for brand-led marketing: the brand steps back in product screens, by design.
## Apply this style with an AI tool
Paste this into your AI coding assistant as a direction, then iterate:
> Design in the spirit of Magma by Maggioli Group — A public-administration workbench built as web components, with the agent guides inside the npm package. Character: Public-service workbench: contrast-solved neutral grays, one Maggioli blue, heavy Roboto headings over plain Karla text, and squircle corners that soften dense, form-heavy screens. Use a primary colour near #2467e7, the typeface "Karla" (or a close equivalent), corner radius around 0px, a spacing rhythm on a 4px (Tailwind --spacing is 0.0025rem, so utility steps read in hundredths: p-400 = 1rem) base. Lean into what it's known for: One source for every framework. 116 standard custom elements, with generated React and Angular wrappers that add types, events and form bindings. Options are plain attributes, so plain HTML, server templates and a CMS get the same components. Match the intent, not the pixels; adapt it to my product rather than cloning it.
## Official references
- [Magma docs](https://magma-design-system.github.io/docs/)
- [magma-design-system/magma on GitHub](https://github.com/magma-design-system/magma)
- [Storybook](https://magma-design-system.github.io/magma/storybook/)
- [Tokens reference](https://magma-design-system.github.io/docs/tokens/)
- [Guides for AI agents](https://magma-design-system.github.io/docs/development/agentic-development/)
---
_Generated by [designsystems.one](https://www.designsystems.one/design-systems/magma) — a catalogue of public design systems. Style facts are reported for reference and education; adapt them to your own product. Report issues or takedown requests via the site._
mds-pref
A preference panel that writes mode, contrast, motion, theme and language once, and every component follows.
mds-input-date-range
A form-associated date range: two dates, a shared range calendar and presets, submitted as one value.
mds-policy-ai
A disclosure marker for AI-generated content. What an AI produced is always marked, so the user knows what to check.