traffic light icon

traffic-light from Unicons by Iconscout · Line · User Interface · Apache-2.0 Free for personal and commercial use.

Name
traffic-light
Set
Unicons
Style
Line
Category
User Interface
Viewbox
24×24
License
Apache 2.0
Aliases
yellow

The same icon in other sets

More user interface icons from Unicons

Use the traffic light icon

SVG

<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M12 5.5A1.5 1.5 0 1 0 13.5 7A1.5 1.5 0 0 0 12 5.5m10 3h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1h-4.18a3 3 0 0 0-2.82-2H9a3 3 0 0 0-2.82 2H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 5.16 5.93A3 3 0 0 0 9 22.5h6a3 3 0 0 0 2.84-2.07A6 6 0 0 0 23 14.5a1 1 0 0 0-1-1h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1M6 18.37a4 4 0 0 1-2.87-2.87H6Zm0-5a4 4 0 0 1-2.87-2.87H6Zm0-5a4.1 4.1 0 0 1-1.83-1a4.1 4.1 0 0 1-1-1.83H6ZM16 19.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-15a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1Zm3.83-2.17a4.1 4.1 0 0 1-1.83 1V15.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V10.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V5.5h2.87a4.1 4.1 0 0 1-1.04 1.83M12 15.5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5m0-5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5"/></svg>

React

import type { SVGProps } from "react";

export function UilTrafficLight(props: SVGProps<SVGSVGElement>) {
  return (
    <svg {...props} xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M12 5.5A1.5 1.5 0 1 0 13.5 7A1.5 1.5 0 0 0 12 5.5m10 3h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1h-4.18a3 3 0 0 0-2.82-2H9a3 3 0 0 0-2.82 2H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 5.16 5.93A3 3 0 0 0 9 22.5h6a3 3 0 0 0 2.84-2.07A6 6 0 0 0 23 14.5a1 1 0 0 0-1-1h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1M6 18.37a4 4 0 0 1-2.87-2.87H6Zm0-5a4 4 0 0 1-2.87-2.87H6Zm0-5a4.1 4.1 0 0 1-1.83-1a4.1 4.1 0 0 1-1-1.83H6ZM16 19.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-15a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1Zm3.83-2.17a4.1 4.1 0 0 1-1.83 1V15.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V10.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V5.5h2.87a4.1 4.1 0 0 1-1.04 1.83M12 15.5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5m0-5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5"/></svg>
  );
}

Vue

<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="currentColor" d="M12 5.5A1.5 1.5 0 1 0 13.5 7A1.5 1.5 0 0 0 12 5.5m10 3h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1h-4.18a3 3 0 0 0-2.82-2H9a3 3 0 0 0-2.82 2H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 1.54 4H2a1 1 0 0 0-1 1a6 6 0 0 0 5.16 5.93A3 3 0 0 0 9 22.5h6a3 3 0 0 0 2.84-2.07A6 6 0 0 0 23 14.5a1 1 0 0 0-1-1h-.54a6 6 0 0 0 1.54-4a1 1 0 0 0-1-1M6 18.37a4 4 0 0 1-2.87-2.87H6Zm0-5a4 4 0 0 1-2.87-2.87H6Zm0-5a4.1 4.1 0 0 1-1.83-1a4.1 4.1 0 0 1-1-1.83H6ZM16 19.5a1 1 0 0 1-1 1H9a1 1 0 0 1-1-1v-15a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1Zm3.83-2.17a4.1 4.1 0 0 1-1.83 1V15.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V10.5h2.87a4.1 4.1 0 0 1-1.04 1.83m0-5a4.1 4.1 0 0 1-1.83 1V5.5h2.87a4.1 4.1 0 0 1-1.04 1.83M12 15.5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5m0-5a1.5 1.5 0 1 0 1.5 1.5a1.5 1.5 0 0 0-1.5-1.5"/></svg>
</template>

CSS

