@asafarim/react-themes
Version:
A comprehensive theme management system for React applications with automatic dark/light mode detection, custom theme creation, and smooth transitions.
93 lines • 2.63 kB
JSON
{
"name": "@asafarim/react-themes",
"version": "1.5.0",
"description": "A comprehensive theme management system for React applications with automatic dark/light mode detection, custom theme creation, and smooth transitions.",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"publishConfig": {
"access": "public"
},
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.mjs",
"require": "./dist/index.js"
},
"./styles.css": "./dist/styles.css",
"./src/styles.css": "./src/styles.css",
"./src/react-themes-dark.png": "./src/react-themes-dark.png",
"./react-themes-dark.png": "./dist/react-themes-dark.png",
"./src/react-themes-light.png": "./src/react-themes-light.png"
},
"files": [
"dist",
"src/react-themes-light.png",
"src/react-themes-dark.png",
"README.md",
"LICENSE"
],
"keywords": [
"react",
"themes",
"dark-mode",
"light-mode",
"css-variables",
"theme-management",
"typescript",
"ui",
"components"
],
"author": "Ali Safari <ali@asafarim.com>",
"license": "MIT",
"homepage": "https://github.com/AliSafari-IT/react-themes/tree/main#readme",
"repository": {
"type": "git",
"url": "https://github.com/AliSafari-IT/react-themes.git"
},
"bugs": {
"url": "https://github.com/AliSafari-IT/react-themes/issues"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@types/react": "^18.2.66",
"@types/react-dom": "^18.2.22",
"@typescript-eslint/eslint-plugin": "^7.2.0",
"@typescript-eslint/parser": "^7.2.0",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.0",
"eslint-plugin-react-hooks": "^4.6.0",
"tsup": "^8.0.2",
"typescript": "^5.4.2"
},
"tsup": {
"entry": [
"src/index.ts"
],
"format": [
"cjs",
"esm"
],
"dts": true,
"splitting": false,
"sourcemap": true,
"clean": true,
"minify": true,
"external": [
"react",
"react-dom"
]
},
"scripts": {
"build": "tsup && npm run copy-assets",
"copy-assets": "node -e \"const fs = require('fs'); fs.copyFileSync('src/styles.css', 'dist/styles.css'); fs.copyFileSync('src/react-themes-light.png', 'dist/react-themes-light.png'); fs.copyFileSync('src/react-themes-dark.png', 'dist/react-themes-dark.png');\"",
"dev": "tsup --watch",
"type-check": "tsc --noEmit",
"lint": "eslint src --ext .ts,.tsx",
"lint:fix": "eslint src --ext .ts,.tsx --fix",
"clean": "rm -rf dist"
}
}