{"id":19383675,"url":"https://github.com/jill64/svelte-device-theme","last_synced_at":"2025-04-23T21:32:00.101Z","repository":{"id":192641659,"uuid":"687305771","full_name":"jill64/svelte-device-theme","owner":"jill64","description":"☯ A simple store that syncs with your device's theme settings","archived":false,"fork":false,"pushed_at":"2025-04-14T20:08:18.000Z","size":1121,"stargazers_count":0,"open_issues_count":7,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T21:24:57.834Z","etag":null,"topics":["dark-mode","device","library","media","svelte","theme"],"latest_commit_sha":null,"homepage":"https://svelte-device-theme.jill64.dev","language":"TypeScript","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/jill64.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-05T04:54:23.000Z","updated_at":"2025-04-14T20:06:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2dbc1c4-acea-4176-81a0-3ad60af37321","html_url":"https://github.com/jill64/svelte-device-theme","commit_stats":null,"previous_names":["jill64/svelte-device-theme"],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsvelte-device-theme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsvelte-device-theme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsvelte-device-theme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jill64%2Fsvelte-device-theme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jill64","download_url":"https://codeload.github.com/jill64/svelte-device-theme/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250517946,"owners_count":21443864,"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":["dark-mode","device","library","media","svelte","theme"],"created_at":"2024-11-10T09:27:11.068Z","updated_at":"2025-04-23T21:32:00.095Z","avatar_url":"https://github.com/jill64.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!----- BEGIN GHOST DOCS HEADER -----\u003e\n\n# @jill64/svelte-device-theme\n\n\u003c!----- BEGIN GHOST DOCS BADGES -----\u003e\n\n\u003ca href=\"https://npmjs.com/package/@jill64/svelte-device-theme\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@jill64/svelte-device-theme\" alt=\"npm-version\" /\u003e\u003c/a\u003e \u003ca href=\"https://npmjs.com/package/@jill64/svelte-device-theme\"\u003e\u003cimg src=\"https://img.shields.io/npm/l/@jill64/svelte-device-theme\" alt=\"npm-license\" /\u003e\u003c/a\u003e \u003ca href=\"https://npmjs.com/package/@jill64/svelte-device-theme\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/@jill64/svelte-device-theme\" alt=\"npm-download-month\" /\u003e\u003c/a\u003e \u003ca href=\"https://npmjs.com/package/@jill64/svelte-device-theme\"\u003e\u003cimg src=\"https://img.shields.io/bundlephobia/min/@jill64/svelte-device-theme\" alt=\"npm-min-size\" /\u003e\u003c/a\u003e \u003ca href=\"https://github.com/jill64/svelte-device-theme/actions/workflows/ci.yml\"\u003e\u003cimg src=\"https://github.com/jill64/svelte-device-theme/actions/workflows/ci.yml/badge.svg\" alt=\"ci.yml\" /\u003e\u003c/a\u003e \u003ca href=\"https://svelte-device-theme.jill64.dev\"\u003e\u003cimg src=\"https://img.shields.io/website?up_message=working\u0026down_message=down\u0026url=https%3A%2F%2Fsvelte-device-theme.jill64.dev\" alt=\"website\" /\u003e\u003c/a\u003e\n\n\u003c!----- END GHOST DOCS BADGES -----\u003e\n\n☯ A simple store that syncs with your device's theme settings\n\n## [Demo](https://svelte-device-theme.jill64.dev)\n\n\u003c!----- END GHOST DOCS HEADER -----\u003e\n\n## [Demo](https://svelte-device-theme.jill64.dev)\n\n## Usage\n\n```svelte\n\u003cscript\u003e\n  import { is } from '@jill64/svelte-device-theme'\n\u003c/script\u003e\n\n{#if is.dark}\n  Device is dark mode\n{:else}\n  Device is light mode\n{/if}\n```\n\n\u003e [!NOTE]  \n\u003e `$isDark` is `undefined` on the server.  \n\u003e If you need full theme management including SSR, please see [@jill64/svelte-dark-theme](https://github.com/jill64/svelte-dark-theme).\n\n\u003c!----- BEGIN GHOST DOCS FOOTER -----\u003e\n\n## License\n\n[MIT](LICENSE)\n\n\u003c!----- END GHOST DOCS FOOTER -----\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjill64%2Fsvelte-device-theme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjill64%2Fsvelte-device-theme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjill64%2Fsvelte-device-theme/lists"}