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 | #2929466e | — |
| comment.block.html | #2929486e | — |
| comment.block.java | #2929486e | — |
| comment.block.javadoc.java | #2929486e | — |
| comment.block.powershell | #29294E6e | — |
| comment.block.xml | #2929486e | — |
| comment.line.double-slash.c | #2929466e | — |
| comment.line.double-slash.cpp | #2929486e | — |
| comment.line.double-slash.java | #2929486e | — |
| comment.line.double-slash.js | #2929486e | — |
| comment.line.number-sign.makefile | #2929486e | — |
| comment.line.number-sign.python | #2929486e | — |
| comment.line.number-sign.yaml | #29294E6e | — |
| comment.line.percentage.erlang | #2929466e | — |
| comment.line.powershell | #2929466e | — |
| comment.source.cmake | #2929466e | — |
| comment.source.cmakecache | #2929466e | — |
| constant.character | #404026de | — |
| constant.character.character-class.regexp | #294642de | — |
| constant.character.escape | #454517de | — |
| constant.character.set.regexp | #134B45de | — |
| constant.language | #061987de | — |
| constant.numeric | #3B2B4Cde | — |
| constant.numeric.dec.python | #3A3A24de | — |
| constant.other.caps.python | #1F2A4Dde | — |
| constant.other.character-class.regexp | #1B302Dde | — |
| constant.other.character-class.set.regexp | #252B40de | — |
| constant.other.color.rgb-value | #3B2B4Cde | — |
| constant.other.placeholder | #4A1B37de | — |
| constant.other.rgb-value | #2C2C2Cde | — |
| constant.regexp | #372946de | — |
| constant.sha.git-rebase | #212B48de | — |
| emphasis | #1B302Dde | — |
| entity.name.class | #592F49de | — |
| entity.name.function | #422136de | — |
| entity.name.function.preprocessor | #3D261Fde | — |
| entity.name.function.python | #422417de | — |
| entity.name.label | #03207Bde | — |
| entity.name.namespace | #232B42de | — |
| entity.name.operator | #7B260Ade | — |
| entity.name.operator.custom-literal | #2D2D16de | — |
| entity.name.scope-resolution | #2E2E01de | — |
| entity.name.tag | #404026de | — |
| entity.name.tag.css | #392822de | — |
| entity.name.type | #53362Dde | bold |
| entity.name.variable | #182761de | — |
| entity.other.attribute | #323F67de | — |
| entity.other.attribute-name | #531805de | — |
| entity.other.attribute-name.class.css | #58053Ade | — |
| entity.other.attribute-name.class.mixin.css | #2C2C2Cde | — |
| entity.other.attribute-name.id | #3D261Fde | — |
| entity.other.attribute-name.id.css | #03207Bde | — |
| entity.other.attribute-name.parent-selector.css | #2E2E04de | — |
| entity.other.attribute-name.pseudo-class.css | #2D3653de | — |
| entity.other.attribute-name.pseudo-element.css | #2C2C2Cde | — |
| entity.other.attribute-name.scss | #252B40de | — |
| entity.other.document.begin.yaml | #2929486e | — |
| entity.other.inherited-class | #3A2924de | — |
| header | #112667de | — |
| invalid | #2E2E0Cde | — |
| keyword | #3A2924de | bold |
| keyword.codetag.notation.python | #03207Bde | bold |
| keyword.control | #12312Ede | bold |
| keyword.control.anchor.regexp | #4F1637de | bold |
| keyword.control.import.python | #4E1639de | bold |
| keyword.operator | #1B302Dde | bold |
| keyword.operator.alignas | #45450Ede | bold |
| keyword.operator.alignof | #352644de | bold |
| keyword.operator.cast | #45450Ede | bold |
| keyword.operator.delete | #4C3267de | bold |
| keyword.operator.documentation.powershell | #2929486e | bold |
| keyword.operator.expression | #2E2E0Cde | bold |
| keyword.operator.instanceof | #4F1637de | bold |
| keyword.operator.logical.python | #3C1861de | bold |
| keyword.operator.minus.exponent | #4E1639de | bold |
| keyword.operator.negation.regexp | #454512de | bold |
| keyword.operator.new | #58053Ade | bold |
| keyword.operator.noexcept | #404040de | bold |
| keyword.operator.or.regexp | #53362Dde | bold |
| keyword.operator.plus.exponent | #12312Ede | bold |
| keyword.operator.quantifier.regexp | #2E2E04de | bold |
| keyword.operator.sizeof | #45450Ede | bold |
| keyword.operator.typeid | #3B2B4Cde | bold |
| keyword.operator.wordlike | #26403Dde | bold |
| keyword.other.operator | #58053Ade | bold |
| keyword.other.package.java | #463029de | bold |
| keyword.other.unit | #53362Dde | bold |
| keyword.other.using | #531805de | bold |
| markup.bold | #3A2924de | — |
| markup.changed | #45450Ede | — |
| markup.deleted | #422417de | — |
| markup.fenced_code.block.markdown | #342641de | — |
| markup.heading | #2E2E2Ede | — |
| markup.inline.raw | #451F38de | — |
| markup.inserted | #483060de | — |
| markup.italic | #1F2A4Dde | — |
| markup.raw.block.markdown | #2E2E04de | — |
| markup.strikethrough | #352644de | — |
| markup.underline | #252B40de | — |
| meta.block.c | #463029de | — |
| meta.block.c | #232B42de | — |
| meta.class.java | #392822de | — |
| meta.definition.variable.name | #60304Ede | — |
| meta.diff.header | #3C3C3Cde | — |
| meta.embedded | #212B48de | — |
| meta.embedded.assembly | #4A1B37de | — |
| meta.function-call.arguments.python | #442F59de | — |
| meta.function-call.python | #454517de | — |
| meta.member.access.python | #2C2C2Cde | — |
| meta.method.java | #343421de | — |
| meta.object-literal.key | #343421de | — |
| meta.paragraph.markdown | #53362Dde | — |
| meta.preprocessor | #59392Fde | — |
| meta.preprocessor.numeric | #03207Bde | — |
| meta.preprocessor.string | #3E0F6Ede | — |
| meta.scope.prerequisites.makefile | #454510de | — |
| meta.structure.dictionary.json.comments | #2929466e | — |
| meta.structure.dictionary.key.python | #2E2E04de | — |
| meta.structure.dictionary.value.json.comments | #2929466e | — |
| meta.template.expression | #422136de | — |
| meta.type.cast.expr | #333333de | bold |
| meta.type.new.expr | #404026de | bold |
| parameter | #114B43de | — |
| punctuation.character.set.begin.regexp | #830755de | — |
| punctuation.character.set.end.regexp | #303C60de | — |
| punctuation.definition.array.begin.json | #18302Dde | — |
| punctuation.definition.character-class.regexp | #112667de | — |
| punctuation.definition.comment | #2929466e | — |
| punctuation.definition.comment.json.comments | #2929486e | — |
| punctuation.definition.comment.python | #2929486e | — |
| punctuation.definition.dictionary.begin.json | #262D40de | — |
| punctuation.definition.dictionary.end.json | #243A37de | — |
| punctuation.definition.group.assertion.regexp | #3A2924de | — |
| punctuation.definition.group.regexp | #53362Dde | — |
| punctuation.definition.list.begin.json | #3F2334de | — |
| punctuation.definition.list.begin.markdown | #3C1861de | — |
| punctuation.definition.list.begin.python | #352644de | — |
| punctuation.definition.list.end.json | #59392Fde | — |
| punctuation.definition.list.end.markdown | #434343de | — |
| punctuation.definition.list.end.python | #3A3A24de | — |
| punctuation.definition.parameters.begin.python | #18302Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #45241Bde | — |
| punctuation.definition.quote.begin.markdown | #3E0F6Ede | — |
| punctuation.definition.tag | #212B48de | — |
| punctuation.definition.template-expression.begin | #352448de | — |
| punctuation.definition.template-expression.end | #2E2E04de | — |
| punctuation.section.class.begin.bracket.curly.java | #2C2C2Cde | — |
| punctuation.section.embedded | #45241Bde | — |
| punctuation.section.embedded.begin.php | #4C3267de | — |
| punctuation.section.embedded.end.php | #2F3959de | — |
| punctuation.terminator.java | #213431de | — |
| source.cmake | #3A2924de | — |
| source.coffee.embedded | #4F1637de | — |
| source.cpp | #454517de | — |
| source.css.less | #7D2407de | — |
| source.groovy.embedded | #2C2C2Cde | — |
| source.java | #1F2A4Dde | — |
| source.java-properties | #213431de | — |
| source.json.comments | #2929486e | — |
| source.makefile | #2B334Cde | — |
| source.powershell | #3D261Fde | — |
| source.powershell.variable.other.member | #352644de | — |
| source.python | #463029de | — |
| storage | #352644de | — |
| storage.modifier | #4F1637de | — |
| storage.modifier.import.java | #2C2C2Cde | — |
| storage.modifier.package.java | #2E2E2Ede | — |
| storage.type | #2D2D16de | bold |
| storage.type.annotation.groovy | #532D44de | bold |
| storage.type.annotation.java | #114B43de | bold |
| storage.type.boolean.go | #463029de | bold |
| storage.type.byte.go | #590436de | bold |
| storage.type.cs | #3A0B79de | bold |
| storage.type.error.go | #59392Fde | bold |
| storage.type.generic.cs | #3E0F6Ede | bold |
| storage.type.generic.groovy | #2C2C2Cde | bold |
| storage.type.generic.java | #352448de | bold |
| storage.type.groovy | #7B260Ade | bold |
| storage.type.java | #2C2C2Cde | bold |
| storage.type.modifier.cs | #590436de | bold |
| storage.type.numeric.go | #2E2E2Ede | bold |
| storage.type.object.array.groovy | #463029de | bold |
| storage.type.object.array.java | #134B45de | bold |
| storage.type.parameters.groovy | #352644de | bold |
| storage.type.primitive.array.groovy | #18302Dde | bold |
| storage.type.primitive.array.java | #1B302Dde | bold |
| storage.type.primitive.groovy | #2C2C2Cde | bold |
| storage.type.primitive.java | #59392Fde | bold |
| storage.type.rune.go | #592F49de | bold |
| storage.type.string.go | #252B40de | bold |
| storage.type.token.java | #45450Ede | bold |
| storage.type.uintptr.go | #7D2407de | bold |
| storage.type.variable.cs | #213431de | bold |
| string | #402636de | — |
| string.quoted.docstring.multi.python | #2929486e | — |
| string.regexp | #1F2A4Dde | — |
| string.tag | #2E2E01de | — |
| string.value | #3E0F6Ede | — |
| strong | #3A3A24de | — |
| support.class | #03207Bde | — |
| support.constant.color | #3C2720de | — |
| support.constant.dom | #2E2E2Ede | — |
| support.constant.font-name | #2C2C2Cde | — |
| support.constant.handlebars | #532D44de | — |
| support.constant.json | #3F2334de | — |
| support.constant.math | #2E2E04de | — |
| support.constant.media | #18302Dde | — |
| support.constant.media-type | #1F2A4Dde | bold |
| support.constant.property-value | #372946de | — |
| support.function | #2E2E1Ede | — |
| support.function.git-rebase | #2E2E01de | — |
| support.other.parenthesis.regexp | #3D261Fde | — |
| support.type | #182761de | bold |
| support.type.property-name | #53362Dde | bold |
| support.type.vendored.property-name | #422136de | bold |
| support.variable | #442F59de | — |
| token.debug-token | #53362Dde | — |
| token.error-token | #164B44de | — |
| token.info-token | #18302Dde | — |
| token.warn-token | #53362Dde | — |
| variable | #2C2C2Cde | — |
| variable.css | #4F1637de | — |
| variable.language | #061987de | — |
| variable.language.wildcard.java | #45450Ede | — |
| variable.other.constant | #232B42de | — |
| variable.other.definition.java | #323F67de | — |
| variable.other.enummember | #454514de | — |
| variable.other.less | #434343de | — |
| variable.other.object.java | #402636de | — |
| variable.other.object.property.java | #3B2B4Cde | — |
| variable.parameter.c | #2B334Cde | — |
| variable.parameter.function.language.python | #3A1E56de | — |
| variable.parameter.java | #7D2407de | — |
| variable.scss | #2C2C2Cde | — |
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}!`;
}