{"id":21890750,"url":"https://github.com/chantastic/8-point","last_synced_at":"2025-04-15T13:34:41.389Z","repository":{"id":57093216,"uuid":"78683883","full_name":"chantastic/8-point","owner":"chantastic","description":"A set of 8 point grid classes","archived":false,"fork":false,"pushed_at":"2018-04-27T17:54:36.000Z","size":38,"stargazers_count":28,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-28T20:36:39.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chantastic.org/8-point/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chantastic.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-11T22:01:34.000Z","updated_at":"2021-04-10T14:45:45.000Z","dependencies_parsed_at":"2022-08-22T20:40:25.027Z","dependency_job_id":null,"html_url":"https://github.com/chantastic/8-point","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2F8-point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2F8-point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2F8-point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2F8-point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chantastic","download_url":"https://codeload.github.com/chantastic/8-point/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248750075,"owners_count":21155685,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-28T12:16:39.820Z","updated_at":"2025-04-15T13:34:41.351Z","avatar_url":"https://github.com/chantastic.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 8-point\nA set of 8 point grid classes.\n\n## Why\n\n[8-point grid](https://spec.fm/specifics/8-pt-grid) is a thing.\nIt's a good thing at that.\n\n8 has a lot of advantages as a number.\nIt's chief adavntage is that it bifurcates evenly.\nSo devices that do any type of strange scaling don't end up with half-values.\n\nThis is good.\n\nThis lib just offers a set of classes for using an 8-point soft grid with the css box model. It incluedes classes for `margin`, `padding`, `TRBL`, `width`, `height`, and \"size\".\n\n## Anatomy\n\nThe class names break down like this:\n\n```txt\n{acronymized CSS property}-{n × 8px}\n```\n\nFor example:\n\n```css\n.p-1 { padding:  8px }  /* 1 × 8px */\n.p-2 { padding: 16px } /* 2 × 8px */\n.p-3 { padding: 24px } /* 3 × 8px */\n```\n\nYou can use side-specific properties as well:\n\n```css\n.mt-1 { margin-top: 8px }\n.mr-1 { margin-right: 8px }\n.mb-1 { margin-bottom: 8px }\n.ml-1 { margin-left: 8px }\n\n/* x and y added for convenience */\n\n.my-1 { margin-top: 8px; margin-bottom: 8px }\n.mx-1 { margin-right: 8px; margin-left: 8px }\n```\n\n## Legend\n\n#### properties\n\n```txt\nm  = margin\nmt = margin-top\nmr = margin-right\nmb = margin-bottom\nml = margin-left\nmy = margin-top; margin-bottom\nmx = margin-right; margin-left\n\np  = padding\npt = padding-top\npr = padding-right\npb = padding-bottom\npl = padding-left\npy = padding-top; padding-bottom\npx = padding-right; margin-left\n\nt = top\nr = right\nb = bottom\nl = left\n\nlh = line-height\n\nw = width\nh = height\n\ns = width; height\n```\n\n#### values\n\n```txt\n1 = 8px\n2 = 16px\n3 = 24px\n4 = 32px\n5 = 40px\n6 = 48px\n7 = 56px\n8 = 64px\n```\n\n## Install\nNPM:\n`npm i -S 8-point`\n\n## Use\n```html\n\u003cdiv class=\"m-1 p-3\"\u003e\n  This has 8px margin and 24px padding.\n\u003c/div\u003e\n\n\u003cimg\n  src=\"./path/img.ext\"\n  class=\"s-8\"\n  alt=\"this img is 64px high and wide\"\n/\u003e\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2016 Michael Chan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2F8-point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchantastic%2F8-point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2F8-point/lists"}