Robert Crocker

Craft obsessed developer who designs.

← Back to the lab

29Paint Order

II · Drawing with SVG

paint-order: stroke fill — outlined type without the crusty overlap.

Source

2 files
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>CodeSandbox</title>
  </head>
  <body>
    <style>
      h1 {
        -webkit-text-stroke: 6px hotpink;
        color: var(--page-bg-color);
        paint-order: stroke fill;
      }
    </style>

    <h1>Hello World!</h1>
  </body>
</html>