sjsepan.ambercrtish
Publisher: sjsepanThemes in package: 9
AmberCrt-ish, but with borders and with matching colors in Activity- and Side-bars. Inspired by various amber CRT monitors, and based around the color #FFBF00 AKA hsl(44, 100%, 50%).
AmberCrt-ish, but with borders and with matching colors in Activity- and Side-bars. Inspired by various amber CRT monitors, and based around the color #FFBF00 AKA hsl(44, 100%, 50%).
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 |
|---|---|---|
| emphasis | — | italic |
| strong | — | bold |
| comment, punctuation.definition.comment, string.comment | #8d7c6a90 | italic |
| string, string.quoted, string.template, string.interpolated, string.regexp, string.tag, string.value | #fbebd5 | — |
| storage.modifier.async.js, storage.type.js | #ff9d00 | bold |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #ffb000 | — |
| keyword.operator, punctuation.separator, punctuation.definition | #ffba14 | — |
| entity.name.tag, entity.other.attribute-name, meta.tag | #ffb000 | — |
| entity.other.attribute-name.class, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.pseudo-element | #ffb000 | — |
| keyword.other.unit | #e99f17 | — |
| constant.numeric, constant.language, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color, constant.other, constant.character | #e99f17 | — |
| entity.name.function, support.function, support.constant.handlebars, meta.function-call, meta.method-call, meta.function.parameters | #ff7300 | bold |
| keyword, storage.type, storage.modifier, keyword.control, keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof | #ffc677 | bold |
| entity.name.type, support.type, support.class, storage.type.built-in, meta.return-type, meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, entity.name.class, source.cs storage.type | #ffc46b | bold |
| variable, support.variable, variable.other, variable.language, variable.parameter, meta.definition.variable.name, meta.object-literal.key | #fcd498 | — |
| variable.language.this, variable.language.super, variable.language.self | #ffb000 | italic bold |
| punctuation, meta.brace, meta.brackets, meta.parentheses, punctuation.definition.tag | #8d5f02 | — |
| entity.name.tag, entity.name.tag.css, entity.other.attribute-name, source.css entity.other.attribute-name, source.css.less entity.other.attribute-name.id, source.scss entity.other.attribute-name | #ffb000 | bold |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass, support.type.vendored.property-name, support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media | #fcd498 | — |
| markup.heading, markup.bold, markup.italic, markup.inserted, markup.deleted, markup.changed, markup.underline | #ffb000 | — |
| invalid, invalid.illegal, invalid.deprecated | #FF0000 | bold underline |
| support.function.git-rebase, constant.sha.git-rebase, meta.diff.header | #ffb000 | — |
| entity.name.type.namespace.cs | #ffd36c | bold |
| entity.other.attribute-name.html | #fff727 | bold |
| punctuation.definition.entity.html | #af7700 | bold |
| support.type.property-name.json | #ffb700 | bold |
| punctuation.support.type.property-name | #ffee00 | 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}!`;
}