Skip to content

Theme to accomplish fine grained customization in combination with Cursive Font (custom-css) and Ligatures (Fira Code) using Fira Code iScript

Notifications You must be signed in to change notification settings

alber70g/solarized-light-differentiated

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solarized Light Differentiated logo

Solarized Light Differentiated

Theme to accomplish fine grained customization in combination with Cursive Font (custom-css) and Ligatures (Fira Code) using Fira Code iScript


This theme is an extension of the original Solarized Light theme. It's purpose is to add italics to the keywords with minimal changes using Custom CSS

Demo's

Html Html demo

Typescript Typescript demo

Usage

  1. Install font Fira Code iScript from kencrocken/FiraCodeiScript
  2. Use the font in VSCode settings (fontSize and anti-aliasing is optional)
"editor.fontFamily": "'Fira Code iScript', monospace",
"editor.fontLigatures": true,
"editor.fontSize": 15.5,
"workbench.fontAliasing": "antialiased",
  1. Install this theme from VSCode.
  2. Install extension Custom Css and Js in VSCode
  3. Configure custom css in your VSCode config
"vscode_custom_css.imports": ["file:///Users/user/projects/vscode-css.css"],
  1. With the following contents (to make cursive "monospaced")
.mtki {
  margin-left: 1px;
  font-size: 1.2em;
}

Problem description

Using the custom css alternative for Operator Mono is pretty cumbersome because of the Optimizations in Syntax Highlighting that removed a lot of the classes and replaced them with keywords like .mtk12 .mtki .mtkb etc.

Solution

This theme requires only minor customizations using the 'Custom CSS and Js Loader' extension.

This theme is explicitly setting font-style: italic for these scopes (like Operator Mono does):

  • keyword.control
  • storage.type
  • variable.language.this
  • entity.other.attribute-name
  • comment.block

Furthermore, there are Ligatures available in Fira Code that we want to use. For that the theme defines specific rules:

  • storage.type.function.arrow
  • punctuation.definition.comment

Contributions

Any contribution is welcome. Please provide a good use case when things aren't the way we expect

About

Theme to accomplish fine grained customization in combination with Cursive Font (custom-css) and Ligatures (Fira Code) using Fira Code iScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published