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 | #3030306e | — |
| comment.block.html | #3030306e | — |
| comment.block.java | #3030306e | — |
| comment.block.javadoc.java | #3030306e | — |
| comment.block.powershell | #3030306e | — |
| comment.block.xml | #3030306e | — |
| comment.line.double-slash.c | #3030306e | — |
| comment.line.double-slash.cpp | #3030306e | — |
| comment.line.double-slash.java | #3030306e | — |
| comment.line.double-slash.js | #3030306e | — |
| comment.line.number-sign.makefile | #3030306e | — |
| comment.line.number-sign.python | #3030306e | — |
| comment.line.number-sign.yaml | #3030306e | — |
| comment.line.percentage.erlang | #3030306e | — |
| comment.line.powershell | #3030306e | — |
| comment.source.cmake | #3030306e | — |
| comment.source.cmakecache | #3030306e | — |
| constant.character | #2B462Bde | — |
| constant.character.character-class.regexp | #434B12de | — |
| constant.character.escape | #444B19de | — |
| constant.character.set.regexp | #1A352Dde | — |
| constant.language | #603933de | — |
| constant.numeric | #8A0953de | — |
| constant.numeric.dec.python | #2B340Ade | — |
| constant.other.caps.python | #542018de | — |
| constant.other.character-class.regexp | #263A26de | — |
| constant.other.character-class.set.regexp | #0F372Cde | — |
| constant.other.color.rgb-value | #673451de | — |
| constant.other.placeholder | #42462Bde | — |
| constant.other.rgb-value | #284028de | — |
| constant.regexp | #442B25de | — |
| constant.sha.git-rebase | #105310de | — |
| emphasis | #063827de | — |
| entity.name.class | #05382Ade | — |
| entity.name.function | #132C69de | — |
| entity.name.function.preprocessor | #434B17de | — |
| entity.name.function.python | #4A3467de | — |
| entity.name.label | #673451de | — |
| entity.name.namespace | #372B46de | — |
| entity.name.operator | #125312de | — |
| entity.name.operator.custom-literal | #165216de | — |
| entity.name.scope-resolution | #2D3405de | — |
| entity.name.tag | #4D2521de | — |
| entity.name.tag.css | #165216de | — |
| entity.name.type | #0F372Cde | bold |
| entity.name.variable | #283043de | — |
| entity.other.attribute | #284028de | — |
| entity.other.attribute-name | #593731de | — |
| entity.other.attribute-name.class.css | #60334Dde | — |
| entity.other.attribute-name.class.mixin.css | #24304Cde | — |
| entity.other.attribute-name.id | #2D3405de | — |
| entity.other.attribute-name.id.css | #1A371Ade | — |
| entity.other.attribute-name.parent-selector.css | #16503Fde | — |
| entity.other.attribute-name.pseudo-class.css | #283045de | — |
| entity.other.attribute-name.pseudo-element.css | #60334Dde | — |
| entity.other.attribute-name.scss | #3C018Fde | — |
| entity.other.document.begin.yaml | #3030306e | — |
| entity.other.inherited-class | #3A2D4Cde | — |
| header | #444B19de | — |
| invalid | #42462Bde | — |
| keyword | #462B3Ade | bold |
| keyword.codetag.notation.python | #401774de | bold |
| keyword.control | #53342Fde | bold |
| keyword.control.anchor.regexp | #8A0953de | bold |
| keyword.control.import.python | #23342Fde | bold |
| keyword.operator | #2D364Cde | bold |
| keyword.operator.alignas | #13503Fde | bold |
| keyword.operator.alignof | #53342Fde | bold |
| keyword.operator.cast | #334060de | bold |
| keyword.operator.delete | #165216de | bold |
| keyword.operator.documentation.powershell | #3030306e | bold |
| keyword.operator.expression | #462924de | bold |
| keyword.operator.instanceof | #434B14de | bold |
| keyword.operator.logical.python | #472639de | bold |
| keyword.operator.minus.exponent | #434B16de | bold |
| keyword.operator.negation.regexp | #05382Ade | bold |
| keyword.operator.new | #60073Bde | bold |
| keyword.operator.noexcept | #1A352Dde | bold |
| keyword.operator.or.regexp | #60334Dde | bold |
| keyword.operator.plus.exponent | #263A34de | bold |
| keyword.operator.quantifier.regexp | #2D3405de | bold |
| keyword.operator.sizeof | #462B3Ade | bold |
| keyword.operator.typeid | #621205de | bold |
| keyword.operator.wordlike | #4D2521de | bold |
| keyword.other.operator | #3C018Fde | bold |
| keyword.other.package.java | #3C245Cde | bold |
| keyword.other.unit | #2D3402de | bold |
| keyword.other.using | #402B27de | bold |
| markup.bold | #3F1F65de | — |
| markup.changed | #8B1A05de | — |
| markup.deleted | #8A1B09de | — |
| markup.fenced_code.block.markdown | #105310de | — |
| markup.heading | #213521de | — |
| markup.inline.raw | #1A371Ade | — |
| markup.inserted | #36466Ede | — |
| markup.italic | #373A26de | — |
| markup.raw.block.markdown | #284028de | — |
| markup.strikethrough | #444B19de | — |
| markup.underline | #402B27de | — |
| meta.block.c | #3C245Cde | — |
| meta.block.c | #60073Bde | — |
| meta.class.java | #402B27de | — |
| meta.definition.variable.name | #053905de | — |
| meta.diff.header | #3F0B84de | — |
| meta.embedded | #105310de | — |
| meta.embedded.assembly | #24304Cde | — |
| meta.function-call.arguments.python | #313D59de | — |
| meta.function-call.python | #472639de | — |
| meta.member.access.python | #0F380Fde | — |
| meta.method.java | #434B12de | — |
| meta.object-literal.key | #492439de | — |
| meta.paragraph.markdown | #3C018Fde | — |
| meta.preprocessor | #401774de | — |
| meta.preprocessor.numeric | #323423de | — |
| meta.preprocessor.string | #4D2139de | — |
| meta.scope.prerequisites.makefile | #673451de | — |
| meta.structure.dictionary.json.comments | #3030306e | — |
| meta.structure.dictionary.key.python | #3D4028de | — |
| meta.structure.dictionary.value.json.comments | #3030306e | — |
| meta.template.expression | #155215de | — |
| meta.type.cast.expr | #165216de | bold |
| meta.type.new.expr | #105310de | bold |
| parameter | #57173Cde | — |
| punctuation.character.set.begin.regexp | #42462Bde | — |
| punctuation.character.set.end.regexp | #3A2D4Cde | — |
| punctuation.definition.array.begin.json | #3D4028de | — |
| punctuation.definition.character-class.regexp | #24304Cde | — |
| punctuation.definition.comment | #3030306e | — |
| punctuation.definition.comment.json.comments | #3030306e | — |
| punctuation.definition.comment.python | #3030306e | — |
| punctuation.definition.dictionary.begin.json | #155215de | — |
| punctuation.definition.dictionary.end.json | #1A352Dde | — |
| punctuation.definition.group.assertion.regexp | #53342Fde | — |
| punctuation.definition.group.regexp | #621205de | — |
| punctuation.definition.list.begin.json | #1A371Ade | — |
| punctuation.definition.list.begin.markdown | #444B19de | — |
| punctuation.definition.list.begin.python | #3C245Cde | — |
| punctuation.definition.list.end.json | #313D59de | — |
| punctuation.definition.list.end.markdown | #4D2139de | — |
| punctuation.definition.list.end.python | #0F372Cde | — |
| punctuation.definition.parameters.begin.python | #593731de | — |
| punctuation.definition.parameters.end.bracket.round.java | #155215de | — |
| punctuation.definition.quote.begin.markdown | #434B10de | — |
| punctuation.definition.tag | #2D3402de | — |
| punctuation.definition.template-expression.begin | #283045de | — |
| punctuation.definition.template-expression.end | #2F321Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #442B25de | — |
| punctuation.section.embedded | #60334Dde | — |
| punctuation.section.embedded.begin.php | #2F3953de | — |
| punctuation.section.embedded.end.php | #2D364Cde | — |
| punctuation.terminator.java | #4A3467de | — |
| source.cmake | #4D2521de | — |
| source.coffee.embedded | #60073Bde | — |
| source.cpp | #11513Fde | — |
| source.css.less | #053905de | — |
| source.groovy.embedded | #283043de | — |
| source.java | #2D4C43de | — |
| source.java-properties | #401774de | — |
| source.json.comments | #3030306e | — |
| source.makefile | #423159de | — |
| source.powershell | #4A3467de | — |
| source.powershell.variable.other.member | #673451de | — |
| source.python | #13503Fde | — |
| storage | #60073Bde | — |
| storage.modifier | #462924de | — |
| storage.modifier.import.java | #3D4028de | — |
| storage.modifier.package.java | #212F54de | — |
| storage.type | #053905de | bold |
| storage.type.annotation.groovy | #313D59de | bold |
| storage.type.annotation.java | #283045de | bold |
| storage.type.boolean.go | #11513Fde | bold |
| storage.type.byte.go | #2D4C2Dde | bold |
| storage.type.cs | #4D2521de | bold |
| storage.type.error.go | #3C245Cde | bold |
| storage.type.generic.cs | #2D4C2Dde | bold |
| storage.type.generic.groovy | #1A352Dde | bold |
| storage.type.generic.java | #452839de | bold |
| storage.type.groovy | #434B12de | bold |
| storage.type.java | #334060de | bold |
| storage.type.modifier.cs | #2D4C43de | bold |
| storage.type.numeric.go | #402B27de | bold |
| storage.type.object.array.groovy | #452839de | bold |
| storage.type.object.array.java | #434B17de | bold |
| storage.type.parameters.groovy | #1A352Dde | bold |
| storage.type.primitive.array.groovy | #442B25de | bold |
| storage.type.primitive.array.java | #3A2D4Cde | bold |
| storage.type.primitive.groovy | #15503Fde | bold |
| storage.type.primitive.java | #42462Bde | bold |
| storage.type.rune.go | #521D3Bde | bold |
| storage.type.string.go | #2D3405de | bold |
| storage.type.token.java | #053905de | bold |
| storage.type.uintptr.go | #60073Bde | bold |
| storage.type.variable.cs | #16503Fde | bold |
| string | #23342Fde | — |
| string.quoted.docstring.multi.python | #3030306e | — |
| string.regexp | #05382Ade | — |
| string.tag | #23342Fde | — |
| string.value | #3C245Cde | — |
| strong | #2D364Cde | — |
| support.class | #183718de | — |
| support.constant.color | #382A4Ade | — |
| support.constant.dom | #4E366Ede | — |
| support.constant.font-name | #323423de | — |
| support.constant.handlebars | #434B17de | — |
| support.constant.json | #3B2752de | — |
| support.constant.math | #263A34de | — |
| support.constant.media | #3C018Fde | — |
| support.constant.media-type | #2F3953de | bold |
| support.constant.property-value | #213521de | — |
| support.function | #313D59de | — |
| support.function.git-rebase | #402B27de | — |
| support.other.parenthesis.regexp | #2D4C2Dde | — |
| support.type | #521D3Bde | bold |
| support.type.property-name | #673451de | bold |
| support.type.vendored.property-name | #4A3467de | bold |
| support.variable | #4D2521de | — |
| token.debug-token | #24304Cde | — |
| token.error-token | #542018de | — |
| token.info-token | #434B10de | — |
| token.warn-token | #3F1F65de | — |
| variable | #462B3Ade | — |
| variable.css | #053905de | — |
| variable.language | #4D2521de | — |
| variable.language.wildcard.java | #1A371Ade | — |
| variable.other.constant | #344367de | — |
| variable.other.definition.java | #593731de | — |
| variable.other.enummember | #2D3402de | — |
| variable.other.less | #24304Cde | — |
| variable.other.object.java | #2D3405de | — |
| variable.other.object.property.java | #1A352Dde | — |
| variable.parameter.c | #3B2752de | — |
| variable.parameter.function.language.python | #05382Ade | — |
| variable.parameter.java | #53342Fde | — |
| variable.scss | #24304Cde | — |
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}!`;
}