Coder Social home page Coder Social logo

cobalt2-vscode's Introduction

Cobalt2 Theme for VS Code

Version

Preview

Installation

  1. Open Extensions sidebar panel in VS Code. View โ†’ Extensions
  2. Search for Cobalt2 - find the one by Wes Bos - there are a few other half-baked ones so make sure you have the right one!
  3. Click Install to install it.
  4. Click Reload to reload the your editor
  5. Code > Preferences > Color Theme > Cobalt2
  6. Optional: Use the recommended settings below for best experience

Recommended Settings

{
  "workbench.colorTheme": "Cobalt2",
  // The Cursive font is operator Mono, it's $200 and you need to buy it to get the cursive
  "editor.fontFamily": "Operator Mono, Menlo, Monaco, 'Courier New', monospace",
  "editor.fontSize": 17,
  "editor.lineHeight": 25,
  "editor.letterSpacing": 0.5,
  "files.trimTrailingWhitespace": true,
  "editor.fontWeight": "400",
  "prettier.eslintIntegration": true,
  "editor.cursorStyle": "line",
  "editor.cursorWidth": 5,
  "editor.cursorBlinking": "solid",
  // Very important: Install this plugin: https://github.com/be5invis/vscode-custom-css
  // You'll need to change this to a file URI scheme on your computer: https://en.wikipedia.org/wiki/File_URI_scheme
  // Mac/Linux: file:///Users/YOUR-PC-USERNAME/.vscodestyles.css
  // Windows: file:///C:/Users/YOUR-PC-USERNAME/.vscodestyles.css
  "vscode_custom_css.imports": [
    "file:///Users/wesbos/.vscodestyles.css"
  ],
  "editor.renderWhitespace": "all",
}

Important: CSS Hacks For Extra Sweet Editor

Some things in VS Code can't be controlled by settings, but you can install this plugin, then make a file on your computer that will hold your custom CSS, I like to make one in my root called ~/.vscodestyles.css and then put this everything in cobalt2-custom-hacks.css into your file.

Once done, open your command palette and select enable custom CSS and JS

Custom CSS/JS Hack

Finally reload your editor and the Custom CSS should be taking. You can test this by typing into file - the dirty circle should be yellow not white.

Note: Reloading custom CSS and JS after every VSCode update is a must!

Contributing

This is a bit weird, but to get some sort of live feedback for when editing a theme. Please let me know if you have a saner way of doing it

  1. Open this repo in your terminal and type npm install
  2. Start to watch for change on the repo with npm start - this runs a nodemon task for you and will automatically recompile any changes
  3. Open this repo in VS Code
  4. Open your command palette and hit type VSIX. Select the one that says Extensions: Install from VSIX...
  5. Load the VSIX file that was created a few steps back
  6. Set your editor to use this Cobalt2 theme - it might help to change the name in package.json to something like "Cobalt2 Dev" so you can differentiate from the Cobalt2 you've installed from the marketplace. If you get confused, just delete all traces of Cobalt2 and then load the VSIX.
  7. Go to the debug sidebar View โ†’ Debug
  8. Press the green arrow beside "Launch Extension"
  9. This will then open a second window.
  10. Make a change, and then hit the refresh button on your debug toolbar - this is in your first editor - not the one that poped open.
  11. Wait a sec, your changes should now be reflected!

Whew. Again, if you have an easier way to style these things, let me know!

I don't like something

First, this theme is new so if something is funky, please open an issue.

These are the things we have control over. If you would like to change something, you can either open a PR and see if I'd like it added, or override the colours in your own settings.json file.

https://code.visualstudio.com/docs/getstarted/theme-color-reference

Put Cobalt2 in other places!

Thanks

Thanks to Roberto Achar for doing much of the initial porting to VS Code.

cobalt2-vscode's People

Contributors

wesbos avatar palashmon avatar rifaidev avatar robertoachar avatar arturolinares avatar alisdairbuttery avatar whizkydee avatar alefragnani avatar anhthang avatar ayodeleopetumo avatar tapir avatar enzinius avatar jeffreyscottfrench avatar jeremydanner avatar kapiljaveri avatar mt-webdev avatar nateweller avatar o-sewell avatar rayhatron avatar onetrev avatar wsantos avatar carolitascl avatar lauragift21 avatar

Watchers

James Cloos avatar eric avatar

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.