Co-Dark Blue
Publisher: Bisher AlmasriThemes in package: 1
A Blu-ish Theme!
A Blu-ish 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 |
|---|---|---|
| string | #3d19ca | — |
| constant.character.escape, text.html constant.character.entity.named, punctuation.definition.entity.html | #2a12a7 | — |
| constant.language.boolean | #6a2fff | — |
| constant.numeric | #0015ff | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable, entity.name.function | #886aff | — |
| variable.other.constant | #6551ff | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #3533b9 | — |
| keyword.control.flow.js | #5d00ff | — |
| entity.name.function, support.function | #2400c6 | — |
| storage.type, storage.modifier, keyword.operator.expression | #592fff | — |
| support.type | #5d00ff | — |
| entity.name.type, entity.other.inherited-class | #5200c5 | — |
| variable.object.property, meta.field.declaration entity.name.function | #3733b9 | — |
| meta.definition.method entity.name.function | #3733b9 | — |
| meta.function, entity.name.function | #3733b9 | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #4013c6 | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #FFFFFF | — |
| entity.name.tag.yaml | #2e0a90 | — |
| comment | #3c0c9b | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #7b5eee | — |
| constant.language.json | #552fff | — |
| entity.other.attribute-name.class | #552fff | — |
| entity.other.attribute-name.id | #3114a7 | — |
| source.css entity.name.tag | #685eee | — |
| meta.tag, punctuation.definition.tag | #39119d | — |
| entity.name.tag | #4e26d2 | — |
| entity.other.attribute-name | #6600ff | — |
| markup.heading | #5f2fff | — |
| text.html.markdown meta.link.inline, meta.link.reference | #6b46ff | — |
| text.html.markdown beginning.punctuation.definition.list | #712fff | — |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #3e14a7 | — |
| markup.inline.raw.string.markdown | #3e14a7 | — |
| punctuation.definition.heading.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.quote.begin.markdown, punctuation.definition.list.begin.markdown, markup.fenced_code.block.markdown, meta.separator.markdown | #4035a0 | — |
| keyword.other.definition.ini | #6246ff | — |
| entity.name.section.group-title.ini | #552fff | — |
| source.cs meta.method.identifier entity.name.function | #3733b9 | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #4400ff | — |
| source.cs storage.type | #4533b9 | — |
| source.cs meta.method.return-type | #3733b9 | — |
| source.cs meta.preprocessor | #1b2151 | — |
| source.cs entity.name.type.namespace | #ffffff | — |
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}!`;
}