cb-darkturbo
Publisher: CBThemes in package: 1
this is a dark theme which support many old turbo pascal color, it tries to display different symbols as differnt color as possible and also uses some default colors from the Defaul Dark Modern theme.
this is a dark theme which support many old turbo pascal color, it tries to display different symbols as differnt color as possible and also uses some default colors from the Defaul Dark Modern 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 |
|---|---|---|
| keyword.type, keyword.other.using, keyword.other.import.java, keyword.other.directive.using, keyword.other.namespace, keyword.other.class, keyword.other.await, keyword.other.var, keyword.other.new, keyword.other.this, keyword.other.enum, keyword.other.typeof, keyword.other.where, keyword.control.default, keyword.other.interface, storage.type.namespace.cs, keyword.control.context.using, storage.type.var.cs, meta.function.powershell, keyword.other.DML.sql, keyword.control.import, keyword.control.as, keyword.control.from, keyword.control.export, storage.type.function, storage.type.ts, storage.type.tsx, storage.type.class, storage.type.interface, keyword.operator.new.ts, variable.language.super.tsx, variable.language.java, variable.language.this, storage.type.js, keyword.control.razor.directive, storage.type.def.groovy, storage.type.primitive.java, keyword.control.new.java, keyword.control.java, storage.type.primitive.array.java, keyword.other.package.java, keyword.other.special-method.dockerfile, storage.type.pascal, log.error | #FF0000 | — |
| storage.modifier, keyword.control.cshtml.transition | #FF0000 | italic |
| storage.type.annotation.java, punctuation.definition.annotation.java | #35f555 | italic bold |
| controlKeyword, keyword.control.conditional, keyword.control.switch, keyword.control.case, keyword.control.powershell, keyword.control.shell, keyword.control.then.shell, keyword.control.else.shell | #59afff | bold |
| keyword.control.flow, keyword.control.try, keyword.control.catch, keyword.control.finally, keyword.control.loop, keyword.control.powershell, keyword.control.trycatch, keyword.control.pascal, log.exception | #FF0080 | — |
| constant, keyword.other.get.cs, keyword.other.set.cs, constant.language, variable.other.constant, entity.name.variable.enum-member, constant.character.entity.tsx, variable.other.constant.property.tsx, variable.other.constant.property.ts | #FFffff | — |
| namespace, entity.name.namespace, entity.name.type.namespace, entity.name.type.module, storage.modifier.import.java, storage.modifier.package.java | #FF80BF | — |
| class, entity.name.type.class, variable.other.object, entity.name.type.tsx, entity.other.inherited-class.java, storage.type.java, storage.type.object.array.java, entity.name.type.pascal | #2B91AF | bold |
| interface, entity.name.type.interface | #6CC2D8 | — |
| struct | #1d6478 | — |
| entity.name.type.enum | #80ff00 | — |
| parameter, entity.name.variable.parameter, variable.parameter, meta.scriptblock.powershell, variable.other.jsdoc, meta.group.simple.subexpression.powershell, string.unquoted.argument, string.unquoted.argument.shell, constant.other.option.dash.shell | #fba300 | — |
| property, variable.other.property, variable.other.object.property, entity.name.variable.property, variable.other.member.powershell, entity.other.attribute-name | #a2ca00 | bold |
| field, entity.name.variable.field, source.sql, constant.other.key.groovy, variable.other.definition.java | #c1a500 | — |
| variable.other.constant.property | #c1a500 | bold underline |
| entity.name.variable.local, variable.other.readwrite, variable.other.readwrite.powershell, variable.other.pascal, variable.other.assignment.shell, variable.other.normal.shell | #ffbaa6 | — |
| entity.name.tag, support.type.property-name.json, meta.object-literal.key, keyword.other.definition.ini, entity.name.section.inno, storage.type.class.jsdoc, log.date | #569CD6 | — |
| entity.name.function, text.yaml.jinja, meta.method.groovy, source.groovy, meta.function-call.python, source.inno, source.powershell, log.warning | #FFFF00 | — |
| support.function.powershell, support.function.string.sql, support.type.builtin, support.type.primitive, support.function.builtin.shell | #ffe600 | bold underline |
| keyword.operator, punctuation.definition.typeparameters.begin.cs, punctuation.definition.typeparameters.end.cs, punctuation.terminator.statement, punctuation.separator.comma, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag, storage.type.function.arrow, keyword.control.razor.directive.codeblock, punctuation.curlybrace.open.cs, punctuation.curlybrace.close.cs, punctuation.separator.key-value.ini, punctuation.definition.separator.groovy, punctuation.definition.seperator.key-value.groovy, punctuation.terminator.java, punctuation.separator.period.python, punctuation.separator.dict.python, punctuation.separator.colon.python, punctuation.separator.element.python, keyword.other.hashtable.begin.powershell, keyword.other.array.begin.powershell, punctuation.definition.subexpression.powershell, punctuation.definition.variable.powershell, meta.section.pascal, punctuation.definition.variable.shell | #00ff00 | — |
| macro, preprocessorText, comment.block.documentation.cs, keyword.preprocessor.region.cs, comment.block.documentation.tsx, comment.block.js, comment.block.razor, comment.block.groovy, comment.block.javadoc.java, text.log | #57a64a | — |
| comment.line.double-slash.cs, comment.line.powershell, punctuation.definition.comment.powershell, comment.line.number-sign.yaml, comment.line.double-slash, comment.line.number-sign.python, comment.line.semicolon.inno, comment.line.pascal, comment.line.number-sign.shell, log.constant | #C0C0C0 | italic |
| constant.numeric | #ff00ff | — |
| string.quoted.double, string.quoted.single.sql, string.quoted.single.yaml, string.quoted.single.groovy, string.quoted.single.python, string.quoted.multi.python, string.quoted.back.inno, string.quoted.pascal, log.string | #00ffff | — |
| string.template | #00ffff | italic bold |
| meta.interpolation, storage.type.generic.java | #ff80ff | — |
| keyword.other.inno | #008000 | bold |
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}!`;
}