cybercore theme & utilities
Publisher: krn intelligenceThemes in package: 14
cybercore style color theme & extra utils
cybercore style color theme & extra utils
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 |
|---|---|---|
| Global settings | #afafaf | — |
| string | #aaaaaa | — |
| constant.language.false, constant.language.true | #bebebe | — |
| constant.numeric | #5e5e5e | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #979797 | — |
| variable.parameter | #b1b1b1 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #a3a3a3 | — |
| entity.name.function, support.function | #777777 | — |
| storage.type, storage.modifier | #b3b3b3 | — |
| support.module, support.node | #bababa | italic |
| support.type | #7c7c7c | — |
| entity.name.type, entity.other.inherited-class, storage.type.java, entity.name.type.class.java, support.type.primitive | #aaaaaa | — |
| comment | #b4b4b4 | — |
| entity.name.type.class | #777777 | — |
| variable.object.property, meta.field.declaration entity.name.function | #7c7c7c | — |
| meta.definition.method entity.name.function | #5e5e5e | — |
| meta.function entity.name.function | #5e5e5e | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #979797 | — |
| entity.name.scope-resolution, entity.name.namespace | #8b8b8b | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #bcbcbc | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #7c7c7c | — |
| constant.language.json | #8f8f8f | — |
| entity.other.attribute-name.class | #777777 | — |
| entity.other.attribute-name.id | #777777 | — |
| source.css entity.name.tag | #777777 | — |
| meta.tag, punctuation.definition.tag | #7c7c7c | — |
| entity.name.tag | #bababa | — |
| entity.other.attribute-name | #525252 | — |
| markup.heading | #818181 | — |
| text.html.markdown meta.link.inline, meta.link.reference | #818181 | — |
| text.html.markdown beginning.punctuation.definition.list | #818181 | — |
| markup.italic | #bababa | italic |
| markup.bold | #bababa | bold |
| markup.bold markup.italic, markup.italic markup.bold | #bababa | italic bold |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #818181 | — |
| markup.inline.raw.string.markdown | #818181 | — |
| keyword.other.definition.ini | #818181 | — |
| entity.name.section.group-title.ini | #818181 | — |
| source.cpp meta.preprocessor, keyword.control.directive | #7c7c7c | — |
| source.cpp meta.preprocessor.pragma.cpp | #525252 | — |
| keyword.other.unit.user-defined.cpp | #7c7c7c | — |
| source.cpp meta.preprocessor, entity.name.function.preprocessor.cpp | #666666 | — |
| variable.other.property, variable.other.enummember | #aaaaaa | — |
| storage.modifier.import.java | #aaaaaa | — |
| support.type.property-name.toml | #525252 | — |
| support.type.property-name.table.toml | #adadad | — |
| variable.source.cmake | #858585 | — |
| , storage.source.cmake | #858585 | — |
| Global settings | #bcbcbc | — |
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}!`;
}