MCPcopy Index your code
hub / github.com/BeardedBear/bearded-theme

github.com/BeardedBear/bearded-theme @v10.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v10.1.0 ↗ · + Follow
24 symbols 65 edges 26 files 1 documented · 4%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Bearded Theme - Developer Guide

This document provides the necessary instructions for setting up, developing, and publishing the Bearded Theme VS Code extension.

Initial Setup

# Install dependencies
npm install

Development

Development Mode with Auto-reload

npm run dev

This mode uses nodemon to watch for changes in source files and automatically recompile the theme.

Building the theme

npm run build

This command generates the theme files in the themes/ folder.

Building the extension

npm run build:ext

This command creates a VSIX file that can be manually installed in VS Code. The file will be generated in ./releases/{version}.vsix.

Publication Process

Preparing a New Version

  1. Update the version in package.json
  2. Create a release notes file in ./releases/{version}.md with the details of the changes:
npm run create:release-notes

This file will be used for GitHub publication and should be modified with relevant information.

Publication Tokens

To publish the extension, you will need:

  1. A VS Code Marketplace token (VSCE_PAT)
  2. An Open VSX token (OVSX_TOKEN)

These tokens can be configured in a .env file at the root of the project:

VSCE_PAT=your_vscode_marketplace_token
OVSX_TOKEN=your_open_vsx_token

Manual Publication

The publish.sh script (for Linux/Mac) or publish.bat (for Windows) guides the user through the publication process:

# Linux/Mac
./publish.sh

# Windows
publish.bat

This script:

  • Checks the current version
  • Builds the VSIX extension if necessary
  • Checks/creates the release notes
  • Publishes to VS Code Marketplace
  • Publishes to Open VSX
  • Creates a version tag on GitHub

Individual Platform Publication

If you prefer to publish to each platform separately:

# VS Code Marketplace
npm run publish:vscode

# Open VSX
npm run publish:ovsx

# GitHub Release
npm run release

Complete Publication

To build the extension and publish it to all platforms in a single command:

npm run publish:all

Project Structure

  • src/ - TypeScript source code for theme generation
  • variations/ - Theme variants
  • scopes/ - Scope definitions for syntax highlighting
  • themes/ - Generated theme JSON files
  • releases/ - Release notes and VSIX packages
  • assets/ - Images and graphical resources

Troubleshooting

If you encounter issues during publication:

  1. Check that your access tokens are valid
  2. Make sure the version in package.json is unique and doesn't already exist
  3. Verify that release notes exist for the current version

Extension points exported contracts — how you extend this code

BridgeItem (Interface)
(no doc)
src/index.ts
Scope (Interface)
(no doc)
src/typing.ts
ThemePropsDark (Interface)
(no doc)
src/helper.ts
SemanticToken (Interface)
(no doc)
src/scopes/semanticTokens.ts
ThemeOptions (Interface)
(no doc)
src/index.ts
Theme (Interface)
(no doc)
src/typing.ts
ThemePropsLight (Interface)
(no doc)
src/helper.ts
ThemeColors (Interface)
(no doc)
src/typing.ts

Core symbols most depended-on inside this repo

makeTheme
called by 63
src/index.ts
createScope
called by 55
src/scopes/scopes.ts
makeMainColorsDark
called by 49
src/helper.ts
createSelectionColor
called by 17
src/ui.ts
makeMainColorsLight
called by 11
src/helper.ts
inputBackground
called by 3
src/ui.ts
getCommits
called by 3
src/create-release-notes.ts
surprisingColors
called by 3
src/variations/surprising.ts

Shape

Function 14
Interface 10

Languages

TypeScript100%

Modules by API surface

src/typing.ts5 symbols
src/ui.ts4 symbols
src/helper.ts4 symbols
src/index.ts3 symbols
src/create-release-notes.ts3 symbols
src/scopes/semanticTokens.ts2 symbols
src/scopes/scopes.ts2 symbols
src/variations/surprising.ts1 symbols

For agents

$ claude mcp add bearded-theme \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page