@docubook/create 1.15.1 → 1.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -3
- package/src/dist/app/page.tsx +1 -1
- package/src/dist/contents/docs/api-reference/delete/index.mdx +63 -0
- package/src/dist/contents/docs/api-reference/fetch/index.mdx +63 -0
- package/src/dist/contents/docs/api-reference/get/index.mdx +63 -0
- package/src/dist/contents/docs/api-reference/post/index.mdx +63 -0
- package/src/dist/contents/docs/changelog/version-1/index.mdx +22 -660
- package/src/dist/contents/docs/changelog/version-2/index.mdx +49 -0
- package/src/dist/contents/docs/changelog/version-3/index.mdx +49 -0
- package/src/dist/contents/docs/getting-started/development/index.mdx +63 -0
- package/src/dist/contents/docs/getting-started/introduction/index.mdx +49 -36
- package/src/dist/contents/docs/getting-started/quick-start-guide/index.mdx +44 -126
- package/src/dist/docu.json +90 -104
- package/src/dist/package.json +1 -1
- package/src/dist/contents/docs/components/accordion/index.mdx +0 -86
- package/src/dist/contents/docs/components/button/index.mdx +0 -40
- package/src/dist/contents/docs/components/card/index.mdx +0 -68
- package/src/dist/contents/docs/components/card-group/index.mdx +0 -47
- package/src/dist/contents/docs/components/code-block/index.mdx +0 -39
- package/src/dist/contents/docs/components/custom/index.mdx +0 -38
- package/src/dist/contents/docs/components/file-tree/index.mdx +0 -109
- package/src/dist/contents/docs/components/image/index.mdx +0 -37
- package/src/dist/contents/docs/components/index.mdx +0 -9
- package/src/dist/contents/docs/components/keyboard/index.mdx +0 -117
- package/src/dist/contents/docs/components/link/index.mdx +0 -34
- package/src/dist/contents/docs/components/note/index.mdx +0 -44
- package/src/dist/contents/docs/components/release-note/index.mdx +0 -130
- package/src/dist/contents/docs/components/stepper/index.mdx +0 -45
- package/src/dist/contents/docs/components/tabs/index.mdx +0 -70
- package/src/dist/contents/docs/components/tooltips/index.mdx +0 -22
- package/src/dist/contents/docs/components/youtube/index.mdx +0 -23
- package/src/dist/contents/docs/getting-started/customize/index.mdx +0 -92
- package/src/dist/contents/docs/getting-started/index.mdx +0 -9
- package/src/dist/contents/docs/getting-started/installation/index.mdx +0 -84
- package/src/dist/contents/docs/getting-started/project-structure/index.mdx +0 -87
- package/src/dist/contents/docs/getting-started/theme-colors/coffee/index.mdx +0 -165
- package/src/dist/contents/docs/getting-started/theme-colors/default/index.mdx +0 -160
- package/src/dist/contents/docs/getting-started/theme-colors/freshlime/index.mdx +0 -161
- package/src/dist/contents/docs/getting-started/theme-colors/index.mdx +0 -9
- package/src/dist/contents/docs/getting-started/theme-colors/llms/index.mdx +0 -77
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Coffee
|
|
3
|
-
description: A warm, minimalistic design inspired by early computing. This theme is a replica of the "Coffee" theme from the `shiki-twoslash` package.
|
|
4
|
-
date: 2025-05-30
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Styles
|
|
8
|
-
|
|
9
|
-
<Note type="note" title="note">
|
|
10
|
-
You can override the default styles by adding your own CSS variables in the `globals.css` and `syntax.css` files.
|
|
11
|
-
</Note>
|
|
12
|
-
|
|
13
|
-
<Tabs defaultValue="globals" className="pt-5 pb-1">
|
|
14
|
-
<TabsList>
|
|
15
|
-
<TabsTrigger value="globals">globals.css</TabsTrigger>
|
|
16
|
-
<TabsTrigger value="syntax">syntax.css</TabsTrigger>
|
|
17
|
-
</TabsList>
|
|
18
|
-
<TabsContent value="globals">
|
|
19
|
-
```css:globals.css
|
|
20
|
-
/* Rich Coffee Theme */
|
|
21
|
-
@layer base {
|
|
22
|
-
:root {
|
|
23
|
-
--background: 35 40% 96%;
|
|
24
|
-
--foreground: 25 25% 10%;
|
|
25
|
-
--card: 0 0% 100%;
|
|
26
|
-
--card-foreground: 25 25% 10%;
|
|
27
|
-
--popover: 0 0% 100%;
|
|
28
|
-
--popover-foreground: 25 25% 10%;
|
|
29
|
-
--primary: 25 60% 40%;
|
|
30
|
-
--primary-foreground: 0 0% 100%;
|
|
31
|
-
--secondary: 35 30% 90%;
|
|
32
|
-
--secondary-foreground: 25 25% 10%;
|
|
33
|
-
--muted: 35 20% 94%;
|
|
34
|
-
--muted-foreground: 25 15% 35%;
|
|
35
|
-
--accent: 30 50% 38%;
|
|
36
|
-
--accent-foreground: 0 0% 100%;
|
|
37
|
-
--destructive: 5 85% 45%;
|
|
38
|
-
--destructive-foreground: 0 0% 100%;
|
|
39
|
-
--border: 30 15% 85%;
|
|
40
|
-
--input: 30 15% 88%;
|
|
41
|
-
--ring: 25 60% 40%;
|
|
42
|
-
--radius: 0.5rem;
|
|
43
|
-
--chart-1: 25 60% 45%;
|
|
44
|
-
--chart-2: 30 55% 45%;
|
|
45
|
-
--chart-3: 35 50% 42%;
|
|
46
|
-
--chart-4: 20 45% 38%;
|
|
47
|
-
--chart-5: 40 45% 40%;
|
|
48
|
-
--line-number-color: rgba(0, 0, 0, 0.08);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.dark {
|
|
52
|
-
--background: 30 10% 6%;
|
|
53
|
-
--foreground: 35 20% 94%;
|
|
54
|
-
--card: 30 10% 8%;
|
|
55
|
-
--card-foreground: 35 20% 94%;
|
|
56
|
-
--popover: 30 10% 8%;
|
|
57
|
-
--popover-foreground: 35 20% 94%;
|
|
58
|
-
--primary: 30 45% 52%;
|
|
59
|
-
--primary-foreground: 30 10% 6%;
|
|
60
|
-
--secondary: 30 12% 14%;
|
|
61
|
-
--secondary-foreground: 35 20% 94%;
|
|
62
|
-
--muted: 30 10% 16%;
|
|
63
|
-
--muted-foreground: 30 15% 60%;
|
|
64
|
-
--accent: 28 40% 48%;
|
|
65
|
-
--accent-foreground: 0 0% 100%;
|
|
66
|
-
--destructive: 5 80% 55%;
|
|
67
|
-
--destructive-foreground: 0 0% 100%;
|
|
68
|
-
--border: 30 10% 20%;
|
|
69
|
-
--input: 30 10% 20%;
|
|
70
|
-
--ring: 30 45% 52%;
|
|
71
|
-
--chart-1: 30 45% 52%;
|
|
72
|
-
--chart-2: 28 40% 50%;
|
|
73
|
-
--chart-3: 32 45% 50%;
|
|
74
|
-
--chart-4: 25 35% 46%;
|
|
75
|
-
--chart-5: 35 40% 48%;
|
|
76
|
-
--line-number-color: rgba(255, 255, 255, 0.12);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
</TabsContent>
|
|
81
|
-
|
|
82
|
-
<TabsContent value="syntax">
|
|
83
|
-
```css:syntax.css
|
|
84
|
-
/* Rich Coffee Theme - Syntax Highlighting */
|
|
85
|
-
|
|
86
|
-
/* Light Mode */
|
|
87
|
-
.keyword {
|
|
88
|
-
color: hsl(25 60% 35%); /* Rich coffee brown */
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.function {
|
|
92
|
-
color: hsl(30 55% 38%); /* Warm coffee brown */
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.punctuation {
|
|
96
|
-
color: hsl(30 15% 55%); /* Muted brown */
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.comment {
|
|
100
|
-
color: hsl(25 15% 45%); /* Muted brown */
|
|
101
|
-
font-style: italic;
|
|
102
|
-
opacity: 0.9;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.string,
|
|
106
|
-
.constant,
|
|
107
|
-
.annotation,
|
|
108
|
-
.boolean,
|
|
109
|
-
.number {
|
|
110
|
-
color: hsl(32 50% 40%); /* Warm brown with hint of orange */
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.tag {
|
|
114
|
-
color: hsl(25 65% 30%); /* Dark rich coffee */
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.attr-name {
|
|
118
|
-
color: hsl(28 55% 38%); /* Warm brown */
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.attr-value {
|
|
122
|
-
color: hsl(35 55% 35%); /* Slightly orange brown */
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* Dark Mode */
|
|
126
|
-
.dark .keyword {
|
|
127
|
-
color: hsl(30 50% 65%); /* Light warm brown */
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.dark .function {
|
|
131
|
-
color: hsl(28 55% 68%); /* Light warm brown */
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.dark .string,
|
|
135
|
-
.dark .constant,
|
|
136
|
-
.dark .annotation,
|
|
137
|
-
.dark .boolean,
|
|
138
|
-
.dark .number {
|
|
139
|
-
color: hsl(35 50% 72%); /* Light warm brown with hint of orange */
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.dark .tag {
|
|
143
|
-
color: hsl(30 50% 75%); /* Light warm brown */
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.dark .attr-name {
|
|
147
|
-
color: hsl(28 45% 70%); /* Light warm brown */
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.dark .attr-value {
|
|
151
|
-
color: hsl(35 50% 70%); /* Light warm brown with hint of orange */
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.dark .comment {
|
|
155
|
-
color: hsl(30 15% 65%); /* Light brown-gray */
|
|
156
|
-
opacity: 0.8;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.dark .punctuation {
|
|
160
|
-
color: hsl(30 15% 70%); /* Light brown-gray */
|
|
161
|
-
opacity: 0.9;
|
|
162
|
-
}
|
|
163
|
-
```
|
|
164
|
-
</TabsContent>
|
|
165
|
-
</Tabs>
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Default Theme
|
|
3
|
-
description: This page explains the Modern Blue theme colors used in DocuBook, which is a default theme provided by DocuBook.
|
|
4
|
-
date: 2025-05-20
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Styles
|
|
8
|
-
<Note type="note" title="note">
|
|
9
|
-
You can override the default styles by adding your own CSS variables in the `globals.css` and `syntax.css` files.
|
|
10
|
-
</Note>
|
|
11
|
-
|
|
12
|
-
<Tabs defaultValue="globals" className="pt-5 pb-1">
|
|
13
|
-
<TabsList>
|
|
14
|
-
<TabsTrigger value="globals">globals.css</TabsTrigger>
|
|
15
|
-
<TabsTrigger value="syntax">syntax.css</TabsTrigger>
|
|
16
|
-
</TabsList>
|
|
17
|
-
<TabsContent value="globals">
|
|
18
|
-
```css:globals.css
|
|
19
|
-
/* Modern Blue Theme */
|
|
20
|
-
@layer base {
|
|
21
|
-
:root {
|
|
22
|
-
--background: 210 40% 98%;
|
|
23
|
-
--foreground: 220 30% 15%;
|
|
24
|
-
--card: 0 0% 100%;
|
|
25
|
-
--card-foreground: 220 30% 15%;
|
|
26
|
-
--popover: 0 0% 100%;
|
|
27
|
-
--popover-foreground: 220 30% 15%;
|
|
28
|
-
--primary: 210 81% 56%; /* #2281E3 */
|
|
29
|
-
--primary-foreground: 0 0% 100%;
|
|
30
|
-
--secondary: 210 30% 90%;
|
|
31
|
-
--secondary-foreground: 220 30% 15%;
|
|
32
|
-
--muted: 210 20% 92%;
|
|
33
|
-
--muted-foreground: 220 15% 50%;
|
|
34
|
-
--accent: 200 100% 40%;
|
|
35
|
-
--accent-foreground: 0 0% 100%;
|
|
36
|
-
--destructive: 0 85% 60%;
|
|
37
|
-
--destructive-foreground: 0 0% 100%;
|
|
38
|
-
--border: 210 20% 85%;
|
|
39
|
-
--input: 210 20% 85%;
|
|
40
|
-
--ring: 210 81% 56%;
|
|
41
|
-
--radius: 0.5rem;
|
|
42
|
-
--chart-1: 210 81% 56%;
|
|
43
|
-
--chart-2: 200 100% 40%;
|
|
44
|
-
--chart-3: 220 76% 60%;
|
|
45
|
-
--chart-4: 190 90% 50%;
|
|
46
|
-
--chart-5: 230 86% 45%;
|
|
47
|
-
--line-number-color: rgba(0, 0, 0, 0.05);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dark {
|
|
51
|
-
--background: 220 25% 10%;
|
|
52
|
-
--foreground: 210 30% 96%;
|
|
53
|
-
--card: 220 25% 15%;
|
|
54
|
-
--card-foreground: 210 30% 96%;
|
|
55
|
-
--popover: 220 25% 15%;
|
|
56
|
-
--popover-foreground: 210 30% 96%;
|
|
57
|
-
--primary: 210 100% 65%;
|
|
58
|
-
--primary-foreground: 220 25% 10%;
|
|
59
|
-
--secondary: 215 25% 20%;
|
|
60
|
-
--secondary-foreground: 210 30% 96%;
|
|
61
|
-
--muted: 215 20% 25%;
|
|
62
|
-
--muted-foreground: 215 20% 65%;
|
|
63
|
-
--accent: 200 100% 60%;
|
|
64
|
-
--accent-foreground: 0 0% 100%;
|
|
65
|
-
--destructive: 0 85% 70%;
|
|
66
|
-
--destructive-foreground: 0 0% 100%;
|
|
67
|
-
--border: 215 20% 25%;
|
|
68
|
-
--input: 215 20% 25%;
|
|
69
|
-
--ring: 210 100% 65%;
|
|
70
|
-
--chart-1: 210 100% 65%;
|
|
71
|
-
--chart-2: 200 100% 60%;
|
|
72
|
-
--chart-3: 220 90% 70%;
|
|
73
|
-
--chart-4: 190 100% 65%;
|
|
74
|
-
--chart-5: 230 90% 60%;
|
|
75
|
-
--line-number-color: rgba(255, 255, 255, 0.1);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
</TabsContent>
|
|
80
|
-
|
|
81
|
-
<TabsContent value="syntax">
|
|
82
|
-
```css:syntax.css
|
|
83
|
-
/* Modern Blue Theme */
|
|
84
|
-
/* Light Mode */
|
|
85
|
-
.keyword {
|
|
86
|
-
color: #1d4ed8; /* Darker blue for better contrast */
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.function {
|
|
90
|
-
color: #0369a1; /* Deep blue */
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.punctuation {
|
|
94
|
-
color: #4b5563; /* Slate gray */
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.comment {
|
|
98
|
-
color: #6b7280; /* Muted gray */
|
|
99
|
-
font-style: italic;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.string,
|
|
103
|
-
.constant,
|
|
104
|
-
.annotation,
|
|
105
|
-
.boolean,
|
|
106
|
-
.number {
|
|
107
|
-
color: #0d9488; /* Teal for better distinction */
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.tag {
|
|
111
|
-
color: #1d4ed8; /* Matching keyword color */
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.attr-name {
|
|
115
|
-
color: #0284c7; /* Sky blue */
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.attr-value {
|
|
119
|
-
color: #2563eb; /* Primary blue */
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
/* Dark Mode */
|
|
123
|
-
.dark .keyword {
|
|
124
|
-
color: #60a5fa; /* Soft blue */
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.dark .function {
|
|
128
|
-
color: #38bdf8; /* Sky blue */
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.dark .string,
|
|
132
|
-
.dark .constant,
|
|
133
|
-
.dark .annotation,
|
|
134
|
-
.dark .boolean,
|
|
135
|
-
.dark .number {
|
|
136
|
-
color: #2dd4bf; /* Teal */
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.dark .tag {
|
|
140
|
-
color: #60a5fa; /* Matching keyword color */
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.dark .attr-name {
|
|
144
|
-
color: #7dd3fc; /* Lighter blue */
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.dark .attr-value {
|
|
148
|
-
color: #3b82f6; /* Brighter blue */
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.dark .comment {
|
|
152
|
-
color: #9ca3af; /* Lighter gray for dark mode */
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
.dark .punctuation {
|
|
156
|
-
color: #9ca3af; /* Lighter gray for dark mode */
|
|
157
|
-
}
|
|
158
|
-
```
|
|
159
|
-
</TabsContent>
|
|
160
|
-
</Tabs>
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Fresh Lime
|
|
3
|
-
description: A fresh and vibrant freshlime-themed color scheme that's easy on the eyes while maintaining excellent readability.
|
|
4
|
-
date: 2025-05-30
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Styles
|
|
8
|
-
<Note type="note" title="note">
|
|
9
|
-
You can override the default styles by adding your own CSS variables in the `globals.css` and `syntax.css` files.
|
|
10
|
-
</Note>
|
|
11
|
-
|
|
12
|
-
<Tabs defaultValue="globals" className="pt-5 pb-1">
|
|
13
|
-
<TabsList>
|
|
14
|
-
<TabsTrigger value="globals">globals.css</TabsTrigger>
|
|
15
|
-
<TabsTrigger value="syntax">syntax.css</TabsTrigger>
|
|
16
|
-
</TabsList>
|
|
17
|
-
<TabsContent value="globals">
|
|
18
|
-
```css:globals.css
|
|
19
|
-
/* Fresh Lime Theme */
|
|
20
|
-
@layer base {
|
|
21
|
-
:root {
|
|
22
|
-
--background: 85 45% 98%;
|
|
23
|
-
--foreground: 85 30% 10%;
|
|
24
|
-
--card: 0 0% 100%;
|
|
25
|
-
--card-foreground: 85 30% 10%;
|
|
26
|
-
--popover: 0 0% 100%;
|
|
27
|
-
--popover-foreground: 85 30% 10%;
|
|
28
|
-
--primary: 85 70% 45%;
|
|
29
|
-
--primary-foreground: 0 0% 100%;
|
|
30
|
-
--secondary: 85 40% 90%;
|
|
31
|
-
--secondary-foreground: 85 30% 10%;
|
|
32
|
-
--muted: 85 30% 92%;
|
|
33
|
-
--muted-foreground: 85 15% 45%;
|
|
34
|
-
--accent: 85 60% 40%;
|
|
35
|
-
--accent-foreground: 0 0% 100%;
|
|
36
|
-
--destructive: 0 85% 60%;
|
|
37
|
-
--destructive-foreground: 0 0% 100%;
|
|
38
|
-
--border: 85 25% 88%;
|
|
39
|
-
--input: 85 25% 88%;
|
|
40
|
-
--ring: 85 70% 45%;
|
|
41
|
-
--radius: 0.5rem;
|
|
42
|
-
--chart-1: 85 70% 45%;
|
|
43
|
-
--chart-2: 85 60% 40%;
|
|
44
|
-
--chart-3: 85 80% 40%;
|
|
45
|
-
--chart-4: 85 85% 35%;
|
|
46
|
-
--chart-5: 85 90% 30%;
|
|
47
|
-
--line-number-color: rgba(0, 0, 0, 0.05);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.dark {
|
|
51
|
-
--background: 85 20% 8%;
|
|
52
|
-
--foreground: 85 30% 96%;
|
|
53
|
-
--card: 85 20% 10%;
|
|
54
|
-
--card-foreground: 85 30% 96%;
|
|
55
|
-
--popover: 85 20% 10%;
|
|
56
|
-
--popover-foreground: 85 30% 96%;
|
|
57
|
-
--primary: 85 75% 55%;
|
|
58
|
-
--primary-foreground: 85 20% 8%;
|
|
59
|
-
--secondary: 85 25% 18%;
|
|
60
|
-
--secondary-foreground: 85 30% 96%;
|
|
61
|
-
--muted: 85 20% 20%;
|
|
62
|
-
--muted-foreground: 85 20% 70%;
|
|
63
|
-
--accent: 85 70% 50%;
|
|
64
|
-
--accent-foreground: 0 0% 100%;
|
|
65
|
-
--destructive: 0 85% 65%;
|
|
66
|
-
--destructive-foreground: 0 0% 100%;
|
|
67
|
-
--border: 85 25% 22%;
|
|
68
|
-
--input: 85 25% 22%;
|
|
69
|
-
--ring: 85 75% 55%;
|
|
70
|
-
--chart-1: 85 75% 55%;
|
|
71
|
-
--chart-2: 85 70% 50%;
|
|
72
|
-
--chart-3: 85 80% 45%;
|
|
73
|
-
--chart-4: 85 85% 40%;
|
|
74
|
-
--chart-5: 85 90% 35%;
|
|
75
|
-
--line-number-color: rgba(255, 255, 255, 0.1);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
```
|
|
79
|
-
</TabsContent>
|
|
80
|
-
|
|
81
|
-
<TabsContent value="syntax">
|
|
82
|
-
```css:syntax.css
|
|
83
|
-
/* Fresh Lime Theme - Syntax Highlighting */
|
|
84
|
-
|
|
85
|
-
/* Light Mode */
|
|
86
|
-
.keyword {
|
|
87
|
-
color: hsl(85 70% 30%); /* Dark lime green */
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.function {
|
|
91
|
-
color: hsl(85 65% 35%); /* Slightly lighter lime */
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.punctuation {
|
|
95
|
-
color: hsl(85 15% 50%); /* Muted green-gray */
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.comment {
|
|
99
|
-
color: hsl(85 15% 50%); /* Muted green-gray */
|
|
100
|
-
font-style: italic;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.string,
|
|
104
|
-
.constant,
|
|
105
|
-
.annotation,
|
|
106
|
-
.boolean,
|
|
107
|
-
.number {
|
|
108
|
-
color: hsl(85 50% 35%); /* Medium lime green */
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.tag {
|
|
112
|
-
color: hsl(85 70% 25%); /* Darker lime */
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.attr-name {
|
|
116
|
-
color: hsl(85 60% 35%); /* Lime green */
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.attr-value {
|
|
120
|
-
color: hsl(85 70% 30%); /* Dark lime green */
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/* Dark Mode */
|
|
124
|
-
.dark .keyword {
|
|
125
|
-
color: hsl(85 75% 65%); /* Bright lime */
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.dark .function {
|
|
129
|
-
color: hsl(85 75% 60%); /* Slightly less bright lime */
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.dark .string,
|
|
133
|
-
.dark .constant,
|
|
134
|
-
.dark .annotation,
|
|
135
|
-
.dark .boolean,
|
|
136
|
-
.dark .number {
|
|
137
|
-
color: hsl(85 60% 70%); /* Light lime */
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.dark .tag {
|
|
141
|
-
color: hsl(85 70% 70%); /* Bright lime */
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.dark .attr-name {
|
|
145
|
-
color: hsl(85 65% 70%); /* Light lime */
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.dark .attr-value {
|
|
149
|
-
color: hsl(85 75% 65%); /* Bright lime */
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.dark .comment {
|
|
153
|
-
color: hsl(85 15% 60%); /* Light gray-green */
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.dark .punctuation {
|
|
157
|
-
color: hsl(85 20% 70%); /* Light gray-green */
|
|
158
|
-
}
|
|
159
|
-
```
|
|
160
|
-
</TabsContent>
|
|
161
|
-
</Tabs>
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title : Theme Colors
|
|
3
|
-
description : Color system used in DocuBook for styling UI elements
|
|
4
|
-
date : 2025-05-20
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
DocuBook comes with a carefully designed color system that ensures consistency and accessibility across your documentation. The theme includes both light and dark modes, automatically adapting to the user's system preferences.
|
|
8
|
-
|
|
9
|
-
<Outlet path="getting-started/theme-colors" />
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Llms.txt - Generate Custom Theme
|
|
3
|
-
description: Complete guide for creating and using AI-generated custom themes based on LLMS context.
|
|
4
|
-
date: 2025-05-31
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Introduction
|
|
8
|
-
This document explains how to create and implement custom color themes using AI with LLMS context. The context includes a consistent color palette for both light and dark modes, along with syntax highlighting colors for code.
|
|
9
|
-
|
|
10
|
-
## File Structure
|
|
11
|
-
<Files>
|
|
12
|
-
<Folder name="styles">
|
|
13
|
-
<File name="globals.css" />
|
|
14
|
-
<File name="syntax.css" />
|
|
15
|
-
</Folder>
|
|
16
|
-
</Files>
|
|
17
|
-
|
|
18
|
-
## Generate New Theme
|
|
19
|
-
|
|
20
|
-
<Stepper>
|
|
21
|
-
<StepperItem title="Step 1: Access LLM for Color Generation">
|
|
22
|
-
Ensure you have access to a language model (LLM) that supports color palette generation
|
|
23
|
-
</StepperItem>
|
|
24
|
-
<StepperItem title="Step 2: Prepare Color Context">
|
|
25
|
-
Share the content of the [llms.txt](/llms.txt) file with the AI to provide the current color scheme context.
|
|
26
|
-
</StepperItem>
|
|
27
|
-
<StepperItem title="Step 3: Define Color Requirements">
|
|
28
|
-
Determine your preferred color scheme or theme requirements
|
|
29
|
-
</StepperItem>
|
|
30
|
-
<StepperItem title="Step 4: Generate New Theme">
|
|
31
|
-
Use the following prompt to request a new theme from the AI:
|
|
32
|
-
|
|
33
|
-
```markdown
|
|
34
|
-
Create a new color theme based on the provided context with the following requirements:
|
|
35
|
-
1. Different primary color #2281E3
|
|
36
|
-
2. Maintain good contrast for accessibility
|
|
37
|
-
3. Include variants for both light and dark modes
|
|
38
|
-
4. Keep the same structure as the provided context
|
|
39
|
-
```
|
|
40
|
-
<Note type="danger" title="Colors example">
|
|
41
|
-
changes the value of Hex color `#2281E3` into your brand colors.
|
|
42
|
-
</Note>
|
|
43
|
-
</StepperItem>
|
|
44
|
-
</Stepper>
|
|
45
|
-
|
|
46
|
-
## Implementation
|
|
47
|
-
After receiving the new color palette:
|
|
48
|
-
|
|
49
|
-
1. Copy the generated CSS code to your theme file
|
|
50
|
-
2. Update CSS variables in `globals.css`
|
|
51
|
-
3. Adjust syntax colors in `syntax.css` if needed
|
|
52
|
-
4. Test the theme across different devices and display modes
|
|
53
|
-
|
|
54
|
-
## Example Implementation
|
|
55
|
-
```css
|
|
56
|
-
:root {
|
|
57
|
-
--primary: 210 81% 56%; /* Primary color */
|
|
58
|
-
--secondary: 210 30% 90%; /* Secondary color */
|
|
59
|
-
/* ... and so on */
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.dark {
|
|
63
|
-
--primary: 210 100% 65%; /* Dark mode primary color */
|
|
64
|
-
/* ... and so on */
|
|
65
|
-
}
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
## Tips and Recommendations
|
|
69
|
-
- Always test color contrast to ensure accessibility
|
|
70
|
-
- Maintain consistency with existing themes
|
|
71
|
-
- Use tools like [WebAIM Contrast Checker](https://webaim.org/resources/contrastchecker/) to verify contrast ratios
|
|
72
|
-
- Keep backups of previous theme versions before making major changes
|
|
73
|
-
|
|
74
|
-
## Troubleshooting
|
|
75
|
-
- If colors don't change, ensure CSS variables are properly imported
|
|
76
|
-
- Check CSS selector specificity if styles conflict
|
|
77
|
-
- Verify dark/light mode toggling is working correctly
|