viiv
Publisher: B.WThemes in package: 206
A VsCode theme that puts developers into focus mode quickly.
A VsCode theme that puts developers into focus mode quickly.
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.block.documentation.c | #A3A3A36e | — |
| comment.block.html | #A2A2A26e | — |
| comment.block.java | #A2A2A26e | — |
| comment.block.javadoc.java | #A3A3A36e | — |
| comment.block.powershell | #A1A1A16e | — |
| comment.block.xml | #A3A3A36e | — |
| comment.line.double-slash.c | #A1A1A16e | — |
| comment.line.double-slash.cpp | #A3A3A36e | — |
| comment.line.double-slash.java | #A2A2A26e | — |
| comment.line.double-slash.js | #A1A1A16e | — |
| comment.line.number-sign.makefile | #A3A3A36e | — |
| comment.line.number-sign.python | #A1A1A16e | — |
| comment.line.number-sign.yaml | #A2A2A26e | — |
| comment.line.percentage.erlang | #A2A2A26e | — |
| comment.line.powershell | #A3A3A36e | — |
| comment.source.cmake | #A3A3A36e | — |
| comment.source.cmakecache | #A3A3A36e | — |
| constant.character | #33D192de | — |
| constant.character.character-class.regexp | #EF847Cde | — |
| constant.character.escape | #BAA20Ade | — |
| constant.character.set.regexp | #69A5E9de | — |
| constant.language | #6AA5E9de | — |
| constant.numeric | #3ED79Ade | — |
| constant.numeric.dec.python | #69A6E9de | — |
| constant.other.caps.python | #EE77CEde | — |
| constant.other.character-class.regexp | #5DD73Ede | — |
| constant.other.character-class.set.regexp | #F7A59Fde | — |
| constant.other.color.rgb-value | #F28AD7de | — |
| constant.other.placeholder | #EF847Cde | — |
| constant.other.rgb-value | #B291F4de | — |
| constant.regexp | #69A6EAde | — |
| constant.sha.git-rebase | #69A5E8de | — |
| emphasis | #EF847Cde | — |
| entity.name.class | #EF847Cde | — |
| entity.name.function | #3ED79Ade | — |
| entity.name.function.preprocessor | #68A5E9de | — |
| entity.name.function.python | #2DBC0Ade | — |
| entity.name.label | #EE79CFde | — |
| entity.name.namespace | #B291F4de | — |
| entity.name.operator | #EE847Cde | — |
| entity.name.operator.custom-literal | #33D192de | — |
| entity.name.scope-resolution | #B291F4de | — |
| entity.name.tag | #F598DDde | — |
| entity.name.tag.css | #B291F4de | — |
| entity.name.type | #BAA309de | — |
| entity.name.variable | #2DBA0Ade | — |
| entity.other.attribute | #EE78CEde | — |
| entity.other.attribute-name | #4FCC2Fde | — |
| entity.other.attribute-name.class.css | #B3A22Ede | — |
| entity.other.attribute-name.class.mixin.css | #69A5E9de | — |
| entity.other.attribute-name.id | #EE77CFde | — |
| entity.other.attribute-name.id.css | #EE77CEde | — |
| entity.other.attribute-name.parent-selector.css | #EF847Cde | — |
| entity.other.attribute-name.pseudo-class.css | #07BB73de | — |
| entity.other.attribute-name.pseudo-element.css | #F79FDFde | — |
| entity.other.attribute-name.scss | #B3A22Ede | — |
| entity.other.document.begin.yaml | #A2A2A26e | — |
| entity.other.inherited-class | #B291F4de | — |
| header | #B190F4de | — |
| invalid | #2FB680de | — |
| keyword | #B191F4de | — |
| keyword.codetag.notation.python | #ED77CEde | — |
| keyword.control | #F49891de | — |
| keyword.control.anchor.regexp | #EE837Cde | — |
| keyword.control.import.python | #2DBA09de | — |
| keyword.operator | #BCA92Fde | — |
| keyword.operator.alignas | #CCB82Fde | — |
| keyword.operator.alignof | #09C77Bde | — |
| keyword.operator.cast | #EF837Bde | — |
| keyword.operator.delete | #B190F3de | — |
| keyword.operator.documentation.powershell | #A2A2A26e | — |
| keyword.operator.expression | #2EBD0Ade | — |
| keyword.operator.instanceof | #EE847Cde | — |
| keyword.operator.logical.python | #09CC7Ede | — |
| keyword.operator.minus.exponent | #B3A22Fde | — |
| keyword.operator.negation.regexp | #BBA30Ade | — |
| keyword.operator.new | #BBA30Ade | — |
| keyword.operator.noexcept | #B291F4de | — |
| keyword.operator.or.regexp | #B392F4de | — |
| keyword.operator.plus.exponent | #2EBA0Ade | — |
| keyword.operator.quantifier.regexp | #B190F4de | — |
| keyword.operator.sizeof | #2EBA0Ade | — |
| keyword.operator.typeid | #2FC488de | — |
| keyword.operator.wordlike | #B190F3de | — |
| keyword.other.operator | #B191F4de | — |
| keyword.other.package.java | #B291F4de | — |
| keyword.other.unit | #B191F4de | — |
| keyword.other.using | #B190F4de | — |
| markup.bold | #2DBB0Ade | — |
| markup.changed | #76ADEDde | — |
| markup.deleted | #2EBA0Ade | — |
| markup.fenced_code.block.markdown | #09CE80de | — |
| markup.heading | #BBA30Ade | — |
| markup.inline.raw | #EE79CFde | — |
| markup.inserted | #2EBA0Ade | — |
| markup.italic | #F2918Ade | — |
| markup.raw.block.markdown | #EF837Bde | — |
| markup.strikethrough | #F183D3de | — |
| markup.underline | #EE79CFde | — |
| meta.block.c | #2DBA0Ade | — |
| meta.block.c | #EF837Cde | — |
| meta.class.java | #6AA5E9de | — |
| meta.definition.variable.name | #69A6EAde | — |
| meta.diff.header | #09CC7Ede | — |
| meta.embedded | #6AA5E9de | — |
| meta.embedded.assembly | #EF837Bde | — |
| meta.function-call.arguments.python | #B190F3de | — |
| meta.function-call.python | #F8ACA7de | — |
| meta.member.access.python | #09CA7Dde | — |
| meta.method.java | #69A6EAde | — |
| meta.object-literal.key | #07BB73de | — |
| meta.paragraph.markdown | #2DBA0Ade | — |
| meta.preprocessor | #BBA30Ade | — |
| meta.preprocessor.numeric | #EE79CFde | — |
| meta.preprocessor.string | #2FCC8Ede | — |
| meta.scope.prerequisites.makefile | #09CC7Ede | — |
| meta.structure.dictionary.json.comments | #A3A3A36e | — |
| meta.structure.dictionary.key.python | #CCB82Fde | — |
| meta.structure.dictionary.value.json.comments | #A1A1A16e | — |
| meta.template.expression | #B8A10Ade | — |
| meta.type.cast.expr | #6FA9EBde | — |
| meta.type.new.expr | #B190F4de | — |
| parameter | #D4BF39de | — |
| punctuation.character.set.begin.regexp | #B190F4de | — |
| punctuation.character.set.end.regexp | #2BBB07de | — |
| punctuation.definition.array.begin.json | #4DC42Fde | — |
| punctuation.definition.character-class.regexp | #08B972de | — |
| punctuation.definition.comment | #A3A3A36e | — |
| punctuation.definition.comment.json.comments | #A3A3A36e | — |
| punctuation.definition.comment.python | #A1A1A16e | — |
| punctuation.definition.dictionary.begin.json | #6FA9EBde | — |
| punctuation.definition.dictionary.end.json | #EF847Dde | — |
| punctuation.definition.group.assertion.regexp | #B190F4de | — |
| punctuation.definition.group.regexp | #BBA309de | — |
| punctuation.definition.list.begin.json | #B8A10Ade | — |
| punctuation.definition.list.begin.markdown | #09BA73de | — |
| punctuation.definition.list.begin.python | #EE847Cde | — |
| punctuation.definition.list.end.json | #69A6EAde | — |
| punctuation.definition.list.end.markdown | #2FCC8Ede | — |
| punctuation.definition.list.end.python | #83B6F1de | — |
| punctuation.definition.parameters.begin.python | #F7A59Fde | — |
| punctuation.definition.parameters.end.bracket.round.java | #F7A59Fde | — |
| punctuation.definition.quote.begin.markdown | #6AA5E9de | — |
| punctuation.definition.tag | #F79FDFde | — |
| punctuation.definition.template-expression.begin | #EE837Bde | — |
| punctuation.definition.template-expression.end | #09CC7Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #EF837Cde | — |
| punctuation.section.embedded | #2DBB09de | — |
| punctuation.section.embedded.begin.php | #68A5E9de | — |
| punctuation.section.embedded.end.php | #B190F3de | — |
| punctuation.terminator.java | #BAA20Ade | — |
| source.cmake | #F2918Ade | — |
| source.coffee.embedded | #EF7CD0de | — |
| source.cpp | #2DBB0Ade | — |
| source.css.less | #BAA20Ade | — |
| source.groovy.embedded | #B291F4de | — |
| source.java | #08DA86de | — |
| source.java-properties | #B8A10Ade | — |
| source.json.comments | #A2A2A26e | — |
| source.makefile | #ED77CEde | — |
| source.powershell | #69A6EAde | — |
| source.powershell.variable.other.member | #5DD73Ede | — |
| source.python | #D4BF39de | — |
| storage | #08B972de | — |
| storage.modifier | #ED77CEde | — |
| storage.modifier.import.java | #2EBD0Ade | — |
| storage.modifier.package.java | #09CB7Ede | — |
| storage.type | #4AB82Ede | — |
| storage.type.annotation.groovy | #B392F4de | — |
| storage.type.annotation.java | #BAA20Ade | — |
| storage.type.boolean.go | #07BB73de | — |
| storage.type.byte.go | #B9A208de | — |
| storage.type.cs | #91BFF4de | — |
| storage.type.error.go | #33D192de | — |
| storage.type.generic.cs | #ED77CEde | — |
| storage.type.generic.groovy | #EF847Cde | — |
| storage.type.generic.java | #B191F4de | — |
| storage.type.groovy | #F2918Ade | — |
| storage.type.java | #EE837Cde | — |
| storage.type.modifier.cs | #76ADEDde | — |
| storage.type.numeric.go | #B190F4de | — |
| storage.type.object.array.groovy | #F79FDFde | — |
| storage.type.object.array.java | #08DA86de | — |
| storage.type.parameters.groovy | #76ADEDde | — |
| storage.type.primitive.array.groovy | #BCA92Fde | — |
| storage.type.primitive.array.java | #B190F4de | — |
| storage.type.primitive.groovy | #4FCC2Fde | — |
| storage.type.primitive.java | #BAA20Ade | — |
| storage.type.rune.go | #F28AD7de | — |
| storage.type.string.go | #B292F4de | — |
| storage.type.token.java | #58D439de | — |
| storage.type.uintptr.go | #F18A83de | — |
| storage.type.variable.cs | #EE77CFde | — |
| string | #09BC75de | — |
| string.quoted.docstring.multi.python | #A2A2A26e | — |
| string.regexp | #EF837Cde | — |
| string.tag | #D1BC33de | — |
| string.value | #2EBA0Ade | — |
| strong | #08DA86de | — |
| support.class | #4DC42Fde | — |
| support.constant.color | #ED77CEde | — |
| support.constant.dom | #EE837Bde | — |
| support.constant.font-name | #ED77CEde | — |
| support.constant.handlebars | #91BFF4de | — |
| support.constant.json | #B291F4de | — |
| support.constant.math | #07BB72de | — |
| support.constant.media | #EE847Cde | — |
| support.constant.media-type | #EF847Cde | — |
| support.constant.property-value | #2CBB07de | — |
| support.function | #4BBC2Fde | — |
| support.function.git-rebase | #39D496de | — |
| support.other.parenthesis.regexp | #CCB82Fde | — |
| support.type | #2DBC0Ade | — |
| support.type.property-name | #4DC42Fde | — |
| support.type.vendored.property-name | #ED77CEde | — |
| support.variable | #B190F4de | — |
| token.debug-token | #33D192de | — |
| token.error-token | #ED78CEde | — |
| token.info-token | #ED78CEde | — |
| token.warn-token | #B191F4de | — |
| variable | #2EBD0Ade | — |
| variable.css | #83B6F1de | — |
| variable.language | #76ADEDde | — |
| variable.language.wildcard.java | #6AA5E9de | — |
| variable.other.constant | #2EBA0Ade | — |
| variable.other.definition.java | #08B972de | — |
| variable.other.enummember | #68A5E9de | — |
| variable.other.less | #ED77CEde | — |
| variable.other.object.java | #ED77CEde | — |
| variable.other.object.property.java | #F8ACA7de | — |
| variable.parameter.c | #B392F4de | — |
| variable.parameter.function.language.python | #F59E98de | — |
| variable.parameter.java | #EE837Bde | — |
| variable.scss | #2EBD0Ade | — |
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}!`;
}