It's a Syntax Theme
Publisher: jeremiahrhallThemes in package: 1
It's a Syntax Theme
It's a Syntax Theme
Full workbench mockup using this variant's colors and tokenColors.
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #f8f8f2ff | — |
| comment | #75715E | — |
| string | #E6DB74 | — |
| punctuation.definition.template-expression, punctuation.section.embedded.coffee | #F92672 | — |
| meta.template.expression |
TypeScript sample highlighted with this variant's colors and tokenColors.
| — |
| constant.numeric | #AE81FF | — |
| constant.language | #AE81FF | — |
| constant.character, constant.other | #AE81FF | — |
| variable | #F8F8F2 |
| keyword | #F92672 | — |
| storage | #F92672 |
| storage.type | #66D9EF | italic |
| entity.name.type.class, entity.name.class | #FFEEA4 | — |
| entity.other.inherited-class | #A6E22E | italic underline |
| entity.name.function | #A6E22E |
| variable.parameter | #FD971F | italic |
| entity.name.tag | #F92672 |
| entity.other.attribute-name | #A6E22E |
| support.function | #F5BE6A |
| support.constant | #66D9EF |
| support.type, support.class | #66D9EF | italic |
| support.other.variable | — |
| invalid | #F8F8F0 |
| invalid.deprecated | #F8F8F0 | — |
| meta.structure.dictionary.json string.quoted.double.json | #CFCFC2 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
| markup.quote | #F92672 | — |
| markup.list | #E6DB74 | — |
| markup.bold, markup.italic | #66D9EF | — |
| markup.inline.raw | #FD971F |
| markup.heading | #A6E22E | — |
| markup.heading.setext | #A6E22E |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
| variable.language | #FD971F | — |
| comment | #FFFFFF | — |
| string | #B3C97C | — |
| keyword | #37BFB6 | — |
| constant.numeric | #70E0B2 | — |
| entity.name.type | #D5FFA6 | none |
| entity.name.function | #F5BE6A | — |
| variable | #b7f7f7 | — |
| support.variable.property | #C49CDB | — |
| storage.type.function.arrow | #FFFFFF | — |
| punctuation.definition.string | #B3C97C | — |
| punctuation.definition.binding-pattern.object | #FFF69A | bold |
| meta.field.declaration variable.object | #C49CDB | — |
| entity.other.inherited-class | #FFEEA4 | none |
| storage.modifier | #37BFB6 | — |
| support.class.component | #FFC66D | none |
| variable.language.this | #37BFB6 | — |
| variable.other.property | #C49CDB | — |
| punctuation.section.embedded | #FFF69A | bold |
| keyword.operator.assignment | #FFFFFF | — |
| entity.other.attribute-name | #DE935F | none |
| entity.name.tag | #FFC66D | — |
| support.type.primitive | #37BFB6 | none |
| storage.type | #37BFB6 | none |
| meta.object-literal.key | #C49CDB | — |
| constant.language.boolean | #70E0B2 | — |
| variable.parameter | #FF804A | none |
| punctuation | #FFFFFF | bold |
| meta.brace.round | #FFF69A | bold |
| meta.brace.square | #FFFFFF | bold |
| punctuation.definition.block | #FFF69A | bold |
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}!`;
}