From 110248b2661572c45da0ff173a9a35d07d9de6a5 Mon Sep 17 00:00:00 2001 From: Daniel Smith Date: Sat, 6 Oct 2018 14:05:44 -0400 Subject: [PATCH] Make second example complete --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index adb6620..a7fb2b1 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,8 @@ In addition to the `base` colors, `IColorSet` provides more options for `syntax` Since the theme is defined in TypeScript, you can create an object to give names to colors you want to re-use. ```ts +import { generateTheme, IColorSet } from 'vscode-theme-generator'; + const colors = { red: '#DA6771', green: '#4EB071', @@ -90,6 +92,8 @@ const colorSet: IColorSet = { 'editorGutter.deletedBackground': colors.red } }; + +generateTheme('My Theme', colorSet, path.join(__dirname, 'theme.json')); ``` The `syntax` properties present a simplified set of token types. If not set, these will be derived from the base colors: