Material Design system specifications structure enterprise interfaces through systematic tonal ramps. Rather than selecting arbitrary tints and shades, Material systems calculate calibrated steps ranging from 50 (lightest tint) to 900 (deepest shade), supplemented by four saturated accent stops (A100, A200, A400, A700).
1. Exporting to Material UI (React MUI v5+)
In React applications utilizing @mui/material, color ramps populate the theme's palette object. The generated code integrates directly into createTheme():
import { createTheme } from '@mui/material/styles';
const theme = createTheme({
palette: {
primary: {
50: '#e3f2fd',
100: '#bbdefb',
200: '#90caf9',
300: '#64b5f6',
400: '#42a5f5',
500: '#2196f3', // Default Primary Main
600: '#1e88e5',
700: '#1976d2',
800: '#1565c0',
900: '#0d47a1',
main: '#2196f3',
contrastText: '#ffffff',
},
},
});
2. Exporting to Flutter (Dart MaterialColor)
In Flutter applications, theme engines require a MaterialColor instance containing a mapping of integer keys (50 to 900) to 32-bit color values:
import 'package:flutter/material.dart';
const MaterialColor customBrandColor = MaterialColor(
0xFF2196F3, // 500 Primary value
<int, Color>{
50: Color(0xFFE3F2FD),
100: Color(0xFFBBDEFB),
200: Color(0xFF90CAF9),
300: Color(0xFF64B5F6),
400: Color(0xFF42A5F5),
500: Color(0xFF2196F3),
600: Color(0xFF1E88E5),
700: Color(0xFF1976D2),
800: Color(0xFF1565C0),
900: Color(0xFF0D47A1),
},
);
3. Exporting to Tailwind CSS Configuration
For Tailwind CSS design systems, generated ramps map directly to utility scale classes like bg-brand-500 and text-brand-900:
module.exports = {
theme: {
extend: {
colors: {
brand: {
50: '#e3f2fd',
100: '#bbdefb',
200: '#90caf9',
300: '#64b5f6',
400: '#42a5f5',
500: '#2196f3',
600: '#1e88e5',
700: '#1976d2',
800: '#1565c0',
900: '#0d47a1',
}
}
}
}
};