Velvet Chrome
Publisher: Willian DuqueThemes in package: 1
A minimal dark VS Code theme with a unified chrome frame and split cyan-violet accents.
A minimal dark VS Code theme with a unified chrome frame and split cyan-violet accents.
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 |
|---|---|---|
| comment, comment.block | #6A9E86 | — |
| keyword, keyword.control | #D6A8FF | — |
| keyword.control.async, storage.type.function, keyword.function | #F0F0F0 | — |
| keyword.operator.arrow, punctuation.definition.arrow, punctuation.separator.key-value | #F0F0F0 | — |
| keyword.declaration.type, keyword.declaration.interface, storage.type, storage.type.class, storage.type.interface | #F0F0F0 | — |
| keyword.declaration, keyword.control.export, keyword.control.import, keyword.control.from, storage.type.import, storage.type.export, keyword.other.let, keyword.other.const | #DDA167 | — |
| keyword.operator, storage.type, storage.modifier | #C08CFF | — |
| entity.name.function, support.function, meta.function-call, variable.function | #D0A1FF | — |
| entity.name.type, support.type, storage.type.class, entity.name.class, entity.name.interface | #74C6FF | — |
| variable, variable.parameter | #F4F4F4 | — |
| string, string.quoted | #E6C36A | — |
| constant, constant.numeric | #E0E0E0 | — |
| constant.language, constant.character, variable.other.constant, support.constant | #D8D8D8 | — |
| entity.name.tag, support.class.component, support.class.jsx, entity.name.tag.jsx, entity.name.tag.tsx | #74C6FF | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #CFA0FF | — |
| meta.jsx.attributes, meta.jsx.attribute, meta.jsx.attribute.name | #DDA5FF | — |
| support.class.component.tsx, support.class.component.jsx, entity.name.type.jsx, entity.name.type.tsx | #74C6FF | — |
| support.class.component | #74C6FF | — |
| support.class.component.tsx, support.class.component.jsx, entity.name.type.jsx, entity.name.type.tsx | #74C6FF | — |
| entity.name.tag.tsx, entity.name.tag.jsx, meta.jsx.children | #74C6FF | — |
| meta.jsx.children, string.unquoted, string.unquoted.jsx, string.unquoted.tsx | #E6C36A | — |
| meta.jsx.children.js, meta.jsx.children.ts, meta.jsx.children.tsx | #E6E6E6 | — |
| meta.jsx.expression, meta.embedded.expression | #E6E6E6 | — |
| source.sql keyword, source.sql keyword.other, source.sql keyword.control, source.sql keyword.operator | #D6A8FF | — |
| source.sql entity.name.function, source.sql support.function, source.sql meta.function | #D7A6FF | — |
| source.sql storage.type, source.sql support.type, source.sql entity.name.type | #74C6FF | — |
| source.sql constant.numeric, source.sql constant | #E0E0E0 | — |
| source.sql string, source.sql string.quoted | #E6C36A | — |
| source.sql entity.name.table, source.sql entity.name.schema, source.sql entity.name.database | #74C6FF | — |
| source.sql entity.name.column, source.sql variable.other | #F0F0F0 | — |
| source.java storage.type, source.java storage.modifier, source.java keyword | #D6A8FF | — |
| source.java entity.name.type, source.java support.class, source.java entity.name.class, source.java entity.name.interface | #74C6FF | — |
| source.java entity.name.method, source.java support.function, source.java meta.method | #D7A6FF | — |
| source.java variable, source.java variable.parameter, source.java variable.other | #F0F0F0 | — |
| source.java constant.numeric, source.java constant | #E0E0E0 | — |
| source.java string, source.java string.quoted | #E6C36A | — |
| source.java comment | #6A9E86 | — |
| text.html.markdown, text.markdown | #E6E6E6 | — |
| markup.heading, markup.heading.markdown | #66D9FF | bold |
| markup.heading.markdown punctuation.definition.heading | #DDA167 | — |
| markup.bold, markup.bold.markdown | #F0F0F0 | bold |
| markup.italic, markup.italic.markdown | #F0F0F0 | italic |
| markup.inline.raw, markup.inline.raw.markdown | #DDA167 | — |
| markup.fenced_code.block, markup.fenced_code.block.markdown | #E6E6E6 | — |
| markup.quote, markup.quote.markdown | #7FD1B0 | — |
| markup.list, markup.list.markdown | #D6A8FF | — |
| markup.link, markup.link.markdown, markup.underline.link | #5FCBFF | underline |
| string.other.link, markup.link.text | #E6C36A | — |
| entity.name.section.markdown | #66D9FF | bold |
| meta.separator, meta.separator.markdown | #6B6B6B | — |
| source.python keyword, source.python keyword.control, source.python storage.type | #D6A8FF | — |
| source.python entity.name.function, source.python meta.function, source.python support.function | #D7A6FF | — |
| source.python entity.name.class, source.python support.class, source.python entity.name.type | #74C6FF | — |
| source.python variable, source.python variable.parameter | #F0F0F0 | — |
| source.python constant.numeric, source.python constant | #E0E0E0 | — |
| source.python string, source.python string.quoted | #E6C36A | — |
| source.python comment | #6A9E86 | — |
| meta.type.annotation, meta.type.parameters, entity.name.type.alias, support.type.primitive | #74C6FF | — |
| entity.name.type.parameter, support.type.type-parameter, meta.type.parameters | #74C6FF | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #D6A8FF | — |
| keyword.control.import.type, meta.import, meta.import.ts, meta.import.tsx | #CFA0FF | — |
| punctuation.accessor, punctuation.separator, punctuation.terminator, punctuation.definition.type | #D0D0D0 | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison | #C08CFF | — |
| keyword.operator.type, keyword.operator.expression, keyword.operator.typeof, keyword.operator.new | #C08CFF | — |
| keyword.operator.logical, keyword.operator.ternary, keyword.operator.relational | #C08CFF | — |
| keyword.control.conditional, keyword.control.switch, keyword.control.else, keyword.control.if | #D6A8FF | — |
| meta.type.predicate, keyword.operator.type.predicate | #F0F0F0 | — |
| meta.type.conditional, keyword.operator.conditional, keyword.operator.extends | #D6A8FF | — |
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}!`;
}