{"id":28,"date":"2026-09-30T16:59:37","date_gmt":"2026-09-30T16:59:37","guid":{"rendered":"https:\/\/benjaminolsen.dev\/?page_id=28"},"modified":"2026-09-30T19:12:39","modified_gmt":"2026-09-30T19:12:39","slug":"spacing-scale-generator","status":"publish","type":"page","link":"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/","title":{"rendered":"Spacing Scale Generator"},"content":{"rendered":"<div class=\"oxy-container-28-128 oxy-container bo-page\"><header class=\"oxy-container-28-105 oxy-container bo-header\"><a class=\"oxy-text-link-28-100 oxy-text-link bo-brand\" href=\"\/\" target=\"_self\">\nBenjamin Olsen\n<\/a><nav class=\"oxy-container-28-104 oxy-container bo-nav\" aria-label=\"Main navigation\"><a class=\"oxy-text-link-28-101 oxy-text-link bo-nav-link\" href=\"https:\/\/benjaminolsen.dev\/index.php\/tools\/\" target=\"_self\">\nTools\n<\/a><a class=\"oxy-text-link-28-102 oxy-text-link bo-nav-link\" href=\"https:\/\/benjaminolsen.dev\/index.php\/guides\/\" target=\"_self\">\nLearn\n<\/a><a class=\"oxy-text-link-28-103 oxy-text-link bo-nav-link\" href=\"https:\/\/benjaminolsen.dev\/index.php\/about\/\" target=\"_self\">\nAbout\n<\/a><\/nav><\/header><main class=\"oxy-container-28-124 oxy-container bo-main\"><section class=\"oxy-container-28-109 oxy-container bo-page-head\"><a class=\"oxy-text-link-28-106 oxy-text-link bo-link\" href=\"https:\/\/benjaminolsen.dev\/index.php\/tools\/\" target=\"_self\">\nAll tools\n<\/a><h1 class=\"oxy-text-28-107 oxy-text bo-page-title\">\nSpacing Scale Generator\n<\/h1><p class=\"oxy-text-28-108 oxy-text bo-intro\">\nChoose a starting size and a ratio. Create a consistent set of spacing variables for your design.\n<\/p><\/section><section class=\"oxy-container-28-123 oxy-container bo-workspace\" data-tool=\"spacing\" aria-label=\"Spacing Scale Generator\"><div class=\"oxy-container-28-116 oxy-container bo-form\"><div class=\"oxy-container-28-114 oxy-container bo-fields\"><label class=\"oxy-text-28-110 oxy-text bo-field\" for=\"bo-start\">\nStarting space (px)<input class=\"bo-input\" id=\"bo-start\" data-key=\"start\" type=\"number\" value=\"8\" min=\"0.1\" step=\"any\">\n<\/label><label class=\"oxy-text-28-111 oxy-text bo-field\" for=\"bo-ratio\">\nScale ratio<input class=\"bo-input\" id=\"bo-ratio\" data-key=\"ratio\" type=\"number\" value=\"1.5\" min=\"1.01\" step=\"any\">\n<\/label><label class=\"oxy-text-28-112 oxy-text bo-field\" for=\"bo-count\">\nNumber of steps<input class=\"bo-input\" id=\"bo-count\" data-key=\"count\" type=\"number\" value=\"8\" min=\"2\" max=\"12\" step=\"1\">\n<\/label><label class=\"oxy-text-28-113 oxy-text bo-field\" for=\"bo-base\">\nRoot font size (px)<input class=\"bo-input\" id=\"bo-base\" data-key=\"base\" type=\"number\" value=\"16\" min=\"1\" step=\"any\">\n<\/label><\/div><p class=\"oxy-text-28-115 oxy-text bo-note\">\nCopy these custom properties into your stylesheet\u2019s :root block. Use var(--space-3), for example, as a gap or padding value. The scale is a starting point; adjust it to suit your content.\n<\/p><\/div><div class=\"oxy-container-28-122 oxy-container bo-result\"><p class=\"oxy-text-28-117 oxy-text bo-eyebrow\">\nYour result\n<\/p><pre class=\"oxy-text-28-118 oxy-text bo-code\" data-result=\"code\" aria-live=\"polite\">\n\n<\/pre><button class=\"oxy-text-link-28-119 oxy-text-link bo-button\" target=\"_self\" type=\"button\" data-action=\"copy\">\nCopy result\n<\/button><p class=\"oxy-text-28-120 oxy-text bo-status\" data-result=\"status\" role=\"status\">\n\n<\/p><div class=\"oxy-text-28-121 oxy-text bo-preview\" data-result=\"preview\">\nType that adapts.\n<\/div><\/div><\/section><\/main><footer class=\"oxy-container-28-127 oxy-container bo-footer\"><p class=\"oxy-text-28-125 oxy-text\">\nBenjamin Olsen \u00b7 Useful tools. Practical guides.\n<\/p><a class=\"oxy-text-link-28-126 oxy-text-link bo-nav-link\" href=\"https:\/\/benjaminolsen.dev\/index.php\/guides\/\" target=\"_self\">\nExplore topics\n<\/a><\/footer><\/div>","protected":false},"excerpt":{"rendered":"<p>Benjamin Olsen Tools Learn About All tools Spacing Scale Generator Choose a starting size and a ratio. Create a consistent set of spacing variables for your design. Starting space (px) Scale ratio Number of steps Root font size (px) Copy these custom properties into your stylesheet\u2019s :root block. Use var(&#8211;space-3), for example, as a gap [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_oxygen_hide_in_design_set":false,"_oxygen_tags":"","footnotes":""},"class_list":["post-28","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>CSS Spacing Scale Generator | Benjamin Olsen<\/title>\n<meta name=\"description\" content=\"Create reusable CSS spacing variables from a starting size, scale ratio and root font size. Preview each token and copy the complete stylesheet block.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/\" \/>\n<meta property=\"og:locale\" content=\"da_DK\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CSS Spacing Scale Generator | Benjamin Olsen\" \/>\n<meta property=\"og:description\" content=\"Create reusable CSS spacing variables from a starting size, scale ratio and root font size. Preview each token and copy the complete stylesheet block.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/\" \/>\n<meta property=\"og:site_name\" content=\"Benjamin Olsen\" \/>\n<meta property=\"article:modified_time\" content=\"2026-09-30T19:12:39+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/benjaminolsen.dev\\\/index.php\\\/spacing-scale-generator\\\/\",\"url\":\"https:\\\/\\\/benjaminolsen.dev\\\/index.php\\\/spacing-scale-generator\\\/\",\"name\":\"CSS Spacing Scale Generator | Benjamin Olsen\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/benjaminolsen.dev\\\/#website\"},\"datePublished\":\"2026-09-30T16:59:37+00:00\",\"dateModified\":\"2026-09-30T19:12:39+00:00\",\"description\":\"Create reusable CSS spacing variables from a starting size, scale ratio and root font size. Preview each token and copy the complete stylesheet block.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/benjaminolsen.dev\\\/index.php\\\/spacing-scale-generator\\\/#breadcrumb\"},\"inLanguage\":\"da-DK\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/benjaminolsen.dev\\\/index.php\\\/spacing-scale-generator\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/benjaminolsen.dev\\\/index.php\\\/spacing-scale-generator\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/benjaminolsen.dev\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spacing Scale Generator\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/benjaminolsen.dev\\\/#website\",\"url\":\"https:\\\/\\\/benjaminolsen.dev\\\/\",\"name\":\"Benjamin Olsen\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/benjaminolsen.dev\\\/#\\\/schema\\\/person\\\/aee4e89bcb6704d860babf7ba16a0b8d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/benjaminolsen.dev\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"da-DK\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/benjaminolsen.dev\\\/#\\\/schema\\\/person\\\/aee4e89bcb6704d860babf7ba16a0b8d\",\"name\":\"Benjamin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"da-DK\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g\",\"caption\":\"Benjamin\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g\"},\"sameAs\":[\"http:\\\/\\\/benjaminolsen.dev\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CSS Spacing Scale Generator | Benjamin Olsen","description":"Create reusable CSS spacing variables from a starting size, scale ratio and root font size. Preview each token and copy the complete stylesheet block.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/","og_locale":"da_DK","og_type":"article","og_title":"CSS Spacing Scale Generator | Benjamin Olsen","og_description":"Create reusable CSS spacing variables from a starting size, scale ratio and root font size. Preview each token and copy the complete stylesheet block.","og_url":"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/","og_site_name":"Benjamin Olsen","article_modified_time":"2026-09-30T19:12:39+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/","url":"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/","name":"CSS Spacing Scale Generator | Benjamin Olsen","isPartOf":{"@id":"https:\/\/benjaminolsen.dev\/#website"},"datePublished":"2026-09-30T16:59:37+00:00","dateModified":"2026-09-30T19:12:39+00:00","description":"Create reusable CSS spacing variables from a starting size, scale ratio and root font size. Preview each token and copy the complete stylesheet block.","breadcrumb":{"@id":"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/#breadcrumb"},"inLanguage":"da-DK","potentialAction":[{"@type":"ReadAction","target":["https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/benjaminolsen.dev\/index.php\/spacing-scale-generator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/benjaminolsen.dev\/"},{"@type":"ListItem","position":2,"name":"Spacing Scale Generator"}]},{"@type":"WebSite","@id":"https:\/\/benjaminolsen.dev\/#website","url":"https:\/\/benjaminolsen.dev\/","name":"Benjamin Olsen","description":"","publisher":{"@id":"https:\/\/benjaminolsen.dev\/#\/schema\/person\/aee4e89bcb6704d860babf7ba16a0b8d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/benjaminolsen.dev\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"da-DK"},{"@type":["Person","Organization"],"@id":"https:\/\/benjaminolsen.dev\/#\/schema\/person\/aee4e89bcb6704d860babf7ba16a0b8d","name":"Benjamin","image":{"@type":"ImageObject","inLanguage":"da-DK","@id":"https:\/\/secure.gravatar.com\/avatar\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g","caption":"Benjamin"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/fda08b9a3a73cd1a57fc39c2a767fb6441b2dbf176857221a8da88161187eeb1?s=96&d=mm&r=g"},"sameAs":["http:\/\/benjaminolsen.dev"]}]}},"_links":{"self":[{"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/pages\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/comments?post=28"}],"version-history":[{"count":4,"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/pages\/28\/revisions"}],"predecessor-version":[{"id":619,"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/pages\/28\/revisions\/619"}],"wp:attachment":[{"href":"https:\/\/benjaminolsen.dev\/index.php\/wp-json\/wp\/v2\/media?parent=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}