{"id":21890768,"url":"https://github.com/chantastic/rem-point","last_synced_at":"2025-03-22T03:11:35.008Z","repository":{"id":57352962,"uuid":"79153301","full_name":"chantastic/rem-point","owner":"chantastic","description":"Soft-grid classes using rem","archived":false,"fork":false,"pushed_at":"2017-01-16T19:49:18.000Z","size":30,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-27T19:45:54.021Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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":null,"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-16T19:46:05.000Z","updated_at":"2019-06-25T14:18:37.000Z","dependencies_parsed_at":"2022-09-16T08:42:09.762Z","dependency_job_id":null,"html_url":"https://github.com/chantastic/rem-point","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Frem-point","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Frem-point/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Frem-point/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chantastic%2Frem-point/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chantastic","download_url":"https://codeload.github.com/chantastic/rem-point/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244898447,"owners_count":20528341,"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:45.308Z","updated_at":"2025-03-22T03:11:34.988Z","avatar_url":"https://github.com/chantastic.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rem-point\nSoft-grid classes using rem\n\n## Why\n\n[rem-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.\nBut maybe you prefer to use rem.\nWith this lib, each step is `.5rem`.\n\nThese classes\n\nThis lib just offers a set of classes for using an rem-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 × .5rem}\n```\n\nFor example:\n\n```css\n.p-1 { padding: .5rem }  /* 1 × .5rem */\n.p-2 { padding: 1rem }   /* 2 × .5rem */\n.p-3 { padding: 1.5rem } /* 3 × .5rem */\n```\n\nYou can use side-specific properties as well:\n\n```css\n.mt-1 { margin-top: .5rem }\n.mr-1 { margin-right: .5rem }\n.mb-1 { margin-bottom: .5rem }\n.ml-1 { margin-left: .5rem }\n\n/* x and y added for convenience */\n\n.my-1 { margin-top: .5rem; margin-bottom: .5rem }\n.mx-1 { margin-right: .5rem; margin-left: .5rem }\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\nw = width\nh = height\n\ns = width; height\n```\n\n#### values\n\n```txt\n1 = .5rem\n2 = 1rem\n3 = 1.5rem\n4 = 2rem\n5 = 2.5rem\n6 = 3rem\n7 = 3.5rem\n8 = 4rem\n```\n\n## Install\nNPM:\n`npm i -S rem-point`\n\n## Use\n```html\n\u003cdiv class=\"m-1 p-3\"\u003e\n  This has .5rem margin and 1.5rem padding.\n\u003c/div\u003e\n\n\u003cimg\n  src=\"./path/img.ext\"\n  class=\"s-8\"\n  alt=\"this img is 4rem high and wide\"\n/\u003e\n```\n\n## License\n\nMIT License\n\nCopyright (c) 2017 Michael Chan\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Frem-point","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchantastic%2Frem-point","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchantastic%2Frem-point/lists"}