CKT Dark
Publisher: CKTThemes in package: 1
Dark theme with clear contrast.
Dark theme with clear contrast.
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, ### generic, keyword.operator, punctuation, storage.type.function.arrow, ### powershell, variable.other.readwrite.powershell, ### python, constant.character.format.placeholder.other.python, meta.function-call.arguments.python | #CFCFCF | |
| comment, comment.block, comment.documentation, constant.string.documentation, punctuation.definition.comment | #8F8F8F | |
| keyword, keyword.control, keyword.operator.wordlike, storage.modifier, storage.type.function, punctuation.definition.variable, ### powershell, storage.type.powershell, ### kotlin, #### var val, source.kotlin storage.type.kotlin | #FF8FFF | |
| constant.character.escape, entity.name.type.annotation, meta.declaration.annotation, meta.template, punctuation.definition.annotation, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded.substatement.begin, punctuation.section.embedded.substatement.end, keyword.operator.documentation, keyword.other.documentation, storage.type.annotation | #AFAFFF | |
| entity.name.function, support.function, variable.other.member, meta.function-call | #6FBFFF | |
| property, variable.other.property | #4FCFCF | |
| variable.language | #4FCFCF | bold |
| constant | #4FCFCF | bold underline |
| variable.parameter, variable.other.property, support.type.property-name, support.variable.automatic, ### kotlin, #### annotation's named parameter, meta.declaration.annotation.kotlin constant.other.key.kotlin, ### python, variable.parameter.function.language.python | #5FCF5F | |
| entity.name.class, entity.name.type, entity.other.inherited-class, support.class, storage.type, ### powershell, meta.group.simple.subexpression.powershell storage.type.powershell, meta.scriptblock.powershell storage.type.powershell, ### python, meta.attribute.python, meta.item-access.arguments.python | #CFBF4F | |
| ### kotlin, source.kotlin meta.class.kotlin | #CFBF4F | bold |
| string, constant.numeric, constant.language, punctuation.definition.string.begin, punctuation.definition.string.end | #EFAF5F | |
| invalid.illegal, invalid.unimplemented | #FF9F9F |
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}!`;
}