UNPKG

counter-color

Version:

Helps to determine what color of text goes best for a given background, light or dark (and vice versa).

64 lines 1.79 kB
{ "name": "counter-color", "version": "0.2.1", "description": "Helps to determine what color of text goes best for a given background, light or dark (and vice versa).", "main": "lib/index.js", "repository": "github:n1kk/counter-color", "homepage": "https://github.com/n1kk/counter-color", "publishConfig": { "main": "lib/index.js", "types": "lib/index.d.ts" }, "sideEffects": false, "keywords": [ "text", "color", "contrast", "luminocity", "brightness", "luminance", "font color", "foreground" ], "files": [ "lib/**/*.{js,ts}" ], "author": "n1kk", "license": "MIT", "devDependencies": { "@babel/core": "^7.16.5", "@types/color": "^3.0.2", "@types/jest": "^27.0.3", "@types/react": "^17.0.38", "@types/react-dom": "^17.0.11", "@vitejs/plugin-react-refresh": "^1.3.6", "babel-preset-solid": "^1.2.6", "color": "^4.1.0", "jest": "^27.4.5", "prettier": "^2.5.1", "react": "^17.0.2", "react-dom": "^17.0.2", "rimraf": "^3.0.2", "solid-js": "^1.2.6", "solid-styled-components": "^0.27.3", "ts-jest": "^27.1.2", "typedoc": "^0.22.10", "typedoc-plugin-missing-exports": "^0.22.6", "typescript": "^4.5.4", "vite": "^2.7.7", "vite-plugin-html": "^2.1.2", "vite-plugin-singlefile": "^0.6.2", "vite-plugin-solid": "^2.1.4", "vue": "^3.2.26" }, "scripts": { "build": "rimraf ./lib && tsc -b ./tsconfig.json", "build:all": "pnpm build && pnpm docs:build && pnpm demo:build && pnpm demo:copy", "test": "jest", "docs:build": "typedoc src/index.ts", "demo:dev": "vite", "demo:build": "vite build && pnpm demo:copy", "demo:copy": "cp ./dist/demo/index.html ./docs/demo.html" }, "types": "lib/index.d.ts" }