Of course. This is an excellent goal. By combining the rigor of ISA-101 with the clarity of modern web design, you can create an HMI that is not only safe and efficient but also aesthetically pleasing and intuitive for a new generation of operators.
Here is a comprehensive theme palette and guide designed for this purpose.
Core Philosophy: "Clarity through Restraint"
This theme is built on the ISA-101 principle that color is an indicator, not a decoration. We blend this with modern UI practices like flat design, consistent spacing, and high-contrast typography to ensure maximum situational awareness and usability.
- Backgrounds are Quiet: Light and dark grays create a neutral canvas that makes critical information stand out.
- Color is Reserved for Meaning: Alarms, status, and interactive elements use color purposefully.
- Accessibility is Non-Negotiable: All color combinations meet or exceed WCAG 2.1 AA contrast standards.
CSS Custom Properties (for Ignition Perspective)
Define these in your theme.css file. Using CSS variables is the most effective way to manage and apply your theme consistently across the entire project.
/*
High-Performance HMI Theme - ISA-101 Compliant & Modern UI
Place this at the root of your theme's CSS file.
*/
:root {
/* Define Light Theme Colors */
--color-bg-primary-light: #F7F8FA;
--color-bg-secondary-light: #FFFFFF;
--color-border-light: #D0D7DE;
--color-text-primary-light: #1E2125;
--color-text-secondary-light: #57606A;
--color-text-link-light: #2E79B6;
}
.dark {
/* Define Dark Theme Colors */
--color-bg-primary-dark: #1C2128;
--color-bg-secondary-dark: #282E36;
--color-border-dark: #444C56;
--color-text-primary-dark: #E6EDF3;
--color-text-secondary-dark: #8B949E;
--color-text-link-dark: #58A6FF;
}
/* Universal Variables (Same for Light & Dark) */
:root {
/* --- STATUS & ALARM COLORS (ISA-101) --- */
/* These must be used ONLY for their intended semantic purpose. */
--color-status-critical: #D73A49; /* P1 - Critical Alarm */
--color-status-high: #FFA726; /* P2 - High Alarm */
--color-status-warning: #FFD700; /* P3 - Warning/Low Alarm */
--color-status-normal: #2DA44E; /* Normal / Running */
--color-status-info: #2E79B6; /* Advisory / Informational */
--color-status-inactive: #57606A; /* Disabled / Inactive (Light) */
--color-status-inactive-dark: #8B949E; /* Disabled / Inactive (Dark) */
--color-status-text-on-color: #FFFFFF; /* Text on a colored status bg */
/* --- DATA VISUALIZATION (Trends, Charts) --- */
/* Use for trend lines. Grayscale first. */
--color-dataviz-1: #212121; /* Dark Gray (for Light Theme) */
--color-dataviz-2: #616161;
--color-dataviz-3: #9E9E9E;
--color-dataviz-4: #BDBDBD;
--color-dataviz-dark-1: #E0E0E0; /* Light Gray (for Dark Theme) */
--color-dataviz-dark-2: #BDBDBD;
--color-dataviz-dark-3: #9E9E9E;
--color-dataviz-dark-4: #757575;
}
Theme Palette Breakdown
1. Backgrounds & Surfaces (The Canvas)
These colors should make up ~95% of your interface.
| Role | Light Theme | Dark Theme | CSS Variable | Usage |
|---|
| Primary Background | #F7F8FA | #1C2128 | --color-bg-primary | Main view background. Slightly off-white/gray. |
| Secondary Background | #FFFFFF | #282E36 | --color-bg-secondary | Containers, popups, tables, sidebars. |
| Borders & Dividers | #D0D7DE | #444C56 | --color-border | Subtle lines to separate UI elements. |
2. Text & Icons (The Information)
High contrast is key for readability.
| Role | Light Theme | Dark Theme | CSS Variable | Notes |
|---|
| Primary Text | #1E2125 | #E6EDF3 | --color-text-primary | Headings, critical data, labels. |
| Secondary Text | #57606A | #8B949E | --color-text-secondary | Non-critical info, descriptions, timestamps. |
| Interactive/Link | #2E79B6 | #58A6FF | --color-text-link | Buttons, navigation links. Never use an alarm color. |
3. Status & Alarms (The Meaning) - ISA-101 Core
These colors are reserved. Their use should be strictly controlled and consistent.
| Status | Color | Hex Code | CSS Variable | ISA-101 Use Case |
|---|
| Critical Alarm (P1) | Red | #D73A49 | --color-status-critical | Requires immediate operator action (e.g., emergency stop). |
| High Alarm (P2) | Amber | #FFA726 | --color-status-high | Requires prompt operator attention. |
| Warning (P3) | Yellow | #FFD700 | --color-status-warning | Awareness of an abnormal condition. |
| Normal / Running | Green | #2DA44E | --color-status-normal | Equipment is running in a normal, safe state. |
| Advisory / Info | Blue | #2E79B6 | --color-status-info | Informational messages (e.g., "Batch Complete"). |
| Inactive / Stopped | Gray | var(--color-text-secondary) | --color-status-inactive | Equipment is off, disabled, or unavailable. |
| Text on Color | White | #FFFFFF | --color-status-text-on-color | For text inside a colored alarm banner or button. |
4. Data Visualization (The Trends)
Follow the ISA-101 principle of "grayscale by default." Use color only to draw attention to abnormal data.
| Role | Light Theme | Dark Theme | CSS Variable | Usage |
|---|
| Primary Trend | #212121 | #E0E0E0 | --color-dataviz-1 | The most important process variable on a chart. |
| Secondary Trends | Grays | Grays | --color-dataviz-2/3/4 | Additional process variables. |
| Limit Lines | Red/Amber | Red/Amber | --color-status-critical | Use alarm colors to show high/low limits on a trend. |
| Out-of-Spec | Red/Amber | Red/Amber | --color-status-high | Highlight a data point or range that has deviated. |
Implementation Guidelines & Best Practices
- Red is Sacred: Never use red (
--color-status-critical) for anything other than a critical, active alarm state. Do not use it for stop buttons (use text labels), logos, or decorative elements.
- No "Christmas Tree" HMIs: The default state of your HMI should be almost entirely grayscale. Colors should appear only when the system state changes from normal.
- Use Color as a Redundant Cue: Don't rely on color alone. Pair it with an icon (e.g., a ▲ for warning) and a clear text label ("High Temp"). This ensures accessibility for colorblind operators and reinforces meaning.
- Buttons and Interactivity:
- Primary Action (e.g., "Acknowledge"): Use
--color-text-link for the button background and white for the text.
- Secondary Action (e.g., "Cancel"): Use a simple bordered button with
--color-bg-secondary as the background and --color-text-link as the text/border color.
- Destructive Action (e.g., "Shutdown"): This is an exception. A destructive action button can use a red outline or text, but it must be clearly labeled and require confirmation. The background should remain neutral.
- Typography: Use a clean, sans-serif font like Roboto, Inter, or Source Sans Pro. Ensure font sizes are large enough to be read from a distance (e.g., 14-16px for body text).
By implementing this structured, purpose-driven theme, you will create an Ignition Perspective HMI that is a powerful tool for operators—not just a pretty picture.