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 · FcRules

Rules icon

A free rules 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/rules.json
components/icons/flat-color-rules.tsx
import * as React from "react";

/**
 * Rules from Flat Color Icons (https://github.com/icons8/flat-color-icons), MIT.
 * Via Cuelark UI: ui.cuelark.com/icons/flat-color/rules. Sized in em, colored by currentColor.
 */
export function FcRulesIcon(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}
    >
      <path fill="#42A5F5" d="M39,45H9c0,0-3-0.1-3-8h36C42,44.9,39,45,39,45z" />
      <rect x="8" y="3" fill="#90CAF9" width="32" height="34" />
      <g fill="#1976D2">
        <rect x="18" y="15" width="16" height="2" />
        <rect x="18" y="19" width="16" height="2" />
        <rect x="18" y="23" width="16" height="2" />
        <rect x="18" y="27" width="16" height="2" />
        <rect x="18" y="31" width="16" height="2" />
      </g>
      <g fill="#1976D2">
        <rect x="14" y="15" width="2" height="2" />
        <rect x="14" y="19" width="2" height="2" />
        <rect x="14" y="23" width="2" height="2" />
        <rect x="14" y="27" width="2" height="2" />
        <rect x="14" y="31" width="2" height="2" />
      </g>
    </svg>
  );
}
With react-icons
import { FcRules } from "react-icons/fc";

export function Example() {
  return <FcRules className="size-5" />;
}
rules.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"
>
  <path fill="#42A5F5" d="M39,45H9c0,0-3-0.1-3-8h36C42,44.9,39,45,39,45z" />
  <rect x="8" y="3" fill="#90CAF9" width="32" height="34" />
  <g fill="#1976D2">
    <rect x="18" y="15" width="16" height="2" />
    <rect x="18" y="19" width="16" height="2" />
    <rect x="18" y="23" width="16" height="2" />
    <rect x="18" y="27" width="16" height="2" />
    <rect x="18" y="31" width="16" height="2" />
  </g>
  <g fill="#1976D2">
    <rect x="14" y="15" width="2" height="2" />
    <rect x="14" y="19" width="2" height="2" />
    <rect x="14" y="23" width="2" height="2" />
    <rect x="14" y="27" width="2" height="2" />
    <rect x="14" y="31" width="2" height="2" />
  </g>
</svg>
Attribution
"Rules" icon from Flat Color Icons (https://github.com/icons8/flat-color-icons), licensed under MIT license.