# light-switch icon

Light switch. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/light-switch

- Category: Home & household
- Use it for: light switch, wall switch, smart switch, dimmer switch, rocker switch, dimmer
- Tags: light-switch, wall-switch, switch, rocker, smart-switch, smart-home, light, lighting, home, electric, wall-plate, on-off
- Component name: LightSwitchIcon
- Added: 2026-11-07
- Since: version 0.6.0
- npm: `import { LightSwitchIcon } from '@gentleface/react';` (@gentleface/react 0.6.0)
- Changed: 2026-11-09 (16 px redrawn)

## Alternatives

- `outlet`: a smart plug or power outlet

## Don't confuse with

- `toggle`: toggle is the UI switch control

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

- line-round: https://gentleface.com/svg/line-round/16/light-switch.svg · PNG https://gentleface.com/png/line-round/16/light-switch.png · https://gentleface.com/png/line-round/32/light-switch.png · https://gentleface.com/png/line-round/48/light-switch.png
- line-soft: https://gentleface.com/svg/line-soft/16/light-switch.svg · PNG https://gentleface.com/png/line-soft/16/light-switch.png · https://gentleface.com/png/line-soft/32/light-switch.png · https://gentleface.com/png/line-soft/48/light-switch.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/light-switch.svg · PNG https://gentleface.com/png/line-sharp/16/light-switch.png · https://gentleface.com/png/line-sharp/32/light-switch.png · https://gentleface.com/png/line-sharp/48/light-switch.png
- solid-round: https://gentleface.com/svg/solid-round/16/light-switch.svg · PNG https://gentleface.com/png/solid-round/16/light-switch.png · https://gentleface.com/png/solid-round/32/light-switch.png · https://gentleface.com/png/solid-round/48/light-switch.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/light-switch.svg · PNG https://gentleface.com/png/solid-soft/16/light-switch.png · https://gentleface.com/png/solid-soft/32/light-switch.png · https://gentleface.com/png/solid-soft/48/light-switch.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/light-switch.svg · PNG https://gentleface.com/png/solid-sharp/16/light-switch.png · https://gentleface.com/png/solid-sharp/32/light-switch.png · https://gentleface.com/png/solid-sharp/48/light-switch.png

The SVG of every style: https://gentleface.com/icons/light-switch.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z"/></svg>
```

### React

```tsx
// Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch
import type { SVGProps } from 'react';

