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 | #5812126e | — |
| comment.block.html | #5910106e | — |
| comment.block.java | #5811116e | — |
| comment.block.javadoc.java | #5812126e | — |
| comment.block.powershell | #5812126e | — |
| comment.block.xml | #5910106e | — |
| comment.line.double-slash.c | #5812126e | — |
| comment.line.double-slash.cpp | #5812126e | — |
| comment.line.double-slash.java | #5910106e | — |
| comment.line.double-slash.js | #5811116e | — |
| comment.line.number-sign.makefile | #5811116e | — |
| comment.line.number-sign.python | #5910106e | — |
| comment.line.number-sign.yaml | #5812126e | — |
| comment.line.percentage.erlang | #5812126e | — |
| comment.line.powershell | #5812126e | — |
| comment.source.cmake | #5910106e | — |
| comment.source.cmakecache | #5811116e | — |
| constant.character | #530E41de | — |
| constant.character.character-class.regexp | #143929de | — |
| constant.character.escape | #184E0Ade | — |
| constant.character.set.regexp | #541614de | — |
| constant.language | #2C2C2Cde | — |
| constant.numeric | #322D03de | — |
| constant.numeric.dec.python | #5A100Cde | — |
| constant.other.caps.python | #16330Ede | — |
| constant.other.character-class.regexp | #4B440Dde | — |
| constant.other.character-class.set.regexp | #0D4D32de | — |
| constant.other.color.rgb-value | #72241Fde | — |
| constant.other.placeholder | #0E4D32de | — |
| constant.other.rgb-value | #2C2C2Cde | — |
| constant.regexp | #350C7Fde | — |
| constant.sha.git-rebase | #580342de | — |
| emphasis | #0D3403de | — |
| entity.name.class | #64211Dde | — |
| entity.name.function | #541614de | — |
| entity.name.function.preprocessor | #0F4D33de | — |
| entity.name.function.python | #2C2C2Cde | — |
| entity.name.label | #5C1F1Cde | — |
| entity.name.namespace | #312D01de | — |
| entity.name.operator | #1B3914de | — |
| entity.name.operator.custom-literal | #4B4409de | — |
| entity.name.scope-resolution | #174733de | — |
| entity.name.tag | #2E2E2Ede | — |
| entity.name.tag.css | #4F1440de | — |
| entity.name.type | #5A0E0Bde | bold |
| entity.name.variable | #530E41de | — |
| entity.other.attribute | #810660de | — |
| entity.other.attribute-name | #0D3403de | — |
| entity.other.attribute-name.class.css | #1A4E0Dde | — |
| entity.other.attribute-name.class.mixin.css | #154E07de | — |
| entity.other.attribute-name.id | #5C1C4Bde | — |
| entity.other.attribute-name.id.css | #2C2C2Cde | — |
| entity.other.attribute-name.parent-selector.css | #6B221Ede | — |
| entity.other.attribute-name.pseudo-class.css | #0D4D32de | — |
| entity.other.attribute-name.pseudo-element.css | #16330Ede | — |
| entity.other.attribute-name.scss | #51113Fde | — |
| entity.other.document.begin.yaml | #5910106e | — |
| entity.other.inherited-class | #4B440Cde | — |
| header | #2C2C2Cde | — |
| invalid | #3B3B3Bde | — |
| keyword | #123225de | bold |
| keyword.codetag.notation.python | #4A440Fde | bold |
| keyword.control | #393514de | bold |
| keyword.control.anchor.regexp | #37176Dde | bold |
| keyword.control.import.python | #403B15de | bold |
| keyword.operator | #2C2C2Cde | bold |
| keyword.operator.alignas | #0E4D32de | bold |
| keyword.operator.alignof | #4B440Dde | bold |
| keyword.operator.cast | #810660de | bold |
| keyword.operator.delete | #2C2C2Cde | bold |
| keyword.operator.documentation.powershell | #5811116e | bold |
| keyword.operator.expression | #0E3323de | bold |
| keyword.operator.instanceof | #4E1940de | bold |
| keyword.operator.logical.python | #4C440Ade | bold |
| keyword.operator.minus.exponent | #312D0Ede | bold |
| keyword.operator.negation.regexp | #371177de | bold |
| keyword.operator.new | #541614de | bold |
| keyword.operator.noexcept | #16330Ede | bold |
| keyword.operator.or.regexp | #322F12de | bold |
| keyword.operator.plus.exponent | #17330Fde | bold |
| keyword.operator.quantifier.regexp | #312D01de | bold |
| keyword.operator.sizeof | #403B15de | bold |
| keyword.operator.typeid | #4F1440de | bold |
| keyword.operator.wordlike | #4A440Fde | bold |
| keyword.other.operator | #0C4D32de | bold |
| keyword.other.package.java | #371177de | bold |
| keyword.other.unit | #350C7Fde | bold |
| keyword.other.using | #371B64de | bold |
| markup.bold | #373737de | — |
| markup.changed | #0F3323de | — |
| markup.deleted | #371B64de | — |
| markup.fenced_code.block.markdown | #322D03de | — |
| markup.heading | #371969de | — |
| markup.inline.raw | #530D41de | — |
| markup.inserted | #3E1F72de | — |
| markup.italic | #4B4409de | — |
| markup.raw.block.markdown | #641D51de | — |
| markup.strikethrough | #154E07de | — |
| markup.underline | #0E4D32de | — |
| meta.block.c | #4F1440de | — |
| meta.block.c | #6B1E57de | — |
| meta.class.java | #2C2C2Cde | — |
| meta.definition.variable.name | #074E2Fde | — |
| meta.diff.header | #154E07de | — |
| meta.embedded | #320487de | — |
| meta.embedded.assembly | #6B221Ede | — |
| meta.function-call.arguments.python | #373737de | — |
| meta.function-call.python | #103406de | — |
| meta.member.access.python | #371969de | — |
| meta.method.java | #3F3F3Fde | — |
| meta.object-literal.key | #361B66de | — |
| meta.paragraph.markdown | #641D51de | — |
| meta.preprocessor | #084E31de | — |
| meta.preprocessor.numeric | #123225de | — |
| meta.preprocessor.string | #123225de | — |
| meta.scope.prerequisites.makefile | #580342de | — |
| meta.structure.dictionary.json.comments | #5811116e | — |
| meta.structure.dictionary.key.python | #0F3323de | — |
| meta.structure.dictionary.value.json.comments | #5811116e | — |
| meta.template.expression | #2C2C2Cde | — |
| meta.type.cast.expr | #4F163Fde | bold |
| meta.type.new.expr | #571311de | bold |
| parameter | #2C2C2Cde | — |
| punctuation.character.set.begin.regexp | #51113Fde | — |
| punctuation.character.set.end.regexp | #5C1C4Bde | — |
| punctuation.definition.array.begin.json | #312D01de | — |
| punctuation.definition.character-class.regexp | #373737de | — |
| punctuation.definition.comment | #5812126e | — |
| punctuation.definition.comment.json.comments | #5812126e | — |
| punctuation.definition.comment.python | #5812126e | — |
| punctuation.definition.dictionary.begin.json | #361571de | — |
| punctuation.definition.dictionary.end.json | #2E038Cde | — |
| punctuation.definition.group.assertion.regexp | #4B440Cde | — |
| punctuation.definition.group.regexp | #322D03de | — |
| punctuation.definition.list.begin.json | #154E07de | — |
| punctuation.definition.list.begin.markdown | #434343de | — |
| punctuation.definition.list.begin.python | #4A440Ede | — |
| punctuation.definition.list.end.json | #5A100Cde | — |
| punctuation.definition.list.end.markdown | #174733de | — |
| punctuation.definition.list.end.python | #073320de | — |
| punctuation.definition.parameters.begin.python | #0E3323de | — |
| punctuation.definition.parameters.end.bracket.round.java | #541614de | — |
| punctuation.definition.quote.begin.markdown | #403B15de | — |
| punctuation.definition.tag | #5E0603de | — |
| punctuation.definition.template-expression.begin | #7A2520de | — |
| punctuation.definition.template-expression.end | #6B221Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #340486de | — |
| punctuation.section.embedded | #4E1940de | — |
| punctuation.section.embedded.begin.php | #184E0Ade | — |
| punctuation.section.embedded.end.php | #3A1E6Bde | — |
| punctuation.terminator.java | #184E0Ade | — |
| source.cmake | #4D163Fde | — |
| source.coffee.embedded | #541614de | — |
| source.cpp | #393514de | — |
| source.css.less | #4B440Dde | — |
| source.groovy.embedded | #350C7Fde | — |
| source.java | #4E1940de | — |
| source.java-properties | #214717de | — |
| source.json.comments | #5812126e | — |
| source.makefile | #0F3323de | — |
| source.powershell | #3F3F3Fde | — |
| source.powershell.variable.other.member | #571311de | — |
| source.python | #4B4409de | — |
| storage | #322D03de | — |
| storage.modifier | #193212de | — |
| storage.modifier.import.java | #4C440Ade | — |
| storage.modifier.package.java | #320487de | — |
| storage.type | #0D4D32de | bold |
| storage.type.annotation.groovy | #580342de | bold |
| storage.type.annotation.java | #2C2C2Cde | bold |
| storage.type.boolean.go | #59100Dde | bold |
| storage.type.byte.go | #2C2C2Cde | bold |
| storage.type.cs | #721F5Dde | bold |
| storage.type.error.go | #0E4D32de | bold |
| storage.type.generic.cs | #560741de | bold |
| storage.type.generic.groovy | #37176Dde | bold |
| storage.type.generic.java | #5E0603de | bold |
| storage.type.groovy | #560741de | bold |
| storage.type.java | #361B66de | bold |
| storage.type.modifier.cs | #403B15de | bold |
| storage.type.numeric.go | #1B3914de | bold |
| storage.type.object.array.groovy | #4A440Ede | bold |
| storage.type.object.array.java | #580342de | bold |
| storage.type.parameters.groovy | #721F5Dde | bold |
| storage.type.primitive.array.groovy | #312D0Ede | bold |
| storage.type.primitive.array.java | #393514de | bold |
| storage.type.primitive.groovy | #373737de | bold |
| storage.type.primitive.java | #371D64de | bold |
| storage.type.rune.go | #350C7Fde | bold |
| storage.type.string.go | #3B3B3Bde | bold |
| storage.type.token.java | #31018Ade | bold |
| storage.type.uintptr.go | #371177de | bold |
| storage.type.variable.cs | #17330Fde | bold |
| string | #361B66de | — |
| string.quoted.docstring.multi.python | #5812126e | — |
| string.regexp | #810660de | — |
| string.tag | #2E038Cde | — |
| string.value | #2C2C2Cde | — |
| strong | #403B15de | — |
| support.class | #1A4E0Cde | — |
| support.constant.color | #474217de | — |
| support.constant.dom | #0E3323de | — |
| support.constant.font-name | #393514de | — |
| support.constant.handlebars | #361D64de | — |
| support.constant.json | #3F3F3Fde | — |
| support.constant.math | #393514de | — |
| support.constant.media | #373737de | — |
| support.constant.media-type | #361B66de | bold |
| support.constant.property-value | #3E1F72de | — |
| support.function | #4E1940de | — |
| support.function.git-rebase | #5A0E0Bde | — |
| support.other.parenthesis.regexp | #5C1F1Cde | — |
| support.type | #571311de | bold |
| support.type.property-name | #1C4D0Fde | bold |
| support.type.vendored.property-name | #721F5Dde | bold |
| support.variable | #0C4D32de | — |
| token.debug-token | #530D41de | — |
| token.error-token | #3E1F72de | — |
| token.info-token | #17330Fde | — |
| token.warn-token | #4D163Fde | — |
| variable | #4F1B18de | — |
| variable.css | #4F1B18de | — |
| variable.language | #810660de | — |
| variable.language.wildcard.java | #350C7Fde | — |
| variable.other.constant | #361571de | — |
| variable.other.definition.java | #371969de | — |
| variable.other.enummember | #214717de | — |
| variable.other.less | #1A4E0Cde | — |
| variable.other.object.java | #551D1Ade | — |
| variable.other.object.property.java | #434343de | — |
| variable.parameter.c | #641D51de | — |
| variable.parameter.function.language.python | #371B64de | — |
| variable.parameter.java | #3B3B3Bde | — |
| variable.scss | #4F1440de | — |
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}!`;
}