Themes
ThinkCode offers extensive theming capabilities to customize the visual appearance of your coding environment. This allows you to create a comfortable and personalized development experience.
Built-in Themes
ThinkCode comes with several high-quality themes out of the box:
Theme | Description |
---|---|
ThinkCode Light | The default light theme with modern, clean aesthetics |
ThinkCode Dark | A dark theme optimized for reducing eye strain |
ThinkCode Contrast | High contrast theme for improved accessibility |
ThinkCode Sepia | A warm, paper-like theme for comfortable reading |
ThinkCode Monochrome | Minimalist theme with grayscale colors |
You can switch between these themes in the Settings menu under Appearance → Color Theme.
Theme Structure
ThinkCode themes are defined using a structured format that provides control over various UI elements:
Creating Custom Themes
You can create your own themes to fully customize the ThinkCode experience:
-
Generate a Theme Template: Navigate to Command Palette (Ctrl+Shift+P or Cmd+Shift+P) → Generate Theme Template.
-
Customize Colors: Edit the generated JSON file to modify colors for:
- UI elements (editor, sidebar, status bar, etc.)
- Syntax highlighting for different language constructs
- ThinkCode-specific elements (AI suggestions, context panels, etc.)
-
Test Your Theme: Use the Preview Theme option in the Command Palette to see your changes in real-time without installing the theme.
-
Package Your Theme: Use the Package Theme command to create a
.ttheme
file that can be installed. -
Share Your Theme: Submit your theme to the ThinkCode Marketplace or share it directly with colleagues.
ThinkCode AI Theme Adaptation
A unique feature of ThinkCode is AI-powered theme adaptation, which can:
- Automatically adjust theme brightness based on ambient light
- Suggest color changes to improve readability
- Optimize contrast ratios for accessibility
- Create variations of your favorite themes
- Generate entirely new themes based on your preferences
To access these features, use the AI Theme Assistant in the Command Palette.
Theme Synchronization
ThinkCode's theme settings can be synchronized across devices using:
- ThinkCode Cloud Sync
- Settings Profiles
- GitHub/GitLab accounts
- Local export/import
Color Tokens Reference
When creating custom themes, you can use the following key color tokens:
Token | Controls |
---|---|
editor.background | Main editing area background |
editor.foreground | Default text color |
activityBar.background | Activity bar background |
sideBar.background | Side panel background |
statusBar.background | Status bar background |
statusBar.foreground | Status bar text color |
panel.background | Panel background |
tab.activeBackground | Active tab background |
tab.inactiveBackground | Inactive tab background |
ai.suggestion.background | AI suggestion background |
ai.contextPanel.background | Context panel background |
Best Practices for Theme Development
- Maintain sufficient contrast between text and background
- Ensure consistent color usage across related UI elements
- Test themes with multiple programming languages
- Consider color blindness and accessibility needs
- Include both light and dark variants
- Document any special customizations
Troubleshooting
If you encounter issues with themes:
- Theme Not Applying: Try restarting ThinkCode
- Missing Elements: Check theme JSON for missing token definitions
- Syntax Highlighting Issues: Ensure proper scope naming in tokenColors
- Performance Problems: Reduce complexity of color rules
- Importing Failures: Verify file format is correct (.ttheme)
For additional help, refer to the ThinkCode Theme API documentation or join the ThinkCode community forums.