export function LightSwitchIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/light-switch.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch. Takes the text color. */
.icon-light-switch {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#light-switch"/></svg>
```

### SwiftUI

```swift
// Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch
import SwiftUI

struct LightSwitchIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 14.414, y: 14.414))
        p.addCurve(to: CGPoint(x: 13.736, y: 14.86), control1: CGPoint(x: 14.219, y: 14.609), control2: CGPoint(x: 13.993, y: 14.758))
        p.addCurve(to: CGPoint(x: 13, y: 15), control1: CGPoint(x: 13.5, y: 14.953), control2: CGPoint(x: 13.254, y: 15))
        p.addLine(to: CGPoint(x: 3, y: 15))
        p.addCurve(to: CGPoint(x: 2.264, y: 14.86), control1: CGPoint(x: 2.746, y: 15), control2: CGPoint(x: 2.5, y: 14.953))
        p.addCurve(to: CGPoint(x: 1.586, y: 14.414), control1: CGPoint(x: 2.007, y: 14.758), control2: CGPoint(x: 1.781, y: 14.609))
        p.addCurve(to: CGPoint(x: 1.14, y: 13.736), control1: CGPoint(x: 1.391, y: 14.219), control2: CGPoint(x: 1.242, y: 13.993))
        p.addCurve(to: CGPoint(x: 1, y: 13), control1: CGPoint(x: 1.047, y: 13.5), control2: CGPoint(x: 1, y: 13.254))
        p.addLine(to: CGPoint(x: 1, y: 3))
        p.addCurve(to: CGPoint(x: 1.14, y: 2.264), control1: CGPoint(x: 1, y: 2.746), control2: CGPoint(x: 1.047, y: 2.5))
        p.addCurve(to: CGPoint(x: 1.586, y: 1.586), control1: CGPoint(x: 1.242, y: 2.007), control2: CGPoint(x: 1.391, y: 1.781))
        p.addCurve(to: CGPoint(x: 2.264, y: 1.14), control1: CGPoint(x: 1.781, y: 1.391), control2: CGPoint(x: 2.007, y: 1.242))
        p.addCurve(to: CGPoint(x: 3, y: 1), control1: CGPoint(x: 2.5, y: 1.047), control2: CGPoint(x: 2.746, y: 1))
        p.addLine(to: CGPoint(x: 13, y: 1))
        p.addCurve(to: CGPoint(x: 13.736, y: 1.14), control1: CGPoint(x: 13.254, y: 1), control2: CGPoint(x: 13.5, y: 1.047))
        p.addCurve(to: CGPoint(x: 14.414, y: 1.586), control1: CGPoint(x: 13.993, y: 1.242), control2: CGPoint(x: 14.219, y: 1.391))
        p.addCurve(to: CGPoint(x: 14.86, y: 2.264), control1: CGPoint(x: 14.609, y: 1.781), control2: CGPoint(x: 14.758, y: 2.007))
        p.addCurve(to: CGPoint(x: 15, y: 3), control1: CGPoint(x: 14.953, y: 2.5), control2: CGPoint(x: 15, y: 2.746))
        p.addLine(to: CGPoint(x: 15, y: 13))
        p.addCurve(to: CGPoint(x: 14.86, y: 13.736), control1: CGPoint(x: 15, y: 13.254), control2: CGPoint(x: 14.953, y: 13.5))
        p.addCurve(to: CGPoint(x: 14.414, y: 14.414), control1: CGPoint(x: 14.758, y: 13.993), control2: CGPoint(x: 14.609, y: 14.219))
        p.closeSubpath()
        p.move(to: CGPoint(x: 2.293, y: 13.707))
        p.addCurve(to: CGPoint(x: 3, y: 14), control1: CGPoint(x: 2.488, y: 13.902), control2: CGPoint(x: 2.724, y: 14))
        p.addLine(to: CGPoint(x: 13, y: 14))
        p.addCurve(to: CGPoint(x: 13.707, y: 13.707), control1: CGPoint(x: 13.276, y: 14), control2: CGPoint(x: 13.512, y: 13.902))
        p.addCurve(to: CGPoint(x: 14, y: 13), control1: CGPoint(x: 13.902, y: 13.512), control2: CGPoint(x: 14, y: 13.276))
        p.addLine(to: CGPoint(x: 14, y: 3))
        p.addCurve(to: CGPoint(x: 13.707, y: 2.293), control1: CGPoint(x: 14, y: 2.724), control2: CGPoint(x: 13.902, y: 2.488))
        p.addCurve(to: CGPoint(x: 13, y: 2), control1: CGPoint(x: 13.512, y: 2.098), control2: CGPoint(x: 13.276, y: 2))
        p.addLine(to: CGPoint(x: 3, y: 2))
        p.addCurve(to: CGPoint(x: 2.293, y: 2.293), control1: CGPoint(x: 2.724, y: 2), control2: CGPoint(x: 2.488, y: 2.098))
        p.addCurve(to: CGPoint(x: 2, y: 3), control1: CGPoint(x: 2.098, y: 2.488), control2: CGPoint(x: 2, y: 2.724))
        p.addLine(to: CGPoint(x: 2, y: 13))
        p.addCurve(to: CGPoint(x: 2.293, y: 13.707), control1: CGPoint(x: 2, y: 13.276), control2: CGPoint(x: 2.098, y: 13.512))
        p.closeSubpath()
        p.move(to: CGPoint(x: 7, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 12))
        p.addCurve(to: CGPoint(x: 6.707, y: 12.707), control1: CGPoint(x: 7, y: 12.276), control2: CGPoint(x: 6.902, y: 12.512))
        p.addCurve(to: CGPoint(x: 6, y: 13), control1: CGPoint(x: 6.512, y: 12.902), control2: CGPoint(x: 6.276, y: 13))
        p.addLine(to: CGPoint(x: 4, y: 13))
        p.addCurve(to: CGPoint(x: 3.293, y: 12.707), control1: CGPoint(x: 3.724, y: 13), control2: CGPoint(x: 3.488, y: 12.902))
        p.addCurve(to: CGPoint(x: 3, y: 12), control1: CGPoint(x: 3.098, y: 12.512), control2: CGPoint(x: 3, y: 12.276))
        p.addLine(to: CGPoint(x: 3, y: 3))
        p.addLine(to: CGPoint(x: 7, y: 3))
        p.closeSubpath()
        p.move(to: CGPoint(x: 12.707, y: 3.293))
        p.addCurve(to: CGPoint(x: 13, y: 4), control1: CGPoint(x: 12.902, y: 3.488), control2: CGPoint(x: 13, y: 3.724))
        p.addLine(to: CGPoint(x: 13, y: 13))
        p.addLine(to: CGPoint(x: 9, y: 13))
        p.addLine(to: CGPoint(x: 9, y: 4))
        p.addCurve(to: CGPoint(x: 9.293, y: 3.293), control1: CGPoint(x: 9, y: 3.724), control2: CGPoint(x: 9.098, y: 3.488))
        p.addCurve(to: CGPoint(x: 10, y: 3), control1: CGPoint(x: 9.488, y: 3.098), control2: CGPoint(x: 9.724, y: 3))
        p.addLine(to: CGPoint(x: 12, y: 3))
        p.addCurve(to: CGPoint(x: 12.707, y: 3.293), control1: CGPoint(x: 12.276, y: 3), control2: CGPoint(x: 12.512, y: 3.098))
        p.closeSubpath()
        p.move(to: CGPoint(x: 12, y: 4))
        p.addLine(to: CGPoint(x: 10, y: 4))
        p.addLine(to: CGPoint(x: 10, y: 8))
        p.addLine(to: CGPoint(x: 12, y: 8))
        p.addLine(to: CGPoint(x: 12, y: 4))
        p.closeSubpath()
        p.move(to: CGPoint(x: 4, y: 8))
        p.addLine(to: CGPoint(x: 4, y: 12))
        p.addLine(to: CGPoint(x: 6, y: 12))
        p.addLine(to: CGPoint(x: 6, y: 8))
        p.addLine(to: CGPoint(x: 4, y: 8))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// LightSwitchIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val LightSwitchIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "light-switch", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(LightSwitchIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_light_switch.xml · Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M14.414 14.414C14.219 14.609 13.993 14.758 13.736 14.86C13.5 14.953 13.254 15 13 15L3 15C2.746 15 2.5 14.953 2.264 14.86C2.007 14.758 1.781 14.609 1.586 14.414C1.391 14.219 1.242 13.993 1.14 13.736C1.047 13.5 1 13.254 1 13L1 3C1 2.746 1.047 2.5 1.14 2.264C1.242 2.007 1.391 1.781 1.586 1.586C1.781 1.391 2.007 1.242 2.264 1.14C2.5 1.047 2.746 1 3 1L13 1C13.254 1 13.5 1.047 13.736 1.14C13.993 1.242 14.219 1.391 14.414 1.586C14.609 1.781 14.758 2.007 14.86 2.264C14.953 2.5 15 2.746 15 3L15 13C15 13.254 14.953 13.5 14.86 13.736C14.758 13.993 14.609 14.219 14.414 14.414ZM2.293 13.707C2.488 13.902 2.724 14 3 14L13 14C13.276 14 13.512 13.902 13.707 13.707C13.902 13.512 14 13.276 14 13L14 3C14 2.724 13.902 2.488 13.707 2.293C13.512 2.098 13.276 2 13 2L3 2C2.724 2 2.488 2.098 2.293 2.293C2.098 2.488 2 2.724 2 3L2 13C2 13.276 2.098 13.512 2.293 13.707ZM7 3L7 12C7 12.276 6.902 12.512 6.707 12.707C6.512 12.902 6.276 13 6 13L4 13C3.724 13 3.488 12.902 3.293 12.707C3.098 12.512 3 12.276 3 12L3 3L7 3ZM12.707 3.293C12.902 3.488 13 3.724 13 4L13 13L9 13L9 4C9 3.724 9.098 3.488 9.293 3.293C9.488 3.098 9.724 3 10 3L12 3C12.276 3 12.512 3.098 12.707 3.293ZM12 4L10 4L10 8L12 8L12 4ZM4 8L4 12L6 12L6 8L4 8Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "light-switch" (line-round), MIT. https://gentleface.com/icons/light-switch
