gentleface

Gentleface › Development › code-pencil

code-pencil icon

Code pencil: edit code, edit snippet, edit source. Drawn on the 16 px grid. Free SVG, PNG and code, MIT licensed.

Code line-round

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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z"/></svg>
React
// Gentleface "code-pencil" (line-round), MIT. https://gentleface.com/icons/code-pencil
import type { SVGProps } from 'react';

export function CodePencilIcon(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="M5.947 12.724C5.885 12.847 5.789 12.931 5.658 12.974C5.527 13.018 5.4 13.009 5.276 12.947C5.15 12.884 5.066 12.788 5.023 12.659C4.98 12.53 4.99 12.402 5.053 12.276L10.053 2.276C10.116 2.15 10.212 2.066 10.341 2.023C10.47 1.98 10.598 1.99 10.724 2.053C10.85 2.116 10.934 2.212 10.977 2.341C11.02 2.47 11.01 2.598 10.947 2.724L5.947 12.724ZM2.207 7.5L4.854 10.146C4.953 10.246 5.003 10.364 5.003 10.5C5.003 10.636 4.953 10.754 4.854 10.854C4.756 10.951 4.638 11 4.5 11C4.362 11 4.244 10.951 4.146 10.854L1.146 7.854C1.049 7.756 1 7.638 1 7.5C1 7.362 1.049 7.244 1.146 7.146L4.146 4.146C4.246 4.047 4.364 3.997 4.5 3.997C4.636 3.997 4.754 4.047 4.854 4.146C4.953 4.246 5.003 4.364 5.003 4.5C5.003 4.636 4.953 4.754 4.854 4.854L2.207 7.5ZM11 4.5C11 4.362 11.049 4.244 11.146 4.146C11.246 4.047 11.364 3.997 11.5 3.997C11.636 3.997 11.754 4.047 11.854 4.146L13.724 6.017C13.822 6.115 13.871 6.233 13.871 6.371C13.871 6.509 13.822 6.627 13.724 6.724C13.551 6.746 13.386 6.79 13.231 6.854C13.152 6.831 13.081 6.788 13.017 6.724L11.146 4.854C11.049 4.756 11 4.638 11 4.5ZM14 7.707C14.276 7.707 14.512 7.805 14.707 8L15 8.293C15.195 8.488 15.293 8.724 15.293 9C15.293 9.276 15.195 9.512 15 9.707L12.061 12.646C11.56 13.147 11.007 13.579 10.4 13.943L8.757 14.929C8.636 15.001 8.51 15.021 8.378 14.988C8.246 14.955 8.144 14.878 8.071 14.757C8.023 14.677 7.999 14.592 7.999 14.5C7.999 14.408 8.023 14.323 8.071 14.243L9.057 12.6C9.421 11.993 9.853 11.44 10.354 10.939L13.293 8C13.488 7.805 13.724 7.707 14 7.707Z" />
    </svg>
  );
}
Vue
Vue: see /icons/code-pencil.md
Svelte
Svelte: see /icons/code-pencil.md
HTML img
HTML img: see /icons/code-pencil.md
CSS
CSS: see /icons/code-pencil.md
Data URL
Data URL: see /icons/code-pencil.md
Sprite
Sprite: see /icons/code-pencil.md
SwiftUI
SwiftUI: see /icons/code-pencil.md
Compose
Compose: see /icons/code-pencil.md
Android XML
Android XML: see /icons/code-pencil.md
Flutter
Flutter: see /icons/code-pencil.md

Each SVG is 16 × 16 with fill="currentColor". Keep it at 16 px or an exact multiple (32, 48) on whole pixels: a fractional size or position blurs it. 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. More in how to use.

Meaning

Use it for
edit code, edit snippet, edit source
Example
Edit snippet in a code block toolbar
Built from
code + pencil
Tags
code, html, xml, markup, brackets, angle-brackets, developer, programming, source, pencil
Category
Development
Component name
CodePencilIcon
History
  • added, modifier pencil redrawn

Family 12

More development icons

For agents

Metadata: /icons/code-pencil.json · Markdown: /icons/code-pencil.md · SVG: https://gentleface.com/svg/{style}/16/code-pencil.svg · PNG: https://gentleface.com/png/{style}/{16|32|48}/code-pencil.png

Feedback