JSFiddle - React, Tailwind, and code Playground

by afelixj

HTML

<div class="pencil">
    <span></span>
</div>

CSS

.pencil{
    width: 200px;
    height: 40px;
    border: 1px solid #000;
    position: relative;
}
.pencil:before{
    content: '';
    display: block;
    margin: 10px 0;
    width: 100%;
    height: 10px;
    border: 6px solid #000;
    border-width: 6px 0;
}
.pencil:after{
    content: '';
  display: block;
  height: 10px;
  border: 1px solid #000;
  border-width: 1px 1px 0 0;
  width: 40px;
  height: 36px;
  transform: rotate(28deg) skewX(-31deg);
  position: absolute;
  right: -21px;
  top: 2px;
}
.pencil span{
    display: block;
    width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-left: 8px solid #000;
	border-bottom: 4px solid transparent;
    position: absolute;
      right: -36px;
  top: 15px;
}