Loading repository data…
Loading repository data…
B143KC47 / repository
A dark and elegant Hexo theme inspired by the Visual Studio Code dark theme. Clean, responsive, and highly customizable for your blog.
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
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.
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:
hexo new page categories
Then edit source/categories/index.md and add
---
title: categories
layout: categories
---
hexo new page tags
Then edit source/tags/index.md and add type: "tags"
---
title: tags
layout: tags
---
hexo new page about
And add your personal information to source/about/index.md
---
title: about
date: 2025-02-22 22:14:44
---
A very good simple theme
hexo new page search
Then edit 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
# Style Configuration
style:
# Color scheme ('dark' or 'white')
colorscheme: 'dark'
# 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: ""
VSC4T now supports both dark and light themes inspired by VS Code's Dark+ and Light+ color schemes.
To switch between dark and light themes, modify the colorscheme setting in the theme's _config.yml:
# Style configuration
style:
# Color scheme ('dark' or 'white')
colorscheme: 'dark' # Use 'white' for light theme
dark - VS Code Dark+ inspired theme (default)
white - VS Code Light+ inspired theme
After changing the colorscheme setting:
Clean your Hexo cache:
hexo clean
Regenerate your site:
hexo generate
Start your server to see the changes:
hexo server
If the theme doesn't change after updating the configuration:
colorscheme value is exactly 'dark' or 'white'hexo clean and hexo generate completed successfullyTo 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"
---
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...
source/_posts/your-post-title.mdTo make a post stick to the top of your homepage and archive:
---
title: Important Announcement
date: 2024-01-01 10:00:00
sticky: true
tags: [announcement]
categories: [news]
---
Your important content here...
Sticky posts will:
The theme supports custom favicon configuration with multiple formats and sizes for different devices:
source/ directory_config.yml:# Favicon configuration
favicon:
ico: /favicon.ico # Traditional favicon format
small: /favicon-16x16.png # 16x16 PNG
medium: /favicon-32x32.png # 32x32 PNG
large: /favicon-192x192.png # 192x192 PNG (Android)
apple_touch_icon: /apple-touch-icon.png # 180x180 (iOS)
Recommended favicon sizes:
favicon.ico: Multi-resolution ICO filefavicon-16x16.png: For browser tabsfavicon-32x32.png: For browser shortcutsfavicon-192x192.png: For Android devicesapple-touch-icon.png: 180x180 for iOS devicesThis 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:
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 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 inputThe search interface includes filters for:
Users can toggle these filters to narrow down their search results.
The theme now supports multiple comment systems with automatic theme switching between dark and light modes.
Waline is a privacy-friendly comment syst