How to generate keyboard key graphics?

I'm trying to figure out how to create keyboard key graphics for a tutorial rather than using text, like in the attached image. How can I do this? Thanks!


Posted on Mar 5, 2020 8:03 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 6, 2020 8:17 AM

Additional to the other suggestions here, you might consider searching for a vector Apple individual keys clipart source. The individual keys should be on a transparent background. This clipart most always has some cost associated with it, but can look very professional too.


If you attempt screen captures of keyboard layouts, you will have low resolution images that should have post-processing performed to remove background, or shadow artifacts from around the key image.


Or a styled HTML approach. There are better examples of button styling available, but this was handy:


and was generated in Safari 13.0.5, or Firefox 73.0.1 with the following HTML code where the Apple symbols were introduced from the character palette's Technical Symbols category.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        body {
          padding:20px;
          height:100%;
          font: 20px Helvetica, serif;
          color: #555;
        }

        .keyshape {
          /*Box Properties*/
          display:inline-block;
          width:48px;
          height:48px;
          margin: 0px 4px;
          background: #fff;
          border-radius: 4px;
          box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
        /*Text Properties*/
          font: 18px/48px Helvetica, serif ;
          text-transform: uppercase;
          text-align: center;
          color: #666;
        }
    </style>
</head>
<body>
  <p>Use this command:&nbsp;&nbsp;<span class="keyshape">⌘</span> + <span class="keyshape">T</span>
</p>
  <p>Or these:&nbsp;&nbsp;<span class="keyshape">⌥</span> + <span class="keyshape">⌘</span> + <span class="keyshape">I</span>
</p>
</body>
</html>


One enters their two or three key combination characters, saves the HTML (.html) file, and double-clicks it in the Finder to open it in a browser. Then screen capture the key sequence and copy/paste into your document.

10 replies
Question marked as Top-ranking reply

Mar 6, 2020 8:17 AM in response to OMMBoy

Additional to the other suggestions here, you might consider searching for a vector Apple individual keys clipart source. The individual keys should be on a transparent background. This clipart most always has some cost associated with it, but can look very professional too.


If you attempt screen captures of keyboard layouts, you will have low resolution images that should have post-processing performed to remove background, or shadow artifacts from around the key image.


Or a styled HTML approach. There are better examples of button styling available, but this was handy:


and was generated in Safari 13.0.5, or Firefox 73.0.1 with the following HTML code where the Apple symbols were introduced from the character palette's Technical Symbols category.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        body {
          padding:20px;
          height:100%;
          font: 20px Helvetica, serif;
          color: #555;
        }

        .keyshape {
          /*Box Properties*/
          display:inline-block;
          width:48px;
          height:48px;
          margin: 0px 4px;
          background: #fff;
          border-radius: 4px;
          box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.5);
        /*Text Properties*/
          font: 18px/48px Helvetica, serif ;
          text-transform: uppercase;
          text-align: center;
          color: #666;
        }
    </style>
</head>
<body>
  <p>Use this command:&nbsp;&nbsp;<span class="keyshape">⌘</span> + <span class="keyshape">T</span>
</p>
  <p>Or these:&nbsp;&nbsp;<span class="keyshape">⌥</span> + <span class="keyshape">⌘</span> + <span class="keyshape">I</span>
</p>
</body>
</html>


One enters their two or three key combination characters, saves the HTML (.html) file, and double-clicks it in the Finder to open it in a browser. Then screen capture the key sequence and copy/paste into your document.

Mar 5, 2020 8:29 PM in response to OMMBoy

Hello, OMMBOY.


What you're looking for cannot be generated by the macOS itself. You're going to have to turn to software to design those graphics. Alternatively, you might try a google search for keyboard graphic images and see what you find on the interwebs.


To be honest, you have the makings of a good start for home-brewed graphics right there in your attached image. White keys on a dark background overlaid w text isn't a bad thing.


Having said that, I just took this screenshot of the Keyboard Viewer expanded to my full screen size on iMac.

Copy/Paste and image editing, anyone?




For more info about screen shots please see:

How to take a screenshot on your Mac - Apple Support



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to generate keyboard key graphics?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.