Is a common helpers for Invitato website purpose.
Install via npm:
npm i @invitato/helpers
or Yarn:
yarn add @invitato/helpers
then import specific helper what you need
import isDarkmode from '@invitato/helpers/dist/isDarkmode';
console.log('is darkmode active? ', isDarkmode());
Please refer this docs for the detail of availables helpers.
Can we use this helpers outside Invitato project?
Sure. you can use this helper if this helpers can fullfil your requirement.
Initiated by @idindrakusuma and maintained by Invitato team