css-vars-hook
Version:
css-vars-hook contains React hooks to set and manipulate CSS custom properties from React component.
122 lines (121 loc) • 3.6 kB
JSON
{
"name": "css-vars-hook",
"private": false,
"version": "0.8.4",
"license": "MIT",
"engines": {
"node": ">=16"
},
"description": "css-vars-hook contains React hooks to set and manipulate CSS custom properties from React component.",
"keywords": [
"react",
"reactjs",
"hooks",
"css",
"css-vars",
"css-in-js"
],
"repository": {
"type": "git",
"url": "https://github.com/morewings/css-vars-hook",
"directory": "/"
},
"homepage": "https://morewings.github.io/css-vars-hook",
"bugs": {
"url": "https://github.com/morewings/css-vars-hook/issues"
},
"type": "module",
"files": [
"dist"
],
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.umd.cjs"
}
},
"scripts": {
"dev": "vite",
"clean:lib": "rm -rf dist",
"build:lib": "vite build",
"build:demo": "vite build --config ./vite.config.build.ts --outDir ./demo",
"build": "run-s clean:lib build:lib",
"lint:code": "eslint src/** --report-unused-disable-directives",
"fix:code": "run-s 'lint:code --fix'",
"lint:style": "stylelint ./src/**/*.css",
"fix:style": "run-s 'lint:style --fix'",
"lint:types": "tsc --pretty --noEmit",
"test": "jest",
"coverage": "run-s 'test --coverage'",
"preview": "vite preview",
"commitlint": "commitlint",
"semantic-release": "semantic-release",
"prepare": "is-ci || husky"
},
"peerDependencies": {
"react": ">=18.2.0",
"react-dom": ">=18.2.0"
},
"devDependencies": {
"@commitlint/cli": "20.2.0",
"@commitlint/config-conventional": "20.2.0",
"@eslint/compat": "1.4.1",
"@eslint/js": "9.39.2",
"@semantic-release/commit-analyzer": "13.0.1",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "12.0.2",
"@semantic-release/npm": "13.1.3",
"@semantic-release/release-notes-generator": "14.1.0",
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.1",
"@types/jest": "30.0.0",
"@types/lodash": "4.17.20",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@typescript-eslint/eslint-plugin": "8.50.0",
"@typescript-eslint/parser": "8.50.0",
"@vitejs/plugin-react": "4.7.0",
"@yelo/rollup-node-external": "1.0.1",
"alias-kitchen": "0.2.4",
"classnames": "2.5.1",
"commitizen": "4.3.1",
"commitlint": "20.2.0",
"cz-conventional-changelog": "3.3.0",
"eslint": "9.39.2",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-prettier": "5.5.4",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "7.0.1",
"eslint-plugin-react-refresh": "0.4.24",
"eslint-plugin-ssr-friendly": "1.3.0",
"eslint-plugin-storybook": "0.11.2",
"husky": "9.1.7",
"identity-obj-proxy": "3.0.0",
"is-ci": "4.1.0",
"jest": "30.2.0",
"jest-environment-jsdom": "30.2.0",
"lint-staged": "15.5.2",
"npm-run-all2": "7.0.2",
"postcss": "8.5.6",
"postcss-preset-env": "10.5.0",
"prettier": "3.7.4",
"react": "19.2.3",
"react-dom": "19.2.3",
"semantic-release": "25.0.2",
"stylelint": "16.26.1",
"stylelint-config-standard": "36.0.1",
"stylelint-order": "6.0.4",
"stylelint-prettier": "5.0.3",
"ts-jest": "29.4.6",
"ts-node": "10.9.2",
"typescript": "5.9.3",
"typescript-eslint": "8.50.0",
"vite": "7.3.0",
"vite-plugin-dts": "4.5.4"
}
}