{"_id":"prism-theme-one-light-dark","_rev":"5-6d24291b47852debd2d71d8738871a25","time":{"1.0.0":"2020-08-27T04:59:39.562Z","created":"2020-08-28T05:22:58.604Z","1.0.1":"2020-08-28T05:22:58.742Z","modified":"2022-05-13T10:29:53.317Z","1.0.2":"2020-08-28T05:36:26.742Z","1.0.4":"2020-10-18T03:25:03.420Z"},"name":"prism-theme-one-light-dark","dist-tags":{"latest":"1.0.4"},"versions":{"1.0.1":{"name":"prism-theme-one-light-dark","version":"1.0.1","description":"Prism Theme - One Light and One Dark","scripts":{"build":"npm-run-all build:light build:dark","build:light":"node-sass src/prism-onelight.scss -o dist/ --output-style compressed","build:dark":"node-sass src/prism-onedark.scss -o dist/ --output-style compressed","prepublishOnly":"cp -r ./dist/* .","postpublish":"git clean -fd"},"main":"dist/","keywords":["Prism","theme","one","light","onelight","one-light","dark","onedark","one-dark"],"author":{"name":"Ken A. Chan","email":"kenchandev@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kenchandev/prism-theme-one-light-dark.git"},"bugs":{"url":"https://github.com/kenchandev/prism-theme-one-light-dark/issues"},"devDependencies":{"node-sass":"^4.14.1","npm-run-all":"^4.1.5"},"gitHead":"0961d5894741489f0b45f507daad05d6c077e62b","homepage":"https://github.com/kenchandev/prism-theme-one-light-dark#readme","_id":"prism-theme-one-light-dark@1.0.1","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-xd+o/s7m8coH6CX6LCxsJs5gsRO8TXvVKnMMimJBdG+d8VJL2Dgbi3GrzPbBJdkBxvI4F7MXLW2Mm9xFQJwncA==","shasum":"611d88fc8119e942a2c973ef85a633034584a484","tarball":"https://registry.npmjs.org/prism-theme-one-light-dark/-/prism-theme-one-light-dark-1.0.1.tgz","fileCount":7,"unpackedSize":15469,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSJSzCRA9TVsSAnZWagAAwksQAI5nF8FMGj+hezT1DIx3\nWxgo9oEPmprE5UG3XdSzhUITaR/2E6vDKfn65h6CiVet2+tJxVnQ4K0nLtVT\nP9d2XjeKTsNA9orGOszl2+VhTzFzTwLkety3JmH7oepjbmla7BkoYgyxnrcT\nz5ss0FyJfsal2MwtnVQqql+dX7EzDr120IoHdvNgyUQTG4LnulIA+anysUux\nd/kbGLnB67hk/d98VfNaC9m8Bvv4+Q0bNmpAiy50+zCIxiNuyHEItro3mOnP\nHe5HwgfPXv1e5MWCED5dTTcnr4L9v8nOkmpxWu0SOvilfgGvQ9COev/kdBcV\nN0rnx0Es25dy6LhB84Bx8bPJTFHmYqDX30Tyb0DGjoeCUL5gdg+AgezmwhAR\nf9uy2ZBjZprhvECGRQV10IoWLGJuiC6P3JCQnIFRVJ6qnuIZeGeXFuFUa+Ax\nJ3PQrQDZWTtb42KyeLIAlsfaZ+4bMQZ2MFJ40OGf3pENb1IYeOnqCWAe5C/S\n1FxCn7Sps1yiVIYa0MDvbAGv0zk0CWPJs7zzKbAYS4u/bXWfYpYQt55hyhLP\n9Fum9xHhUJ0AhJBxVwM0eDKBxxTf9dEkUHRm1gduYWPtSol7hqb6LeuJup50\nr4noWRvyRMlqTwiM7jxoWA0Nb7gNI8XSf3yvxD1ZRJRSGe0gSoJE1mwdByIx\nV8mj\r\n=igKa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGybJIciHr1dT6r4z59Di8rSLtXaHOLmTeRl+I9otQyqAiB+jyIVQb7qgDiACCzv7DaJ+Mrz3Awo14zXCCHVY4pFdg=="}]},"maintainers":[{"name":"kenchandev","email":"kenchandev@gmail.com"}],"_npmUser":{"name":"kenchandev","email":"kenchandev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prism-theme-one-light-dark_1.0.1_1598592178605_0.46134225404847373"},"_hasShrinkwrap":false},"1.0.2":{"name":"prism-theme-one-light-dark","version":"1.0.2","description":"Prism Theme - One Light and One Dark","scripts":{"build":"npm-run-all build:light build:dark","build:light":"node-sass src/prism-onelight.scss -o dist/ --output-style compressed","build:dark":"node-sass src/prism-onedark.scss -o dist/ --output-style compressed","prepublishOnly":"cp -r ./dist/* .","postpublish":"git clean -fd"},"keywords":["Prism","theme","one","light","onelight","one-light","dark","onedark","one-dark"],"author":{"name":"Ken A. Chan","email":"kenchandev@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kenchandev/prism-theme-one-light-dark.git"},"bugs":{"url":"https://github.com/kenchandev/prism-theme-one-light-dark/issues"},"devDependencies":{"node-sass":"^4.14.1","npm-run-all":"^4.1.5"},"gitHead":"0961d5894741489f0b45f507daad05d6c077e62b","homepage":"https://github.com/kenchandev/prism-theme-one-light-dark#readme","_id":"prism-theme-one-light-dark@1.0.2","_nodeVersion":"14.4.0","_npmVersion":"6.14.5","dist":{"integrity":"sha512-ky6ZpirdMmlI+VN2+jnEixx8AleURwaPWvATdojHKJZ30CVRs2oizcfDa9y7TsH7tgkQ4coWKBmgfbFXgZg0xA==","shasum":"9e407de9fd0844160c9c5522d5390e69c3ddff4c","tarball":"https://registry.npmjs.org/prism-theme-one-light-dark/-/prism-theme-one-light-dark-1.0.2.tgz","fileCount":5,"unpackedSize":10008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfSJfbCRA9TVsSAnZWagAAMQgP/2QpekjgUGjiqHR+utK6\nUR1uR/LKtLxl0O1u974L5VKQliuMWfQ5do2D4FtqvUJWQtHGykjum0Chq/eN\nfTfSviq2rOoaK9K+9Ob/zb+QfV/JWIs50k1VN5TXpNpJRlVuqYRsP9gEu2iw\nl0WWXoDU47iN5i/+sDqcyHqVnl0I12ONmLEjATE6iYQAwUmNSP+1WSetTq18\npBQYHwzbH32ALKjx1JVyfvaXCgbZZ5IYt79LucVF/7LX3xNzFrj7eI4ZBV8j\nr3A+QewYFNODfP3I0qYh+4/rzaMIiHqTY+0NUMTI/NwHqawao3RXMmIqKOiK\nVL+ORFQem8rWyliCawF7Pt8uq3l6ygNx7yCFUKqr2BSZlFWtwhT6TYctXTd8\nBzFrfKD2SFpWrDvz9DR/k5r+KQstau+Or5BPfN2bsY2L+mRo1ql7RNcHto3p\ntZrLh8qhQxKnkXV8EfxTVlnu+hE0HMfQNavmnS3YBfoy+tOx7A9a8vgrmyVs\npAe/aE90dzGVcPBAW+Qo/LB+GNhVhvjTexi3s6MUU8OzO2zuJQkyJXU29KW9\nB8afb4yNKwKEJFOvXR+ntKpfsF8bu/MjMi6F73se46iXb9XxmXKGi3juWWD4\naEGRGXk7gYmfcvn5/1gOAAgXXnzsUQY0Mmd1D/bYB1QsJ+yoS4Xi42l/kNcm\ng0eK\r\n=VP7M\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID/rcZBYss7mjFmw91QztpA/NsTsItLtsZkLRpZ+224JAiEAy0nbzrfvvuY9oPsKP4s/dWkULzkh+JICYWek1Nydx2E="}]},"maintainers":[{"name":"kenchandev","email":"kenchandev@gmail.com"}],"_npmUser":{"name":"kenchandev","email":"kenchandev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prism-theme-one-light-dark_1.0.2_1598592986630_0.8419430950472719"},"_hasShrinkwrap":false},"1.0.4":{"name":"prism-theme-one-light-dark","version":"1.0.4","description":"Prism Theme - One Light and One Dark","scripts":{"build":"npm-run-all build:light build:dark","build:light":"node-sass src/prism-onelight.scss -o dist/ --output-style compressed","build:dark":"node-sass src/prism-onedark.scss -o dist/ --output-style compressed","prepublishOnly":"cp -r ./dist/* .","postpublish":"git clean -fd"},"husky":{"hooks":{"pre-commit":"run-if-diff --file src/**/*.scss -- npm run build && git add dist/"}},"keywords":["Prism","theme","one","light","onelight","one-light","dark","onedark","one-dark"],"author":{"name":"Ken A. Chan","email":"kenchandev@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/kenchandev/prism-theme-one-light-dark.git"},"bugs":{"url":"https://github.com/kenchandev/prism-theme-one-light-dark/issues"},"devDependencies":{"husky":"^4.2.5","node-sass":"^4.14.1","npm-run-all":"^4.1.5","run-if-diff":"^2.0.1"},"gitHead":"011ff0010366971694a2d69d4a0e201269a5cf5f","homepage":"https://github.com/kenchandev/prism-theme-one-light-dark#readme","_id":"prism-theme-one-light-dark@1.0.4","_nodeVersion":"14.8.0","_npmVersion":"6.14.7","dist":{"integrity":"sha512-ift6vo6p6llo2DP9XOUa9nIOgPMOwQ1+Kuv5cS873PuomjUzYGC8dSAP1kz9pYhK07GujLz3i/knf+5DpxAeDA==","shasum":"905124d7346b2349c116e49bd6acae3da15c646f","tarball":"https://registry.npmjs.org/prism-theme-one-light-dark/-/prism-theme-one-light-dark-1.0.4.tgz","fileCount":5,"unpackedSize":10288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfi7WPCRA9TVsSAnZWagAA5UgP/AiPGsWxPNcSSwC2fnyl\n44I/pGcFkFTC0QSt1h48AIf/FWw74TFowRuAQ/M309DnWFu8AVBYVXCXirVp\nB5V/vp6S8VbjjYTRiT8CEGQ6yPCneJ5cpxdDzd8IOBK7RqWwlc8TAr/aKTDk\nGtZ1x98bzUiHzNQrqIOnHYzA4DIj8VLArE8jehVvnuXL5izz+A/hrud1gvhE\nQlio81I8e5wRIizS9+A0NhDFHhA6fuQGCgkhNw9J5Ku8PANGQhEKUxEo9W+o\nAPu4riqkZ2Fhsqmb/UvlhskT/Ea74SrHPKXbVCnJx34x1RchYsqOszpUGWU6\n+YG0V1ecHQPMDXbgERi7S4PwTVjWEoYYo25vGLjac0WJBJfOz/rZDi1u/vsf\np5c8BqFQrWC3NDfJrKUoDhyyiypKD9GIsTuQ3uKgAuuP1iAlI1SCXZEkFBlP\nTpWPhCUAo8qSTy/NBDvVj//ytNtkVMrbqkrLOxXzl70ExibArN3OSBbhKbed\nFzkPyK1Cv+IIvXRTlyfKSzLMSY7/+7kudiGhCTUUqZbibCAskTEFwsn3sz1p\nwz0oKeBV25Yuaq8zHpEL/HVlMTo4HZLzJxuYEn5EVjTU05mp7AigOe0r1MKv\nuxcJFCtgvF38X1j3lhpyzOa0+ccts9ig4Lc1lfRpMqJjChX3TNPK8aXh6One\nHKkP\r\n=ZWPC\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE9f4XSbrkx7H0usQoE2n0cwkqFwMQPfGQgG5OKqH1hgIgLNIxQqZTK6rmErr6fa5ZXWiuHSkTIg0xSnypfGMY7Rw="}]},"maintainers":[{"name":"kenchandev","email":"kenchandev@gmail.com"}],"_npmUser":{"name":"kenchandev","email":"kenchandev@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/prism-theme-one-light-dark_1.0.4_1602991503299_0.9760416663749478"},"_hasShrinkwrap":false}},"maintainers":[{"name":"kenchandev","email":"kenchandev@gmail.com"}],"description":"Prism Theme - One Light and One Dark","homepage":"https://github.com/kenchandev/prism-theme-one-light-dark#readme","keywords":["Prism","theme","one","light","onelight","one-light","dark","onedark","one-dark"],"repository":{"type":"git","url":"git+https://github.com/kenchandev/prism-theme-one-light-dark.git"},"author":{"name":"Ken A. Chan","email":"kenchandev@gmail.com"},"bugs":{"url":"https://github.com/kenchandev/prism-theme-one-light-dark/issues"},"license":"MIT","readme":"# Prism Theme - One Light and One Dark\n\n<p>\n  <a href=\"https://opensource.org/licenses/MIT\"><img src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" alt=\"License: MIT\"/></a>\n</p>\n\nThis package provides light and dark themes based on Atom's [One Light](https://github.com/atom/one-light-syntax) and [One Dark](https://github.com/atom/one-dark-syntax) themes, respectively. \n\n*Note*: Due to some limitations of Prism's syntax highlighting, there will be slight differences in syntax highlighting between these themes and the originals provided by Atom.\n\n## Installation\n\n```bash\n$ npm install --save prism-theme-one-light-dark\n```\n\nIf the web application uses the Webpack loaders [`style-loader`](https://webpack.js.org/loaders/style-loader/) and [`css-loader`](https://webpack.js.org/loaders/css-loader/), then the themes can be imported like a module.\n\nImport One Dark theme.\n\n```js\nimport 'prism-theme-one-light-dark/prism-onedark.css';\n```\n\nImport One Light theme.\n\n```js\nimport 'prism-theme-one-light-dark/prism-onelight.css';\n```\n\n## Toggle Between Themes (Webpack-Based Projects)\n\nIf the web application supports toggling between light and dark themes, then to inject the corresponding Prism theme, use [`raw-loader`](https://webpack.js.org/loaders/raw-loader/), a Webpack loader for importing a file as a raw text string.\n\n*Note*: Since Webpack is one of the core software packages that powers Gatsby, Gatsby automatically provides `raw-loader` to developers.\n\n```js\n// Assumption: `theme` argument can only be set to \"dark\" or \"light.\"\nfunction togglePrismTheme(theme) {\n  let prismTheme;\n\n  try {\n    prismTheme = require(`!raw-loader!prism-theme-one-light-dark/prism-one${theme}.css`); \n  } catch(e) {\n    console.error(e);\n  }\n\n  return prismTheme;\n}\n```\n\n## Customization\n\nTo customize the themes:\n\n1. Fork this repository [here](https://github.com/kenchandev/prism-theme-one-light-dark/fork).\n2. Place the custom SCSS code in `src/overrides.scss`.\n3. Execute `npm run build` to generate the customized themes.\n\n## Preview\n\nBelow are screenshots of each theme applied to a snippet of TypeScript code.\n\nFor additional previews of other code snippets (Markup, SCSS and JavaScript), download and open the demo files in the `demo` folder.\n\n### TypeScript\n\n![One Light Theme - TypeScript Preview](https://www.dl.dropboxusercontent.com/s/hcb77fnxim1th3b/screen%20shot%202020-10-17%20at%2011.12.12%20pm.png)\n\n![One Dark Theme - TypeScript Preview](https://www.dl.dropboxusercontent.com/s/8vbqbskp3sgyu83/Screen%20Shot%202020-08-26%20at%2010.56.12%20PM.png)\n\n### License\n\nMIT","readmeFilename":"README.md"}