From 511ed7a2b1e0782e770d5f75d80c63536a87c891 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Tue, 30 Nov 2021 16:29:20 +0100 Subject: [PATCH] docs: update --- docs/nuxt.config.ts | 18 +++++++++++++++++- docs/pages/components/[component].vue | 13 +++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/docs/nuxt.config.ts b/docs/nuxt.config.ts index 0e9abf20..935ae28a 100644 --- a/docs/nuxt.config.ts +++ b/docs/nuxt.config.ts @@ -12,7 +12,15 @@ export default defineNuxtConfig({ }, bodyAttrs: { class: 'u-bg-gray-50 u-text-gray-700' - } + }, + link: [ + { rel: 'preconnect', href: 'https://fonts.googleapis.com' }, + { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }, + { + rel: 'stylesheet', + href: 'https://fonts.googleapis.com/css2?family=Inter&family=Fira+Code&display=swap' + } + ] }, buildModules: [ '../src' @@ -20,6 +28,14 @@ export default defineNuxtConfig({ ui: { colors: { primary: 'blue' + }, + unocss: { + theme: { + fontFamily: { + sans: '\'Inter\', sans-serif', + mono: '\'Fira Code\', monospace' + } + } } } }) diff --git a/docs/pages/components/[component].vue b/docs/pages/components/[component].vue index baf1aa72..748ea3b3 100644 --- a/docs/pages/components/[component].vue +++ b/docs/pages/components/[component].vue @@ -107,8 +107,21 @@ const defaultProps = { Icon: { name: 'heroicons-outline:bell' }, + Input: { + name: 'input' + }, + Checkbox: { + name: 'checkbox' + }, + Radio: { + name: 'radio' + }, Select: { + name: 'select', options: ['English', 'Spanish', 'French', 'German', 'Chinese'] + }, + Textarea: { + name: 'textarea' } }