CDS for vscode
Publisher: danjoaThemes in package: 4
Integrates cds into vscode
Integrates cds into vscode
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 |
|---|---|---|
| — | #222222ff | — |
| entity.name.tag.yaml | #009 | — |
| entity.name.function, xxx-meta.object-literal.key | #0000aa | — |
| meta.return-type, support.class, support.type, support.function, support.constant.math, support.constant.dom, support.constant.json, entity.name.type, storage.type.cs, storage.type.java | #008 | — |
| punctuation.separator.key-value, keyword, keyword.control, keyword.operator, keyword.operator.new, keyword.operator.expression | #a71d5d | — |
| variable.parameter, variable, variable.name, support.variable | #333333 | — |
| object-literal.member.key | #333333 | — |
| support.property-value, constant.rgb-value, support.property-value.scss, constant.rgb-value.scss | darkred | — |
| entity.name.function.tag | #800000 | — |
| emphasis | — | italic |
| entity.name.tag.yaml | darkred | — |
| string.unquoted.plain.in.yaml | blue | — |
| string.unquoted.plain.out.yaml | blue | — |
| string.quoted.single.yaml | teal | — |
| strong | — | — |
| header | #000080 | — |
| comment | #969896 | italic |
| constant.language | #a71d5d | — |
| constant.numeric | #09885a | — |
| constant.regexp | #811f3f | — |
| constant.rgb-value | #0451a5 | — |
| entity.name.tag | #800000 | — |
| entity.name.selector | #800000 | — |
| entity.other.attribute-name | #ff0000 | — |
| entity.other.attribute-name.css, entity.other.attribute-name.scss | #800000 | — |
| invalid | #cd3131 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.inserted | #09885a | — |
| markup.deleted | #183691 | — |
| markup.changed | #0451a5 | — |
| markup.punctuation.quote.beginning, markup.punctuation.list.beginning | #0451a5 | — |
| markup.inline.raw | #800000 | — |
| meta.selector | #800000 | — |
| punctuation.definition.tag | #800000 | — |
| meta.preprocessor | #a71d5d | — |
| meta.preprocessor.string | #183691 | — |
| meta.preprocessor.numeric | #09885a | — |
| meta.structure.dictionary.key.python | #0451a5 | — |
| storage | #a71d5d | — |
| storage.type | #a71d5d | — |
| storage.modifier | #a71d5d | — |
| string | #992200 | — |
| string.xml, string.jade, string.yaml, string.html | #a71d5d | — |
| string.regexp | #811f3f | — |
| support.property-value | #0451a5 | — |
| support.type.property-name.css, support.type.property-name.less, support.type.property-name.scss | #ff0000 | — |
| support.type.property-name | #0451a5 | — |
| keyword.other.unit | #09885a | — |
| keyword.control.less | #800000 | — |
| metatag.php | #800000 | — |
| support.function.git-rebase | #0451a5 | — |
| constant.sha.git-rebase | #09885a | — |
| storage.modifier.import.java, storage.modifier.package.java | #000000 | — |
| variable.language | #0086b3 | — |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
| comment | #999 | — |
| keyword | #800 | — |
| keyword.control | #800 | — |
| storage | #800 | — |
| storage.type | #800 | — |
| support.type | #088 | — |
| support.class | #088 | — |
| entity.other.inherited-class | #088 | italic |
| text.xml | #444 | — |
| variable.language.this | #444 | — |
| punctuation.definition.parameters, punctuation.definition.dictionary, punctuation.definition.array, punctuation.separator, punctuation.definition.block, meta.block, meta.brace | #444 | — |
| entity.name.function, xxx-meta.object-literal.key | #0000aa | — |
| punctuation.separator.key-value, keyword, keyword.control, keyword.operator, keyword.operator.new, keyword.operator.expression | #a71d5d | — |
| variable.parameter, variable, variable.name, support.variable | #333333 | — |
| object-literal.member.key | #333333 | — |
| support.property-value, constant.rgb-value, support.property-value.scss, constant.rgb-value.scss | darkred | — |
| entity.name.function.tag | #800000 | — |
| emphasis | — | italic |
| entity.name.tag.yaml | darkred | — |
| string.unquoted.plain.in.yaml | blue | — |
| string.unquoted.plain.out.yaml | blue | — |
| string.quoted.single.yaml | teal | — |
| strong | — | — |
| header | #000080 | — |
| comment | #969896 | italic |
| constant.language | #a71d5d | — |
| constant.numeric | #09885a | — |
| constant.regexp | #811f3f | — |
| constant.rgb-value | #0451a5 | — |
| entity.name.tag | #800000 | — |
| entity.name.selector | #800000 | — |
| entity.other.attribute-name | #ff0000 | — |
| entity.other.attribute-name.css, entity.other.attribute-name.scss | #800000 | — |
| invalid | #cd3131 | — |
| markup.underline | — | underline |
| markup.bold | #000080 | bold |
| markup.heading | #800000 | bold |
| markup.italic | — | italic |
| markup.inserted | #09885a | — |
| markup.deleted | #183691 | — |
| markup.changed | #0451a5 | — |
| markup.punctuation.quote.beginning, markup.punctuation.list.beginning | #0451a5 | — |
| markup.inline.raw | #800000 | — |
| meta.selector | #800000 | — |
| punctuation.definition.tag | #800000 | — |
| meta.preprocessor | #a71d5d | — |
| meta.preprocessor.string | #183691 | — |
| meta.preprocessor.numeric | #09885a | — |
| meta.structure.dictionary.key.python | #0451a5 | — |
| storage | #a71d5d | — |
| storage.type | #a71d5d | — |
| storage.modifier | #a71d5d | — |
| string | #992200 | — |
| string.xml, string.jade, string.yaml, string.html | #a71d5d | — |
| string.regexp | #811f3f | — |
| support.property-value | #0451a5 | — |
| support.type.property-name.css, support.type.property-name.less, support.type.property-name.scss | #ff0000 | — |
| support.type.property-name | #0451a5 | — |
| keyword.other.unit | #09885a | — |
| keyword.control.less | #800000 | — |
| metatag.php | #800000 | — |
| support.function.git-rebase | #0451a5 | — |
| constant.sha.git-rebase | #09885a | — |
| storage.modifier.import.java, storage.modifier.package.java | #000000 | — |
| variable.language | #0086b3 | — |
| token.info-token | #316bcd | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #cd3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}