.icon-traffic-light {
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M12%205.5A1.5%201.5%200%201%200%2013.5%207A1.5%201.5%200%200%200%2012%205.5m10%203h-.54a6%206%200%200%200%201.54-4a1%201%200%200%200-1-1h-4.18a3%203%200%200%200-2.82-2H9a3%203%200%200%200-2.82%202H2a1%201%200%200%200-1%201a6%206%200%200%200%201.54%204H2a1%201%200%200%200-1%201a6%206%200%200%200%201.54%204H2a1%201%200%200%200-1%201a6%206%200%200%200%205.16%205.93A3%203%200%200%200%209%2022.5h6a3%203%200%200%200%202.84-2.07A6%206%200%200%200%2023%2014.5a1%201%200%200%200-1-1h-.54a6%206%200%200%200%201.54-4a1%201%200%200%200-1-1M6%2018.37a4%204%200%200%201-2.87-2.87H6Zm0-5a4%204%200%200%201-2.87-2.87H6Zm0-5a4.1%204.1%200%200%201-1.83-1a4.1%204.1%200%200%201-1-1.83H6ZM16%2019.5a1%201%200%200%201-1%201H9a1%201%200%200%201-1-1v-15a1%201%200%200%201%201-1h6a1%201%200%200%201%201%201Zm3.83-2.17a4.1%204.1%200%200%201-1.83%201V15.5h2.87a4.1%204.1%200%200%201-1.04%201.83m0-5a4.1%204.1%200%200%201-1.83%201V10.5h2.87a4.1%204.1%200%200%201-1.04%201.83m0-5a4.1%204.1%200%200%201-1.83%201V5.5h2.87a4.1%204.1%200%200%201-1.04%201.83M12%2015.5a1.5%201.5%200%201%200%201.5%201.5a1.5%201.5%200%200%200-1.5-1.5m0-5a1.5%201.5%200%201%200%201.5%201.5a1.5%201.5%200%200%200-1.5-1.5%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%221em%22%20height%3D%221em%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M12%205.5A1.5%201.5%200%201%200%2013.5%207A1.5%201.5%200%200%200%2012%205.5m10%203h-.54a6%206%200%200%200%201.54-4a1%201%200%200%200-1-1h-4.18a3%203%200%200%200-2.82-2H9a3%203%200%200%200-2.82%202H2a1%201%200%200%200-1%201a6%206%200%200%200%201.54%204H2a1%201%200%200%200-1%201a6%206%200%200%200%201.54%204H2a1%201%200%200%200-1%201a6%206%200%200%200%205.16%205.93A3%203%200%200%200%209%2022.5h6a3%203%200%200%200%202.84-2.07A6%206%200%200%200%2023%2014.5a1%201%200%200%200-1-1h-.54a6%206%200%200%200%201.54-4a1%201%200%200%200-1-1M6%2018.37a4%204%200%200%201-2.87-2.87H6Zm0-5a4%204%200%200%201-2.87-2.87H6Zm0-5a4.1%204.1%200%200%201-1.83-1a4.1%204.1%200%200%201-1-1.83H6ZM16%2019.5a1%201%200%200%201-1%201H9a1%201%200%200%201-1-1v-15a1%201%200%200%201%201-1h6a1%201%200%200%201%201%201Zm3.83-2.17a4.1%204.1%200%200%201-1.83%201V15.5h2.87a4.1%204.1%200%200%201-1.04%201.83m0-5a4.1%204.1%200%200%201-1.83%201V10.5h2.87a4.1%204.1%200%200%201-1.04%201.83m0-5a4.1%204.1%200%200%201-1.83%201V5.5h2.87a4.1%204.1%200%200%201-1.04%201.83M12%2015.5a1.5%201.5%200%201%200%201.5%201.5a1.5%201.5%200%200%200-1.5-1.5m0-5a1.5%201.5%200%201%200%201.5%201.5a1.5%201.5%200%200%200-1.5-1.5%22%2F%3E%3C%2Fsvg%3E") no-repeat center / contain;
}

Direct links: SVG · download · JSON · https://iconsdb.app/api/v1/icon/uil/traffic-light.svg?color=%231a73e8&size=48