Skip to content

Commit

Permalink
feat(accent): add accent color in theme from scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
mauroreisvieira committed Jun 2, 2020
1 parent cd4ef9f commit 89a3af4
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@babel/preset-env": "7.10.1",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@meetio/scheme-generator": "^1.10.1",
"@meetio/scheme-generator": "^1.10.2",
"@primer/primitives": "^3.0.0",
"@typescript-eslint/eslint-plugin": "3.0.2",
"@typescript-eslint/parser": "3.0.2",
Expand Down
12 changes: 11 additions & 1 deletion schemes/GitHub Dark.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "GitHub Dark",
"author": "Mauro Reis Vieira <[email protected]>",
"variables": {
"accent": "#e36209",
"cursor": "#c8e1ff",
"foreground": "#fafbfc",
"background": "#24292e",
Expand Down Expand Up @@ -55,6 +56,7 @@
"stack_guide": "var(brown)",
"tags_foreground": "var(cyan)",
"tags_options": "underline",
"accent": "var(accent)",
"gutter_foreground_highlight": "var(foreground)",
"scroll_highlight": "var(yellow)",
"scroll_selected_highlight": "var(green)"
Expand Down Expand Up @@ -222,6 +224,14 @@
{
"scope": "meta.function-call.constructor variable.type",
"foreground": "var(purple)"
},
{
"scope": "meta.mapping.key string.quoted.double",
"foreground": "var(blue)"
},
{
"scope": "meta.mapping.value string.quoted.double",
"foreground": "var(foreground)"
}
]
}
}
10 changes: 10 additions & 0 deletions schemes/GitHub Light.sublime-color-scheme
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "GitHub Light",
"author": "Mauro Reis Vieira <[email protected]>",
"variables": {
"accent": "#e36209",
"cursor": "#e36209",
"foreground": "#24292e",
"background": "#fff",
Expand Down Expand Up @@ -55,6 +56,7 @@
"stack_guide": "var(brown)",
"tags_foreground": "var(cyan)",
"tags_options": "underline",
"accent": "var(accent)",
"gutter_foreground_highlight": "var(foreground)",
"scroll_highlight": "var(yellow)",
"scroll_selected_highlight": "var(green)"
Expand Down Expand Up @@ -222,6 +224,14 @@
{
"scope": "meta.function-call.constructor variable.type",
"foreground": "var(purple)"
},
{
"scope": "meta.mapping.key string.quoted.double",
"foreground": "var(blue)"
},
{
"scope": "meta.mapping.value string.quoted.double",
"foreground": "var(foreground)"
}
]
}
2 changes: 2 additions & 0 deletions src/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { IColors } from '@meetio/scheme-generator';
import { colors } from '@primer/primitives';

const dark: IColors = {
accent: '#e36209',
cursor: colors.blue[2],
foreground: colors.gray[0],
background: colors.gray[9],
Expand All @@ -24,6 +25,7 @@ const dark: IColors = {
};

const light: IColors = {
accent: '#e36209',
cursor: colors.orange[6],
foreground: colors.gray[9],
background: colors.white,
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ interface IScheme {
ui: {
...customeUi,
...{
accent: 'var(accent)',
line_diff_width: '3',
gutter_foreground_highlight: 'var(foreground)',
scroll_highlight: 'var(yellow)',
Expand Down
14 changes: 14 additions & 0 deletions src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,4 +261,18 @@ export const rules: Array<IRules> = [
foreground: 'var(purple)',
},
},
{
scope: ['meta.mapping.key string.quoted.double'],
settings: {
foreground: 'var(blue)',
},
},
{
scope: [
'meta.mapping.value string.quoted.double',
],
settings: {
foreground: 'var(foreground)',
},
},
];

0 comments on commit 89a3af4

Please sign in to comment.