@inkline/unocss
v1.2.1
Published
<p align="center"> <a href="http://inkline.io/"> <img src="https://raw.githubusercontent.com/inkline/inkline.io/main/assets/images/logo/logo-black.svg" alt="Inkline logo" width=72 height=72> </a> </p>
Downloads
1
Readme
Installation
- Install dependencies.
npm i -D unocss @inkline/unocss
- Add the Inkline Unocss to your Vite.js configuration.
import { defineConfig } from 'vite';
import { inkline } from '@inkline/plugin/vite';
import { resolve } from 'path';
import unocss from '@unocss/vite';
import { presetInkline, UserOptions } from '@inkline/unocss';
const inklineConfig: UserOptions = {
outputDir: resolve(__dirname, 'src/css/config')
};
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
inkline(inklineConfig),
unocss({
presets: [presetInkline(inklineConfig)]
})
]
});
- Replace the existing
utilities.scss
import with thevirtual:uno.css
import in yourmain.ts
file:
- import '@inkline/inkline/css/utilities.scss?inline';
+ import 'virtual:uno.css';
- Enjoy!
Creator
Alex Grozav
- https://grozav.com
- https://twitter.com/alexgrozav
- https://facebook.com/alexgrozav
- https://github.com/alexgrozav
If you use Inkline in your daily work and feel that it has made your life easier, please consider sponsoring me on Github Sponsors. 💖
Copyright and license
Released under MIT License.