1.0.1 • Published 9 months ago

ioeri-presetcss v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

ioeri-presetcss

Preset css compose integrated - for ioeri - any UI - tailwind.

Required

*React library *postcss

ioeri-presetcss repository

Installation ioeri-presetcss:

using npm

npm install postcss ioeri-presetcss

using yarn

yarn add postcss ioeri-presetcss

Usage

Add ioeri-presetcss to your postcss.config.js config:

module.exports = {
  plugins: {
    'ioeri-presetcss': {
      colorSchemeAttr: 'custom-color-scheme', // Replace with the attribute name you want
    },
  },
};

Now you have access to styling component in to theme.

Sample:

css classes

.class {
  color: light-dark(rgb(26 27 30), white);
}

tailwind classes

<span className="text-[light-dark(#1a1b1e,_#fff)]">...</span>

🚨

In practice, some of our syntax/code approach may be incompatible with the library and version you are using.

🏗️

You can join for testing or take part in providing updates.

Contributors

Become a contributor

License

MIT License

© ioeridev