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 | #1735176e | — |
| comment.block.html | #1835186e | — |
| comment.block.java | #1835186e | — |
| comment.block.javadoc.java | #1835186e | — |
| comment.block.powershell | #1536156e | — |
| comment.block.xml | #1635166e | — |
| comment.line.double-slash.c | #1536156e | — |
| comment.line.double-slash.cpp | #1835186e | — |
| comment.line.double-slash.java | #1735176e | — |
| comment.line.double-slash.js | #1735176e | — |
| comment.line.number-sign.makefile | #1536156e | — |
| comment.line.number-sign.python | #1536156e | — |
| comment.line.number-sign.yaml | #1735176e | — |
| comment.line.percentage.erlang | #1536156e | — |
| comment.line.powershell | #1635166e | — |
| comment.source.cmake | #1635166e | — |
| comment.source.cmakecache | #1835186e | — |
| constant.character | #0D4D52de | — |
| constant.character.character-class.regexp | #28330Fde | — |
| constant.character.escape | #21306Ede | — |
| constant.character.set.regexp | #092281de | — |
| constant.language | #541A34de | — |
| constant.numeric | #0E4D51de | — |
| constant.numeric.dec.python | #113619de | — |
| constant.other.caps.python | #47185Dde | — |
| constant.other.character-class.regexp | #2F2F2Fde | — |
| constant.other.character-class.set.regexp | #353535de | — |
| constant.other.color.rgb-value | #461D58de | — |
| constant.other.placeholder | #67203Fde | — |
| constant.other.rgb-value | #0E511Bde | — |
| constant.regexp | #424242de | — |
| constant.sha.git-rebase | #083712de | — |
| emphasis | #2F2F2Fde | — |
| entity.name.class | #103436de | — |
| entity.name.function | #184043de | — |
| entity.name.function.preprocessor | #0F3616de | — |
| entity.name.function.python | #293310de | — |
| entity.name.label | #094E51de | — |
| entity.name.namespace | #21306Ede | — |
| entity.name.operator | #0D4D52de | — |
| entity.name.operator.custom-literal | #2B3614de | — |
| entity.name.scope-resolution | #303C16de | — |
| entity.name.tag | #0E4D51de | — |
| entity.name.tag.css | #1E2A62de | — |
| entity.name.type | #2F2F2Fde | bold |
| entity.name.variable | #001994de | — |
| entity.other.attribute | #095117de | — |
| entity.other.attribute-name | #63032Bde | — |
| entity.other.attribute-name.class.css | #303030de | — |
| entity.other.attribute-name.class.mixin.css | #374C09de | — |
| entity.other.attribute-name.id | #394C0Dde | — |
| entity.other.attribute-name.id.css | #1E2A60de | — |
| entity.other.attribute-name.parent-selector.css | #092281de | — |
| entity.other.attribute-name.pseudo-class.css | #62012Bde | — |
| entity.other.attribute-name.pseudo-element.css | #461B5Ade | — |
| entity.other.attribute-name.scss | #095117de | — |
| entity.other.document.begin.yaml | #1536156e | — |
| entity.other.inherited-class | #1A2967de | — |
| header | #0F3436de | — |
| invalid | #263304de | — |
| keyword | #1C2A65de | bold |
| keyword.codetag.notation.python | #5D0D2Dde | bold |
| keyword.control | #56216Ede | bold |
| keyword.control.anchor.regexp | #56216Ede | bold |
| keyword.control.import.python | #5D0D2Dde | bold |
| keyword.operator | #303C16de | bold |
| keyword.operator.alignas | #1E2A62de | bold |
| keyword.operator.alignof | #3E3E3Ede | bold |
| keyword.operator.cast | #15286Fde | bold |
| keyword.operator.delete | #163A3Cde | bold |
| keyword.operator.documentation.powershell | #1635166e | bold |
| keyword.operator.expression | #031E8Ade | bold |
| keyword.operator.instanceof | #0E511Bde | bold |
| keyword.operator.logical.python | #303C16de | bold |
| keyword.operator.minus.exponent | #4C0A6Ade | bold |
| keyword.operator.negation.regexp | #374C09de | bold |
| keyword.operator.new | #2F2F2Fde | bold |
| keyword.operator.noexcept | #511C33de | bold |
| keyword.operator.or.regexp | #184320de | bold |
| keyword.operator.plus.exponent | #541A34de | bold |
| keyword.operator.quantifier.regexp | #461B5Ade | bold |
| keyword.operator.sizeof | #1F2B5Fde | bold |
| keyword.operator.typeid | #18286Dde | bold |
| keyword.operator.wordlike | #001994de | bold |
| keyword.other.operator | #4D036Fde | bold |
| keyword.other.package.java | #4C0F65de | bold |
| keyword.other.unit | #031E8Ade | bold |
| keyword.other.using | #353535de | bold |
| markup.bold | #113619de | — |
| markup.changed | #074E52de | — |
| markup.deleted | #0F3436de | — |
| markup.fenced_code.block.markdown | #0E511Bde | — |
| markup.heading | #2F2F2Fde | — |
| markup.inline.raw | #461D58de | — |
| markup.inserted | #4C0F65de | — |
| markup.italic | #163C1Dde | — |
| markup.raw.block.markdown | #2F2F2Fde | — |
| markup.strikethrough | #62012Bde | — |
| markup.underline | #511C33de | — |
| meta.block.c | #1C2A65de | — |
| meta.block.c | #0F3617de | — |
| meta.class.java | #47185Dde | — |
| meta.definition.variable.name | #2F2F2Fde | — |
| meta.diff.header | #2F2F2Fde | — |
| meta.embedded | #461D58de | — |
| meta.embedded.assembly | #14361Bde | — |
| meta.function-call.arguments.python | #15286Fde | — |
| meta.function-call.python | #074E52de | — |
| meta.member.access.python | #102677de | — |
| meta.method.java | #085115de | — |
| meta.object-literal.key | #031E8Ade | — |
| meta.paragraph.markdown | #512067de | — |
| meta.preprocessor | #5D0D2Dde | — |
| meta.preprocessor.numeric | #29320Fde | — |
| meta.preprocessor.string | #184043de | — |
| meta.scope.prerequisites.makefile | #28330Fde | — |
| meta.structure.dictionary.json.comments | #1735176e | — |
| meta.structure.dictionary.key.python | #1A4A23de | — |
| meta.structure.dictionary.value.json.comments | #1835186e | — |
| meta.template.expression | #47185Dde | — |
| meta.type.cast.expr | #202D67de | bold |
| meta.type.new.expr | #14361Bde | bold |
| parameter | #471A5Bde | — |
| punctuation.character.set.begin.regexp | #47185Dde | — |
| punctuation.character.set.end.regexp | #085115de | — |
| punctuation.definition.array.begin.json | #0F3436de | — |
| punctuation.definition.character-class.regexp | #184043de | — |
| punctuation.definition.comment | #1635166e | — |
| punctuation.definition.comment.json.comments | #1635166e | — |
| punctuation.definition.comment.python | #1735176e | — |
| punctuation.definition.dictionary.begin.json | #27330Cde | — |
| punctuation.definition.dictionary.end.json | #003537de | — |
| punctuation.definition.group.assertion.regexp | #184320de | — |
| punctuation.definition.group.regexp | #56216Ede | — |
| punctuation.definition.list.begin.json | #0E4D51de | — |
| punctuation.definition.list.begin.markdown | #0F3436de | — |
| punctuation.definition.list.begin.python | #47185Dde | — |
| punctuation.definition.list.end.json | #1E2A62de | — |
| punctuation.definition.list.end.markdown | #56216Ede | — |
| punctuation.definition.list.end.python | #67203Fde | — |
| punctuation.definition.parameters.begin.python | #5C0D31de | — |
| punctuation.definition.parameters.end.bracket.round.java | #095117de | — |
| punctuation.definition.quote.begin.markdown | #184320de | — |
| punctuation.definition.tag | #461B5Ade | — |
| punctuation.definition.template-expression.begin | #143336de | — |
| punctuation.definition.template-expression.end | #0F3616de | — |
| punctuation.section.class.begin.bracket.curly.java | #15286Fde | — |
| punctuation.section.embedded | #021C8Ede | — |
| punctuation.section.embedded.begin.php | #303030de | — |
| punctuation.section.embedded.end.php | #163A3Cde | — |
| punctuation.terminator.java | #67203Fde | — |
| source.cmake | #394C0Dde | — |
| source.coffee.embedded | #2F2F2Fde | — |
| source.cpp | #551833de | — |
| source.css.less | #003537de | — |
| source.groovy.embedded | #4D036Fde | — |
| source.java | #67203Fde | — |
| source.java-properties | #63032Bde | — |
| source.json.comments | #1735176e | — |
| source.makefile | #541A34de | — |
| source.powershell | #113619de | — |
| source.powershell.variable.other.member | #202D67de | — |
| source.python | #083712de | — |
| storage | #393939de | — |
| storage.modifier | #2F2F2Fde | — |
| storage.modifier.import.java | #0B5118de | — |
| storage.modifier.package.java | #3B4A1Ade | — |
| storage.type | #094E51de | bold |
| storage.type.annotation.groovy | #184320de | bold |
| storage.type.annotation.java | #4C0F65de | bold |
| storage.type.boolean.go | #094E51de | bold |
| storage.type.byte.go | #1A2967de | bold |
| storage.type.cs | #2F2F2Fde | bold |
| storage.type.error.go | #0E511Bde | bold |
| storage.type.generic.cs | #021C8Ede | bold |
| storage.type.generic.groovy | #1A474Ade | bold |
| storage.type.generic.java | #47185Dde | bold |
| storage.type.groovy | #0F3617de | bold |
| storage.type.java | #094E51de | bold |
| storage.type.modifier.cs | #3B4A1Ade | bold |
| storage.type.numeric.go | #364318de | bold |
| storage.type.object.array.groovy | #103436de | bold |
| storage.type.object.array.java | #2F2F2Fde | bold |
| storage.type.parameters.groovy | #303030de | bold |
| storage.type.primitive.array.groovy | #031E8Ade | bold |
| storage.type.primitive.array.java | #001994de | bold |
| storage.type.primitive.groovy | #1E2A60de | bold |
| storage.type.primitive.java | #095117de | bold |
| storage.type.rune.go | #27330Cde | bold |
| storage.type.string.go | #04370Cde | bold |
| storage.type.token.java | #003537de | bold |
| storage.type.uintptr.go | #2F2F2Fde | bold |
| storage.type.variable.cs | #62012Bde | bold |
| string | #0F3436de | — |
| string.quoted.docstring.multi.python | #1536156e | — |
| string.regexp | #353535de | — |
| string.tag | #5C0D31de | — |
| string.value | #2F2F2Fde | — |
| strong | #364318de | — |
| support.class | #1E2A60de | — |
| support.constant.color | #2F2F2Fde | — |
| support.constant.dom | #394C0Fde | — |
| support.constant.font-name | #353535de | — |
| support.constant.handlebars | #184043de | — |
| support.constant.json | #2F2F2Fde | — |
| support.constant.math | #541A34de | — |
| support.constant.media | #3B4A1Ade | — |
| support.constant.media-type | #2F2F2Fde | bold |
| support.constant.property-value | #3B4A1Ade | — |
| support.function | #184320de | — |
| support.function.git-rebase | #184043de | — |
| support.other.parenthesis.regexp | #5D0D30de | — |
| support.type | #394C0Fde | bold |
| support.type.property-name | #2F2F2Fde | bold |
| support.type.vendored.property-name | #0E511Bde | bold |
| support.variable | #541A34de | — |
| token.debug-token | #394C0Dde | — |
| token.error-token | #303C16de | — |
| token.info-token | #4D036Fde | — |
| token.warn-token | #15286Fde | — |
| variable | #0B4D51de | — |
| variable.css | #085115de | — |
| variable.language | #6E2143de | — |
| variable.language.wildcard.java | #5C0D31de | — |
| variable.other.constant | #085115de | — |
| variable.other.definition.java | #001994de | — |
| variable.other.enummember | #1A474Ade | — |
| variable.other.less | #28330Fde | — |
| variable.other.object.java | #28330Fde | — |
| variable.other.object.property.java | #4C0A6Ade | — |
| variable.parameter.c | #374C09de | — |
| variable.parameter.function.language.python | #0F3616de | — |
| variable.parameter.java | #2F2F2Fde | — |
| variable.scss | #4B1F5Fde | — |
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}!`;
}