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 | #A5A1B6 | — |
| string | #958bc0 | — |
| constant.language.false, constant.language.true | #AEAABF | — |
| constant.numeric | #747085 | — |
| variable, support.variable, support.class, support.constant, meta.definition.variable entity.name.function | #9692A7 | — |
| variable.parameter | #A6A2B7 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #9D99AF | — |
| entity.name.function, support.function | #837F94 | — |
| storage.type, storage.modifier | #A7A3B8 | — |
| support.module, support.node | #ABA7BC | italic |
| support.type | #868297 | — |
| entity.name.type, entity.other.inherited-class, storage.type.java, entity.name.type.class.java, support.type.primitive | #958bc0 | — |
| comment | #A8A4B9 | — |
| entity.name.type.class | #837F94 | — |
| variable.object.property, meta.field.declaration entity.name.function | #868297 | — |
| meta.definition.method entity.name.function | #747085 | — |
| meta.function entity.name.function | #747085 | — |
| template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #9692A7 | — |
| entity.name.scope-resolution, entity.name.namespace | #8F8BA0 | — |
| meta.embedded, source.groovy.embedded, meta.template.expression | #ACA8BE | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #868297 | — |
| constant.language.json | #918DA3 | — |
| entity.other.attribute-name.class | #837F94 | — |
| entity.other.attribute-name.id | #837F94 | — |
| source.css entity.name.tag | #837F94 | — |
| meta.tag, punctuation.definition.tag | #868297 | — |
| entity.name.tag | #ABA7BC | — |
| entity.other.attribute-name | #6D697E | — |
| markup.heading | #89859A | — |
| text.html.markdown meta.link.inline, meta.link.reference | #89859A | — |
| text.html.markdown beginning.punctuation.definition.list | #89859A | — |
| markup.italic | #ABA7BC | italic |
| markup.bold | #ABA7BC | bold |
| markup.bold markup.italic, markup.italic markup.bold | #ABA7BC | italic bold |
| markup.fenced_code.block.markdown punctuation.definition.markdown | #89859A | — |
| markup.inline.raw.string.markdown | #89859A | — |
| keyword.other.definition.ini | #89859A | — |
| entity.name.section.group-title.ini | #89859A | — |
| source.cpp meta.preprocessor, keyword.control.directive | #868297 | — |
| source.cpp meta.preprocessor.pragma.cpp | #6D697E | — |
| keyword.other.unit.user-defined.cpp | #868297 | — |
| source.cpp meta.preprocessor, entity.name.function.preprocessor.cpp | #b58bc0 | — |
| variable.other.property, variable.other.enummember | #A29EB3 | — |
| storage.modifier.import.java | #958bc0 | — |
| support.type.property-name.toml | #6D697E | — |
| support.type.property-name.table.toml | #A39FB5 | — |
| variable.source.cmake | #8B879D | — |
| , storage.source.cmake | #8B879D | — |
| Global settings | #ACA8BE | — |
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}!`;
}