Skip to content

Commit b4c1d67

Browse files
committed
docs: add ui-thing to the docs
1 parent 8090725 commit b4c1d67

File tree

7 files changed

+2004
-67
lines changed

7 files changed

+2004
-67
lines changed

playground/.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
"trailingComma": "es5",
1010
"useTabs": false,
1111
"vueIndentScriptAndStyle": true,
12-
"tailwindFunctions": ["tv", "tw"],
12+
"tailwindFunctions": ["tv"],
1313
"importOrder": ["<BUILTIN_MODULES>", "<THIRD_PARTY_MODULES>", "<TYPES>", "", "^[.]"]
1414
}
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
@import url("https://rsms.me/inter/inter.css");
2+
3+
@tailwind base;
4+
@tailwind components;
5+
@tailwind utilities;
6+
7+
@layer base {
8+
:root {
9+
--background: 0 0% 100%;
10+
--foreground: 240 10% 3.9%;
11+
--card: 0 0% 100%;
12+
--card-foreground: 240 10% 3.9%;
13+
--popover: 0 0% 100%;
14+
--popover-foreground: 240 10% 3.9%;
15+
--primary: 240 5.9% 10%;
16+
--primary-foreground: 0 0% 98%;
17+
--secondary: 240 4.8% 95.9%;
18+
--secondary-foreground: 240 5.9% 10%;
19+
--muted: 240 4.8% 95.9%;
20+
--muted-foreground: 240 3.8% 46.1%;
21+
--accent: 240 4.8% 95.9%;
22+
--accent-foreground: 240 5.9% 10%;
23+
--destructive: 0 84.2% 60.2%;
24+
--destructive-foreground: 0 0% 98%;
25+
--border: 240 5.9% 90%;
26+
--input: 240 5.9% 90%;
27+
--ring: 240 5.9% 10%;
28+
--radius: 0.5rem;
29+
}
30+
31+
.dark {
32+
--background: 240 10% 3.9%;
33+
--foreground: 0 0% 98%;
34+
--card: 240 10% 3.9%;
35+
--card-foreground: 0 0% 98%;
36+
--popover: 240 10% 3.9%;
37+
--popover-foreground: 0 0% 98%;
38+
--primary: 0 0% 98%;
39+
--primary-foreground: 240 5.9% 10%;
40+
--secondary: 240 3.7% 15.9%;
41+
--secondary-foreground: 0 0% 98%;
42+
--muted: 240 3.7% 15.9%;
43+
--muted-foreground: 240 5% 64.9%;
44+
--accent: 240 3.7% 15.9%;
45+
--accent-foreground: 0 0% 98%;
46+
--destructive: 0 62.8% 30.6%;
47+
--destructive-foreground: 0 0% 98%;
48+
--border: 240 3.7% 15.9%;
49+
--input: 240 3.7% 15.9%;
50+
--ring: 240 4.9% 83.9%;
51+
}
52+
}
53+
54+
@layer base {
55+
* {
56+
@apply border-border;
57+
}
58+
body {
59+
@apply bg-background text-foreground;
60+
font-feature-settings:
61+
"rlig" 1,
62+
"calt" 1;
63+
}
64+
}

playground/nuxt.config.ts

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,37 @@
11
export default defineNuxtConfig({
22
future: { compatibilityVersion: 4 },
33
devtools: { enabled: true, telemetry: false },
4-
modules: ["../src/module"],
4+
5+
modules: [
6+
"../src/module",
7+
"@nuxtjs/tailwindcss",
8+
"@nuxtjs/color-mode",
9+
"@vueuse/nuxt",
10+
"@nuxt/icon",
11+
],
12+
513
css: ["@/assets/main.css"],
614
compatibilityDate: "2024-10-08",
15+
16+
tailwindcss: {
17+
exposeConfig: true,
18+
},
19+
20+
colorMode: {
21+
classSuffix: "",
22+
},
23+
24+
imports: {
25+
imports: [
26+
{
27+
from: "tailwind-variants",
28+
name: "tv",
29+
},
30+
{
31+
from: "tailwind-variants",
32+
name: "VariantProps",
33+
type: true,
34+
},
35+
],
36+
},
737
});

0 commit comments

Comments
 (0)