Skip to content

Commit

Permalink
chore: configure tailwind-config and add shadcn as a component library
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviareichl committed May 23, 2024
1 parent 1987c93 commit 84fc18e
Show file tree
Hide file tree
Showing 8 changed files with 1,046 additions and 165 deletions.
17 changes: 17 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://shadcn-vue.com/schema.json",
"style": "new-york",
"typescript": true,
"tsConfigPath": "./.nuxt/tsconfig.json",
"tailwind": {
"config": "tailwind.config.ts",
"css": "styles/shadcn-ui.css",
"baseColor": "neutral",
"cssVariables": true
},
"framework": "nuxt",
"aliases": {
"components": "@/components",
"utils": "@/utils/styles"
}
}
2 changes: 1 addition & 1 deletion layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ useHead({
</script>

<template>
<div class="grid min-h-full grid-rows-[auto_1fr_auto]">
<div class="grid min-h-full grid-rows-[auto_1fr_auto] font-sans">
<SkipLink target-id="main-content">{{ t("DefaultLayout.skip-to-main-content") }}</SkipLink>

<AppHeader />
Expand Down
25 changes: 18 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,41 @@
"test:e2e:update-snapshots": "playwright test --update-snapshots",
"types:check": "nuxt typecheck",
"validate": "run-p format:check lint:check types:check test test:e2e",
"createclient": "pnpm openapi-zod-client \"https://frischmuth-dev.acdh-dev.oeaw.ac.at/apis/swagger/schema/?format=json\" -o \"./lib/api.ts\""
"createclient": "pnpm openapi-zod-client \"./lib/APISgenericAPI.json\" -o \"./lib/api.ts\""
},
"dependencies": {
"@acdh-oeaw/lib": "^0.1.7",
"@fontsource-variable/inter": "^5.0.17",
"@fontsource-variable/inter": "^5.0.18",
"@nuxt/content": "^2.12.1",
"@nuxt/image": "^1.4.0",
"@nuxtjs/color-mode": "^3.3.2",
"@nuxtjs/i18n": "^8.2.0",
"@radix-icons/vue": "^1.0.0",
"@tailwindcss/typography": "^0.5.13",
"@tanstack/vue-query": "^5.32.0",
"@vueuse/core": "^10.9.0",
"@vueuse/nuxt": "^10.9.0",
"@zodios/core": "^10.9.6",
"add": "^2.0.6",
"card": "^2.5.4",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cva": "^1.0.0-beta.1",
"fast-glob": "^3.3.2",
"lucide-vue-next": "^0.358.0",
"nuxt": "^3.11.0",
"pino-http": "^9.0.0",
"radix-vue": "^1.8.1",
"satori": "^0.10.13",
"shadcn-vue": "^0.10.5",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7",
"ui": "link:components/ui",
"vue": "^3.4.21",
"vue-i18n": "^9.10.2",
"vue-i18n-routing": "^1.2.0",
"vue-router": "^4.3.0",
"zod": "^3.22.4",
"@zodios/core": "^10.9.6",
"@tanstack/vue-query": "^5.32.0"
"zod": "^3.22.4"
},
"devDependencies": {
"@acdh-oeaw/eslint-config": "^1.0.7",
Expand All @@ -80,6 +91,7 @@
"is-ci": "^3.0.1",
"lint-staged": "^15.2.2",
"npm-run-all2": "^6.1.2",
"openapi-zod-client": "^1.16.2",
"postcss": "^8.4.36",
"prettier": "^2.8.8",
"schema-dts": "^1.1.2",
Expand All @@ -88,8 +100,7 @@
"tailwindcss": "^3.4.1",
"typescript": "^5.4.2",
"vite": "^5.1.6",
"vue-tsc": "^2.0.6",
"openapi-zod-client": "^1.16.2"
"vue-tsc": "^2.0.6"
},
"browserslist": {
"development": [
Expand Down
Loading

0 comments on commit 84fc18e

Please sign in to comment.