UNPKG

next-prefers-theme

Version:

Next.js css media query prefers-* system preference detection & theming.

69 lines (68 loc) 1.67 kB
{ "name": "next-prefers-theme", "version": "0.0.1", "description": "Next.js css media query prefers-* system preference detection & theming.", "license": "MIT", "author": "Van Nguyen <thegoleffect@gmail.com>", "main": "./dist/next-prefers-theme.umd.js", "module": "./dist/next-prefers-theme.es.js", "exports": { ".": { "import": "./dist/next-prefers-theme.es.js", "required": "./dist/next-prefers-theme.umd.js" } }, "types": "./@types/index.d.ts", "files": [ "dist", "@types" ], "scripts": { "dev": "vite", "start": "vite preview", "test": "jest", "build": "vite build --config vite.config-build.ts && $npm_execpath run tsc", "build:watch": "vite build --config vite.config-build.ts --watch", "types": "tsc", "types:watch": "tsc --watch", "watch": "concurrently \"$npm_execpath run build:watch\" \"$npm_execpath run types:watch\"" }, "peerDependencies": { "next": "*", "react": "*", "react-dom": "*" }, "devDependencies": { "@testing-library/jest-dom": "^5.14.1", "@testing-library/react": "^12.0.0", "@types/jest": "^26.0.24", "@types/node": "^16.4.0", "@vitejs/plugin-react-refresh": "^1.3.5", "concurrently": "^6.2.0", "jest": "^27.0.6", "ts-jest": "^27.0.3", "typescript": "^4.3.5", "vite": "^2.4.3" }, "keywords": [ "react", "dark-mode", "next.js", "next", "themes", "theming", "dark-theme", "light-theme", "reduced-motion", "high-contrast", "reduced-data" ], "homepage": "https://github.com/vidbase/vidbase.dev", "repository": { "type": "git", "url": "git+https://github.com/vidbase/vidbase.dev.git" }, "dependencies": { "vite-react-jsx": "^1.1.2" } }