An elegant and minimalist theme for Hexo, designed with a dark color scheme and code-inspired aesthetics.
If you find this theme useful, please consider giving it a star on GitHub! Your support helps make the project more visible and encourages continued development.

Image credit: Black cat at work by Pixabay
- โจ Features
- ๐ Star History
- ๐ Installation
- ๐ง Configuration
- ๐ Language Support
- ๐ Blog Post Settings
- ๐จ Custom Styling
- ๐ฑ Mobile Optimization
- ๐ Search Configuration
- ๐ License
- ๐ฌ Support
- ๐ Dark mode optimized - Designed for comfortable reading
- ๐ฑ Fully responsive - Perfect display on all devices
- ๐ Fast loading - Optimized performance
- ๐จ Clean design - Minimalist and elegant interface
- ๐ VS Code style search - Familiar and powerful search functionality
- ๐ Code highlighting - Beautiful syntax highlighting in VS Code style
- ๐ง Easy configuration - Simple and intuitive setup
- ๐ Explorer-like sidebar - Intuitive navigation for categories and tags
- ๐ Multi-language support - 12 languages available out of the box
- ๐ง๐ปโโ๏ธ Mermaid diagrams support - Integrated support for Mermaid diagrams
-
Navigate to your Hexo site's themes directory:
cd themes
-
Clone this repository:
git clone https://github.com/B143KC47/VSC4T.git
-
Set the theme in your site's configuration:
theme: VSC4T
For proper theme deployment, set the following in your Hexo site's _config.yml
:
relative_link: true
Without enabling relative links, the theme may not deploy and function correctly.
For proper code block rendering, set the following in your Hexo site's _config.yml
:
hljs: true
Otherwise you might encounter issues that code block rendered with empty lines.
This theme requires the following pages. Make sure to create them:
- Create Categories page:
Then edit
hexo new page categories
source/categories/index.md
and add--- title: categories layout: categories ---
- Create Tags page:
Then edit
hexo new page tags
source/tags/index.md
and addtype: "tags"
--- title: tags layout: tags ---
- Create About page:
And add your personal information to
hexo new page about
source/about/index.md
--- title: about date: 2025-02-22 22:14:44 --- A very good simple theme
- Create Search page:
Then edit
hexo new page search
source/search/index.md
and add:--- title: search layout: search ---
Modify the _config.yml
in the theme directory:
# Basic Information
name: BlackCat
description: A simple dark Hexo theme inspired by code.
author: YourName
# Basic Website Configuration
url: https://b143kc47.github.io/VSC4T
root: /VSC4T/
# Menu Configuration
url: https://B143KC47.github.io/xxxxx # actual url
root: /xxxxxx/ # If your website is deployed in a subdirectory, you need to configure the root property
# _config.yml
syntax_highlighter: highlight.js
highlight:
auto_detect: true
line_number: true
line_threshold: 0
tab_replace: ""
exclude_languages:
- example
wrap: true
hljs: true
prismjs:
preprocess: true
line_number: true
line_threshold: 0
tab_replace: ""
Click to expand supported languages
- ๐บ๐ธ English (en)
- ๐จ๐ณ Simplified Chinese (zh-CN)
- ๐ฏ๐ต Japanese (ja)
- ๐ฐ๐ท Korean (ko)
- ๐ซ๐ท French (fr)
- ๐ฉ๐ช German (de)
- ๐ช๐ธ Spanish (es)
- ๐ฎ๐น Italian (it)
- ๐ท๐บ Russian (ru)
- ๐ต๐น Portuguese (pt)
- ๐ฆ๐ช Arabic (ar)
- ๐ป๐ณ Vietnamese (vi)
To use a different language, set the language
parameter in your site's _config.yml
:
# For Japanese
language: ja
# For Korean
language: ko
# For French
language: fr
hexo new post "Your Post Title"
Click to see example post format
---
title: VSC4T - A Dark and Elegant Hexo Theme
date: 2023-06-15 10:30:00
tags: [hexo, theme, dark-mode, responsive]
categories: [web-design, themes]
---
Your post content goes here...
- This will create a new markdown file in
source/_posts/your-post-title.md
This theme supports custom CSS and JS. In the theme configuration:
custom_css:
- /css/mobile.css
custom_js:
- /js/code-copy.js
- /js/mobile-menu.js
The theme is fully optimized for mobile devices with:
- Responsive design
- Touch-friendly navigation
- Optimized reading experience
This theme uses built-in code highlighting by default. You can adjust it through the following settings:
highlight:
enable: true
line_number: true
auto_detect: true
The theme support mermaid diagrams, you need to install the following plugin to make sure it can render properly:
npm install hexo-filter-mermaid-diagrams
The theme includes a powerful search functionality inspired by VS Code's search interface. The search feature allows users to:
- Search through all blog posts and pages
- Filter by title, content, tags, and categories
- Use keyboard navigation (โโ arrows and Enter)
- See highlighted search matches
- Get context-aware search previews
Search is enabled by default. The search index is automatically generated when you build your site. You can customize the search behavior in your site's _config.yml
:
search:
path: search.json # Path to generate the search index file
field: post # Search field, available: post, page, all
content: true # Whether to include post/page content
format: html # Content format to parse, available: html, raw
โ
/โ
: Navigate through search resultsEnter
: Open selected resultEsc
: Clear search input
The search interface includes filters for:
- Titles
- Content
- Tags
- Categories
Users can toggle these filters to narrow down their search results.
Thanks to all the contributors who have helped make this theme better!
Note: If contributors aren't showing correctly, they may need to have their contributions properly linked to their GitHub accounts. Check that commits are associated with GitHub emails.
We welcome all contributions to improve VSC4T theme! Here's how you can help:
- Fork the repository
- Create your feature branch:
git checkout -b feature/amazing-feature
- Commit your changes:
git commit -m 'Add some amazing feature'
- Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
For more details, please read our Contributing Guidelines.
This theme is released under the MIT License.
If you have any questions or need help, please open an issue in the GitHub repository.