Corduroy for VSCode
Publisher: taysatteThemes in package: 4
Embrace vintage warmth, soft textures, and a touch of retro flair.
Embrace vintage warmth, soft textures, and a touch of retro flair.
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 | #887b8c | — |
| constant | #e99d90 | — |
| constant.numeric, constant.language | #e99d90 | — |
| constant.character.escape, constant.other.caps.python | #e06278 | — |
| entity.name | #e99d90 | — |
| entity.name.function | #e99d90 | — |
| meta.preprocessor.cpp entity.name.function, meta.preprocessor entity.name.function | #e99d90 | — |
| entity.name.section, entity.name.tag, entity.name.namespace, entity.name.type | #d27f91 | — |
| entity.other.attribute-name, entity.other.attribute-name.tsx, entity.other.attribute-name.id, entity.other.attribute-name.pseudo-element, entity.other.attribute-name.pseudo-class, entity.other.inherited-class | #c285b2 | — |
| invalid | #e06278 | — |
| invalid.deprecated | #887b8c | — |
| keyword, keyword.control.new.java, keyword.operator.logical.python, keyword.control.flow.python, support.variable.magic.python, keyword.operator.logical.cpp, variable.language.this | #4b8686 | — |
| keyword.operator.assignment | #887b8c | — |
| keyword.other.unit | #4b8686 | — |
| markup.heading | — | bold |
| markup.bold | — | bold |
| markup.italic, markup.italic.markdown | — | italic |
| meta.tag, meta.brace | #cdc8d0 | — |
| meta.import, meta.export | #4b8686 | — |
| meta.function-call.python | #e99d90 | — |
| meta.directive.vue | #c285b2 | — |
| meta.preprocessor.cpp, keyword.other.directive.cpp | #e06278 | — |
| meta.method.body.java | #d27f91 | — |
| punctuation, punctuation.definition.arguments.end.python, punctuation.definition.arguments.begin.python, punctuation.definition.inheritance.begin.python, punctuation.definition.inheritance.end.python, punctuation.section.class.begin.python, punctuation.section.class.end.python, punctuation.parenthesis.begin.python, punctuation.parenthesis.end.python, punctuation.section.function.begin.python, punctuation.section.function.end.python, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.separator, punctuation.definition.template-expression, punctuation.quasi.element, punctuation.section.embedded, punctuation.definition.list, punctuation.section.block.begin.bracket.curly.java, punctuation.section.block.end.bracket.curly.java, punctuation.definition.parameters.begin.bracket.round.java, punctuation.definition.parameters.end.bracket.round.java, punctuation.bracket.square.java, punctuation.terminator.java, punctuation.bracket.angle.java, punctuation.bracket.round.java, punctuation.definition.tag | #887b8c | — |
| punctuation.accessor | #4b8686 | — |
| punctuation.definition.string | #edb392 | — |
| keyword.operator.stream.cpp | #e06278 | — |
| entity.name.function.operator.member.cpp, entity.name.function.operator.cpp | #4b8686 | — |
| storage.type, storage.modifier, storage.type.function.python, storage.modifier.java, storage.type.cs, keyword.operator.sizeof.cpp | #4b8686 | — |
| string, string.quoted, string.template, string.regexp, string.other.link, string.template meta.embedded | #edb392 | — |
| support | #4b8686 | — |
| support.constant | #edb392 | — |
| support.function | #e06278 | — |
| support.type.property-name.css | #e99d90 | — |
| support.variable | #4b8686 | — |
| variable | #cdc8d0 | — |
| variable.other, variable.language, variable.function, variable.argument, variable.other.local.cpp, variable.other.global.cpp, variable.parameter.function.language.python, meta.function-call.arguments.python, variable.other.definition.java, meta.function-call.java, variable.other.constant.js, variable.other.readwrite.js, variable.other.object.js, variable.argument.css, variable.parameter.cpp | #cdc8d0 | — |
| variable.other.property, variable.other.property.js, variable.other.property.ts, variable.other.property.tsx, support.type.property-name, support.type.property-name.css | #4b8686 | — |
| variable.parameter, entity.name.variable.parameter.cs | #c285b2 | — |
| variable.css | #d27f91 | — |
| entity.name.tag.css | #4b8686 | — |
| entity.name.type.cpp | #c285b2 | — |
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}!`;
}