Oolong
Publisher: Hexkey Co.Themes in package: 3
Yet another dark theme for VSCode.
Yet another dark theme for VSCode.
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, punctuation.definition.comment | #6CCD5B | — |
| string, punctuation.definition.string, string.quoted.single.python | #6FC8AD | |
| constant.character.escape, support.other.escape.special | #D0ABF7 | bold |
| constant.numeric, constant.language.json.comments | #6FC8AD | — |
| constant.language.boolean.yaml, constant.language.null.yaml | — | bold |
| entity.name.type.enum, variable.other.enummember | #A2D5E0 | |
| entity.name.namespace | — | |
| entity.name.type, support.type, storage.type | #A2D5E0 | |
| keyword.control | — | bold |
| storage.type.struct | #A2D5E0 | |
| entity.name.type.class, support.class | #A2D5E0 | |
| entity.name.type.interface | #A2D5E0 | |
| entity.name.function, support.function, entity.name.function.member | — | |
| entity.name.function.macro | #D0ABF7 | — |
| variable.other.readwrite, entity.name.variable, variable.other.constant, support.constant | — | — |
| variable.parameter | — | — |
| variable.parameter, variable.other.parameter | — | — |
| variable.other.event | — | — |
| keyword.function, keyword.control, keyword.var, keyword.type, keyword.package, keyword.interface | #9AE399 | — |
| punctuation.definition.decorator.python, entity.name.function.decorator.python, meta.function.decorator.python | #D0ABF7 | — |
| constant.language.python, keyword.control.flow.python, keyword.control.import.python, keyword.operator.logical.python, storage.type.class.python, storage.type.function.async.python, storage.type.function.lambda.python, storage.type.function.python | #9AE399 | — |
| variable.parameter.function-call.python | #EDC291 | |
| constant.language.boolean.false.js, constant.language.boolean.false.jsx, constant.language.boolean.false.ts, constant.language.boolean.false.tsx, constant.language.boolean.true.js, constant.language.boolean.true.jsx, constant.language.boolean.true.ts, constant.language.boolean.true.tsx, constant.language.null.js, constant.language.null.jsx, constant.language.null.ts, constant.language.null.tsx, constant.language.undefined.js, constant.language.undefined.jsx, constant.language.undefined.ts, constant.language.undefined.tsx, keyword.control.as.js, keyword.control.as.jsx, keyword.control.as.ts, keyword.control.as.tsx, keyword.control.conditional.js, keyword.control.conditional.jsx, keyword.control.conditional.ts, keyword.control.conditional.tsx, keyword.control.export.js, keyword.control.export.jsx, keyword.control.export.ts, keyword.control.export.tsx, keyword.control.flow.js, keyword.control.flow.jsx, keyword.control.flow.ts, keyword.control.flow.tsx, keyword.control.from.js, keyword.control.from.jsx, keyword.control.from.ts, keyword.control.from.tsx, keyword.control.import.js, keyword.control.import.jsx, keyword.control.import.ts, keyword.control.import.tsx, keyword.control.loop.js, keyword.control.loop.jsx, keyword.control.loop.ts, keyword.control.loop.tsx, keyword.control.switch.js, keyword.control.switch.jsx, keyword.control.switch.ts, keyword.control.switch.tsx, keyword.control.trycatch.js, keyword.control.trycatch.jsx, keyword.control.trycatch.ts, keyword.control.trycatch.tsx, keyword.operator.expression.delete.js, keyword.operator.expression.delete.jsx, keyword.operator.expression.delete.ts, keyword.operator.expression.delete.tsx, keyword.operator.expression.in.js, keyword.operator.expression.in.jsx, keyword.operator.expression.in.ts, keyword.operator.expression.in.tsx, keyword.operator.expression.instanceof.js, keyword.operator.expression.instanceof.jsx, keyword.operator.expression.instanceof.ts, keyword.operator.expression.instanceof.tsx, keyword.operator.expression.is.js, keyword.operator.expression.is.jsx, keyword.operator.expression.is.ts, keyword.operator.expression.is.tsx, keyword.operator.expression.keyof.js, keyword.operator.expression.keyof.jsx, keyword.operator.expression.keyof.ts, keyword.operator.expression.keyof.tsx, keyword.operator.expression.of.js, keyword.operator.expression.of.jsx, keyword.operator.expression.of.ts, keyword.operator.expression.of.tsx, keyword.operator.expression.typeof.js, keyword.operator.expression.typeof.jsx, keyword.operator.expression.typeof.ts, keyword.operator.expression.typeof.tsx, keyword.operator.new.js, keyword.operator.new.jsx, keyword.operator.new.ts, keyword.operator.new.tsx, storage.modifier.async.js, storage.modifier.async.jsx, storage.modifier.async.ts, storage.modifier.async.tsx, storage.modifier.js, storage.modifier.jsx, storage.modifier.ts, storage.modifier.tsx, storage.type.class.js, storage.type.class.jsx, storage.type.class.ts, storage.type.class.tsx, storage.type.enum.js, storage.type.enum.jsx, storage.type.enum.ts, storage.type.enum.tsx, storage.type.function.js, storage.type.function.jsx, storage.type.function.ts, storage.type.function.tsx, storage.type.interface.js, storage.type.interface.jsx, storage.type.interface.ts, storage.type.interface.tsx, storage.type.js, storage.type.jsx, storage.type.namespace.js, storage.type.namespace.jsx, storage.type.namespace.ts, storage.type.namespace.tsx, storage.type.ts, storage.type.tsx, storage.type.type.js, storage.type.type.jsx, storage.type.type.ts, storage.type.type.tsx, variable.language.super.js, variable.language.super.jsx, variable.language.super.ts, variable.language.super.tsx, variable.language.this.js, variable.language.this.jsx, variable.language.this.ts, variable.language.this.tsx | #9AE399 | — |
| entity.name.tag.html | #9AE399 | — |
| entity.name.tag.js.jsx, entity.name.tag.tsx | #9AE399 | — |
| meta.template.expression.tsx, meta.template.expression.jsx | #D0ABF7 | — |
| meta.embedded.line.tsx, meta.embedded.line.jsx | #EDC291 | |
| keyword.operator.ternary.js.jsx, keyword.operator.ternary.tsx, keyword.operator.ternary.js, keyword.operator.ternary.ts | — | bold |
| variable.language.this.js, variable.language.this.jsx, variable.language.this.ts, variable.language.this.tsx | — | underline |
| variable.language.super.js, variable.language.super.jsx, variable.language.super.ts, variable.language.super.tsx | — | underline |
| keyword.other.debugger.js, keyword.other.debugger.jsx, keyword.other.debugger.ts, keyword.other.debugger.tsx | #fe6f6f | bold |
| keyword.control.go | — | bold |
| markup.heading | #9AE399 | bold |
| markup.fenced_code.block | #A2D5E0 | — |
| markup.underline.link | #1e96ff | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.strikethrough | — | strikethrough |
| markup.underline | — | underline |
| markup.quote | #6FC8AD | italic |
| keyword.control.rust, keyword.operator.question.rust | — | bold |
| keyword.other.rust, keyword.other.fn.rust, keyword.other.crate.rust | #9AE399 | — |
| storage.type.rust, storage.modifier.mut.rust | #9AE399 | — |
| constant.language.bool.rust | #9AE399 | — |
| meta.attribute.rust | #D0ABF7 | — |
| meta.diff.header, meta.diff.index | #A2D5E0 | — |
| meta.diff.range.unified | #D0ABF7 | — |
| punctuation.definition.deleted.diff, markup.deleted.diff, meta.diff.header.from-file | #FF4A1C | — |
| punctuation.definition.inserted.diff, markup.inserted.diff, meta.diff.header.to-file | #82FF74 | — |
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}!`;
}