mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
feat(module): allow tv customization through app.config (#2938)
This commit is contained in:
7
src/runtime/utils/tv.ts
Normal file
7
src/runtime/utils/tv.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { createTV, type defaultConfig } from 'tailwind-variants'
|
||||
import type { AppConfig } from '@nuxt/schema'
|
||||
import _appConfig from '#build/app.config'
|
||||
|
||||
const appConfig = _appConfig as AppConfig & { ui: { tv: typeof defaultConfig } }
|
||||
|
||||
export const tv = createTV(appConfig.ui?.tv)
|
||||
Reference in New Issue
Block a user