Skip to content
Magma Design System
Magma Studio: the theme of your product, readable by everyoneMagmaThe design system of Maggioli Group. Standard web components that work in any framework, design decisions kept in tokens, and guides that AI agents read straight from the package.
Made to work with AI agentsAgents build with Magma the way your team does: from the guides of the version you installed. Install the package, then ask.
Prompt
Read node_modules/@maggioli-design-system/magma/AGENTS.md and follow it to install Magma into this project.
Prompt
Read node_modules/@maggioli-design-system/magma-react/AGENTS.md and follow it to install Magma into this project.
Prompt
Read node_modules/@maggioli-design-system/magma-angular/AGENTS.md and follow it to install Magma into this project.
The same components, wherever you buildWritten as HTML, used as they are in React and Angular: the same names, the same attributes, the same events. These are live: change the mode or the theme from the preferences, and they follow.
Structure
<mds-input-field label="Email">
<mds-input name="email" type="email" placeholder="name@example.com"></mds-input>
</mds-input-field>
<mds-button label="Send" icon="mi/baseline/send" variant="primary"></mds-button>
<script type="module">
document.querySelector('mds-input').addEventListener('mdsInputChange', (event) => {
console.log(event.detail.value);
});
</script>
import { MdsButton, MdsInput, MdsInputField } from '@maggioli-design-system/magma-react';
export function Subscribe() {
return (
<>
<MdsInputField label="Email">
<MdsInput
name="email"
type="email"
placeholder="name@example.com"
onMdsInputChange={(event) => console.log(event.detail.value)}
/>
</MdsInputField>
<MdsButton label="Send" icon="mi/baseline/send" variant="primary" />
</>
);
}
import { Component } from '@angular/core';
import { MdsButton, MdsInput, MdsInputField } from '@maggioli-design-system/magma-angular';
@Component({
selector: 'app-subscribe',
imports: [MdsButton, MdsInput, MdsInputField],
template: `
<mds-input-field label="Email">
<mds-input
name="email"
type="email"
placeholder="name@example.com"
(mdsInputChange)="onChange($event)"
></mds-input>
</mds-input-field>
<mds-button label="Send" icon="mi/baseline/send" variant="primary"></mds-button>
`,
})
export class SubscribeComponent {
onChange(event: CustomEvent) {
console.log(event.detail.value);
}
}
Make Magma yoursMagma Studio shapes the theme of your product in the browser, with nothing to install. You set how much contrast the text needs and it picks the colors that meet it, in every theme and in both modes, judging each pair while you edit. See the theme on the screen of a product, then take it away as tokens for your code and for Figma.
Adopt it at your paceFour levels, each built on the one before. Stop where your constraints say, move up when they change.
  1. Design tokens
    design-tokens
    The design decisions as values: CSS custom properties, SCSS, JavaScript, JSON and DTCG, Figma variables, and the formats of iOS, Android and Flutter.
    Fits whenThe product has its own interface stack, or is not on the web.
  2. Styles
    styles
    The tokens as a Tailwind 4 theme and utilities, with the base styles, the fonts, dark mode, contrast and themes.
    Fits whenYou write your own markup and want it to look and behave like Magma.
  3. Web components
    magmasvg-icons
    118 components as custom elements: load them all, or import only the ones a page uses. Icons by name.
    Fits whenPlain HTML, server-rendered templates, a CMS, micro-frontends: any page in a browser.
  4. Framework wrappers
    magma-reactmagma-angular
    The same components as React components and Angular standalone components, with types, events and form bindings, and server rendering for React.
    Fits whenThe product is a React or an Angular app.
Built to scaleOne system for products built in different ways, by different teams, at different speeds.
One library, every framework
Standard custom elements that work in every framework.
Compiled once, from one source, they run as they are in plain JavaScript and in any template. The React and Angular wrappers, generated from that source and released with it, add types, events and forms the way each framework expects.
Web standards, nothing else
What works in a plain HTML file works in every framework.
Options are HTML attributes that take strings, numbers and booleans, not arrays, objects or callbacks that only a framework can pass. Content goes into slots and child components, events are DOM events.
Adopt it a level at a time
Tokens, styles, components and wrappers: take only what you need.
Each level works on its own: a product takes what its stack, its deadlines and its users allow, and moves up when it can.
Ready for AI agents
Agents work with the version you installed, not with what they remember.
The packages ship guides written for coding agents, an MCP server that answers from the installed version and a lint that checks the result. The model is kept for the choices that need judgment: what is mechanical costs no tokens.
Accessible and adaptive
Designed for WCAG 2.x AA and for the preferences of every user.
Light and dark mode, higher contrast, reduced motion, low consumption and themes come built in: the preferences are set once on the page, and every component follows them.
One source for design decisions
A decision changed once reaches every product.
Color, type, space and motion live in design tokens, published for CSS, Tailwind, SCSS, JavaScript and DTCG, for Figma as variables, and for iOS, Android and Flutter. Every product gets the changes with its next update.
Explore the documentationFrom the decisions behind Magma to the code of every component.
FoundationThe decisions Magma is built on, before any component - principles, accessibility, color, type, illustration, the design language and the way products speak.Building blocksThe sections of a page that come back from one product to the next - the shell of the application, the header of a page, a list of items, the data of an item - made of Magma components, as Magma ships them to people and to AI agents.PatternsSolutions to the tasks people carry out again and again - learning what happened, deciding before an action that cannot be undone, searching a long list - the same in every product, as Magma ships them to people and to AI agents.DevelopmentInstalling and using Magma in Vanilla, React and Angular projects, and the rules to follow when you build with it.Agentic developmentWhat Magma gives AI coding agents to build with the version you installed, and how it keeps their work cheap: guides in the package, an MCP server, a lint and a Claude Code plugin.ComponentsHow to start using the web components of Magma in Vanilla JS, React and Angular, and the list of all of them, generated from the installed package.TokensThe global tokens of Magma by tier, which one to use, the platforms they reach, where their data comes from and how to get them in your editor.IconsHow Magma names and uses its icons, and the packages they come from - three sets to search and copy, and the legacy icons package.Brand assetsThe logos, symbols, avatars and illustrations of the Maggioli Group, to download in SVG, PDF, PNG and WebP or to install with npm.CommunityWhere to ask about Magma, follow how it changes, try its components and shape the theme of your product.Magma StorybookEvery component in action: its variants and states, its props in the controls, its events and its accessibility checks.Magma StudioThe theme of your product, made in the browser: you set the contrast the text needs, it picks the colors that meet it, in every theme, light and dark.
Modified 1 week agoVittorio VittoriDesign System Architect
Created 1 month agoVittorio VittoriDesign System Architect