flexoki-dark
Publisher: david-git-devThemes in package: 1
fork original designed by kepano/flexoki
fork original designed by kepano/flexoki
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 |
|---|---|---|
| source, support.type.property-name.css | #CECDC3 | — |
| entity.name.type.class | #DA702C | — |
| entity.name.type.interface, entity.name.type | #D0A215 | — |
| entity.name.type.struct | #DA702C | — |
| entity.name.type.enum | #DA702C | — |
| meta.object-literal.key, support.type.property-name | #DA702C | — |
| entity.name.function.method, meta.function.method | #879A39 | — |
| entity.name.function, support.function, meta.function-call.generic | #DA702C | bold |
| variable, meta.variable, variable.other.object.property | #CECDC3 | — |
| variable.other.object, variable.other.readwrite.alias | #879A39 | — |
| variable.other.global, variable.language.this | #CE5D97 | — |
| variable.other.local | #282726 | — |
| variable.parameter, meta.parameter | #CECDC3 | — |
| variable.other.property, meta.property | #4385BE | — |
| string, string.other.link, markup.inline.raw.string.markdown | #3AA99F | — |
| constant.character.escape, constant.other.placeholder | #CECDC3 | — |
| keyword | #879A39 | — |
| keyword.control.import, keyword.control.from, keyword.import | #D14D41 | — |
| storage.modifier, keyword.modifier, storage.type | #4385BE | — |
| comment, punctuation.definition.comment | #878580 | — |
| comment.documentation, comment.line.documentation | #575653 | — |
| constant.numeric | #8B7EC8 | — |
| constant.language.boolean, constant.language.json | #D0A215 | — |
| keyword.operator | #D14D41 | — |
| entity.name.function.preprocessor, meta.preprocessor | #4385BE | — |
| meta.preprocessor | #CE5D97 | — |
| markup.underline.link | #4385BE | — |
| entity.name.tag | #4385BE | — |
| support.class.component | #CE5D97 | — |
| entity.other.attribute-name, meta.attribute | #D0A215 | — |
| support.type | #D0A215 | — |
| variable.other.constant, variable.readonly | #CECDC3 | — |
| entity.name.label, punctuation.definition.label | #CE5D97 | — |
| entity.name.namespace, storage.modifier.namespace, markup.bold.markdown | #D0A215 | — |
| entity.name.module, storage.modifier.module | #D14D41 | — |
| variable.type.parameter, variable.parameter.type | #DA702C | — |
| keyword.control.exception, keyword.control.trycatch | #CE5D97 | — |
| meta.decorator, punctuation.decorator, entity.name.function.decorator | #D0A215 | — |
| variable.function | #CECDC3 | — |
| punctuation, punctuation.terminator, punctuation.definition.tag, punctuation.separator, punctuation.definition.string, punctuation.section.block | #878580 | — |
| storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, constant.language.go, support.class.dart, keyword.other.documentation, storage.modifier.import.java, punctuation.definition.list.begin.markdown, punctuation.definition.quote.begin.markdown, meta.separator.markdown, entity.name.section.markdown | #D0A215 | — |
| #879A39 | — | |
| markup.italic.markdown, support.type.python, variable.legacy.builtin.python, support.constant.property-value.css, storage.modifier.attribute.swift | #3AA99F | — |
| #4385BE | — | |
| keyword.channel.go, keyword.other.platform.os.swift | #8B7EC8 | — |
| punctuation.definition.heading.markdown | #CE5D97 | — |
| #D14D41 | — | |
| #DA702C | — |
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}!`;
}