unocss-preset-flowind
v0.0.5
Published
[![version](https://img.shields.io/npm/v/unocss-preset-flowind?label=unocss-preset-flowind)](https://www.npmjs.com/package/unocss-preset-flowind) [![CI](https://github.com/yjl9903/unocss-preset-flowind/actions/workflows/ci.yml/badge.svg)](https://github.c
Downloads
11
Readme
unocss-preset-flowind
Use Flowind Design System with UnoCSS.
[!IMPORTANT]
Please purchase the Flowind Design System LICENSE to support the original author.
Installation
npm i -D unocss-preset-flowind
Usage
// unocss.config.ts
import {
defineConfig,
presetUno,
presetIcons,
presetWebFonts,
presetAttributify,
transformerDirectives,
transformerVariantGroup
} from 'unocss';
import { presetShadcn } from 'unocss-preset-shadcn';
import { presetFlowind } from 'unocss-preset-flowind';
export default defineConfig({
content: {
pipeline: {
include: [/\.ts/, /index\.ts$/, /\.vue$/, /\.vue\?vue/]
}
},
presets: [
presetUno(),
presetAttributify(),
presetIcons({
scale: 1.1,
extraProperties: {
height: '1em',
'flex-shrink': '0',
display: 'inline-block'
}
}),
presetWebFonts({
provider: 'bunny',
fonts: {
sans: ['IBM Plex Sans', 'Noto Sans Simplified Chinese'],
mono: 'Input Mono',
quicksand: {
provider: 'fontshare',
name: 'Quicksand',
weights: ['1', '300', '400', '500', '600', '700']
}
}
}),
presetFlowind(),
presetShadcn()
],
transformers: [transformerDirectives(), transformerVariantGroup()],
shortcuts: {
'border-base': 'border-gray/40 dark:border-gray/40',
'text-base-50': 'text-neutral-50 dark:text-light-50',
'text-base-100': 'text-neutral-100 dark:text-light-100',
'text-base-200': 'text-neutral-200 dark:text-light-200',
'text-base-300': 'text-neutral-300 dark:text-light-300',
'text-base-400': 'text-neutral-400 dark:text-light-400',
'text-base-500': 'text-neutral-500 dark:text-light-500',
'text-base-600': 'text-neutral-600 dark:text-light-600',
'text-base-700': 'text-neutral-700 dark:text-light-700',
'text-base-800': 'text-neutral-800 dark:text-light-800',
'text-base-900': 'text-neutral-900 dark:text-light-900'
},
theme: {
colors: {
'main-50': '#fafafa',
'main-100': '#f5f5f5',
'main-200': '#e5e5e5',
'main-300': '#d4d4d4',
'main-400': '#a3a3a3',
'main-500': '#737373',
'main-600': '#525252',
'main-700': '#404040',
'main-800': '#262626',
'main-900': '#171717'
}
}
});
Credits
- Naye for mading Flowind Design System
- antfu for mading UnoCSS
License
MIT License © 2024 XLor