Coder Social home page Coder Social logo

sreetamdas / karma Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 2.0 22.73 MB

A dark theme for VSCode with focus on your code inspired by Lucy, Ayu and Andromeda

License: MIT License

TypeScript 93.65% Elixir 0.83% Go 0.49% HTML 1.10% Python 0.87% Rust 0.67% CSS 0.72% Svelte 0.85% Vue 0.83%
vscode vscode-theme dark-theme

karma's Introduction

Karma — a colorful VSCode theme

A colorful mix of Ayu, Lucy and Andromeda themes.


Examples

React

Karma theme screenshot for React

Karma Light theme screenshot for React

Elixir

Karma theme screenshot for Elixir

Karma Light theme screenshot for Elixir

More examples

CSS

Karma theme screenshot for CSS Karma Light theme screenshot for CSS

Go

Karma theme screenshot for Go Karma Light theme screenshot for Go

Phoenix

Karma theme screenshot for Phoenix Karma Light theme screenshot for Phoenix

Python

Karma theme screenshot for Python Karma Light theme screenshot for Python

Rust

Karma theme screenshot for Rust Karma Light theme screenshot for Rust

Svelte

Karma theme screenshot for Svelte Karma Light theme screenshot for Svelte

TypeScript

Karma theme screenshot for TypeScript Karma Light theme screenshot for TypeScript

Vue

Karma theme screenshot for Vue Karma Light theme screenshot for Vue

Install

Via the VS Code Marketplace

  • Go to the marketplace.
  • Click on the Install button.
  • Wait for the extension to be installed.
  • Select a variant: Dark (default) or Light. Alternatively, you can also use VS Code's autoDetectColorScheme to enable theme switch based on your OS color scheme by adding the following snippet to your settings.json:
    "window.autoDetectColorScheme": true,
    "workbench.preferredDarkColorTheme": "Karma",
    "workbench.preferredLightColorTheme": "Karma Light",
    "workbench.colorTheme": "Karma",

From within VS Code

  • Go to Preferences > Color Theme.
  • Search for Karma or Karma Light.

Alternatively:

  • Go to the "Extensions" view, via Preferences > Extensions.
  • Search for Karma.

If you want the "legacy" Karma theme, it's available as Karma Legacy 🙂



Recommended setup

For the best, recommended experience use the following:

  • Iosevka font
  • with the settings (you can paste these in your settings.json):
    {
    	"breadcrumbs.enabled": true,
    	"editor.bracketPairColorization.enabled": true,
    	"editor.cursorStyle": "block",
    	"editor.fontFamily": "'Iosevka', monospace",
    	"editor.fontLigatures": true,
    	"editor.fontSize": 13,
    	"editor.guides.bracketPairs": true,
    	"editor.guides.bracketPairsHorizontal": "active",
    	"editor.minimap.enabled": false, // disable minimap
    	"editor.renderLineHighlight": "all",
    	"git.mergeEditor": false,
    	"terminal.integrated.fontFamily": "'Iosevka Term'",
    	"terminal.integrated.fontSize": 13,
    	"workbench.activityBar.visible": false, // hide activity bar
    	"workbench.colorCustomizations": {
    		"[Karma]": {
    			"editorLineNumber.foreground": "#333333"
    		}
    	},
    	"window.autoDetectColorScheme": true, // to enable auto theme switch based on OS color scheme
    	"workbench.preferredDarkColorTheme": "Karma",
    	"workbench.preferredLightColorTheme": "Karma Light",
    	"workbench.colorTheme": "Karma",
    	"workbench.panel.defaultLocation": "right", // place the default panel (terminal etc.) on the right
    	"workbench.settings.editor": "json",
    	"workbench.sideBar.location": "right", // place the sidebar on the right
    	"terminal.integrated.minimumContrastRatio": 1 // on certain themes, the color gets altered by VS Code for contrast, disable this to use Karma colors
    }

Overrides

To override this theme in your personal config file, please follow the guide in the VS Code color theme documentation. You could do something like this:

// settings.json
{
	"workbench.colorCustomizations": {
		// So that this change is only for the Karma theme
		"[Karma]": {
			"editorLineNumber.foreground": "#333333"
		}
	}
},

Issues

Terminal colors look weird!

This is because the integrated terminal in VS Code has a minimum contrast ratio which dynamically changes the foreground color. This causes some foreground colors in Karma Light to be shown differently. You can add the following to your settings.json to override this:

	"terminal.integrated.minimumContrastRatio": 1

Development

Wanna try out customizing and contributing to Karma? Thanks! Here's how:

  • Fork and clone this repository
  • This project uses pnpm—make sure you've installed and set it up correctly!
  • Install all the dependencies—these allow us to "hot reload" the theme during development.
    pnpm i
  • Run the following command to start the dev script
    pnpm run dev
  • Open this project in VS Code, and then go to Run > Start Bebugging or simply hit F5.

This opens up another instance of VS Code, with the "dev" version of Karma! You can edit the color tokens in src/tokens.ts or change individual theme color variables in src/generateTheme.ts. Please make sure to use the VS Code Theme Color reference!

Credits

Karma is inspired by a mix of Ayu, Lucy and Andromeda themes. In addition, while starting work on the v3 release and on the lookout for a way to generate complimentary themes with tokens, I took heavy inspiration from GitHub's VS Code themes.

The font used in all screenshots is Iosevka. If you're interested in knowing more about my setup/what I use, head on over to sreetamdas.com/uses!

If you like Karma, thanks a lot! It truly means a lot to me. A 🌟star on the repository would be super cool! :)

karma's People

Contributors

shreydd avatar sreetamdas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

karma's Issues

Box shadow for code peek view

Hey there,

I find myself using the code peek view thing more often these days, something like this
image

but the box blends in too much with the background so it's hard to differentiate a bit, a nice shadow on the box would be helpful I guess. Let me know if I can work on this? never really worked on vs code plugins so will need some time to get my way around it.

Cheers

Contrast on Minimap highlight is pretty low

I love your theme so much!
On the only thing that is a bit difficult is the contract on the highlighted part of the Minimap.

Depending on the display it is hard to see what part is actually highlighted.
Screenshot of VSCode Minimap

Thank you so much for Karma! 🙌

Styling Bottom Panel Pane Headers and Terminal divider

2022-04-17_04-17-38

Hi. Great theme! Been using the Lucy theme for some time but since it's been removed from the store I've been looking for a new one and found this. Small issue I've noticed is that styling of the Bottom Panel Pane Headers and Terminal divider doesn't match the theme. I'm not familiar with VSCode theme dev so not sure if you can fix it but I figured filling this issue will at least let you know of it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.