@iso-safety-signs/css
Installation
Section titled “Installation”npm install @iso-safety-signs/cssImport the stylesheet once in your project’s entry point:
import '@iso-safety-signs/css/sprite.css';Or link it in HTML:
<link rel="stylesheet" href="node_modules/@iso-safety-signs/css/sprite.css" />Add the class iso-{code} to any element to display that sign as a background image. Set explicit dimensions on the element.
<span class="iso-e001" style="display:inline-block;width:64px;height:64px;"></span>Class name patterns
Section titled “Class name patterns”| Class | Sign | Category |
|---|---|---|
iso-e001 | Emergency exit | Emergency |
iso-p001 | No smoking | Prohibition |
iso-m001 | Wear eye protection | Mandatory |
iso-w001 | Flammable material | Warning |
iso-f001 | Fire extinguisher | Fire |
The full class list mirrors the sign codes in lowercase.
Accessibility
Section titled “Accessibility”Background images are invisible to assistive technologies and do not appear in the accessibility tree. Any usage of CSS sign classes must be accompanied by explicit ARIA attributes on the host element.
<!-- Correct: role + aria-label on the element carrying the class --><span class="iso-e001" role="img" aria-label="Emergency exit" style="display:inline-block;width:64px;height:64px;"></span>Do not rely on surrounding text alone — screen readers will skip the visual entirely unless role="img" and aria-label (or aria-labelledby) are present.
Full example
Section titled “Full example”<!DOCTYPE html><html lang="en"><head> <link rel="stylesheet" href="node_modules/@iso-safety-signs/css/sprite.css" /> <style> .sign { display: inline-block; width: 64px; height: 64px; } </style></head><body> <span class="sign iso-e001" role="img" aria-label="Emergency exit"></span> <span class="sign iso-f001" role="img" aria-label="Fire extinguisher"></span> <span class="sign iso-w001" role="img" aria-label="Flammable material"></span></body></html>