Eclipse theme by Solrike
Publisher: SolrikeThemes in package: 1
Colour and icon themes inspired by Eclipse. Mainly supports Java and TypeScript/JavaScript
Colour and icon themes inspired by Eclipse. Mainly supports Java and TypeScript/JavaScript
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| invalid.deprecated | #000000 | strikethrough |
| emphasis | — | italic |
| invalid, invalid.illegal | #CD3131 | |
| strong | — | bold |
| #000000 | ||
| storage.type.annotation, meta.declaration.annotation, meta.function.decorator | #646464 | |
| #000000 | ||
| meta.return-type, support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class | #000000 | |
| comment | #3F7F5F | |
| constant.language, constant.other, constant.other.enum, variable.other.enummember, support.constant | #0000C0 | italic bold |
| #3F5FBF | ||
| #7F7F9F | ||
| #7F9FBF | bold | |
| entity.name.type.enum | #000000 | |
| variable.other.object.property, variable.other.property, entity.name.variable.field, entity.name.variable.property, entity.name.variable.event | #0000C0 | |
| meta.function | #000000 | |
| meta.function-call | #000000 | |
| keyword, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.alignof, keyword.operator.typeid, keyword.operator.alignas, keyword.operator.instanceof, keyword.operator.logical.python, keyword.operator.wordlike, keyword.operator.noexcept, keyword.other.unit, keyword.operator.delete, keyword.other.using, keyword.other.operator, entity.name.operator, storage, storage.modifier, storage.type, meta.preprocessor, variable.language.this | #7F0055 | bold |
| entity.name.function.preprocessor | #000000 | |
| meta.method.identifier | #000000 | |
| meta.method | #000000 | |
| constant.numeric, meta.preprocessor.numeric | #000000 | |
| keyword.operator, keyword.operator.plus.exponent, keyword.operator.minus.exponent, keyword.operator.or.regexp, keyword.control.anchor.regexp, keyword.operator.quantifier.regexp, punctuation.separator.comma, punctuation.separator.delimiter, punctuation.separator.key-value, punctuation.definition.section.case-statement, punctuation.terminator.statement, punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #000000 | |
| variable.parameter, entity.name.variable.parameter | #6A3E3E | |
| #000000 | italic | |
| string, string.tag, string.value, string.regexp, meta.embedded.assembly, meta.preprocessor.string, constant.character, constant.character.escape, constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp, constant.regexp | #2A00FF | |
| entity.name.tag, entity.name.tag.localname | #3F7F7F | |
| punctuation.definition.tag | #008080 | |
| #000000 | ||
| #000000 | ||
| #6A3E3E | ||
| meta.definition.variable | #6A3E3E | |
| entity.other.attribute-name.css | #3F7F7F | |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css | #3F7F7F | italic |
| entity.other.attribute-name.id.css | #3F7F7F | italic |
| support.function.misc.css, support.function.misc.scss, entity.name.function.scss | #000000 | |
| support.type.property-name.css | #7F007F | |
| support.constant.property-value.css, meta.property-value.css, meta.property-value.scss | #0000C0 | italic bold |
| entity.other.attribute-name.pseudo-class.css | #3F7F7F | italic |
| variable.scss | #6A3E3E | |
| storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #000000 | |
| storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java, entity.other.inherited-class.java | #000000 | |
| comment.block.javadoc.java | #3F5FBF | |
| #7F7F9F | ||
| keyword.other.documentation.javadoc.java | #7F9FBF | bold |
| #0000C0 | ||
| constant.other.key.java | #000000 | |
| meta.decorator.ts | #646464 | |
| variable.other.object.js, variable.other.object.ts, variable.other.readwrite.alias.ts | #000000 | |
| variable.other.constant.js, variable.other.constant.ts | #0000C0 | italic bold |
| support.variable.property.js, variable.object.property.ts | #0000C0 | |
| constant.language.boolean.true.js, constant.language.boolean.false.js | #DD2867 | bold |
| meta.definition.method.js, meta.definition.method.ts | #000000 | |
| storage.type.function.arrow | #000000 | |
| meta.object-literal.key.js, meta.object-literal.key.ts | #000000 | |
| meta.definition.variable.js, meta.definition.variable.ts | #6A3E3E | |
| meta.block.js, source.js, meta.block.ts, source.ts, variable.other.readwrite.ts | #6A3E3E | |
| meta.diff.header | #000080 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.inserted | #098658 | — |
| markup.deleted | #A31515 | — |
| markup.changed | #0451A5 | — |
| punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown | #0451A5 | — |
| markup.inline.raw | #800000 | — |
| meta.template.expression | #000000 | — |
| support.function.git-rebase | #0451A5 | — |
| constant.sha.git-rebase | #098658 | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}