Operator screens and process graphics
Mimic Symbol <smart-mimic-symbol>
MimicSymbol displays one piece of equipment on a process diagram, such as a pump, a valve, a tank or a motor, with its tag, state and reading.
Stylesheet
The component is styled by source/styles/default/smart.mimicsymbol.css, which is included in smart.industrial-elements.css. It uses the theme's CSS variables and the Industrial tokens (--smart-industrial-*) described in the Themes and Styling guide, so it follows the theme applied to the page.
CSS variables
The component declares 8 CSS variables of its own, on the component itself. Set them in a rule that selects the component, loaded after the component's stylesheet: smart-mimic-symbol, or a class or an id on it. A value set on a container does not reach the component, because the component's own declaration replaces the inherited one.
smart-mimic-symbol {
--smart-mimic-symbol-size: ...;
--smart-mimic-fill: ...;
--smart-mimic-stroke: ...;
--smart-mimic-detail: ...;
--smart-mimic-dash: ...;
--smart-mimic-running-fill: ...;
--smart-mimic-running-stroke: ...;
--smart-mimic-running-detail: ...;
}
/* one instance */
#mimicSymbol {
--smart-mimic-symbol-size: ...;
}
Themes
Two ISA-101 themes ship with the package: smart.industrial.css and smart.industrial-dark.css. Load one after the base theme and set theme="industrial" or theme="industrial-dark" on the body element. The demo page switches between the three.
<link rel="stylesheet" href="node_modules/smart-industrial/source/styles/smart.default.css" /> <link rel="stylesheet" href="node_modules/smart-industrial/source/styles/smart.industrial-elements.css" /> <link rel="stylesheet" href="node_modules/smart-industrial/source/styles/smart.industrial.css" /> <body theme="industrial">