Skip to content

Commit

Permalink
chore: move uno config
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Apr 10, 2024
1 parent b943d6e commit 2709858
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 33 deletions.
8 changes: 0 additions & 8 deletions playground/uno.config.ts

This file was deleted.

2 changes: 1 addition & 1 deletion playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default defineConfig({
},
plugins: [
vue(),
UnoCSS(),
UnoCSS('../unocss.config.ts') as any,
AutoImport({
imports: [
'vue',
Expand Down
25 changes: 1 addition & 24 deletions talk/uno.config.ts
Original file line number Diff line number Diff line change
@@ -1,24 +1 @@
import type { Preset } from 'unocss'
import { defineConfig } from 'unocss'
import type { UsefulTheme } from 'unocss-preset-useful'
import { presetUseful } from 'unocss-preset-useful'

export default defineConfig({
shortcuts: {
'grad-color': 'text-$vp-c-brand',
'linear-text': 'text-transparent bg-clip-text bg-gradient-to-r',
'grad-p-r': 'linear-text from-purple to-red',
},
presets: [
presetUseful({
webFonts: {
provider: 'google',
fonts: {
sans: 'Roboto',
mono: ['Fira Code', 'Fira Mono:400,700'],
},
},
}) as Preset<UsefulTheme>,
],
separators: ['_', '-', ':'],
})
export { default } from '../uno.config'
24 changes: 24 additions & 0 deletions uno.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import type { Preset } from 'unocss'
import { defineConfig } from 'unocss'
import type { UsefulTheme } from 'unocss-preset-useful'
import { presetUseful } from 'unocss-preset-useful'

export default defineConfig({
shortcuts: {
'grad-color': 'text-$vp-c-brand',
'linear-text': 'text-transparent bg-clip-text bg-gradient-to-r',
'grad-p-r': 'linear-text from-purple to-red',
},
presets: [
presetUseful({
webFonts: {
provider: 'google',
fonts: {
sans: 'Roboto',
mono: ['Fira Code', 'Fira Mono:400,700'],
},
},
}) as Preset<UsefulTheme>,
],
separators: ['_', '-', ':'],
})

0 comments on commit 2709858

Please sign in to comment.