Skip to content
Cuelark UI

Hover the icon or press Play. Suggested motion: pop. Pick another to preview it and update the animated code:

Flat Color Icons · FcRuler

Ruler icon

A free ruler icon from Flat Color Icons, ready for React. Use it static or animated: both versions are below, copy-paste or one shadcn command away. Sized in em and colored by currentColor.

License
MIT license
Project
github.com
Install with shadcn
npx shadcn@latest add https://ui.cuelark.com/r/icons/flat-color/ruler.json
components/icons/flat-color-ruler.tsx
import * as React from "react";

/**
 * Ruler from Flat Color Icons (https://github.com/icons8/flat-color-icons), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/flat-color/ruler. Sized in em, colored by currentColor.
 */
export function FcRulerIcon(props: React.SVGProps<SVGSVGElement>) {
  return (
    <svg
      aria-hidden="true"
      version="1"
      viewBox="0 0 48 48"
      enableBackground="new 0 0 48 48"
      stroke="currentColor"
      fill="currentColor"
      strokeWidth="0"
      width="1em"
      height="1em"
      xmlns="http://www.w3.org/2000/svg"
      {...props}
    >
      <rect
        x="16.7"
        y="1.6"
        transform="matrix(-.707 -.707 .707 -.707 24 57.941)"
        fill="#FFA000"
        width="14.6"
        height="44.8"
      />
      <g fill="#9E6400">
        <rect
          x="17.9"
          y="20.2"
          transform="matrix(-.707 -.707 .707 -.707 21.177 51.125)"
          width="6.6"
          height="2"
        />
        <rect
          x="22.3"
          y="15.2"
          transform="matrix(-.707 -.707 .707 -.707 29.833 44.71)"
          width="3.7"
          height="2"
        />
        <rect
          x="25.9"
          y="12.2"
          transform="matrix(-.707 -.707 .707 -.707 40.49 43.125)"
          width="6.6"
          height="2"
        />
        <rect
          x="31.2"
          y="6.3"
          transform="matrix(.707 -.707 .707 .707 3.643 25.147)"
          width="2"
          height="3.7"
        />
        <rect
          x="6.3"
          y="31.2"
          transform="matrix(-.707 -.707 .707 -.707 -8.794 60.71)"
          width="3.7"
          height="2"
        />
        <rect
          x="9.9"
          y="28.2"
          transform="matrix(-.707 -.707 .707 -.707 1.863 59.125)"
          width="6.6"
          height="2"
        />
        <rect
          x="14.3"
          y="23.2"
          transform="matrix(-.707 -.707 .707 -.707 10.52 52.71)"
          width="3.7"
          height="2"
        />
      </g>
    </svg>
  );
}
With react-icons
import { FcRuler } from "react-icons/fc";

export function Example() {
  return <FcRuler className="size-5" />;
}
ruler.svg
<svg
  version="1"
  viewBox="0 0 48 48"
  enable-background="new 0 0 48 48"
  stroke="currentColor"
  fill="currentColor"
  stroke-width="0"
  width="1em"
  height="1em"
  xmlns="http://www.w3.org/2000/svg"
>
  <rect
    x="16.7"
    y="1.6"
    transform="matrix(-.707 -.707 .707 -.707 24 57.941)"
    fill="#FFA000"
    width="14.6"
    height="44.8"
  />
  <g fill="#9E6400">
    <rect
      x="17.9"
      y="20.2"
      transform="matrix(-.707 -.707 .707 -.707 21.177 51.125)"
      width="6.6"
      height="2"
    />
    <rect
      x="22.3"
      y="15.2"
      transform="matrix(-.707 -.707 .707 -.707 29.833 44.71)"
      width="3.7"
      height="2"
    />
    <rect
      x="25.9"
      y="12.2"
      transform="matrix(-.707 -.707 .707 -.707 40.49 43.125)"
      width="6.6"
      height="2"
    />
    <rect
      x="31.2"
      y="6.3"
      transform="matrix(.707 -.707 .707 .707 3.643 25.147)"
      width="2"
      height="3.7"
    />
    <rect
      x="6.3"
      y="31.2"
      transform="matrix(-.707 -.707 .707 -.707 -8.794 60.71)"
      width="3.7"
      height="2"
    />
    <rect
      x="9.9"
      y="28.2"
      transform="matrix(-.707 -.707 .707 -.707 1.863 59.125)"
      width="6.6"
      height="2"
    />
    <rect
      x="14.3"
      y="23.2"
      transform="matrix(-.707 -.707 .707 -.707 10.52 52.71)"
      width="3.7"
      height="2"
    />
  </g>
</svg>
Attribution
"Ruler" icon from Flat Color Icons (https://github.com/icons8/flat-color-icons), licensed under MIT license.

Ruler icon in other sets