-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
639 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,76 @@ | ||
import { defineConfig } from 'vite'; | ||
|
||
import { | ||
presetUno, | ||
presetIcons, | ||
presetWebFonts, | ||
presetTypography, | ||
presetAttributify, | ||
transformerDirectives, | ||
transformerVariantGroup | ||
} from 'unocss'; | ||
import Uno from 'unocss/vite'; | ||
|
||
import BuildInfo from 'vite-plugin-info'; | ||
import SharedWorkerClient from 'vite-plugin-sharedworker'; | ||
|
||
export default defineConfig({ | ||
plugins: [BuildInfo(), SharedWorkerClient()] | ||
plugins: [ | ||
BuildInfo(), | ||
SharedWorkerClient(), | ||
Uno({ | ||
presets: [ | ||
presetUno(), | ||
presetAttributify(), | ||
presetIcons({ | ||
scale: 1.1, | ||
extraProperties: { | ||
height: '1em', | ||
'flex-shrink': '0', | ||
display: 'inline-block' | ||
} | ||
}), | ||
presetWebFonts({ | ||
provider: 'google', | ||
fonts: { | ||
sans: ['Inter', 'Noto Sans Simplified Chinese'], | ||
mono: 'Input Mono' | ||
} | ||
}), | ||
presetTypography() | ||
], | ||
transformers: [transformerDirectives(), transformerVariantGroup()], | ||
shortcuts: { | ||
button: 'inline-flex items-center justify-center rounded-2 cursor-pointer select-none p2', | ||
'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' | ||
}, | ||
boxShadow: { | ||
box: '0 2px 3px rgb(10 10 10 / 10%), 0 0 0 1px rgb(10 10 10 / 10%)' | ||
} | ||
} | ||
}) | ||
] | ||
}); |
Oops, something went wrong.