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 | #163628de | — |
| constant.character.character-class.regexp | #303030de | — |
| constant.character.escape | #1D5210de | — |
| constant.character.set.regexp | #1A3713de | — |
| constant.language | #213A2Ede | — |
| constant.numeric | #183343de | — |
| constant.numeric.dec.python | #312959de | — |
| constant.other.caps.python | #303030de | — |
| constant.other.character-class.regexp | #373013de | — |
| constant.other.character-class.set.regexp | #3A3521de | — |
| constant.other.color.rgb-value | #434343de | — |
| constant.other.placeholder | #183628de | — |
| constant.other.rgb-value | #0E5230de | — |
| constant.regexp | #2C4726de | — |
| constant.sha.git-rebase | #5A0952de | — |
| emphasis | #15334Bde | — |
| entity.name.class | #2F4D28de | — |
| entity.name.function | #2A4354de | — |
| entity.name.function.preprocessor | #3A3004de | — |
| entity.name.function.python | #5B2C56de | — |
| entity.name.label | #163727de | — |
| entity.name.namespace | #501B49de | — |
| entity.name.operator | #352C5Bde | — |
| entity.name.operator.custom-literal | #183343de | — |
| entity.name.scope-resolution | #55134Fde | — |
| entity.name.tag | #52174Ede | — |
| entity.name.tag.css | #283E4Dde | — |
| entity.name.type | #234132de | bold |
| entity.name.variable | #2A0B9Bde | — |
| entity.other.attribute | #183628de | — |
| entity.other.attribute-name | #322566de | — |
| entity.other.attribute-name.class.css | #1D352Ade | — |
| entity.other.attribute-name.class.mixin.css | #303030de | — |
| entity.other.attribute-name.id | #303030de | — |
| entity.other.attribute-name.id.css | #4D4628de | — |
| entity.other.attribute-name.parent-selector.css | #413B23de | — |
| entity.other.attribute-name.pseudo-class.css | #3A3521de | — |
| entity.other.attribute-name.pseudo-element.css | #342B54de | — |
| entity.other.attribute-name.scss | #322A58de | — |
| entity.other.document.begin.yaml | #3030306e | — |
| entity.other.inherited-class | #501B49de | — |
| header | #1D3616de | — |
| invalid | #04391Fde | — |
| keyword | #233541de | bold |
| keyword.codetag.notation.python | #21351Dde | bold |
| keyword.control | #434343de | bold |
| keyword.control.anchor.regexp | #1F3618de | bold |
| keyword.control.import.python | #1A3713de | bold |
| keyword.operator | #363636de | bold |
| keyword.operator.alignas | #1D352Ade | bold |
| keyword.operator.alignof | #682F63de | bold |
| keyword.operator.cast | #383000de | bold |
| keyword.operator.delete | #303030de | bold |
| keyword.operator.documentation.powershell | #3030306e | bold |
| keyword.operator.expression | #303030de | bold |
| keyword.operator.instanceof | #303030de | bold |
| keyword.operator.logical.python | #133724de | bold |
| keyword.operator.minus.exponent | #303030de | bold |
| keyword.operator.negation.regexp | #303030de | bold |
| keyword.operator.new | #303030de | bold |
| keyword.operator.noexcept | #303030de | bold |
| keyword.operator.or.regexp | #1D352Ade | bold |
| keyword.operator.plus.exponent | #313131de | bold |
| keyword.operator.quantifier.regexp | #3F3F3Fde | bold |
| keyword.operator.sizeof | #352C5Bde | bold |
| keyword.operator.typeid | #492245de | bold |
| keyword.operator.wordlike | #0F3904de | bold |
| keyword.other.operator | #382D61de | bold |
| keyword.other.package.java | #1C3341de | bold |
| keyword.other.unit | #474026de | bold |
| keyword.other.using | #413B23de | bold |
| markup.bold | #163628de | — |
| markup.changed | #35301Dde | — |
| markup.deleted | #363016de | — |
| markup.fenced_code.block.markdown | #373013de | — |
| markup.heading | #322A54de | — |
| markup.inline.raw | #52174Ede | — |
| markup.inserted | #233541de | — |
| markup.italic | #163628de | — |
| markup.raw.block.markdown | #303030de | — |
| markup.strikethrough | #1D5210de | — |
| markup.underline | #1E3616de | — |
| meta.block.c | #383016de | — |
| meta.block.c | #393008de | — |
| meta.class.java | #125132de | — |
| meta.definition.variable.name | #153347de | — |
| meta.diff.header | #303030de | — |
| meta.embedded | #303030de | — |
| meta.embedded.assembly | #284D3Bde | — |
| meta.function-call.arguments.python | #363016de | — |
| meta.function-call.python | #234132de | — |
| meta.member.access.python | #612D5Cde | — |
| meta.method.java | #264736de | — |
| meta.object-literal.key | #303030de | — |
| meta.paragraph.markdown | #1D3616de | — |
| meta.preprocessor | #4C1F47de | — |
| meta.preprocessor.numeric | #1D3616de | — |
| meta.preprocessor.string | #472344de | — |
| meta.scope.prerequisites.makefile | #21333Fde | — |
| meta.structure.dictionary.json.comments | #3030306e | — |
| meta.structure.dictionary.key.python | #04391Fde | — |
| meta.structure.dictionary.value.json.comments | #3030306e | — |
| meta.template.expression | #183628de | — |
| meta.type.cast.expr | #303030de | bold |
| meta.type.new.expr | #3F3F3Fde | bold |
| parameter | #153347de | — |
| punctuation.character.set.begin.regexp | #342B54de | — |
| punctuation.character.set.end.regexp | #434343de | — |
| punctuation.definition.array.begin.json | #2F4D28de | — |
| punctuation.definition.character-class.regexp | #5B2C56de | — |
| punctuation.definition.comment | #3030306e | — |
| punctuation.definition.comment.json.comments | #3030306e | — |
| punctuation.definition.comment.python | #3030306e | — |
| punctuation.definition.dictionary.begin.json | #434343de | — |
| punctuation.definition.dictionary.end.json | #303030de | — |
| punctuation.definition.group.assertion.regexp | #123809de | — |
| punctuation.definition.group.regexp | #284D3Bde | — |
| punctuation.definition.list.begin.json | #283E4Dde | — |
| punctuation.definition.list.begin.markdown | #322A54de | — |
| punctuation.definition.list.begin.python | #492245de | — |
| punctuation.definition.list.end.json | #363016de | — |
| punctuation.definition.list.end.markdown | #322A58de | — |
| punctuation.definition.list.end.python | #472344de | — |
| punctuation.definition.parameters.begin.python | #612D5Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #55460Dde | — |
| punctuation.definition.quote.begin.markdown | #303030de | — |
| punctuation.definition.tag | #55134Fde | — |
| punctuation.definition.template-expression.begin | #301A82de | — |
| punctuation.definition.template-expression.end | #2A4354de | — |
| punctuation.section.class.begin.bracket.curly.java | #3A3004de | — |
| punctuation.section.embedded | #0E5230de | — |
| punctuation.section.embedded.begin.php | #472644de | — |
| punctuation.section.embedded.end.php | #183343de | — |
| punctuation.terminator.java | #5A0952de | — |
| source.cmake | #125132de | — |
| source.coffee.embedded | #472644de | — |
| source.cpp | #342B54de | — |
| source.css.less | #3A3521de | — |
| source.groovy.embedded | #363636de | — |
| source.java | #4D284Ade | — |
| source.java-properties | #093821de | — |
| source.json.comments | #3030306e | — |
| source.makefile | #264736de | — |
| source.powershell | #233541de | — |
| source.powershell.variable.other.member | #682F63de | — |
| source.python | #1E3616de | — |
| storage | #21333Fde | — |
| storage.modifier | #0B4A75de | — |
| storage.modifier.import.java | #1E3616de | — |
| storage.modifier.package.java | #2F4D28de | — |
| storage.type | #383016de | bold |
| storage.type.annotation.groovy | #2F4D28de | bold |
| storage.type.annotation.java | #413B23de | bold |
| storage.type.boolean.go | #524614de | bold |
| storage.type.byte.go | #303030de | bold |
| storage.type.cs | #264736de | bold |
| storage.type.error.go | #3A3521de | bold |
| storage.type.generic.cs | #524612de | bold |
| storage.type.generic.groovy | #0E5230de | bold |
| storage.type.generic.java | #55460Dde | bold |
| storage.type.groovy | #363016de | bold |
| storage.type.java | #303030de | bold |
| storage.type.modifier.cs | #2C485Bde | bold |
| storage.type.numeric.go | #2F4D28de | bold |
| storage.type.object.array.groovy | #205114de | bold |
| storage.type.object.array.java | #524612de | bold |
| storage.type.parameters.groovy | #1A3713de | bold |
| storage.type.primitive.array.groovy | #332A55de | bold |
| storage.type.primitive.array.java | #303030de | bold |
| storage.type.primitive.groovy | #123809de | bold |
| storage.type.primitive.java | #3A3004de | bold |
| storage.type.rune.go | #163628de | bold |
| storage.type.string.go | #554610de | bold |
| storage.type.token.java | #612D5Cde | bold |
| storage.type.uintptr.go | #3A3A3Ade | bold |
| storage.type.variable.cs | #094B74de | bold |
| string | #163628de | — |
| string.quoted.docstring.multi.python | #3030306e | — |
| string.regexp | #0B4A75de | — |
| string.tag | #2F4D28de | — |
| string.value | #3A3A3Ade | — |
| strong | #363016de | — |
| support.class | #383016de | — |
| support.constant.color | #55460Dde | — |
| support.constant.dom | #153347de | — |
| support.constant.font-name | #294123de | — |
| support.constant.handlebars | #3A3A3Ade | — |
| support.constant.json | #413B23de | — |
| support.constant.math | #284D3Bde | — |
| support.constant.media | #363636de | — |
| support.constant.media-type | #472344de | bold |
| support.constant.property-value | #5C0454de | — |
| support.function | #264736de | — |
| support.function.git-rebase | #342B54de | — |
| support.other.parenthesis.regexp | #2C485Bde | — |
| support.type | #373013de | bold |
| support.type.property-name | #352C5Bde | bold |
| support.type.vendored.property-name | #094B74de | bold |
| support.variable | #284D3Bde | — |
| token.debug-token | #2C4726de | — |
| token.error-token | #303030de | — |
| token.info-token | #554610de | — |
| token.warn-token | #5C0454de | — |
| variable | #301A82de | — |
| variable.css | #1A3713de | — |
| variable.language | #303030de | — |
| variable.language.wildcard.java | #205114de | — |
| variable.other.constant | #363636de | — |
| variable.other.definition.java | #5A0952de | — |
| variable.other.enummember | #312173de | — |
| variable.other.less | #352C5Bde | — |
| variable.other.object.java | #280F95de | — |
| variable.other.object.property.java | #2F4D28de | — |
| variable.parameter.c | #303030de | — |
| variable.parameter.function.language.python | #263A47de | — |
| variable.parameter.java | #1D5210de | — |
| variable.scss | #094B74de | — |
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}!`;
}