1.0.1 • Published 1 year ago
@img-arena/img-ui-mui-theme v1.0.1
IMGArena-MUI-UI-THEME
Package with custom hook for MUI Theme Provider with predefined styles in MUI Palette for IMGArena front-end teams.
How to use
To install a package simply run:
npm i @img-arena/img-ui-mui-theme
// or
yarn add @img-arena/img-ui-mui-theme
For the components to work correctly it is crutial that the part of the app using them is wrapped in provider. (example for index.tsx
in CRA). Also for the styles to work correctly import them at the root level (for CRA it's index.tsx
file)
/* ... other imports */
import { ThemeProvider } from "@mui/material";
import { useImgTheme } from "@img-arena/img-ui-mui-theme";
function App() {
const { imgTheme } = useImgTheme({});
return <ThemeProvider theme={imgTheme}>yours layout</ThemeProvider>;
}
export default App;
Local development
To get started you have to run those two commands in separate terminals, but before that you have to install all dependencies.
To install dependencies run:
npm install npm-link-shared -g // skip this step if you have this already installed (to be deprecated)
npm run prestart
Building a package and watching for changes:
npm run build:watch
Starting a preview development server:
npm run dev:example
blc8heipmsqswsajvargdeldlvejshasmritarasapbsercssodefudepdetagfbjsflatglobgopdjakelevnmimeobufonceopenpakopendpifypumpsendspdysvgotemptmpltr46utiluuidvarywbufy18nyamlacornasyncbatchboxenbyteschalkcliuicolorcreltdebugexecafastqfreshgaugegigetisexejsescjson5kleurklonalevenmemfsp-mapp-trypatheramdaretryslashtempyutilawhichxtendyargsyauzlaprobaassertbase16big.jsbracesbufferchownrcolordcookiecssescdedentdequaldotenvendentespreeeventsextendglobalglobbyignoreis-mapis-nanis-setis-wsllodashmerge2mkdirpnanoidnpmlogrecastrimrafsemversockjsstablestore2tar-fsterserthunkyunpipeuri-jswalkerwrappyacceptsaddressci-infocore-jscssnanocsstypedeep-isdefineddestroyenvinfoesbuildesprimaesqueryesutilsexpressfind-upflattedgensyncglobalsieee754is-globis-gzipisarrayjs-sdsljs-yamlkind-ofmethodsmime-dbno-caseonetimep-limitp-queuep-retrypiratespkg-dirprocesspromisepromptspumpifyrechoirresolvereusifyrgb-hexshelljstapabletsutilstype-isunfetchwebpackyallistanymatchargparseasynckitboolbasechokidarcss-treecss-whatdir-globdoctrinedom-walkdomutilsdot-caseee-firstentitieserror-exescaladefilelistfor-eachfs-extrafseventsget-porthas-flaghpack.jsinflightinheritsis-regexisobjectjsonfilemake-dirmdn-datamimic-fnminimistminipassminizlibnode-dirp-locateparseurlpath-keypolishedprogresspunycoderaw-bodyreact-isreactcssread-pkgreaddirpstatusestelejsontemp-dirthrough2unpluginwordwrapacorn-jsxast-typesbase64-jscall-bindcallsitescamelcaseclean-csscli-boxescolorettecommandercommondirdeepmergedelegatesdetectivedns-equalduplexifyencodeurlescodegenesrecursefast-difffast-globfbemitterfd-slicerform-dataforwardedfs-monkeyhsl-regexhtml-tagsinterpretipaddr.jsis-bigintis-dockeris-moduleis-numberis-streamis-stringis-symboljest-mockjest-utiljs-tokenslilconfiglodash-eslru-cachelz-stringmakeerrorminimatchneo-asyncnth-checkobject-isp-finallyp-timeoutpath-typepicomatchquick-lrurelateurlrenderkidrgb-regexschedulerstyle-modts-dedenttype-festuglify-jsuntildifywatchpackword-wrapwrap-ansiacorn-nodeacorn-walkagent-baseansi-alignansi-regexaria-querybabel-corebetter-opncamel-casecli-table3clone-deepcolor-namecolor-rgbaconcat-mapcss-loadercss-selectdeep-equaldidyoumeandns-packetdomhandlerestraversefill-rangeflat-cacheget-streamhandlebarshsla-regexhttp-proxyiconv-liteicss-utilsimport-cwdis-deflateis-extglobis-weakmapis-weaksetlower-casemicromatchmime-typesmin-indentnegotiatornode-fetchnode-forgenode-int64on-headersoptionatorparam-caseparse-jsonpath-parsepicocolorspostcss-jsprelude-lsproxy-addrpure-colorread-cacheregeneratergba-regexselfsignedsisteransisource-mapsprintf-jsstackframestrip-ansistylehackstar-streamtext-tabletinycolor2type-checktypedarraywhatwg-urlwide-alignajv-formatsansi-stylesarray-unionbig-integerbody-parserbuffer-fromcaniuse-apiclean-stackcolor-parsecolor-spacecompressioncosmiconfigcross-fetchcross-spawndetect-nodedetect-portemoji-regexemojis-listescape-htmlextract-zipfb-watchmanfetch-retryflow-parserfraction.jsfs-minipassfs.realpathglob-parentgraceful-fshas-bigintshas-symbolshas-unicodehtmlparser2http-errorsimport-fromimurmurhashis-arrayishis-callableis-functionis-path-cwdjest-workerjscodeshiftlocate-pathlodash.flowlodash.uniqmedia-typerobject-hashobject-keyson-finishedpascal-casepath-existspeek-streamrandombytesreact-colorread-pkg-upregjsparserremark-slugsafe-bufferselect-hoseserve-indexshell-quotesignal-exitstring-hashusehooks-tsutils-mergew3c-keynamewidest-lineyocto-queueajv-keywordsapp-root-dirbrowserslistbuffer-crc32caniuse-litecolor-stringcompressiblecontent-typecore-js-purecore-util-iseslint-scopefinalhandlerfs-constantsglob-promisegunzip-maybehandle-thinghtml-escaperimport-freshis-argumentsis-plain-objis-referenceloader-utilslodash.currylodash.mergeloose-envifymagic-stringmemoizerificmerge-streammin-documentnpm-run-pathpostcss-calcpostcss-svgopretty-errorrange-parserreact-docgenregexpu-corerequireindexresolve-fromrun-parallelsafer-bufferschema-utilsserve-staticset-blockingsetimmediateside-channelspdx-correctstream-shiftstring-widthstrip-indentstyle-injectstyle-loadertest-excludetoidentifierua-parser-jsuniversalifyuuid-browseryargs-parser@mui/materialarray-flattenasync-limiterbplist-parsercamelcase-csscolor-convertcolor-supportconcat-streamcssnano-utilsdetect-indentdom-converterdotenv-expandend-of-streamestree-walkereventemitter3fbjs-css-varsfunction-bindgeneric-namesget-intrinsichtml-entitieshttp-deceiverhuman-signalsindent-stringinternal-slotis-color-stoplaunch-editorloader-runnermulticast-dnsnearest-colornode-releasesnormalize-urlobject-assignobject.assignobjectorarrayparent-modulepretty-formatpretty-hrtimereact-refreshrequires-portserve-faviconshallow-cloneshebang-regexsource-map-jsunique-stringunist-util-is@emotion/reactbalanced-matchbrowser-assertcore-js-compatdelayed-streamdom-serializerdomelementtypefaye-websocketfind-cache-dirgithub-sluggerglob-to-regexphttp-parser-jsis-binary-pathis-core-moduleis-date-objectis-path-insideis-typed-arrayjest-haste-maplodash.memoizemap-or-similarmkdirp-classicnormalize-pathobject-inspectpath-to-regexppostcss-importpostcss-loaderpostcss-nestedpromise.seriesproxy-from-envpuppeteer-corereact-colorfulsetprototypeofsimple-swizzlespdy-transportstring_decodersupports-colorto-regex-rangeutil-deprecatev8-to-istanbul@emotion/styledaggregate-errorbonjour-servicebrace-expansionbrowserify-zlibbuiltin-modulescolor-name-listcolor-stringifycombined-streamcss-color-namesdefault-gatewayes-get-iteratores-module-lexerestree-to-babelfast-deep-equalfast-json-parseget-caller-filehas-tostringtaghex-color-regexhosted-git-infois-absolute-urlis-array-bufferis-plain-objectjest-regex-utillodash.debouncemarkdown-to-jsxmaterial-colorsnatural-comparenormalize-rangepath-browserifypostcss-modulesqueue-microtaskreact-inspectorreadable-streamsafe-identifiershebang-commandspdx-exceptionswebpack-sourcesare-we-there-yetcookie-signaturedefine-lazy-propenhanced-resolveesbuild-registerfast-levenshteinfile-entry-cachefollow-redirectsforeground-childget-package-typeis-number-objectistanbul-reportslodash.camelcasepath-is-absolutepostcss-colorminspdx-license-idsunist-util-visitwebsocket-driverwhich-collectionbinary-extensionsdefine-propertieses6-object-assignfile-system-cachegrapheme-splitterhttps-proxy-agentis-boolean-objectis-builtin-modulelines-and-columnsmerge-descriptorsnode-fetch-nativerequire-directorywhich-typed-arraywrite-file-atomicchrome-trace-eventcommon-path-prefixconvert-source-mapdefault-browser-iderror-stack-parserisomorphic-unfetchrollup-pluginutilssource-map-supportto-fast-propertieswebidl-conversionswebpack-dev-serveransi-html-communitycontent-dispositioneslint-visitor-keysget-npm-tarball-urlhtml-webpack-pluginistanbul-lib-reportminimalistic-assertpostcss-load-configpostcss-merge-rulesregenerator-runtimerequire-from-stringstrip-final-newlinestrip-json-commentssynchronous-promiseuse-resize-observercrypto-random-stringelectron-to-chromiumesbuild-plugin-aliasescape-string-regexpeslint-rule-composerfunctions-have-nameshtml-minifier-tersericss-replace-symbolsjson-schema-traversemdast-util-to-stringnatural-compare-litepostcss-value-parserprocess-nextick-argsreact-base16-stylingserialize-javascriptwebsocket-extensionsbabel-plugin-istanbuldom-accessibility-apihttp-proxy-middlewareis-generator-functionistanbul-lib-coveragelazy-universal-dotenvnode-abort-controllerpostcss-discard-emptypostcss-minify-paramspostcss-modules-scopepostcss-normalize-urlregenerator-transformremark-external-linksspdx-expression-parseterser-webpack-pluginwhich-boxed-primitiveavailable-typed-arraysconcat-with-sourcemapscss-declaration-sortercssnano-preset-defaultdetect-package-manageris-shared-array-buffermdast-util-definitionsnormalize-package-datapostcss-convert-valuespostcss-merge-longhandpostcss-modules-valuespostcss-ordered-valuespostcss-reduce-initialregexp.prototype.flagssimple-update-notifierspace-separated-tokensupdate-browserslist-dbwebpack-dev-middlewarewebpack-hot-middlewareacorn-import-assertionsconsole-control-stringsis-fullwidth-code-pointistanbul-lib-instrumentpostcss-selector-parserprettier-linter-helpersreact-docgen-typescriptreact-lifecycles-compatstop-iteration-iteratorwebpack-virtual-moduleshas-property-descriptorspostcss-discard-commentspostcss-minify-gradientspostcss-minify-selectorspostcss-normalize-stringpostcss-unique-selectorsunist-util-visit-parentsbabel-plugin-react-docgenpostcss-normalize-charsetpostcss-normalize-unicodepostcss-reduce-transformsfast-json-stable-stringifypostcss-discard-duplicatespostcss-discard-overriddenpostcss-minify-font-valuespostcss-normalize-positionsreact-element-to-jsx-stringconnect-history-api-fallbackpostcss-normalize-whitespacevalidate-npm-package-licensebabel-plugin-polyfill-corejs2babel-plugin-polyfill-corejs3json-parse-even-better-errorsregenerate-unicode-propertiesfork-ts-checker-webpack-pluginpostcss-normalize-repeat-stylepostcss-modules-extract-importssupports-preserve-symlinks-flagbabel-plugin-named-exports-orderpostcss-modules-local-by-defaultpostcss-normalize-display-valuesbabel-plugin-polyfill-regeneratorunicode-match-property-ecmascriptbabel-plugin-add-react-displaynamepostcss-normalize-timing-functionscase-sensitive-paths-webpack-pluginunicode-property-aliases-ecmascriptjson-stable-stringify-without-jsonifyunicode-match-property-value-ecmascriptunicode-canonical-property-names-ecmascript