Skip to content

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

License

Notifications You must be signed in to change notification settings

ioeridev/ioeri-presetcss

Repository files navigation

ioeri-presetcss

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

Required

*React library *postcss

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published