28 lines
		
	
	
		
			840 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			840 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import {
 | |
|   defineConfig,
 | |
|   presetAttributify,
 | |
|   presetTypography,
 | |
|   presetUno,
 | |
|   transformerDirectives,
 | |
|   transformerVariantGroup,
 | |
| } from 'unocss';
 | |
| 
 | |
| import { presetScrollbar } from 'unocss-preset-scrollbar';
 | |
| 
 | |
| export default defineConfig({
 | |
|   presets: [presetUno(), presetAttributify({ ignoreAttributes: ['size'] }), presetTypography(), presetScrollbar()],
 | |
|   transformers: [transformerDirectives(), transformerVariantGroup()],
 | |
|   theme: {
 | |
|     colors: {
 | |
|       primary: '#1ea54c',
 | |
| 
 | |
|     },
 | |
|   },
 | |
|   shortcuts: {
 | |
|     'pretty-scrollbar': 'scrollbar scrollbar-rounded scrollbar-thumb-color-gray-300 scrollbar-track-color-gray-100 dark:scrollbar-thumb-color-#424242 dark:scrollbar-track-color-#686868',
 | |
|     'divider': 'h-1px bg-current op-10',
 | |
|     'bg-surface': 'bg-#ffffff dark:bg-#232323',
 | |
|     'bg-background': 'bg-#f1f5f9 dark:bg-#1c1c1c',
 | |
|   },
 | |
| });
 |