@dargmuesli/nuxt-vio 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,47 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @layer base {
6
+ a:focus {
7
+ @apply outline-none ring;
8
+ }
9
+
10
+ button:focus {
11
+ @apply outline-none ring;
12
+ }
13
+
14
+ thead {
15
+ @apply sticky top-0 z-10 vio-bg-darken;
16
+ }
17
+
18
+ tbody {
19
+ @apply divide-y vio-divide-darken;
20
+ }
21
+ }
22
+
23
+ @layer utilities {
24
+ .vio-prose {
25
+ @apply m-auto prose prose-sm sm:prose-base lg:prose-lg xl:prose-xl; /* 2xl:prose-2xl */
26
+ }
27
+
28
+ .vio-prose-scheme {
29
+ @apply vio-prose dark:prose-invert;
30
+ }
31
+
32
+ .vio-prose-fullwidth {
33
+ @apply vio-prose max-w-full sm:max-w-full md:max-w-full xl:max-w-full 2xl:max-w-full;
34
+ }
35
+
36
+ .vio-divide-darken {
37
+ @apply divide-background-brighten dark:divide-background-darken;
38
+ }
39
+
40
+ .vio-bg-darken {
41
+ @apply bg-background-brighten dark:bg-background-darken;
42
+ }
43
+
44
+ .vio-border-darken {
45
+ @apply border-background-brighten dark:border-background-darken;
46
+ }
47
+ }
package/nuxt.config.ts CHANGED
@@ -1,5 +1,10 @@
1
+ import { dirname, join } from 'node:path'
2
+ import { fileURLToPath } from 'node:url'
3
+
1
4
  import { LOCALES, SITE_NAME } from './utils/constants'
2
5
 
6
+ const currentDir = dirname(fileURLToPath(import.meta.url))
7
+
3
8
  const BASE_URL =
4
9
  'https://' +
5
10
  (process.env.NUXT_PUBLIC_STACK_DOMAIN ||
@@ -111,4 +116,7 @@ export default defineNuxtConfig({
111
116
  site: {
112
117
  splash: false,
113
118
  },
119
+ tailwindcss: {
120
+ cssPath: join(currentDir, './assets/css/tailwind.css'),
121
+ },
114
122
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -10,6 +10,7 @@
10
10
  },
11
11
  "packageManager": "pnpm@8.2.0",
12
12
  "files": [
13
+ "assets",
13
14
  "components",
14
15
  "composables",
15
16
  "layouts",
@@ -25,8 +26,11 @@
25
26
  "generate": "nuxi generate .playground",
26
27
  "preview": "nuxi preview .playground",
27
28
  "prepare": "pnpm husky install && pnpm nuxt prepare .playground",
28
- "lint": "eslint --cache --ext .js,.ts,.vue --ignore-path .gitignore .",
29
- "lint:staged": "pnpm lint-staged"
29
+ "lint": "pnpm lint:js && pnpm lint:ts && pnpm lint:style",
30
+ "lint:js": "eslint --cache --ext .js,.ts,.vue --ignore-path .gitignore .",
31
+ "lint:staged": "pnpm lint-staged",
32
+ "lint:style": "stylelint **/*.{vue,css} --ignore-path .gitignore",
33
+ "lint:ts": "pnpm nuxt typecheck"
30
34
  },
31
35
  "dependencies": {
32
36
  "@dargmuesli/nuxt-cookie-control": "5.4.0",
@@ -51,6 +55,11 @@
51
55
  "lint-staged": "13.2.1",
52
56
  "nuxt": "3.4.0",
53
57
  "prettier": "2.8.7",
54
- "typescript": "5.0.4"
58
+ "stylelint": "15.4.0",
59
+ "stylelint-config-recommended-vue": "1.4.0",
60
+ "stylelint-config-standard": "32.0.0",
61
+ "stylelint-no-unsupported-browser-features": "6.1.0",
62
+ "typescript": "5.0.4",
63
+ "vue-tsc": "1.2.0"
55
64
  }
56
65
  }