How to Design a Custom Cursor: Size, Hotspot and Contrast

Guides

Want to design a custom cursor of your own? Good cursor design comes down to three things: the right canvas size, a hotspot in the right place, and enough contrast to read on any page. Let's build it in that order.

Think of a cursor as a tiny sign you will look at all day. It has to be clear at a very small size, and it has to point to exactly the right spot. Here is how designers handle that.

Start with the canvas size

Browsers limit how large a cursor image can be. MDN, the web documentation project, says the CSS specification sets no limit, but browsers commonly do. Firefox and Chromium cap cursor images at 128x128 pixels by default, and MDN recommends keeping them to 32x32 pixels. An image that is too big is generally ignored, and you get the plain arrow instead.

So do not start with a huge canvas. Work at 32x32 pixels, or draw larger and scale it down to check it. If the idea only works when it is big, it is not a cursor idea yet.

Do and Don't: size

Use a transparent background

A cursor should have no box around it. Export with a transparent background so only the shape shows. MDN says browsers must support PNG, and SVG with a natural size. Other common image formats often work too, but PNG is the safe pick.

Do and Don't: format

Give it an outline for contrast

A cursor moves over pale pages, dark pages, photos and videos. A single color will disappear on one of them. The fix is an outline.

A light shape with a dark outline, or the other way round, reads on almost anything. Bright, saturated colors also help. If you want ideas, look at how the Neon collection uses glowing color, or the clean shapes in the Minimal Gradient collection. Studying existing designs is the fastest way to learn.

Do and Don't: contrast

If a hard-to-see pointer is the real problem, our guide to making the mouse pointer easier to see covers system settings too.

Place the hotspot on the tip

The hotspot is the exact pixel that does the clicking. MDN describes it as the precise position within the cursor that is being pointed to. It is measured from the top-left corner of the image, which is 0 0. If no hotspot is given, it defaults to the top-left corner.

For an arrow, the hotspot belongs at the very tip. For a round shape, it can be the center. If you put it in the wrong place, the cursor looks right but clicks feel off by a few pixels.

Do and Don't: hotspot

Design a pair: cursor and pointer

On iLove Cursor each design has two pictures. The cursor is the normal state. The pointer shows when you hover over a link or button. Making both helps the user know when something is clickable.

Keep the pair related. Use the same colors and style, but change something small, such as a different pose, glow or expression. Try a few on the site to see how the pairs behave. Open any design, press Preview and use the HOVER ME box, for example the Kawaii Frog.

Test on light and dark pages

Before you call it finished, test your design in several places.

  1. A plain white page.
  2. A dark page or dark mode.
  3. A page with photos.
  4. Over a link or button.

Ask yourself whether you can find the cursor in one second. If you cannot, add contrast or simplify the shape.

Use your design with Menu Quick Set

Once you have an image, you can try it as your cursor with the right-click feature described in the Menu Quick Set guide. It is off by default.

The change shows straight away on the page. The full steps are at Menu Quick Set. If something does not show, check our troubleshooting guide.

Final checklist

Not ready to draw yet? Browse the collections for inspiration, or see our Christmas cursors for examples of consistent themes.

Source

Related posts