Gneak Color-Theme
Publisher: velokThemes in package: 1
Based on the Default Dark+ Theme. Optimized for better contrast with stronger colors.
Based on the Default Dark+ Theme. Optimized for better contrast with stronger colors.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #d4d4d4 | — |
| By velok | — | — |
| emphasis | — | italic |
| strong | — | bold |
| header | #0045c2 | — |
| comment | #6e6e6e | — |
| constant.language | #547ad3 | — |
| constant.numeric | #d14669 | — |
| constant.regexp | #646695 | — |
| entity.name.tag | #547ad3 | — |
| entity.name.selector | #e6db74 | — |
| entity.other.attribute-name | #66d9ef | — |
| invalid | #e7161c | — |
| markup.underline | — | underline |
| markup.bold | #547ad3 | bold |
| markup.heading | #547ad3 | bold |
| markup.italic | — | italic |
| markup.inserted | #d14669 | — |
| markup.deleted | #e6db74 | — |
| markup.changed | #547ad3 | — |
| markup.punctuation.quote.beginning | #6e6e6e | — |
| markup.punctuation.list.beginning | #547ad3 | — |
| markup.inline.raw | #e6db74 | — |
| meta.selector | #e6db74 | — |
| meta.tag, punctuation.accessor, punctuation.tag.js, punctuation.tag.tsx | #d4d4d4 | — |
| meta.preprocessor | #547ad3 | — |
| meta.preprocessor.string | #e6db74 | — |
| meta.preprocessor.numeric | #d14669 | — |
| meta.structure.dictionary.key.python | #66d9ef | — |
| meta.header.diff | #547ad3 | — |
| storage | #547ad3 | — |
| storage.type | #547ad3 | — |
| storage.modifier | #547ad3 | — |
| string | #e6db74 | — |
| string.tag | #e6db74 | — |
| string.value | #e6db74 | — |
| string.regexp | #a87155 | — |
| support.type.property-name, support.variable.property, support.variable.dom | #66d9ef | — |
| keyword | #547ad3 | — |
| keyword.control.less | #e6db74 | — |
| keyword.operator | #d4d4d4 | — |
| keyword.operator.new, constant.language.boolean | #547ad3 | — |
| keyword.other.unit | #d14669 | — |
| metatag.php | #547ad3 | — |
| support.function.git-rebase | #66d9ef | — |
| constant.sha.git-rebase | #d14669 | — |
| storage.modifier.import.java, storage.modifier.package.java | #d4d4d4 | — |
| meta.type.name, meta.return.type, meta.return-type, meta.cast, meta.type.annotation, support.type, entity.name.class, storage.type.cs, storage.type.java | #529b2f | — |
| entity.name.function, entity.name.method, support.function | #f99c45 | — |
| keyword.control | #c586c0 | — |
| meta.parameter.type.variable, variable.parameter, variable, variable.name, other.constant, support.class, support.module | #66d9ef | — |
| support.property-value, constant.rgb-value, support.property-value.scss, constant.rgb-value.scss | #e6db74 | — |
| entity.name.type | #529b2f | — |
| support.type.property-name.css | #95a3c4 | — |
| meta.selector.css, constant.id.tag.jade | #547ad3 | — |
| keyword.other.unit.css | #c586c0 | — |
| constant.other.color.rgb-value.css | #d14669 | — |
| meta.object-literal.key | #95a3c4 | — |
| punctuation.definition.tag, tag.constant.jade | #646695 | — |
| punctuation.definition.string | #e6db74 | — |
| storage.type.function.jade | #c586c0 | — |
| keyword.operator.jade | #d4d4d4 | — |
| punctuation.separator.key-value | #d4d4d4 | — |
| entity.other.attribute-name.tag, support.type.property-name.json | #95a3c4 | — |
| tag.variable.js | #66d9ef | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}