Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Node dependencies
node_modules

# Logs
logs
*.log

# Misc
.DS_Store
.fleet
.idea
.eslintcache

# Local env files
.env
.env.*
!.env.example

# npm pack
*.tgz

# Temp files
.tmp
.profile
*.0x

#VSC
.history
.wrangler
2 changes: 2 additions & 0 deletions docs/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
3 changes: 0 additions & 3 deletions docs/.vscode/settings.json

This file was deleted.

6 changes: 0 additions & 6 deletions docs/app.config.ts

This file was deleted.

158 changes: 0 additions & 158 deletions docs/app.vue

This file was deleted.

50 changes: 50 additions & 0 deletions docs/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
export default defineAppConfig({
site: {
name: 'Nuxt Fonts',
},
ui: {
colors: {
primary: 'green',
neutral: 'slate',
},
},
github: {
rootDir: 'docs',
},
socials: {
nuxt: 'https://nuxt.com',
x: 'https://go.nuxt.com/x',
},
toc: {
title: 'Table of Contents',
bottom: {
title: 'Community',
links: [
{
icon: 'i-ph-shooting-star-duotone',
label: 'Star on GitHub',
to: 'https://github.com/nuxt/fonts',
target: '_blank',
},
{
icon: 'i-ph-chat-centered-text-duotone',
label: 'Chat on Discord',
to: 'https://chat.nuxt.dev',
target: '_blank',
},
{
icon: 'i-ph-hand-heart-duotone',
label: 'Become a Sponsor',
to: 'https://github.com/sponsors/nuxt',
target: '_blank',
},
{
icon: 'i-simple-icons-nuxtdotjs',
label: 'Nuxt docs',
to: 'https://nuxt.com',
target: '_blank',
},
],
},
},
})
18 changes: 18 additions & 0 deletions docs/app/assets/css/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@import "tailwindcss";
@import "@nuxt/ui-pro";

@theme static {
--font-sans: 'Public Sans', sans-serif;

--color-green-50: #EFFDF5;
--color-green-100: #D9FBE8;
--color-green-200: #B3F5D1;
--color-green-300: #75EDAE;
--color-green-400: #00DC82;
--color-green-500: #00C16A;
--color-green-600: #00A155;
--color-green-700: #007F45;
--color-green-800: #016538;
--color-green-900: #0A5331;
--color-green-950: #052E16;
}
53 changes: 53 additions & 0 deletions docs/app/components/AppHeaderBody.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<script setup lang="ts">
import type { ContentNavigationItem } from '@nuxt/content'

const navigation = inject<Ref<ContentNavigationItem[]>>('navigation')

const nav = computed(() => ([
{
title: 'Documentation',
icon: 'i-heroicons-book-open-solid',
path: '/get-started/installation',
children: navigation!.value,
},
{
title: 'Playground',
icon: 'i-ph-play-duotone',
children: [{
title: 'Basic',
icon: 'vscode-icons:file-type-css',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/basic',
}, {
title: 'SCSS',
icon: 'vscode-icons:file-type-scss',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/scss',
}, {
title: 'Tailwind CSS (v3)',
icon: 'vscode-icons:file-type-tailwind',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/tailwindcss@3',
}, {
title: 'Tailwind CSS (v4)',
icon: 'vscode-icons:file-type-tailwind',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/tailwindcss@4',
}, {
title: 'UnoCSS',
icon: 'vscode-icons:file-type-unocss',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/unocss',
}],
},
{
title: 'Releases',
icon: 'i-heroicons-rocket-launch-solid',
path: 'https://github.com/nuxt/fonts/releases',
target: '_blank',
},
]))
</script>

<template>
<UContentNavigation
highlight
variant="link"
:navigation="nav"
/>
</template>
43 changes: 43 additions & 0 deletions docs/app/components/AppHeaderCenter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<script setup lang="ts">
const links = [{
label: 'Documentation',
to: '/get-started/installation',
},
{
label: 'Playground',
children: [{
label: 'Basic',
icon: 'vscode-icons:file-type-css',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/basic',
}, {
label: 'SCSS',
icon: 'vscode-icons:file-type-scss',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/scss',
}, {
label: 'Tailwind CSS (v3)',
icon: 'vscode-icons:file-type-tailwind',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/tailwindcss@3',
}, {
label: 'Tailwind CSS (v4)',
icon: 'vscode-icons:file-type-tailwind',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/tailwindcss@4',
}, {
label: 'UnoCSS',
icon: 'vscode-icons:file-type-unocss',
to: 'https://stackblitz.com/github/nuxt/fonts/tree/main/playgrounds/unocss',
}],
},
{
label: 'Releases',
to: 'https://github.com/nuxt/fonts/releases',
target: '_blank',
}]
</script>

<template>
<UNavigationMenu
:items="links"
content-orientation="vertical"
variant="link"
/>
</template>
6 changes: 6 additions & 0 deletions docs/app/components/DocsAsideLeftTop.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<template>
<UContentSearchButton
:collapsed="false"
class="mb-8 w-full"
/>
</template>
Loading
Loading