Skip to content
This repository was archived by the owner on Nov 20, 2025. It is now read-only.

Commit 26cfee3

Browse files
theme-docs
creating theme chapter
2 parents 075616e + 326a15e commit 26cfee3

File tree

4 files changed

+112
-5
lines changed

4 files changed

+112
-5
lines changed

docs/src/pages/docs/_meta.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"index": "Installation",
33
"page-configuration": "",
4-
"theme-configuration": "",
5-
"Built-ins": "Built-ins"
4+
"configuration": "",
5+
"theme":"Theme",
6+
"Built-ins": "Built-ins",
7+
"deploy":"Deploy",
8+
"contributing":"Contributing"
69
}
File renamed without changes.

docs/src/pages/docs/theme.mdx

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
---
2+
title : To use 10000+ difference theming in the section blog theme.
3+
4+
---
5+
6+
The section blog theme is based on [Shadcn UI](https://ui.shadcn.com/docs/theming), and Shadcn UI has the functionality to use different themes.
7+
Official Shadcn UI has two themes: the first is the default, and the second is the New York theme.
8+
9+
There are tons of themes available for Shadcn UI on the internet.
10+
The [ui.jln.dev](https://ui.jln.dev/) website offers you more than 10000 custom Shadcn UI. You can use different themes in the section blog theme with copy-paste code.
11+
12+
13+
14+
## How to use the custom theme in the section blog theme?
15+
16+
You can copy any theme on ui.jln.dev website, paste in the global CSS file without **@layer directive**.
17+
18+
```css filename="globals.css"
19+
:root {
20+
--card: 287 70% 98%;
21+
--ring: 287 66% 82%;
22+
--input: 220 13% 91%;
23+
--muted: 47 39% 88%;
24+
--accent: 167 66% 82%;
25+
--border: 220 13% 91%;
26+
--popover: 287 70% 99%;
27+
--primary: 287 66% 82%;
28+
--secondary: 47 66% 82%;
29+
--background: 287 70% 99%;
30+
--foreground: 287 53% 0%;
31+
--destructive: 20 81% 21%;
32+
--card-foreground: 0 0% 0%;
33+
--muted-foreground: 47 0% 36%;
34+
--accent-foreground: 167 66% 22%;
35+
--popover-foreground: 287 53% 0%;
36+
--primary-foreground: 287 66% 22%;
37+
--secondary-foreground: 47 66% 22%;
38+
--destructive-foreground: 20 81% 81%;
39+
--radius: 0.5rem;
40+
}
41+
42+
.dark {
43+
--card: 287 55% 4%;
44+
--ring: 287 66% 82%;
45+
--input: 215 27.9% 16.9%;
46+
--muted: 47 39% 12%;
47+
--accent: 167 66% 82%;
48+
--border: 215 27.9% 16.9%;
49+
--popover: 287 55% 3%;
50+
--primary: 287 66% 82%;
51+
--secondary: 47 66% 82%;
52+
--background: 287 55% 3%;
53+
--foreground: 287 33% 98%;
54+
--destructive: 20 81% 47%;
55+
--card-foreground: 287 33% 99%;
56+
--muted-foreground: 47 0% 64%;
57+
--accent-foreground: 167 66% 22%;
58+
--popover-foreground: 287 33% 98%;
59+
--primary-foreground: 287 66% 22%;
60+
--secondary-foreground: 47 66% 22%;
61+
--destructive-foreground: 0 0% 100%;
62+
}
63+
64+
```
65+
66+
67+
## Why is Dark mode not working with the section blog theme with tailwind CSS?
68+
If you create your project using create-next-app, then remove the following code from your tailwind globals.css file. It creates conflict with Shadcn UI CSS variables.
69+
70+
71+
```css {5, 7-29} filename="globals.css"
72+
@tailwind base;
73+
@tailwind components;
74+
@tailwind utilities;
75+
76+
/* Remove/uncomment the bellow code. */
77+
78+
:root {
79+
--foreground-rgb: 0, 0, 0;
80+
--background-start-rgb: 214, 219, 220;
81+
--background-end-rgb: 255, 255, 255;
82+
}
83+
84+
@media (prefers-color-scheme: dark) {
85+
:root {
86+
--foreground-rgb: 255, 255, 255;
87+
--background-start-rgb: 0, 0, 0;
88+
--background-end-rgb: 0, 0, 0;
89+
}
90+
}
91+
92+
body {
93+
color: rgb(var(--foreground-rgb));
94+
background: linear-gradient(
95+
to bottom,
96+
transparent,
97+
rgb(var(--background-end-rgb))
98+
)
99+
rgb(var(--background-start-rgb));
100+
}
101+
102+
103+
```

docs/src/pages/index.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,16 @@ The section theme blog supports inbuilt dark mode, a Search bar, Customize Navig
1414
<br />
1515
<br />
1616

17-
import { IconMoon, IconSeo, IconCommand, IconLayoutNavbar, IconLayout } from "@tabler/icons-react"
17+
import { IconMoon, IconSeo, IconCommand, IconLayoutNavbar, IconLayout, IconBrush} from "@tabler/icons-react"
1818
import { Cards, Card } from 'nextra/components'
1919

2020
<Cards>
2121
<Card icon={<IconSeo />} title="SEO Support" description="Adding inbuilt SEO support on your blog" href="#" />
22-
<Card icon={<IconMoon />} title="dark mode" description="Switch the blog theme from light to dark" href="#" />
22+
<Card icon={<IconMoon />} title="Dark Mode" description="Switch the blog theme from light to dark" href="#" />
2323
<Card icon={<IconCommand />} title="Inbuilt Search Support" description="Inbuilt rich Search support to search a blog post based on text." href="#" />
24-
<Card icon={<IconLayoutNavbar />} title="Navigation" description="Customize your header, footer navigation, and as well social media icon." href="#" />
24+
<Card icon={<IconLayoutNavbar />} title="Inbuilt Navigation" description="Customize your header, footer navigation, and as well social media icon." href="#" />
2525
<Card icon={<IconLayout />} title="Mutiple Layout Support" description="In-built multiple layout support for the home page, regular page, author, author, posts, post, tag, etc." href="#" />
26+
<Card icon={<IconBrush />} title="Mutiple Theme Support" description="In-built multiple layout support for the home page, regular page, author, author, posts, post, tag, etc." href="#" />
2627
</Cards>
2728

2829
## Submit Issues

0 commit comments

Comments
 (0)