Sublime Exact Theme
Publisher: EmilijanMBThemes in package: 1
Sublime Exact Theme! Only Sublime theme using original colors converted from the original HSL format (instead of Hex)
Sublime Exact Theme! Only Sublime theme using original colors converted from the original HSL format (instead of Hex)
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #F8F8F2 | — |
| comment | #74705D | — |
| string | #E7DB74 | — |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92472 | — |
| meta.template.expression | #F8F8F2 | — |
| constant.numeric | #AC80FF | — |
| numeric-suffix | #67D8EF | italic |
| constant.language | #AC80FF | — |
| constant.character, constant.other, variable.other.constant | #AC80FF | — |
| variable, punctuation.accessor | #F8F8F2 | |
| keyword | #F92472 | — |
| storage | #F92472 | |
| storage.type | #67D8EF | italic |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #A6E22C | — |
| entity.other.inherited-class | #A6E22C | italic |
| meta.definition.function | #A6E22C | |
| storage.type.function.arrow | #F92472 | — |
| meta.function-call | #67D8EF | |
| variable.parameter | #FD9621 | italic |
| entity.name.tag | #F92472 | |
| entity.other.attribute-name | #A6E22C | |
| variable.function, variable.annotation, meta.function-call.generic | #67D8EF | |
| support.constant | #67D8EF | |
| support.type, support.class | #67D8EF | italic |
| support.other.variable | — | |
| invalid | #F92472 | — |
| invalid.deprecated | #AC80FF | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92472 | — |
| markup.inserted | #A6E22C | — |
| markup.changed | #E7DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AC80FFA0 | — |
| entity.name.filename.find-in-files | #E7DB74 | — |
| markup.quote | #F92472 | — |
| markup.list | #E7DB74 | — |
| markup.bold, markup.italic | #67D8EF | — |
| markup.inline.raw | #FD9621 | |
| markup.heading | #A6E22C | — |
| markup.heading.setext | #A6E22C | |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| variable.language | #FD9621 | italic |
| storage.type.modifier.access | #F92472 | — |
| entity.name.function.definition, meta.definition | #A6E22C | — |
| entity.name.function.call | #67D8EF | — |
| meta.brace.round.js, punctuation.terminator.statement.js | #F8F8F2 | — |
| support.type.property-name, meta.structure.dictionary.json string.quoted.double.json | #E7DB74 | |
| support.class.dart | #67D8EF | — |
| entity.name.function.dart | #67D8EF | — |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, meta.function-call.arguments.python | #F8F8F2 | — |
| entity.name.function.python | #A6E22C | — |
| support.function.magic | #67D8EF | — |
| storage.type.function.async | #F92472 | — |
| punctuation.definition.decorator.python | #F92472 | — |
| punctuation.separator.period.python | #F8F8F2 | — |
| entity.name.function.decorator.python | #67D8EF | — |
| entity.other.attribute-name.pragma.preprocessor | #F92472 | — |
| punctuation.separator.colon | #F8F8F2 | — |
| punctuation.section.arguments.begin.bracket.round, punctuation.section.arguments.end.bracket.round, punctuation.separator.delimiter, punctuation.section.block.begin.bracket.curly, punctuation.section.block.end.bracket.curly, punctuation.section.parens.begin.bracket.round, punctuation.section.parens.end.bracket.round, punctuation.definition.begin.bracket.square, punctuation.definition.end.bracket.square, storage.modifier.array.bracket.square, punctuation.separator.dot-access | #F8F8F2 | — |
| punctuation.separator.pointer-access | #F92472 | — |
| entity.name.function.go | #A6E22C | — |
| support.function.go | #67D8EF | — |
| keyword.function.go, keyword.struct.go, keyword.interface.go | #67D8EF | — |
| entity.name.type.namespace.cs | #FFFFFF | — |
| keyword.type.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.namespace.cs, keyword.other.class.cs, keyword.other.struct.cs | #67D8EF | italic |
| entity.name.function.cs | #A6E22C | — |
| entity.name.variable.parameter.cs | #FD9621 | italic |
| keyword.other.this.cs | #FD9621 | italic |
| inherit-class | #A6E22C | italic |
| punctuation.squarebracket-attribute.open.cs, punctuation.squarebracket-attribute.close.cs | #F92472 | bold |
| meta.definition.function | #A6E22C | |
| comment | #74705D | — |
| string | #E7DB74 | — |
| constant.numeric | #AC80FF | — |
| constant.language | #AC80FF | — |
| constant.character, constant.other, variable.other.constant | #AC80FF | — |
| invalid.deprecated | #AC80FF | — |
| constant.numeric.line-number.find-in-files - match | #AC80FF | — |
| variable, punctuation.accessor | #F8F8F2 | |
| variable.parameter | #FD9621 | — |
| variable.function, variable.annotation, meta.function-call.generic | #67D8EF | |
| support.other.variable | — | |
| variable.language | #FD9621 | italic |
| entity.name.variable.parameter.cs | #FD9621 | italic |
| keyword | #F92472 | — |
| keyword.function.go, keyword.struct.go, keyword.interface.go | #67D8EF | — |
| keyword.type.cs, keyword.other.get.cs, keyword.other.set.cs, keyword.other.namespace.cs, keyword.other.class.cs, keyword.other.struct.cs | #67D8EF | italic |
| keyword.other.this.cs | #FD9621 | italic |
| punctuation.definition.template-expression, punctuation.section.embedded | #F92472 | — |
| meta.brace.round.js, punctuation.terminator.statement.js | #F8F8F2 | — |
| punctuation.definition.arguments.begin.python, punctuation.definition.arguments.end.python, meta.function-call.arguments.python | #F8F8F2 | — |
| punctuation.definition.decorator.python | #F92472 | — |
| punctuation.separator.period.python | #F8F8F2 | — |
| punctuation.separator.colon | #F8F8F2 | — |
| punctuation.squarebracket-attribute.open.cs, punctuation.squarebracket-attribute.close.cs | #F92472 | bold |
| storage | #F92472 | |
| storage.type | #67D8EF | italic |
| storage.type.function.arrow | #F92472 | — |
| storage.type.modifier.access | #F92472 | — |
| storage.type.function.async | #F92472 | — |
| entity.name.type, entity.name.class, entity.name.namespace, entity.name.scope-resolution | #A6E22C | — |
| entity.other.inherited-class | #A6E22C | italic |
| entity.name.tag | #F92472 | |
| entity.other.attribute-name | #A6E22C | |
| entity.name.filename.find-in-files | #E7DB74 | — |
| entity.name.function.definition, meta.definition | #A6E22C | — |
| entity.name.function.call | #67D8EF | — |
| entity.name.function.dart | #67D8EF | — |
| entity.name.function.python | #A6E22C | — |
| entity.name.function.decorator.python | #67D8EF | — |
| entity.other.attribute-name.pragma.preprocessor | #F92472 | — |
| support.type, support.class | #67D8EF | italic |
| support.class.dart | #67D8EF | — |
| inherit-class | #A6E22C | italic |
| meta.function-call | #67D8EF | |
| support.function.magic | #67D8EF | — |
| storage.type.function.async | #F92472 | — |
| entity.name.function.go | #A6E22C | — |
| support.function.go | #67D8EF | — |
| entity.name.function.cs | #A6E22C | — |
| support.constant | #67D8EF | |
| support.type.property-name, meta.structure.dictionary.json string.quoted.double.json | #E7DB74 | |
| entity.name.type.namespace.cs | #F7F7F7 | — |
| meta.embedded, source.groovy.embedded | #F8F8F2 | — |
| meta.template.expression | #F8F8F2 | — |
| numeric-suffix | #67D8EF | italic |
| invalid | #F92472 | — |
| meta.diff, meta.diff.header | #74705D | — |
| markup.deleted | #F92472 | — |
| markup.inserted | #A6E22C | — |
| markup.changed | #E7DB74 | — |
| markup.quote | #F92472 | — |
| markup.list | #E7DB74 | — |
| markup.bold, markup.italic | #67D8EF | — |
| markup.inline.raw | #FD9621 | |
| markup.heading | #A6E22C | — |
| markup.heading.setext | #A6E22C | |
| token.info-token | #67D8EF | — |
| token.warn-token | #FD9621 | — |
| token.error-token | #F83535 | — |
| token.debug-token | #AC80FF | — |
| keyword.operator.type.annotation | #F8F8F2 | — |
| entity.name.function.java | #67D8EF | — |
| variable.other.object.java | #67D8EF | — |
| storage.modifier.import.java | #67D8EF | — |
| meta.function-call.generic.python | #F8F8F2 | — |
| meta.fstring.python | #E7DB74 | — |
| punctuation.definition.decorator.python | #67D8EF | — |
| punctuation.decorator.js | #67D8EF | — |
| support.type.primitive.js | #F92472 | — |
| constant.character.format.placeholder.other.python | #E7DB74 | — |
| punctuation.definition.heading.markdown | #FD9621 | bold |
| entity.name.section.markdown | #F8F8F2 | bold |
| string.quoted.double.html | #E7DB74 | |
| markup.underline.link.markdown | #67D8EF | |
| string.other.link.title.markdown | #F8F8F2 | — |
| punctuation.definition.string.begin.markdown | #B3B3B1 | — |
| punctuation.definition.string.end.markdown | #B3B3B1 | — |
| punctuation.definition.metadata.markdown | #B3B3B1 | — |
| markup.underline.link.markdown | #67D8EF | — |
| meta.paragraph.markdown | #F8F8F2 | — |
| markup.list.unnumbered.markdown | #F8F8F2 | — |
| fenced_code.block.language.markdown | #AC80FF | — |
| punctuation.definition.annotation.java | #67D8EF | — |
| source.css | #67D8EF | — |
| entity.name.function.ruby | #A6E22C | — |
| support.function.kernel.ruby | #67D8EF | — |
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}!`;
}