Welcome to inZOI Guide! This is an open-source guide website for inZOI game, built with Docusaurus V3, TailwindCSS and Shadcn/UI, providing a modern, beautiful and accessible platform for players.
inZOI Guide aims to provide:
- 📚 Comprehensive gameplay guides
- 🎮 Detailed game mechanics explanations
- 🛠 Useful tips and strategies
- 🔧 MOD installation and usage guides
- 👥 Active player community
- Clone the repository:
git clone https://github.com/hr98w/inzoi-guide.git
cd inzoi-guide
- Install dependencies:
npm install
- Start the development server:
npm start
- Build for production:
npm run build
inzoi-guide/
├── blog/
├── docs/
├── src/
│ ├── components/
│ │ └── ui/ # Shadcn/UI components
│ ├── css/
│ │ └── custom.css # TailwindCSS and custom styles
│ ├── lib/
│ │ └── utils.ts # Utility functions
│ └── pages/ # React pages
├── static/
├── tailwind.config.js # TailwindCSS configuration
├── postcss.config.js # PostCSS configuration
└── docusaurus.config.js # Docusaurus configuration
The project includes a custom TailwindCSS configuration optimized for Docusaurus:
// tailwind.config.js
module.exports = {
content: [
"./src/**/*.{js,jsx,ts,tsx}",
"./docs/**/*.{js,jsx,ts,tsx}",
"./blog/**/*.{js,jsx,ts,tsx}",
],
darkMode: ["class", '[data-theme="dark"]'], // Support Docusaurus dark mode
// ... rest of the configuration
}
All Shadcn/UI components are located in src/components/ui/
. To use a component:
import { Button } from '../components/ui/button';
function MyComponent() {
return (
<Button variant="outline">
Click me
</Button>
);
}
Note: You can't install Shadcn/UI via CLI, so you need to copy the components (manual) and change the import path.
The local search is configured in docusaurus.config.js
:
themes: [
[
require.resolve('@easyops-cn/docusaurus-search-local'),
{
indexPages: true,
docsRouteBasePath: '/docs',
hashed: true,
language: ['vi'],
highlightSearchTermsOnTargetPage: false,
searchResultContextMaxLength: 50,
searchResultLimits: 8,
searchBarShortcut: true,
searchBarShortcutHint: true
}
]
],
- Modify colors in
tailwind.config.js
- Update CSS variables in
src/css/custom.css
- Customize Shadcn/UI components in
src/components/ui/
- Create component in
src/components/ui/
orsrc/components/
- Import and use in your pages/docs
Example:
// src/components/ui/custom-button.tsx
import { Button } from './button';
export function CustomButton({ children }) {
return (
<Button className="custom-styles">
{children}
</Button>
);
}
This project is licensed under the MIT License - see the LICENSE file for details.
This project is derived from docusaurus-tailwind-shadcn-template