# Shapes, eyes and frames

URL: https://qrdx.dev/docs/styles
Source: https://github.com/qrdxinc/qrdx/blob/main/apps/docs/content/docs/styles.mdx

Every body pattern, eye frame, eye center and call-to-action frame, drawn live by the qrdx renderer and decoded in your browser, with the value to use in code.

This page draws every shape the library offers, with its option name and the value to copy into `bodyPattern`, `cornerEyePattern`, `cornerEyeDotPattern` or `frame.style`. Use it to pick a look before you write code. Each tile is drawn by the same renderer as your downloads and decoded in your browser with jsQR, one at a time, so the **Scans** badge is a live result.

Every value is also tested in the package (`packages/qrdx/tests/catalog-*.test.ts`): it decodes through a phone-camera model (contrast loss and a quarter-module blur) at 4, 6 and 9 pixels per module, next to every other body, eye and center, at error correction L, M, Q and H, at 148 px and 1024 px, light-on-dark, with brand colors and with a center logo. A few pairings are weak together; see [Pairs to avoid](#pairs-to-avoid).

## Body patterns [#body-patterns]

The shape of the data modules (`bodyPattern`, default `circle`). Connected styles (`liquid`, `classy`) merge neighboring modules into one outline. `random-dots` and `mosaic` vary per module but are deterministic: the same value always draws the same code.

- `circle`: Circle
- `circle-large`: Circle Large
- `square`: Square
- `diamond`: Diamond
- `circle-mixed`: Mixed
- `pacman`: Pacman
- `rounded`: Rounded
- `small-square`: Small Square
- `vertical-line`: Vertical Line
- `horizontal-line`: Horizontal Line
- `liquid`: Liquid
- `liquid-horizontal`: Liquid Rows
- `liquid-vertical`: Liquid Columns
- `classy`: Classy
- `classy-rounded`: Classy Rounded
- `leaf`: Leaf
- `plus`: Plus
- `hexagon`: Hexagon
- `star`: Star
- `heart`: Heart
- `random-dots`: Random Dots
- `mosaic`: Mosaic
- `octagon`: Octagon

## Eye frames [#eye-frames]

The outer ring of the three corner markers (`cornerEyePattern`, default `gear`). `leaf`, `leaf-reverse`, `drop`, `petal` and `bud` turn each eye so it faces the corner of the code. Each tile pairs the eye with its recommended center.

- `square`: Square
- `rounded`: Rounded
- `gear`: Gear
- `circle`: Circle
- `diya`: Diya
- `extra-rounded`: Extra Rounded
- `message`: Message
- `pointy`: Pointy
- `leaf`: Leaf
- `drop`: Drop
- `octagon`: Octagon
- `bevel`: Bevel
- `squircle`: Squircle
- `cushion`: Cushion
- `shield`: Shield
- `petal`: Petal
- `leaf-reverse`: Leaf Reverse
- `porthole`: Porthole
- `notch`: Notch
- `plus`: Plus
- `bud`: Bud
- `bowl`: Bowl

## Eye centers [#eye-centers]

The solid center of each corner marker (`cornerEyeDotPattern`, default `circle`), shown inside square eyes.

- `square`: Square
- `rounded`: Rounded
- `circle`: Circle
- `message`: Message
- `message-reverse`: Message Reverse
- `diya`: Diya
- `diya-reverse`: Diya Reverse
- `rounded-triangle`: Rounded Triangle
- `leaf`: Leaf
- `drop`: Drop
- `plus`: Plus
- `cross-rounded`: Rounded Cross
- `hexagon`: Hexagon
- `octagon`: Octagon
- `flower`: Flower
- `heart`: Heart
- `squircle`: Squircle
- `dots`: Dots
- `extra-rounded`: Extra Rounded
- `leaf-reverse`: Leaf Reverse
- `drop-reverse`: Drop Reverse
- `cushion`: Cushion

## Frames [#frames]

Call-to-action frames are drawn around the code, so the code and its quiet zone are never covered and the downloaded image grows to fit. Each built-in frame below is a frame spec, drawn by the same engine as the [official and community frames](https://qrdx.dev/docs/features/frames). Every frame takes `text` (up to 24 characters), `color`, `textColor` and `fontScale` (0.5 to 1.5), except that `arrow`, `standard-box`, `square-border`, `striked-box` and `halloween` are artwork with no label. `banner-top-bottom`, `circle`, `menu-card` and `dot-ring` also show `secondaryText`; `gradient-border` runs from `color` to `secondaryColor`.

- `banner-bottom`: Banner
- `banner-top`: Top banner
- `border`: Border
- `rounded-border`: Rounded
- `speech-bubble`: Bubble
- `banner-top-bottom`: Two banners
- `speech-bubble-top`: Bubble top
- `chat-bubble`: Chat
- `circle`: Circle
- `polaroid`: Polaroid
- `phone`: Phone
- `ticket`: Ticket
- `badge`: Ribbon
- `envelope`: Envelope
- `tag`: Tag
- `menu-card`: Menu card
- `sticker`: Sticker
- `gradient-border`: Gradient
- `focus`: Focus
- `arrow`: Arrow
- `standard-box`: Standard box
- `square-border`: Square border
- `striked-box`: Striked box
- `pumpkin`: Pumpkin
- `dot-ring`: Dot ring

```tsx title="components/framed-code.tsx"
import { QRCode } from "qrdx";

export function FramedCode() {
  return (
    <QRCode
      value="https://example.com"
      bodyPattern="liquid"
      cornerEyePattern="leaf"
      cornerEyeDotPattern="leaf"
      frame={{ style: "circle", text: "Scan me", secondaryText: "example.com" }}
    />
  );
}
```

## Pairs to avoid [#pairs-to-avoid]

A few pairings of shapes that scan on their own fail together in the package's decode tests. The playground does not let you pick them together, and the scan score warns about them (`style-pair`):

- `diamond` bodies next to `square` eyes, `pacman` next to `rounded`, and `small-square` next to `square` or `rounded` eyes are missed up close.

`circle` eyes read in both decoders the tests use (jsQR and ZXing) but are marked **caution**: some scanner apps miss them. The pairs ship in the package as `WEAK_BODY_EYES`, and `getStylePairRisk(props)` returns the warning for a style.

## Retired shapes [#retired-shapes]

`curly` eyes and `diamond`, `star` and `banner` centers were removed because they do not scan reliably: ZXing (the decoder in most Android scanners) misses curly eyes and diamond and star centers at phone distances, and jsQR misses banner centers in every sharp render. Codes saved with them still load and render exactly as before, and the image API still draws them for existing links, but no picker, preset or AI theme offers them. Their names are kept only as deprecated values (`RETIRED_CORNER_EYE_PATTERNS`, `RETIRED_CORNER_EYE_DOT_PATTERNS`).

## Related [#related]

- [Choose module and eye shapes](https://qrdx.dev/docs/features/patterns): Module scale, circle and heart codes, custom silhouettes and per-eye colors.
- [Frames, scan score and print files](https://qrdx.dev/docs/features/frames): Frame options, the official frame library and frame specs.
- [Basic usage](https://qrdx.dev/docs/usage): Where these props go on the component.
