{"_id":"@ds-pack/theme-to-css-vars","_rev":"2-d6f90baff0108cc86238e9a8db60cedc","name":"@ds-pack/theme-to-css-vars","dist-tags":{"latest":"1.0.0"},"versions":{"0.0.1":{"name":"@ds-pack/theme-to-css-vars","version":"0.0.1","main":"dist/index.js","source":"src/index.tsx","types":"dist/index.d.ts","repository":{"type":"git","url":"git@github.com:ds-pack/theme-to-css-vars.git"},"author":{"name":"Matt Hamlin","email":"matthewjameshamlin@gmail.com"},"license":"MIT","scripts":{"prebuild":"rm -rf dist/","build":"babel src/ --out-dir dist/ --extensions '.ts,.tsx' && tsc","test":"jest","test-watch":"jest --watch","test-cov":"jest --collectCoverage","prepub":"yarn build","pub":"yarn prepub && yarn publish --access public","tsc":"tsc --noEmit"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/plugin-proposal-export-default-from":"^7.12.1","@babel/plugin-transform-runtime":"^7.12.10","@babel/plugin-transform-typescript":"^7.12.1","@babel/preset-env":"^7.12.11","@babel/preset-react":"^7.12.10","@babel/runtime":"^7.12.5","@testing-library/jest-dom":"^5.7.0","@testing-library/react":"^11.2.2","@types/jest":"^26.0.19","babel-jest":"^26.0.1","babel-plugin-styled-components":"^1.10.7","jest":"^26.0.1","prettier":"^2.2.1","typescript":"^4.1.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"description":"_Note: looking for a better package name, if you have ideas see [#1](https://github.com/ds-pack/theme-to-css-vars/issues/1)_","_id":"@ds-pack/theme-to-css-vars@0.0.1","dist":{"shasum":"b0960feb582f2ca3bf5bb9ebf8d6e5d93f41e8a5","integrity":"sha512-mqOfu/cAtV5fnwR+IwHCIHXhtpGuLNwU3KuEjr1zOHbMNNgk4k+JPloHIgp6K2Lv+jvWD9MeKsKer/CV9PNTGw==","tarball":"https://registry.npmjs.org/@ds-pack/theme-to-css-vars/-/theme-to-css-vars-0.0.1.tgz","fileCount":22,"unpackedSize":13235,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+6RCCRA9TVsSAnZWagAAib0QAJh+ldwLbEl2h+APegfv\nFmFWxMPn9869DQrOV4L/X3C+K122S7GG2abgio49gp604bSPWtMqRNf5Taj6\nOsiHyRWMuJkjgPNMjHsvzh6t/YxC7LPCjnmRXBJqIyDqsGMdMZNs+6Xxo2Yd\nmf1adxoz4dmcmJWEYJVpGXO9Pf0Te1h+F2VmiWDcRtyt9gTTbeydF1ee8gTI\nVuwacOHV/mU4aSZmCo7XFtecYn+piAG48YxzywwXFLosojzg01uOJljoFnFR\nj6E8Pw1QxNBNUWYI6E4Bq7331fmPntf3pvJ+V8pH/KR5qdu3ED9vp/B3pWlg\ngQzGKuvQ9OUVcByDSY2+PJX3u6qFMuxiuN+4EEc0SwssE9BJsv6vu4/b6fPF\nUR+U49fFiAEl2herXFiMDtA2KEM9FzBE4vPF4nJJYfgHRzMnpEJjsJbgZrcX\nk2aUJaWxbbKLdr88P/wlt5Tm8oP0Ur6uTdMXocondSHcP46z1s7lR8k4dx4r\naJlcdMvSQHjk3L3pp/NnWtwH/zeBcD7Lrex39ZxmfXDlDPKaOwkn9/Rwvlag\nLbkfCX7qYx/J8pUsxoP1h6k2rqUOXtfnv/+7B0oPhGCf/OavsnqNepuG1Io8\nsMbNj81mCQWqFd7Q5kfSBsfXmWOBxLx25D8nyoj57gofk9Yb3/vdQYoxeaKr\nHD0z\r\n=HeZX\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8LAUzMoU0eJELouZ/AzTtcDZdgezhX31P8bobEt7t3gIgSLdaclb/NxBm9M66Hi+G6cE+rxWwgjG6dh27sp9zLa8="}]},"_npmUser":{"name":"matthamlin","email":"matthewjameshamlin@gmail.com"},"directories":{},"maintainers":[{"name":"matthamlin","email":"matthewjameshamlin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/theme-to-css-vars_0.0.1_1610327105975_0.2761173881274974"},"_hasShrinkwrap":false},"1.0.0":{"name":"@ds-pack/theme-to-css-vars","version":"1.0.0","main":"dist/index.js","source":"src/index.tsx","types":"dist/index.d.ts","repository":{"type":"git","url":"git@github.com:ds-pack/theme-to-css-vars.git"},"author":{"name":"Matt Hamlin","email":"matthewjameshamlin@gmail.com"},"license":"MIT","scripts":{"prebuild":"rm -rf dist/","build":"babel src/ --out-dir dist/ --extensions '.ts,.tsx' && tsc","test":"jest","test-watch":"jest --watch","test-cov":"jest --collectCoverage","prepub":"yarn build","pub":"yarn prepub && yarn publish --access public","tsc":"tsc --noEmit"},"devDependencies":{"@babel/cli":"^7.12.10","@babel/core":"^7.12.10","@babel/plugin-proposal-export-default-from":"^7.12.1","@babel/plugin-transform-runtime":"^7.12.10","@babel/plugin-transform-typescript":"^7.12.1","@babel/preset-env":"^7.12.11","@babel/preset-react":"^7.12.10","@babel/runtime":"^7.12.5","@testing-library/jest-dom":"^5.7.0","@testing-library/react":"^11.2.2","@types/jest":"^26.0.19","babel-jest":"^26.0.1","babel-plugin-styled-components":"^1.10.7","jest":"^26.0.1","prettier":"^2.2.1","typescript":"^4.1.3"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"description":"_Note: looking for a better package name, if you have ideas see [#1](https://github.com/ds-pack/theme-to-css-vars/issues/1)_","_id":"@ds-pack/theme-to-css-vars@1.0.0","dist":{"shasum":"06dd88f0847db7819b05db3cc5f86f0aca103fbf","integrity":"sha512-9aNfcInBftzFnQq8q4s1hpCHXLfq3gF9uB4wEsB3sz+dlkzQFhTs/4UYxK59CmrfxhQOkIDHe/zPzpJZpWVdfQ==","tarball":"https://registry.npmjs.org/@ds-pack/theme-to-css-vars/-/theme-to-css-vars-1.0.0.tgz","fileCount":22,"unpackedSize":10654,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgAw59CRA9TVsSAnZWagAAAfAP/Rh7Q48lCif/bDWbHvNz\nHK3qkm9G/v/onz65KEbw7jzuxMokNChBCQS2TujfayMLb1dC709Lxc+Khths\n0sp2GHj9r4T1TdT7CqO9CMzoUDmjP3Q+c6P+Lid8diww0HR8sDrYNYlefmAH\nNFjUeYMiP3hUW/3wUX8DBkjsQM2HzScr3mQiURUVcB/D+aex2iT9HQ2liNya\nIUf2f9Bp0ocNZzycmC60wFFZpQDAKBDZ8J6DOTUK7Umry4ZY1as6qtdXz7jV\nKt6R8/0y/vfIpy9Tjp1JzPnaqUCQKIZoubb0kUL/YEcj8+whVhHgaepUEbw+\n2AQs2fbUuFMtEwCCL2xf+5LFKoKQ2dysF4l5pfpzfdOJgWWH5uOSedw2rVLM\ndGFzYZVDpBp+eJX9nohI3u3QVMyLYMqYmO4etyjt/YmS4i0NBecR1F4J8zbF\nb7VoNqJCm3JBjZFSiNQGW1ZMesmtzthenaeNOS3afpAu9OoeZsXy82ufqPql\n/JL/mIt2g+pFdeZRV2vvgqeKsRox5S1s9er6XUvytoDfxMK6JnxVPhlAVtk/\n/oYn8vnS5iFBaryay3rur5F4UgDERAEypt6aRpk2Fv+7f16jTr4EGxtMmrU2\nLf6BjfxIAs7QXmSWrvB3hIk+6IC5JkYPB2cx1Ll7Lr0wK/02rBCuPlK7b/v5\nQS63\r\n=xL9U\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD41njYz7SLyJUubp+ROkSN2UQaCSogUuu22F5GyT/ptgIhAJFlUQxuhP5DWc5w4AqbWr9kvYkqO2Q0IQOdFJ/fsaeL"}]},"_npmUser":{"name":"matthamlin","email":"matthewjameshamlin@gmail.com"},"directories":{},"maintainers":[{"name":"matthamlin","email":"matthewjameshamlin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/theme-to-css-vars_1.0.0_1610813052626_0.5897361364739375"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-11T01:05:05.758Z","0.0.1":"2021-01-11T01:05:06.087Z","modified":"2022-04-05T05:43:34.194Z","1.0.0":"2021-01-16T16:04:12.756Z"},"maintainers":[{"name":"matthamlin","email":"matthewjameshamlin@gmail.com"}],"description":"_Note: looking for a better package name, if you have ideas see [#1](https://github.com/ds-pack/theme-to-css-vars/issues/1)_","repository":{"type":"git","url":"git@github.com:ds-pack/theme-to-css-vars.git"},"author":{"name":"Matt Hamlin","email":"matthewjameshamlin@gmail.com"},"license":"MIT","readme":"# `@ds-pack/theme-to-css-vars`\n\n_Note: looking for a better package name, if you have ideas see\n[#1](https://github.com/ds-pack/theme-to-css-vars/issues/1)_\n\nA utility package for transforming a css-in-js theme object from raw values to\nCSS custom properties (CSS variables).\n\n## Installation:\n\n```sh\nyarn add @ds-pack/theme-to-css-vars\n```\n\n## Usage:\n\n```tsx\nimport themeToCSSVars from '@ds-pack/theme-to-css-vars'\n\nlet baseTheme = {\n  colors: {\n    blue: ['cadetblue', 'steelblue', 'cornflowerblue'],\n    get primary() {\n      return this.blue[2]\n    },\n  },\n}\n\nlet cssVariables = themeToCSSVars(baseTheme)\n\n// cssVariables ===\n//   [\n//     ['--colors-blue-0', 'cadetblue' ],\n//     ['--colors-blue-1', 'steelblue' ],\n//     ['--colors-blue-2', 'cornflowerblue' ],\n//   ]\n```\n\nThe utility function will return an array of tuples representing the CSS\nVariables for the theme.\n\n### Tools:\n\n- Typescript\n- Babel\n- Jest\n","readmeFilename":"README.md"}