@docubook/create 1.15.0 → 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 +1 -1
- package/src/dist/app/layout.tsx +0 -1
- package/src/dist/app/page.tsx +1 -1
- package/src/dist/components/DocSearch.tsx +0 -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 -654
- 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/styles/algolia.css +97 -91
- package/src/dist/styles/globals.css +5 -3
- 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,92 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Customize
|
|
3
|
-
description: This guide provides instructions on customizing our application.
|
|
4
|
-
date: 29-11-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Markdown Options
|
|
8
|
-
|
|
9
|
-
To customize Markdown parsing, navigate to `@lib/markdown.ts` and locate the `parseMdx` function. You can add your desired plugins in the `mdxOptions`. Here’s an example:
|
|
10
|
-
|
|
11
|
-
```ts:lib/markdown.ts
|
|
12
|
-
async function parseMdx<Frontmatter>(rawMdx: string) {
|
|
13
|
-
return await compileMDX<Frontmatter>({
|
|
14
|
-
source: rawMdx,
|
|
15
|
-
options: {
|
|
16
|
-
parseFrontmatter: true,
|
|
17
|
-
mdxOptions: {
|
|
18
|
-
// Add your plugins here
|
|
19
|
-
rehypePlugins: [Shiki],
|
|
20
|
-
remarkPlugins: [remarkGfm],
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
components,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Fonts
|
|
29
|
-
|
|
30
|
-
Currently, this project uses the `Geist` font. If you want to use other fonts, you can change the configuration in the main layout as shown below:
|
|
31
|
-
|
|
32
|
-
### Google Fonts
|
|
33
|
-
|
|
34
|
-
To use a Google font, import your desired font from `next/font/google`, initialize it with options, and apply the variable to the `body`:
|
|
35
|
-
|
|
36
|
-
```tsx:app/layout.tsx
|
|
37
|
-
import { Space_Grotesk } from "next/font/google";
|
|
38
|
-
|
|
39
|
-
const fontSans = Space_Grotesk({
|
|
40
|
-
display: "swap",
|
|
41
|
-
variable: "--font-regular",
|
|
42
|
-
weight: "400",
|
|
43
|
-
subsets: ["latin"],
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
export default function RootLayout({ children }) {
|
|
47
|
-
return (
|
|
48
|
-
<html lang="en">
|
|
49
|
-
<body className={`${fontSans.variable} font-regular`}>
|
|
50
|
-
{children}
|
|
51
|
-
</body>
|
|
52
|
-
</html>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Local Fonts
|
|
58
|
-
|
|
59
|
-
To use a local font, you need to use the local font loader from Next.js. Pass the options and apply them to the `body`:
|
|
60
|
-
|
|
61
|
-
```tsx:app/layout.tsx
|
|
62
|
-
import localFont from "next/font/local";
|
|
63
|
-
|
|
64
|
-
const geistSans = localFont({
|
|
65
|
-
src: "./fonts/GeistVF.woff",
|
|
66
|
-
variable: "--font-regular",
|
|
67
|
-
weight: "100 900",
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
export default function RootLayout({ children }) {
|
|
71
|
-
return (
|
|
72
|
-
<html lang="en">
|
|
73
|
-
<body className={`${geistSans.variable} font-regular`}>
|
|
74
|
-
{children}
|
|
75
|
-
</body>
|
|
76
|
-
</html>
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
For both options, ensure that you add the variable to `tailwind.config.ts`:
|
|
82
|
-
|
|
83
|
-
```ts:tailwind.config.ts
|
|
84
|
-
{
|
|
85
|
-
// ...
|
|
86
|
-
extend: {
|
|
87
|
-
fontFamily: {
|
|
88
|
-
regular: ["var(--font-regular)"],
|
|
89
|
-
},
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
```
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Getting Started
|
|
3
|
-
description: Set up Your Documentations with DocuBook
|
|
4
|
-
date: 29-05-2025
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Welcome to DocuBook! This guide will help you set up and customize your documentation site quickly. Whether you're creating API references, user guides, or technical documentation, these components will help you build a professional and consistent documentation experience. Follow the steps below to get started with DocuBook and make the most of its powerful features.
|
|
8
|
-
|
|
9
|
-
<Outlet path="getting-started" />
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Installation
|
|
3
|
-
description: Installation guide for our application.
|
|
4
|
-
date: 17-02-2025
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
Setting up DocuBook is straightforward, with options to clone the repository or use the convenient `npx` command. DocuBook requires [Node.js](https://nodejs.org/) version 18 or higher for optimal performance.
|
|
8
|
-
|
|
9
|
-
## Clone Repository
|
|
10
|
-
|
|
11
|
-
To get started, you can clone the DocuBook repository directly from GitHub.
|
|
12
|
-
|
|
13
|
-
<Stepper>
|
|
14
|
-
<StepperItem title="Step 1: Clone the DocuBook Repository">
|
|
15
|
-
Begin by cloning the DocuBook repository from GitHub:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
git clone --branch main https://github.com/DocuBook/docubook.git
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
</StepperItem>
|
|
22
|
-
|
|
23
|
-
<StepperItem title="Step 2: Access the Project Directory">
|
|
24
|
-
After cloning, navigate into the project directory to start setting up:
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
cd docubook
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
</StepperItem>
|
|
31
|
-
|
|
32
|
-
<StepperItem title="Step 3: Install Required Dependencies">
|
|
33
|
-
Install all necessary project dependencies with npm:
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
npm install
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
</StepperItem>
|
|
40
|
-
|
|
41
|
-
<StepperItem title="Step 4: Launch the Development Server">
|
|
42
|
-
Finally, start the development server to view the project locally:
|
|
43
|
-
|
|
44
|
-
```bash
|
|
45
|
-
npm run dev
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
</StepperItem>
|
|
49
|
-
</Stepper>
|
|
50
|
-
|
|
51
|
-
## Quick Setup with CLI
|
|
52
|
-
|
|
53
|
-
For a faster setup, use the `cli` command to create a new DocuBook project in one step:
|
|
54
|
-
|
|
55
|
-
<Tabs defaultValue="npm" className="pt-5 pb-1">
|
|
56
|
-
<TabsList>
|
|
57
|
-
<TabsTrigger value="npm">npm</TabsTrigger>
|
|
58
|
-
<TabsTrigger value="pnpm">pnpm</TabsTrigger>
|
|
59
|
-
<TabsTrigger value="bun">bun</TabsTrigger>
|
|
60
|
-
<TabsTrigger value="yarn">yarn</TabsTrigger>
|
|
61
|
-
</TabsList>
|
|
62
|
-
<TabsContent value="npm">
|
|
63
|
-
```shell
|
|
64
|
-
npx @docubook/create@latest
|
|
65
|
-
```
|
|
66
|
-
</TabsContent>
|
|
67
|
-
<TabsContent value="pnpm">
|
|
68
|
-
```shell
|
|
69
|
-
pnpm dlx @docubook/create@latest
|
|
70
|
-
```
|
|
71
|
-
</TabsContent>
|
|
72
|
-
<TabsContent value="bun">
|
|
73
|
-
```shell
|
|
74
|
-
bunx @docubook/create@latest
|
|
75
|
-
```
|
|
76
|
-
</TabsContent>
|
|
77
|
-
<TabsContent value="yarn">
|
|
78
|
-
```shell
|
|
79
|
-
yarn dlx @docubook/create@latest
|
|
80
|
-
```
|
|
81
|
-
</TabsContent>
|
|
82
|
-
</Tabs>
|
|
83
|
-
|
|
84
|
-
With this setup, you’ll have a ready-to-use DocuBook instance to start building your documentation.
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Project Structure
|
|
3
|
-
description: This section provides an overview of Project Structure.
|
|
4
|
-
date: 29-11-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## app
|
|
8
|
-
|
|
9
|
-
This folder contains the main application code for Next.js, managing layouts, routing, and specific content pages. It is organized to support both the `docs` sections, with dedicated pages and layouts for each section.
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
app // Main Next.js application folder
|
|
13
|
-
├── page.tsx // Hero page - the entry point of the app showcasing key content
|
|
14
|
-
├── layout.tsx // Main layout file, applies global navigation and footer
|
|
15
|
-
└── docs
|
|
16
|
-
├── layout.tsx // Documentation layout with sidebar, providing easy navigation across doc pages
|
|
17
|
-
└── [[...slug]] // Catch-all route to handle nested documentation pages, allowing flexible doc structure
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## components
|
|
21
|
-
|
|
22
|
-
This folder contains all reusable components used throughout the project. It’s structured to categorize components, making it easy to locate and manage UI elements, Markdown customizations, and navigation.
|
|
23
|
-
|
|
24
|
-
```
|
|
25
|
-
components // Reusable components
|
|
26
|
-
├── ui // ShadCN components, includes standardized UI elements like buttons, forms, and modals
|
|
27
|
-
├── markdown // Custom Markdown components for rendering rich Markdown content
|
|
28
|
-
│ ├── CodeBlock.tsx // Component for rendering syntax-highlighted code blocks
|
|
29
|
-
│ ├── Image.tsx // Component for handling responsive images in Markdown
|
|
30
|
-
│ └── Table.tsx // Component to render tables with consistent styling
|
|
31
|
-
└── navbar.tsx // Main navigation component for the site header, managing links and responsive behavior
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## styles
|
|
35
|
-
|
|
36
|
-
This folder contains global and component-specific CSS files, allowing for project-wide styling consistency and customizations.
|
|
37
|
-
|
|
38
|
-
```
|
|
39
|
-
styles // CSS files
|
|
40
|
-
├── globals.css // Global CSS file, includes Tailwind base, utilities, and custom global styles
|
|
41
|
-
├── syntax.css // Syntax highlighting styles, providing consistent code block appearance across the site
|
|
42
|
-
└── overrides.css // Additional custom styles that override specific component or plugin defaults
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## contents
|
|
46
|
-
|
|
47
|
-
This folder stores all Markdown content for the documentation and blog sections, with clear organization by content type. Each Markdown file represents a single piece of content, with frontmatter used for metadata.
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
contents // Markdown content for blogs and documentation
|
|
51
|
-
├── docs // Documentation content, structured to support nested sections and pages
|
|
52
|
-
│ ├── getting-started // Main Folder at the Contents
|
|
53
|
-
│ └─── installation // Subfolder for tutorial-style content
|
|
54
|
-
| └── index.mdx // Step-by-step tutorial on a specific topic
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## public
|
|
58
|
-
|
|
59
|
-
This folder holds all static assets, such as images, videos, fonts, and icons. These files are directly accessible via URL, so it’s important to avoid sensitive or private content here.
|
|
60
|
-
|
|
61
|
-
```
|
|
62
|
-
public // Publicly accessible assets
|
|
63
|
-
├── images // Image assets, used across various parts of the app
|
|
64
|
-
│ ├── og-image.png // Default opengraph image for thumbnail
|
|
65
|
-
│ └── docu.svg // Your site Logo
|
|
66
|
-
├── favicon.ico // Favicon for the app
|
|
67
|
-
└── videos // Video files for media content, if any
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## lib
|
|
71
|
-
|
|
72
|
-
This folder contains helper functions and utilities used across the application, such as Markdown parsing and routing logic. These utilities help keep the codebase clean and organized by separating out common functionality.
|
|
73
|
-
|
|
74
|
-
```
|
|
75
|
-
lib // Utility or helper functions
|
|
76
|
-
├── changelog.ts // Change log for the app, used to display recent changes and updates
|
|
77
|
-
├── markdown.ts // Markdown parsing logic, converts Markdown to HTML and adds custom components
|
|
78
|
-
├── routes-config.ts // Routing configuration for docs, maps URLs to content files for dynamic routing
|
|
79
|
-
└── utils.tsx // General utility functions used across the app, such as data formatting and validation helpers
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
## Additional
|
|
83
|
-
|
|
84
|
-
- **`package.json`**: Contains metadata about the project, dependencies, and scripts for building and running the application.
|
|
85
|
-
- **`tailwind.config.ts`**: Configures Tailwind CSS, allowing customization of theme colors, fonts, and responsive breakpoints specific to this project.
|
|
86
|
-
|
|
87
|
-
This structure organizes your project in a way that supports scalability and maintainability, making it easier to navigate and work on different sections of the application.
|
|
@@ -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>
|