import 'package:flutter/widgets.dart';

class LightSwitchIcon extends StatelessWidget {
  const LightSwitchIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _LightSwitchIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _LightSwitchIconPainter extends CustomPainter {
  _LightSwitchIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(14.414, 14.414)
      ..cubicTo(14.219, 14.609, 13.993, 14.758, 13.736, 14.86)
      ..cubicTo(13.5, 14.953, 13.254, 15, 13, 15)
      ..lineTo(3, 15)
      ..cubicTo(2.746, 15, 2.5, 14.953, 2.264, 14.86)
      ..cubicTo(2.007, 14.758, 1.781, 14.609, 1.586, 14.414)
      ..cubicTo(1.391, 14.219, 1.242, 13.993, 1.14, 13.736)
      ..cubicTo(1.047, 13.5, 1, 13.254, 1, 13)
      ..lineTo(1, 3)
      ..cubicTo(1, 2.746, 1.047, 2.5, 1.14, 2.264)
      ..cubicTo(1.242, 2.007, 1.391, 1.781, 1.586, 1.586)
      ..cubicTo(1.781, 1.391, 2.007, 1.242, 2.264, 1.14)
      ..cubicTo(2.5, 1.047, 2.746, 1, 3, 1)
      ..lineTo(13, 1)
      ..cubicTo(13.254, 1, 13.5, 1.047, 13.736, 1.14)
      ..cubicTo(13.993, 1.242, 14.219, 1.391, 14.414, 1.586)
      ..cubicTo(14.609, 1.781, 14.758, 2.007, 14.86, 2.264)
      ..cubicTo(14.953, 2.5, 15, 2.746, 15, 3)
      ..lineTo(15, 13)
      ..cubicTo(15, 13.254, 14.953, 13.5, 14.86, 13.736)
      ..cubicTo(14.758, 13.993, 14.609, 14.219, 14.414, 14.414)
      ..close()
      ..moveTo(2.293, 13.707)
      ..cubicTo(2.488, 13.902, 2.724, 14, 3, 14)
      ..lineTo(13, 14)
      ..cubicTo(13.276, 14, 13.512, 13.902, 13.707, 13.707)
      ..cubicTo(13.902, 13.512, 14, 13.276, 14, 13)
      ..lineTo(14, 3)
      ..cubicTo(14, 2.724, 13.902, 2.488, 13.707, 2.293)
      ..cubicTo(13.512, 2.098, 13.276, 2, 13, 2)
      ..lineTo(3, 2)
      ..cubicTo(2.724, 2, 2.488, 2.098, 2.293, 2.293)
      ..cubicTo(2.098, 2.488, 2, 2.724, 2, 3)
      ..lineTo(2, 13)
      ..cubicTo(2, 13.276, 2.098, 13.512, 2.293, 13.707)
      ..close()
      ..moveTo(7, 3)
      ..lineTo(7, 12)
      ..cubicTo(7, 12.276, 6.902, 12.512, 6.707, 12.707)
      ..cubicTo(6.512, 12.902, 6.276, 13, 6, 13)
      ..lineTo(4, 13)
      ..cubicTo(3.724, 13, 3.488, 12.902, 3.293, 12.707)
      ..cubicTo(3.098, 12.512, 3, 12.276, 3, 12)
      ..lineTo(3, 3)
      ..lineTo(7, 3)
      ..close()
      ..moveTo(12.707, 3.293)
      ..cubicTo(12.902, 3.488, 13, 3.724, 13, 4)
      ..lineTo(13, 13)
      ..lineTo(9, 13)
      ..lineTo(9, 4)
      ..cubicTo(9, 3.724, 9.098, 3.488, 9.293, 3.293)
      ..cubicTo(9.488, 3.098, 9.724, 3, 10, 3)
      ..lineTo(12, 3)
      ..cubicTo(12.276, 3, 12.512, 3.098, 12.707, 3.293)
      ..close()
      ..moveTo(12, 4)
      ..lineTo(10, 4)
      ..lineTo(10, 8)
      ..lineTo(12, 8)
      ..lineTo(12, 4)
      ..close()
      ..moveTo(4, 8)
      ..lineTo(4, 12)
      ..lineTo(6, 12)
      ..lineTo(6, 8)
      ..lineTo(4, 8)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_LightSwitchIconPainter old) => old.color != color;
}
```
