{"id":26231045,"url":"https://github.com/wesleyel/keyle","last_synced_at":"2026-04-04T13:39:49.556Z","repository":{"id":249914982,"uuid":"832941688","full_name":"wesleyel/keyle","owner":"wesleyel","description":"This package provides a simple way to style keyboard shortcuts in your documentation.","archived":false,"fork":false,"pushed_at":"2024-08-28T00:58:51.000Z","size":2275,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-12T07:36:59.906Z","etag":null,"topics":["typst","typst-package"],"latest_commit_sha":null,"homepage":"https://typst.app/universe/package/keyle","language":"Typst","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/wesleyel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-24T03:38:59.000Z","updated_at":"2024-10-22T15:48:31.000Z","dependencies_parsed_at":"2024-07-24T05:34:56.918Z","dependency_job_id":"1e4f3d60-7487-4f9c-9061-b8cf0d3adf22","html_url":"https://github.com/wesleyel/keyle","commit_stats":null,"previous_names":["magicwenli/keyle","snowmemo/keyle","wesleyel/keyle"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyel%2Fkeyle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyel%2Fkeyle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyel%2Fkeyle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wesleyel%2Fkeyle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wesleyel","download_url":"https://codeload.github.com/wesleyel/keyle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243307476,"owners_count":20270264,"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":["typst","typst-package"],"created_at":"2025-03-12T23:18:11.452Z","updated_at":"2025-12-28T13:14:34.769Z","avatar_url":"https://github.com/wesleyel.png","language":"Typst","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keyle\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://raw.githubusercontent.com/magicwenli/keyle/main/doc/keyle.pdf\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/website?down_message=offline\u0026label=manual\u0026up_color=007aff\u0026up_message=online\u0026url=https://raw.githubusercontent.com/magicwenli/keyle/main/doc/keyle.pdf\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/magicwenli/keyle/blob/main/LICENSE\"\u003e\n    \u003cimg alt=\"MIT License\" src=\"https://img.shields.io/badge/license-MIT-brightgreen\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nA simple way to style keyboard shortcuts in your documentation.\n\nThis package was inspired by [auth0/kbd](https://auth0.github.io/kbd/) and [dogezen/badgery](https://github.com/dogezen/badgery). Also thanks to [tweh/menukeys](https://github.com/tweh/menukeys) -- A LaTeX package for menu keys generation.\n\nDocument generating using [jneug/typst-mantys](https://github.com/jneug/typst-mantys).\n\nSend them respect and love.\n\n## Usage\n\nPlease see the [keyle.pdf](https://github.com/magicwenli/keyle/blob/main/doc/keyle.pdf) for more documentation.\n\n`keyle` is imported using:\n\n```typst\n#import \"@preview/keyle:0.2.0\"\n```\n\n### Example\n\n#### Custom Delimiter\n\n```tpy\n#let kbd = keyle.config()\n#kbd(\"Ctrl\", \"Shift\", \"K\", delim: \"-\")\n```\n![Custom Delimiter](test/test-1.png)\n\n#### Compact Mode\n\n```tpy\n#let kbd = keyle.config()\n#kbd(\"Ctrl\", \"Shift\", \"K\", compact: true)\n```\n![Compact Mode](test/test-2.png)\n\n#### Standard Theme\n\n```tpy\n#let kbd = keyle.config(theme: keyle.themes.standard)\n#keyle.gen-examples(kbd)\n```\n![Standard Theme](test/test-3.png)\n\n#### Deep Blue Theme\n\n```tpy\n#let kbd = keyle.config(theme: keyle.themes.deep-blue)\n#keyle.gen-examples(kbd)\n```\n![Deep Blue Theme](test/test-4.png)\n\n#### Type Writer Theme\n\n```tpy\n#let kbd = keyle.config(theme: keyle.themes.type-writer)\n#keyle.gen-examples(kbd)\n```\n![Type Writer Theme](test/test-5.png)\n\n#### Biolinum Theme\n\n```tpy\n#let kbd = keyle.config(theme: keyle.themes.biolinum, delim: keyle.biolinum-key.delim_plus)\n#keyle.gen-examples(kbd)\n```\n![Biolinum Theme](test/test-6.png)\n\n#### Custom Theme\n\n```tpy\n// https://www.radix-ui.com/themes/playground#kbd\n#let radix_kdb(content) = box(\n  rect(\n    inset: (x: 0.5em),\n    outset: (y:0.05em),\n    stroke: rgb(\"#1c2024\") + 0.3pt,\n    radius: 0.35em,\n    fill: rgb(\"#fcfcfd\"),\n    text(fill: black, font: (\n      \"Roboto\",\n      \"Helvetica Neue\",\n    ), content),\n  ),\n)\n#let kbd = keyle.config(theme: radix_kdb)\n#keyle.gen-examples(kbd)\n```\n![Custom Theme](test/test-7.png)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyel%2Fkeyle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwesleyel%2Fkeyle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwesleyel%2Fkeyle/lists"}