jwrdark
Publisher: oloierThemes in package: 1
VS Code theme for the other 6 people who appreciate the terminal color scheme by jasonwryan.
VS Code theme for the other 6 people who appreciate the terminal color scheme by jasonwryan.
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 |
|---|---|---|
| comment | #555555 | italic |
| constant.language | #914E89 | — |
| constant.character.escape | #47959E | — |
| entity.name | #53A6A6 | — |
| entity.name.tag | #3e6287 | |
| entity.other.attribute-name | #53A6A6 | italic |
| punctuation.definition.tag | #899CA1 | |
| constant.other, constant.character.entity | #5E468C | — |
| entity.name.type, storage.type.cs | #287373 | — |
| entity.other.inherited-class | #53A6A6 | — |
| entity.other.attribute-name.id | #287373 | — |
| entity.name.variable, variable | #4779B3 | — |
| variable.other.property | #7F62B3 | — |
| keyword | #CF4F88 | italic |
| keyword.operator | #899CA1 | |
| keyword.other.unit | #BF85CC | — |
| markup.quote | #8A2F58 | — |
| markup.heading, entity.name.section | #8A2F58 | — |
| markup.bold | #3e6287 | bold |
| markup.italic | #287373 | italic |
| markup.inline.raw, markup.fenced_code.block | #8A2F58 | — |
| markup.underline.link | #53A6A6 | — |
| storage | #3e6287 | italic |
| string.quoted, string.template | #9D9ECC | — |
| string.quoted string | #8A2F58 | — |
| string.regexp | #CF4F88 | — |
| string.other.link | #899CA1 | — |
| support | #53A6A6 | — |
| support.function | #287474 | — |
| entity.name.function | #53A6A6 | — |
| support.variable | #CF4F88 | — |
| support.type.property-name, meta.object-literal.key | #4779B3 | — |
| variable.language | #c04d80 | italic |
| variable.parameter | — | italic |
| string.template meta.embedded | #7e63b2 | — |
| punctuation.separator | #899CA1 | — |
| punctuation.accessor, punctuation.definition.selector, punctuation.terminator.rule, punctuation.definition.string.begin, punctuation.definition.string.end, punctuation.definition.string.single.begin, punctuation.definition.string.single.end, punctuation.definition.string.backtick.begin, punctuation.definition.string.backtick.end | #914E89 | — |
| punctuation.definition.template-expression | #3e6287 | — |
| punctuation.section.embedded | #8A2F58 | — |
| punctuation.definition.list | #899CA1 | — |
| punctuation.definition.block.begin, punctuation.definition.block.end, punctuation.definition.parameters.begin, punctuation.definition.parameters.end | #47959E | — |
| punctuation.definition.array.begin, punctuation.definition.array.end | #889ca0 | — |
| source.css | #889ca0 | — |
| entity.name.tag.css | #3e6287 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #5e96c0 | — |
| support.type.property-name.css | #53A6A6 | — |
| support.constant.property-value.css | #9D9ECC | — |
| constant.other.color.rgb-value.css, string.quoted.double.css, constant.other.color.hex-value.css, support.constant.property-value.color.css | #9D9ECC | — |
| keyword.control.at-rule.css | #7F62B3 | — |
| entity.other.attribute-name.css | #5E468C | — |
| keyword.css, keyword.other.css | #CF4F88 | — |
| constant.other.color.css | #9D9ECC | — |
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}!`;
}