-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: change generateScheme method and color object
- Loading branch information
1 parent
bdaae9c
commit b72ecf8
Showing
7 changed files
with
127 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,49 @@ | ||
/* eslint-disable no-undef */ | ||
import { generateScheme, ISchemeSetting } from '../dist/index'; | ||
|
||
const settings: ISchemeSetting = { | ||
colors: { | ||
accent: '#69bdbd', | ||
cursor: '#e6db30', | ||
foreground: '#A6ACCD', | ||
background: '#292D3E', | ||
comments: '#676E95', | ||
blue: '#82AAFF', | ||
brown: '#916b53', | ||
cyan: '#89DDFF', | ||
green: '#C3E88D', | ||
orange: '#F78C6C', | ||
pink: '#ff9cac', | ||
purple: '#C792EA', | ||
red: '#f07178', | ||
yellow: '#FFCB6B', | ||
accent: '#80CBC4', | ||
cursor: '#FFCC00', | ||
foreground: '#EEFFFF', | ||
background: '#263238', | ||
comments: '#546E7A', | ||
deprecated: '#ffc777a1', | ||
invalid: '#d46c6c66', | ||
diffAdded: '#addb67', | ||
diffModified: '#e2b93d', | ||
diffDeleted: '#ef5350', | ||
base: { | ||
white: '#ffffff', | ||
black: '#000000', | ||
red: '#f07178', | ||
orange: '#F78C6C', | ||
yellow: '#FFCB6B', | ||
green: '#C3E88D', | ||
cyan: '#89DDFF', | ||
blue: '#82AAFF', | ||
purple: '#C792EA', | ||
brown: '#916b53', | ||
pink: '#ff9cac', | ||
violet: '#bb80b3', | ||
}, | ||
}, | ||
ui: { | ||
caret: 'var(cursor)', | ||
tags_options: 'underline', | ||
brackets_options: 'underline, glow' | ||
brackets_options: 'underline, glow', | ||
line_highlight: '#00000040', | ||
selection: '#80CBC420', | ||
gutter_foreground: '#37474F', | ||
shadow: '#00000030', | ||
find_highlight: '#FFCC00', | ||
inactive_selection: '#00000030', | ||
}, | ||
rules: [], | ||
}; | ||
|
||
generateScheme( | ||
'Scheme-Example', | ||
'Mauro Reis Vieira <mauroreisvieira@gmail.com>', | ||
'Scheme-Example', | ||
generateScheme({ | ||
name: 'Meetio Scheme Example', | ||
author: 'Mauro Reis Vieira <mauroreisvieira@gmail.com>', | ||
schemeName: 'Meetio Scheme Example', | ||
settings, | ||
'schemes' | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export { generateScheme } from './schemeGenerator'; | ||
export { defaultRules } from './rules'; | ||
export { IColors, ISchemeSetting, IRules, IUi } from './interfaces'; | ||
export { IColors, IColorsBase, ISchemeSetting, IRules, IUi } from './interfaces'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters