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 | #2929496e | — |
| comment.block.java | #2929486e | — |
| comment.block.javadoc.java | #2929466e | — |
| comment.block.powershell | #2929496e | — |
| comment.block.xml | #2929496e | — |
| comment.line.double-slash.c | #2929496e | — |
| comment.line.double-slash.cpp | #28284A6e | — |
| comment.line.double-slash.java | #2929466e | — |
| comment.line.double-slash.js | #2929466e | — |
| comment.line.number-sign.makefile | #2929486e | — |
| comment.line.number-sign.python | #2929486e | — |
| comment.line.number-sign.yaml | #28284A6e | — |
| comment.line.percentage.erlang | #2929466e | — |
| comment.line.powershell | #2929486e | — |
| comment.source.cmake | #28284A6e | — |
| comment.source.cmakecache | #2929496e | — |
| constant.character | #2C3239de | — |
| constant.character.character-class.regexp | #4C019Cde | — |
| constant.character.escape | #382631de | — |
| constant.character.set.regexp | #5E3B17de | — |
| constant.language | #4A354Ade | — |
| constant.numeric | #820B48de | — |
| constant.numeric.dec.python | #2C3239de | — |
| constant.other.caps.python | #473856de | — |
| constant.other.character-class.regexp | #38290Ade | — |
| constant.other.character-class.set.regexp | #3E303Ede | — |
| constant.other.color.rgb-value | #302838de | — |
| constant.other.placeholder | #2C3239de | — |
| constant.other.rgb-value | #36272Fde | — |
| constant.regexp | #33491Cde | — |
| constant.sha.git-rebase | #2F4A13de | — |
| emphasis | #433650de | — |
| entity.name.class | #2C3932de | — |
| entity.name.function | #5D3B19de | — |
| entity.name.function.preprocessor | #33491Cde | — |
| entity.name.function.python | #443B31de | — |
| entity.name.label | #072C53de | — |
| entity.name.namespace | #38290Ade | — |
| entity.name.operator | #272C31de | — |
| entity.name.operator.custom-literal | #44313Bde | — |
| entity.name.scope-resolution | #5D3B19de | — |
| entity.name.tag | #304A15de | — |
| entity.name.tag.css | #1A3027de | — |
| entity.name.type | #391D56de | bold |
| entity.name.variable | #343F4Ade | — |
| entity.other.attribute | #332E29de | — |
| entity.other.attribute-name | #432031de | — |
| entity.other.attribute-name.class.css | #520252de | — |
| entity.other.attribute-name.class.mixin.css | #174C31de | — |
| entity.other.attribute-name.id | #2C3932de | — |
| entity.other.attribute-name.id.css | #4B3A5Dde | — |
| entity.other.attribute-name.parent-selector.css | #36272Fde | — |
| entity.other.attribute-name.pseudo-class.css | #272E1Cde | — |
| entity.other.attribute-name.pseudo-element.css | #304917de | — |
| entity.other.attribute-name.scss | #58072Ede | — |
| entity.other.document.begin.yaml | #28284A6e | — |
| entity.other.inherited-class | #3F203Fde | — |
| header | #38290Ade | — |
| invalid | #113126de | — |
| keyword | #3B3144de | bold |
| keyword.codetag.notation.python | #38290Ade | bold |
| keyword.control | #563847de | bold |
| keyword.control.anchor.regexp | #3D2335de | bold |
| keyword.control.import.python | #32392Cde | bold |
| keyword.operator | #3F344Ade | bold |
| keyword.operator.alignas | #5D3B19de | bold |
| keyword.operator.alignof | #332A33de | bold |
| keyword.operator.cast | #3D213Dde | bold |
| keyword.operator.delete | #2F363Ede | bold |
| keyword.operator.documentation.powershell | #28284A6e | bold |
| keyword.operator.expression | #202D3Ade | bold |
| keyword.operator.instanceof | #072C53de | bold |
| keyword.operator.logical.python | #382631de | bold |
| keyword.operator.minus.exponent | #33491Cde | bold |
| keyword.operator.negation.regexp | #2E3329de | bold |
| keyword.operator.new | #382D38de | bold |
| keyword.operator.noexcept | #382343de | bold |
| keyword.operator.or.regexp | #4A354Ade | bold |
| keyword.operator.plus.exponent | #382D38de | bold |
| keyword.operator.quantifier.regexp | #32392Cde | bold |
| keyword.operator.sizeof | #3F203Fde | bold |
| keyword.operator.typeid | #33491Bde | bold |
| keyword.operator.wordlike | #174C31de | bold |
| keyword.other.operator | #432031de | bold |
| keyword.other.package.java | #124C2Fde | bold |
| keyword.other.unit | #392C32de | bold |
| keyword.other.using | #563956de | bold |
| markup.bold | #422407de | — |
| markup.changed | #443344de | — |
| markup.deleted | #06427Fde | — |
| markup.fenced_code.block.markdown | #0D437Cde | — |
| markup.heading | #4C019Cde | — |
| markup.inline.raw | #382343de | — |
| markup.inserted | #2F4A13de | — |
| markup.italic | #06427Fde | — |
| markup.raw.block.markdown | #1A3027de | — |
| markup.strikethrough | #3D2335de | — |
| markup.underline | #623913de | — |
| meta.block.c | #3F344Ade | — |
| meta.block.c | #382D38de | — |
| meta.class.java | #272C31de | — |
| meta.definition.variable.name | #3E2F37de | — |
| meta.diff.header | #563847de | — |
| meta.embedded | #2A2E26de | — |
| meta.embedded.assembly | #1C4B34de | — |
| meta.function-call.arguments.python | #2F363Ede | — |
| meta.function-call.python | #38290Ade | — |
| meta.member.access.python | #4C019Cde | — |
| meta.method.java | #820E49de | — |
| meta.object-literal.key | #08321Dde | — |
| meta.paragraph.markdown | #4A343Fde | — |
| meta.preprocessor | #473856de | — |
| meta.preprocessor.numeric | #4A3F34de | — |
| meta.preprocessor.string | #563847de | — |
| meta.scope.prerequisites.makefile | #272E1Cde | — |
| meta.structure.dictionary.json.comments | #2929466e | — |
| meta.structure.dictionary.key.python | #2C3932de | — |
| meta.structure.dictionary.value.json.comments | #28284A6e | — |
| meta.template.expression | #500750de | — |
| meta.type.cast.expr | #3E303Ede | bold |
| meta.type.new.expr | #364350de | bold |
| parameter | #3E303Ede | — |
| punctuation.character.set.begin.regexp | #44313Bde | — |
| punctuation.character.set.end.regexp | #443344de | — |
| punctuation.definition.array.begin.json | #31443Bde | — |
| punctuation.definition.character-class.regexp | #33491Cde | — |
| punctuation.definition.comment | #2929466e | — |
| punctuation.definition.comment.json.comments | #2929486e | — |
| punctuation.definition.comment.python | #2929466e | — |
| punctuation.definition.dictionary.begin.json | #262F13de | — |
| punctuation.definition.dictionary.end.json | #382343de | — |
| punctuation.definition.group.assertion.regexp | #503750de | — |
| punctuation.definition.group.regexp | #1D3109de | — |
| punctuation.definition.list.begin.json | #0D437Cde | — |
| punctuation.definition.list.begin.markdown | #364350de | — |
| punctuation.definition.list.begin.python | #332E29de | — |
| punctuation.definition.list.end.json | #820B48de | — |
| punctuation.definition.list.end.markdown | #3B4431de | — |
| punctuation.definition.list.end.python | #124C2Fde | — |
| punctuation.definition.parameters.begin.python | #820B48de | — |
| punctuation.definition.parameters.end.bracket.round.java | #44313Bde | — |
| punctuation.definition.quote.begin.markdown | #36272Fde | — |
| punctuation.definition.tag | #58072Ede | — |
| punctuation.definition.template-expression.begin | #124474de | — |
| punctuation.definition.template-expression.end | #33491Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #503643de | — |
| punctuation.section.embedded | #3E2F37de | — |
| punctuation.section.embedded.begin.php | #343F4Ade | — |
| punctuation.section.embedded.end.php | #3D2335de | — |
| punctuation.terminator.java | #194B31de | — |
| source.cmake | #342A20de | — |
| source.coffee.embedded | #392C32de | — |
| source.cpp | #183200de | — |
| source.css.less | #0D437Cde | — |
| source.groovy.embedded | #770C77de | — |
| source.java | #3D213Dde | — |
| source.java-properties | #3D2335de | — |
| source.json.comments | #28284A6e | — |
| source.makefile | #503643de | — |
| source.powershell | #252C31de | — |
| source.powershell.variable.other.member | #313B44de | — |
| source.python | #36272Fde | — |
| storage | #194B31de | — |
| storage.modifier | #332E29de | — |
| storage.modifier.import.java | #520252de | — |
| storage.modifier.package.java | #29332Ede | — |
| storage.type | #382631de | bold |
| storage.type.annotation.groovy | #364350de | bold |
| storage.type.annotation.java | #1A3027de | bold |
| storage.type.boolean.go | #372913de | bold |
| storage.type.byte.go | #373E2Fde | bold |
| storage.type.cs | #2F3E37de | bold |
| storage.type.error.go | #072C53de | bold |
| storage.type.generic.cs | #5E3B17de | bold |
| storage.type.generic.groovy | #232D32de | bold |
| storage.type.generic.java | #503750de | bold |
| storage.type.groovy | #38290Ade | bold |
| storage.type.java | #623913de | bold |
| storage.type.modifier.cs | #072C53de | bold |
| storage.type.numeric.go | #433650de | bold |
| storage.type.object.array.groovy | #304A15de | bold |
| storage.type.object.array.java | #563847de | bold |
| storage.type.parameters.groovy | #5401A4de | bold |
| storage.type.primitive.array.groovy | #272C31de | bold |
| storage.type.primitive.array.java | #58072Ede | bold |
| storage.type.primitive.groovy | #64380Dde | bold |
| storage.type.primitive.java | #2A2E26de | bold |
| storage.type.rune.go | #08321Dde | bold |
| storage.type.string.go | #3A243Ade | bold |
| storage.type.token.java | #850744de | bold |
| storage.type.uintptr.go | #3E2F37de | bold |
| storage.type.variable.cs | #443344de | bold |
| string | #3E2F37de | — |
| string.quoted.docstring.multi.python | #28284A6e | — |
| string.regexp | #4A343Fde | — |
| string.tag | #770C77de | — |
| string.value | #3B3144de | — |
| strong | #29332Ede | — |
| support.class | #174C31de | — |
| support.constant.color | #500750de | — |
| support.constant.dom | #563847de | — |
| support.constant.font-name | #342A20de | — |
| support.constant.handlebars | #623913de | — |
| support.constant.json | #44313Bde | — |
| support.constant.math | #362F3Ede | — |
| support.constant.media | #473856de | — |
| support.constant.media-type | #1D3109de | bold |
| support.constant.property-value | #58072Ede | — |
| support.function | #850744de | — |
| support.function.git-rebase | #292E33de | — |
| support.other.parenthesis.regexp | #272E1Cde | — |
| support.type | #432031de | bold |
| support.type.property-name | #262F13de | bold |
| support.type.vendored.property-name | #0D437Cde | bold |
| support.variable | #332E29de | — |
| token.debug-token | #343F4Ade | — |
| token.error-token | #202D3Ade | — |
| token.info-token | #33263Cde | — |
| token.warn-token | #2E3329de | — |
| variable | #3F203Fde | — |
| variable.css | #302838de | — |
| variable.language | #33292Ede | — |
| variable.language.wildcard.java | #443B31de | — |
| variable.other.constant | #4A3F34de | — |
| variable.other.definition.java | #3D213Dde | — |
| variable.other.enummember | #3E2F37de | — |
| variable.other.less | #3A243Ade | — |
| variable.other.object.java | #304917de | — |
| variable.other.object.property.java | #820E49de | — |
| variable.parameter.c | #272E1Cde | — |
| variable.parameter.function.language.python | #1B4B34de | — |
| variable.parameter.java | #06427Fde | — |
| variable.scss | #2C3932de | — |
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}!`;
}