{"id":17688242,"url":"https://github.com/neroist/nimitheme","last_synced_at":"2025-04-09T16:18:14.300Z","repository":{"id":147934056,"uuid":"619005614","full_name":"neroist/nimitheme","owner":"neroist","description":"Make nimib look beautiful with nimitheme","archived":false,"fork":false,"pushed_at":"2024-06-28T03:44:34.000Z","size":1265,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T16:18:00.617Z","etag":null,"topics":["beautiful","nim","nimib","nimibex","nimibex-extension","nimitheme","theme"],"latest_commit_sha":null,"homepage":"https://neroist.github.io/nimitheme/","language":"Nim","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/neroist.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":"2023-03-26T01:17:29.000Z","updated_at":"2024-09-12T13:20:46.000Z","dependencies_parsed_at":"2024-02-05T00:21:52.672Z","dependency_job_id":"6fde6709-30c7-44e6-b07b-013e31463693","html_url":"https://github.com/neroist/nimitheme","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fnimitheme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fnimitheme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fnimitheme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neroist%2Fnimitheme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neroist","download_url":"https://codeload.github.com/neroist/nimitheme/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065281,"owners_count":21041872,"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":["beautiful","nim","nimib","nimibex","nimibex-extension","nimitheme","theme"],"created_at":"2024-10-24T11:43:53.412Z","updated_at":"2025-04-09T16:18:14.266Z","avatar_url":"https://github.com/neroist.png","language":"Nim","readme":"\n# nimitheme\n\n\n![nimitheme presentation image](https://raw.githubusercontent.com/neroist/nimitheme/main/docs/images/nimitheme.png)\n\n\n\n\n\u003e *Make nimib look **beautiful** with nimitheme*\n\nNimitheme is a Nimble package that provides additional themes for\n[nimib](https://github.com/pietroppeter/nimib).\n\nYou can view the index of all the themes available in nimitheme here:\n\u003chttps://neroist.github.io/nimitheme/themes\u003e.\n\nIn addition, support for \n[Dark Reader](https://github.com/darkreader/darkreader) and\n[highlight.js](https://highlightjs.org/) are available.\n\n## Installation\n\nExecute this command in a terminal or shell:\n\n```sh\nnimble install nimitheme\n```\n\n## Usage\n\nEither pass the theme into `nbInit` like so:\n\n\n\n```nim\nnbInit(useAwsmBigStone)\n```\n\n\n\n\nor call the function directly:\n\n\n\n```nim\nnbInit\n\nnb.useAwsmBigStone()\n```\n\n\n\n\n### Dark Reader Support\n\nYou can enable Dark Reader in your nimib document by calling `useDarkReader`\non the `nb` variable injected by `nbInit`, like so:\n\n\n\n```nim\nnb.useDarkReader()\n```\n\n\n\n\n### Highlight.js support\n\nYou can also further stylize your code via setting a specific highlight.js\ncode theme (outside of Android Dark and Atom One light). You can do this by\nusing the `highlight=` template. For example, you can do something like this:\n\n\n\n```nim\nnb.highlight = materialPalenight\n```\n\n\n\n\nto set the highlight.js theme your nimib document uses.\n\n***All*** highlight.js themes are available (see\n[`highlight_js.nim`](src/nimitheme/highlight_js.nim)).\n\nFor themes that have the same name as a base16 theme, the base16 theme's\nname is postfixed with `_base16`.\n\n### Edit CSS Variables\n\nMany CSS libraries that nimitheme uses allow you to customize the style of\nyour document using CSS variables the user can manually set. Nimitheme allows\nyou to set such variables via the `setCssVar` template. For example, you can\ndo stuff like this:\n\n\n\n```nim\nnbInit(useTerminal)\n\nnb.setCssVar(\"global-font-size\", \"16px\")\n\n# Set multiple variables at once\nnb.setCssVar({\n  \"primary-color\": \"purple\",\n  \"secondary-color\": \"pink\"\n})\n```\n\n\n\n\n## License\n\nThis project is licensed under the MIT license.\n\n###### Made with Nim with ❤️\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneroist%2Fnimitheme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneroist%2Fnimitheme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneroist%2Fnimitheme/lists"}