{"id":18032360,"url":"https://github.com/dmitriz/design-maths","last_synced_at":"2026-02-25T19:31:22.672Z","repository":{"id":146746594,"uuid":"56975683","full_name":"dmitriz/design-maths","owner":"dmitriz","description":"Layout mathematics for Web Design","archived":false,"fork":false,"pushed_at":"2016-04-25T02:12:37.000Z","size":3,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-27T09:39:59.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/dmitriz.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-24T14:23:13.000Z","updated_at":"2016-05-13T19:14:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"9a116cd0-82dd-47be-8f2a-169c01c038de","html_url":"https://github.com/dmitriz/design-maths","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dmitriz/design-maths","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fdesign-maths","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fdesign-maths/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fdesign-maths/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fdesign-maths/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmitriz","download_url":"https://codeload.github.com/dmitriz/design-maths/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmitriz%2Fdesign-maths/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29836200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T19:08:47.527Z","status":"ssl_error","status_checked_at":"2026-02-25T18:59:04.705Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10-30T10:13:09.151Z","updated_at":"2026-02-25T19:31:22.655Z","avatar_url":"https://github.com/dmitriz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# design-maths\nLayout mathematics for Web Design\n\n\n# Typography\n[Google Material Design Spec on Typography](http://www.google.com/design/spec/style/typography.html)\n\n## Type weights\nSix weights: Thin, Light, Regular, Medium, Bold, and Black.\n\nThe basic set of styles are based on a typographic scale:\n\n```\n// semantics\n caption body   subhead title  headline display 1/2/3/4\n\n// scaleable pixels\n 12,     14,    16,     20,    24,      34,     45,     56,     112\n\n// ratio: x_{n+1}/x_n\n 1,      1.166, 1.143,  1.25,  1.2,     1.417,  1.323,  1.244,  2\n\n// ratio: x_{n+2}/x_n\n                1.333,  1.428, 1.5,     1.7,    1.875,  1.647   2.488\n\n 1,    1.166,   1.333,  1.666, 2,       2.833,  3.75,   4.666,  9.333\n.857,  1,       1.143,  1.428, 1.714,   2.428,  3.214,  4,      8\n\n\n// weights\n                        500,   400,     400,    400,    400,    300\n\n\n// leading\n 20,      24,    24,    28,    32,      40,     48\n\n// ratio\n 1.666,   1.714, 1.5,   1.4,   1.333,   1.176   1.0666\n```\n\nPage Navigation/ App Bar: Medium 20sp\n\nButton: Medium 14sp, all caps\n\n\n## Line height\n\nLine wrapping only applies to Body, Subhead, Headline, and the smaller Display styles. All other styles should exist as single lines.\n\n\n# Layout\n[Google Spec Layout - Structure](htps://www.google.com/design/spec/layout/structure.html)\n\n## Grid\n\n### Mobile 48/56dp, Tablet/Desktop 64dp\n\nHorizontal: Gutter 16\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Fdesign-maths","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmitriz%2Fdesign-maths","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmitriz%2Fdesign-maths/lists"}