{"id":15941341,"url":"https://github.com/justjavac/is-dark-theme","last_synced_at":"2025-10-19T03:31:15.670Z","repository":{"id":57277106,"uuid":"195216035","full_name":"justjavac/is-dark-theme","owner":"justjavac","description":"Detect if the user has requested the system use a light or dark color theme","archived":false,"fork":false,"pushed_at":"2023-05-06T06:39:37.000Z","size":37,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-09T10:02:09.233Z","etag":null,"topics":["css","dark-theme","detect","light-theme","media","query","them"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/justjavac.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":[],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/typescript-deno-plugin","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://github.com/justjavac/buy-me-a-coffee"}},"created_at":"2019-07-04T09:55:09.000Z","updated_at":"2023-05-06T06:39:38.000Z","dependencies_parsed_at":"2022-09-17T15:12:07.150Z","dependency_job_id":null,"html_url":"https://github.com/justjavac/is-dark-theme","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fis-dark-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fis-dark-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fis-dark-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justjavac%2Fis-dark-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justjavac","download_url":"https://codeload.github.com/justjavac/is-dark-theme/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219869322,"owners_count":16555564,"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":["css","dark-theme","detect","light-theme","media","query","them"],"created_at":"2024-10-07T07:03:17.170Z","updated_at":"2025-10-19T03:31:10.426Z","avatar_url":"https://github.com/justjavac.png","language":"JavaScript","funding_links":["https://tidelift.com/funding/github/npm/typescript-deno-plugin","https://github.com/justjavac/buy-me-a-coffee"],"categories":[],"sub_categories":[],"readme":"# is-dark-theme\n\n\u003e Detect if the user has requested the system use a light or dark color theme.\n\n[![npm package](https://nodei.co/npm/is-dark-theme.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/is-dark-theme/)\n\n[![Build Status](https://travis-ci.com/justjavac/is-dark-theme.svg?branch=master)](https://travis-ci.com/justjavac/is-dark-theme)\n[![NPM version](https://img.shields.io/npm/v/is-dark-theme.svg)](https://www.npmjs.com/package/is-dark-theme)\n[![NPM Downloads](https://img.shields.io/npm/dm/is-dark-theme.svg?style=flat)](https://npmcharts.com/compare/is-dark-theme?minimal=true)\n[![Install Size](https://packagephobia.now.sh/badge?p=is-dark-theme)](https://packagephobia.now.sh/result?p=is-dark-theme)\n\n## Installation\n\nInstall the package using `npm` or `yarn`.\n\n**use npm**:\n\n```bash\nnpm install is-dark-theme\n```\n\nor **use yarn**:\n\n```bash\nyarn add is-dark-theme\n```\n\n## Usage\n\n```js\nimport isDarkTheme from 'is-dark-theme'\n\nisDarkTheme() // true | false\n```\n\n### Credits\n\n- [justjavac](https://github.com/justjavac)\n\n### License\n\nis-dark-theme is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fis-dark-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustjavac%2Fis-dark-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustjavac%2Fis-dark-theme/lists"}