Skip to content

@iso-safety-signs/css

Terminal window
npm install @iso-safety-signs/css

Import 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>
ClassSignCategory
iso-e001Emergency exitEmergency
iso-p001No smokingProhibition
iso-m001Wear eye protectionMandatory
iso-w001Flammable materialWarning
iso-f001Fire extinguisherFire

The full class list mirrors the sign codes in lowercase.

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.

<!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>