Oblong
Publisher: stwuptonThemes in package: 1
A pretty boring vscode theme.
A pretty boring vscode theme.
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 |
|---|---|---|
| variable.parameter.function | #B9B9B9 | — |
| comment, punctuation.definition.comment | #525252 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #B9B9B9 | — |
| none | #B9B9B9 | — |
| keyword.operator | #B9B9B9 | — |
| keyword | #747474 | — |
| variable | #7C7C7C | — |
| entity.name.function, meta.require, support.function.any-method | #686868 | — |
| support.class, entity.name.class, entity.name.type.class | #A0A0A0 | — |
| meta.class | #F7F7F7 | — |
| keyword.other.special-method | #686868 | — |
| storage | #747474 | — |
| support.function | #868686 | — |
| string, constant.other.symbol, entity.other.inherited-class | #8E8E8E | — |
| constant.numeric | #999999 | — |
| none | #999999 | — |
| none | #999999 | — |
| constant | #999999 | — |
| entity.name.tag | #7C7C7C | — |
| entity.other.attribute-name | #999999 | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #686868 | — |
| meta.selector | #747474 | — |
| none | #999999 | — |
| keyword.other.unit | #999999 | — |
| markup.bold, punctuation.definition.bold | #A0A0A0 | bold |
| markup.italic, punctuation.definition.italic | #747474 | italic |
| markup.raw.inline | #8E8E8E | — |
| string.other.link, punctuation.definition.string.end.markdown | #7C7C7C | — |
| meta.link | #999999 | — |
| markup.list | #7C7C7C | — |
| markup.quote | #999999 | — |
| meta.separator | #B9B9B9 | — |
| markup.inserted | #8E8E8E | — |
| markup.deleted | #7C7C7C | — |
| markup.changed | #747474 | — |
| constant.other.color | #868686 | — |
| string.regexp | #868686 | — |
| constant.character.escape | #868686 | — |
| punctuation.section.embedded, variable.interpolation | #747474 | — |
| invalid.illegal | #F7F7F7 | — |
| invalid.broken | #101010 | — |
| invalid.deprecated | #F7F7F7 | — |
| invalid.unimplemented | #F7F7F7 | — |
| comment, comment.block, comment.block.documentation, comment.line, punctuation.definition.comment | #1FFD57 | — |
| constant, constant.language, constant.character, constant.character.escape, constant.numeric, constant.numeric.float, constant.numeric.hex, constant.numeric.integer, constant.numeric.octal, constant.other, constant.regexp, constant.rgb-value, constant.boolean, keyword.other.unit | #FDC8FF | — |
| entity, entity.name, entity.name.class, entity.name.function, entity.name.method, entity.name.section, entity.name.selector, entity.name.tag, entity.name.type, entity.name.type.class, entity.other, entity.other.attribute-name, entity.other.inherited-class, support, support.class, support.constant, support.function, support.other, support.type, support.type.property-name, support.variable, variable, variable.language, variable.name, variable.other, variable.other.readwrite, variable.parameter, invalid, invalid.deprecated, invalid.illegal, meta, meta.block, meta.cast, meta.class, meta.function, meta.function-call, meta.preprocessor, meta.return-type, meta.selector, meta.tag, meta.type, meta.type.annotation, punctuation.definition.array, punctuation.definition.parameters, punctuation.definition.heading | #FFF1CE | — |
| keyword, keyword.control, keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, keyword.operator.new, keyword.other | #DBFBFF | — |
| storage, storage.modifier, storage.type | #C2FFD8 | — |
| string, string.interpolated, string.other, string.quoted, string.quoted.double, string.quoted.other, string.quoted.single, string.quoted.triple, string.regexp, string.unquoted, punctuation.definition.string | #FF7070 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
| comment, comment.block, comment.block.documentation, comment.line, punctuation.definition.comment | #1FFD57 | — |
| constant, constant.language, constant.character, constant.character.escape, constant.numeric, constant.numeric.float, constant.numeric.hex, constant.numeric.integer, constant.numeric.octal, constant.other, constant.regexp, constant.rgb-value, constant.boolean, keyword.other.unit | #FDC8FF | — |
| entity, entity.name, entity.name.class, entity.name.function, entity.name.method, entity.name.section, entity.name.selector, entity.name.tag, entity.name.type, entity.name.type.class, entity.other, entity.other.attribute-name, entity.other.inherited-class, support, support.class, support.constant, support.function, support.function.any-method, support.other, support.type, support.type.property-name, support.variable, variable, variable.language, variable.name, variable.other, variable.other.readwrite, variable.parameter, invalid, invalid.deprecated, invalid.illegal, meta, meta.block, meta.cast, meta.class, meta.function, meta.function-call, meta.preprocessor, meta.return-type, meta.selector, meta.tag, meta.type, meta.type.annotation, punctuation.definition.array, punctuation.definition.parameters | #FFF1CE | — |
| keyword, keyword.control, keyword.operator, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, keyword.operator.new, keyword.other | #DBFBFF | — |
| storage, storage.modifier, storage.type | #C2FFD8 | — |
| string, string.interpolated, string.other, string.quoted, string.quoted.double, string.quoted.other, string.quoted.single, string.quoted.triple, string.regexp, string.unquoted, punctuation.definition.string | #FF7070 | — |
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}!`;
}