{"id":48055432,"url":"https://github.com/jcbhmr/ghmd.css","last_synced_at":"2026-04-04T14:26:39.864Z","repository":{"id":298880984,"uuid":"694721409","full_name":"jcbhmr/ghmd.css","owner":"jcbhmr","description":"🎨 Make your webpage look like a GitHub Markdown document","archived":false,"fork":false,"pushed_at":"2023-09-22T20:49:26.000Z","size":638,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-13T11:58:05.071Z","etag":null,"topics":["css","css-theme","dark-theme","gfm","github","github-markdown","light-theme","markdown","style","theme"],"latest_commit_sha":null,"homepage":"https://jcbhmr.me/ghmd.css","language":"SCSS","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/jcbhmr.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,"zenodo":null}},"created_at":"2023-09-21T14:59:29.000Z","updated_at":"2023-09-22T16:42:38.000Z","dependencies_parsed_at":"2025-06-13T11:58:08.261Z","dependency_job_id":"edfca2c0-89e5-469e-9f10-bff84fd65f8b","html_url":"https://github.com/jcbhmr/ghmd.css","commit_stats":null,"previous_names":["jcbhmr/ghmd.css"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcbhmr/ghmd.css","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Fghmd.css","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Fghmd.css/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Fghmd.css/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Fghmd.css/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcbhmr","download_url":"https://codeload.github.com/jcbhmr/ghmd.css/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcbhmr%2Fghmd.css/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31402426,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["css","css-theme","dark-theme","gfm","github","github-markdown","light-theme","markdown","style","theme"],"created_at":"2026-04-04T14:26:39.781Z","updated_at":"2026-04-04T14:26:39.848Z","avatar_url":"https://github.com/jcbhmr.png","language":"SCSS","readme":"# `ghmd.css`\n\n🎨 Make your webpage look like a GitHub Markdown document\n\n\u003cp align=center\u003e\n  \u003cimg src=\"https://i.imgur.com/F9TGI7F.png\"\u003e\n\u003c/p\u003e\n\n## Installation\n\nThe recommended way to use this project is on an existing HTML page to apply a\nbasic GitHub-like style to Markdown-like HTML content. This is similar to other\n[classless CSS themes] like [MVP.css], [Water.css], [new.css], etc.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/ghmd.css@1\" /\u003e\n```\n\nYou can also install this CSS theme as a dependency in your project using npm,\n[pnpm], [Yarn] or your favorite Node.js package manager. Note that all the\nstyles are **global** and will affect all elements on the page. You can mitigate\nthis by using a [shadow root] if you do want to scope the CSS to a specific\ncomponent.\n\n```sh\nnpm install ghmd.css\n```\n\n## Usage\n\nJust write normal HTML! `\u003ch1\u003e`, `\u003cp\u003e`, `\u003cul\u003e`, etc. all get styled to match the\nGitHub Markdown style.\n\n\u003ctable align=center\u003e\u003ctd\u003e\n\n```html\n\u003clink ... /\u003e\n\u003ch1\u003eHello world!\u003c/h1\u003e\n\u003cp\u003eThis is a list of things:\u003c/p\u003e\n\u003cul\u003e\n  \u003cli\u003eOne\u003c/li\u003e\n  \u003cli\u003eTwo\u003c/li\u003e\n  \u003cli\u003eThree\u003c/li\u003e\n\u003c/ul\u003e\n```\n\n\u003ctd\u003e\n\n![](https://i.imgur.com/iNrqPQX.png)\n\n\u003c/table\u003e\n\nIf you're feeling adventurous, you can use a Markdown ➡ HTML converter like\n[marked] to dynamically show Markdown content on your page in the GitHub\nMarkdown style.\n\n```html\n\u003clink rel=\"stylesheet\" href=\"https://unpkg.com/ghmd.css@1\" /\u003e\n\u003cscript type=\"module\"\u003e\n  import { marked } from \"https://esm.run/marked@9\";\n  const response = await fetch(\"https://example.com/README.md\");\n  const text = await response.text();\n  const html = marked(text);\n  document.body.innerHTML = html;\n\u003c/script\u003e\n```\n\nFor more advanced usage, you can scope the globally applied CSS using the\n[shadow DOM] with a [shadow root].\n\n```html\n\u003cdiv id=\"markdown\"\u003e\n  \u003ch1\u003eHello world!\u003c/h1\u003e\n  \u003cp\u003eThis is a list of things:\u003c/p\u003e\n  \u003cul\u003e\n    \u003cli\u003eOne\u003c/li\u003e\n    \u003cli\u003eTwo\u003c/li\u003e\n    \u003cli\u003eThree\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n\u003cscript type=\"module\"\u003e\n  const div = document.getElementById(\"markdown\");\n  const shadow = div.attachShadow({ mode: \"open\" });\n  const link = document.createElement(\"link\");\n  link.rel = \"stylesheet\";\n  link.href = \"https://unpkg.com/ghmd.css@1\";\n  shadow.append(link);\n  shadow.append(...div.childNodes);\n\u003c/script\u003e\n```\n\nIf you're using [React], [react-shadow-root] is good abstraction over the manual\nJavaScript shown above. For [Vue], you can use the [vue-shadow-dom].\n\n\u003c!-- prettier-ignore-start --\u003e\n[marked]: https://marked.js.org/\n[classless CSS themes]: https://github.com/topics/classless\n[MVP.css]: https://andybrewer.github.io/mvp/\n[Water.css]: https://watercss.kognise.dev/\n[new.css]: https://newcss.net/\n[pnpm]: https://pnpm.io/\n[Yarn]: https://yarnpkg.com/\n[shadow DOM]: https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM\n[shadow root]: https://developer.mozilla.org/en-US/docs/Web/API/Element/attachShadow\n[React]: https://reactjs.org/\n[Vue]: https://vuejs.org/\n[react-shadow-root]: https://apearce.github.io/react-shadow-root/\n[vue-shadow-dom]: https://npmjs.com/package/vue-shadow-dom\n\u003c!-- prettier-ignore-end --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcbhmr%2Fghmd.css","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcbhmr%2Fghmd.css","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcbhmr%2Fghmd.css/lists"}