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 | #4B233Bde | — |
| constant.character.character-class.regexp | #3D2655de | — |
| constant.character.escape | #532213de | — |
| constant.character.set.regexp | #464A15de | — |
| constant.language | #682F51de | — |
| constant.numeric | #2F3304de | — |
| constant.numeric.dec.python | #3E4123de | — |
| constant.other.caps.python | #450284de | — |
| constant.other.character-class.regexp | #115043de | — |
| constant.other.character-class.set.regexp | #682F51de | — |
| constant.other.color.rgb-value | #052289de | — |
| constant.other.placeholder | #00382Fde | — |
| constant.other.rgb-value | #4C2F68de | — |
| constant.regexp | #5C123Ede | — |
| constant.sha.git-rebase | #163630de | — |
| emphasis | #440880de | — |
| entity.name.class | #2F3305de | — |
| entity.name.function | #303030de | — |
| entity.name.function.preprocessor | #242E55de | — |
| entity.name.function.python | #454A13de | — |
| entity.name.label | #0A372Ede | — |
| entity.name.namespace | #3D2655de | — |
| entity.name.operator | #401E66de | — |
| entity.name.operator.custom-literal | #404040de | — |
| entity.name.scope-resolution | #303030de | — |
| entity.name.tag | #32341Fde | — |
| entity.name.tag.css | #303030de | — |
| entity.name.type | #2F3A68de | bold |
| entity.name.variable | #404040de | — |
| entity.other.attribute | #1F3430de | — |
| entity.other.attribute-name | #612D4Dde | — |
| entity.other.attribute-name.class.css | #102877de | — |
| entity.other.attribute-name.class.mixin.css | #303030de | — |
| entity.other.attribute-name.id | #59163Fde | — |
| entity.other.attribute-name.id.css | #49281Fde | — |
| entity.other.attribute-name.parent-selector.css | #145044de | — |
| entity.other.attribute-name.pseudo-class.css | #5E1705de | — |
| entity.other.attribute-name.pseudo-element.css | #454A13de | — |
| entity.other.attribute-name.scss | #4D2F28de | — |
| entity.other.document.begin.yaml | #3030306e | — |
| entity.other.inherited-class | #3E2456de | — |
| header | #2C355Bde | — |
| invalid | #471075de | — |
| keyword | #303218de | bold |
| keyword.codetag.notation.python | #3B284Dde | bold |
| keyword.control | #450284de | bold |
| keyword.control.anchor.regexp | #682F51de | bold |
| keyword.control.import.python | #5B2C48de | bold |
| keyword.operator | #471075de | bold |
| keyword.operator.alignas | #00382Fde | bold |
| keyword.operator.alignof | #401E66de | bold |
| keyword.operator.cast | #252E52de | bold |
| keyword.operator.delete | #454A13de | bold |
| keyword.operator.documentation.powershell | #3030306e | bold |
| keyword.operator.expression | #2F3A68de | bold |
| keyword.operator.instanceof | #021F8Fde | bold |
| keyword.operator.logical.python | #472C26de | bold |
| keyword.operator.minus.exponent | #052289de | bold |
| keyword.operator.negation.regexp | #23413Bde | bold |
| keyword.operator.new | #16362Fde | bold |
| keyword.operator.noexcept | #542013de | bold |
| keyword.operator.or.regexp | #333333de | bold |
| keyword.operator.plus.exponent | #3B2750de | bold |
| keyword.operator.quantifier.regexp | #252E52de | bold |
| keyword.operator.sizeof | #2F3305de | bold |
| keyword.operator.typeid | #47263Ade | bold |
| keyword.operator.wordlike | #54322Ade | bold |
| keyword.other.operator | #5E1704de | bold |
| keyword.other.package.java | #303030de | bold |
| keyword.other.unit | #1F3430de | bold |
| keyword.other.using | #401E66de | bold |
| markup.bold | #2C355Bde | — |
| markup.changed | #102877de | — |
| markup.deleted | #3E2456de | — |
| markup.fenced_code.block.markdown | #373737de | — |
| markup.heading | #472C26de | — |
| markup.inline.raw | #333333de | — |
| markup.inserted | #61043Cde | — |
| markup.italic | #4D283Ede | — |
| markup.raw.block.markdown | #5B352Cde | — |
| markup.strikethrough | #5E1705de | — |
| markup.underline | #462A23de | — |
| meta.block.c | #32341Fde | — |
| meta.block.c | #454A13de | — |
| meta.class.java | #2E330Ede | — |
| meta.definition.variable.name | #4F1F3Bde | — |
| meta.diff.header | #5B2C48de | — |
| meta.embedded | #49281Fde | — |
| meta.embedded.assembly | #401E66de | — |
| meta.function-call.arguments.python | #2F3305de | — |
| meta.function-call.python | #542A43de | — |
| meta.member.access.python | #145044de | — |
| meta.method.java | #252E52de | — |
| meta.object-literal.key | #172874de | — |
| meta.paragraph.markdown | #444726de | — |
| meta.preprocessor | #4F1F3Bde | — |
| meta.preprocessor.numeric | #454545de | — |
| meta.preprocessor.string | #303030de | — |
| meta.scope.prerequisites.makefile | #264740de | — |
| meta.structure.dictionary.json.comments | #3030306e | — |
| meta.structure.dictionary.key.python | #125044de | — |
| meta.structure.dictionary.value.json.comments | #3030306e | — |
| meta.template.expression | #4D251Bde | — |
| meta.type.cast.expr | #47263Ade | bold |
| meta.type.new.expr | #00382Fde | bold |
| parameter | #303030de | — |
| punctuation.character.set.begin.regexp | #0F5042de | — |
| punctuation.character.set.end.regexp | #542A43de | — |
| punctuation.definition.array.begin.json | #102877de | — |
| punctuation.definition.character-class.regexp | #2F3A68de | — |
| punctuation.definition.comment | #3030306e | — |
| punctuation.definition.comment.json.comments | #3030306e | — |
| punctuation.definition.comment.python | #3030306e | — |
| punctuation.definition.dictionary.begin.json | #472D61de | — |
| punctuation.definition.dictionary.end.json | #303030de | — |
| punctuation.definition.group.assertion.regexp | #052289de | — |
| punctuation.definition.group.regexp | #252E52de | — |
| punctuation.definition.list.begin.json | #5B352Cde | — |
| punctuation.definition.list.begin.markdown | #252E52de | — |
| punctuation.definition.list.begin.python | #303030de | — |
| punctuation.definition.list.end.json | #303030de | — |
| punctuation.definition.list.end.markdown | #284D46de | — |
| punctuation.definition.list.end.python | #001F8Fde | — |
| punctuation.definition.parameters.begin.python | #454B12de | — |
| punctuation.definition.parameters.end.bracket.round.java | #472D61de | — |
| punctuation.definition.quote.begin.markdown | #2F3304de | — |
| punctuation.definition.tag | #400589de | — |
| punctuation.definition.template-expression.begin | #303216de | — |
| punctuation.definition.template-expression.end | #43186Ede | — |
| punctuation.section.class.begin.bracket.curly.java | #14362Fde | — |
| punctuation.section.embedded | #3E4123de | — |
| punctuation.section.embedded.begin.php | #172874de | — |
| punctuation.section.embedded.end.php | #482922de | — |
| punctuation.terminator.java | #5C123Ede | — |
| source.cmake | #4B223Bde | — |
| source.coffee.embedded | #5C123Ede | — |
| source.cpp | #23413Bde | — |
| source.css.less | #145044de | — |
| source.groovy.embedded | #472D61de | — |
| source.java | #32341Fde | — |
| source.java-properties | #454B12de | — |
| source.json.comments | #3030306e | — |
| source.makefile | #444726de | — |
| source.powershell | #450284de | — |
| source.powershell.variable.other.member | #472D61de | — |
| source.python | #682F51de | — |
| storage | #5C123Ede | — |
| storage.modifier | #400589de | — |
| storage.modifier.import.java | #3D2655de | — |
| storage.modifier.package.java | #16362Fde | — |
| storage.type | #683A2Fde | bold |
| storage.type.annotation.groovy | #264740de | bold |
| storage.type.annotation.java | #450284de | bold |
| storage.type.boolean.go | #303030de | bold |
| storage.type.byte.go | #532213de | bold |
| storage.type.cs | #5E1704de | bold |
| storage.type.error.go | #303218de | bold |
| storage.type.generic.cs | #462A23de | bold |
| storage.type.generic.groovy | #2C355Bde | bold |
| storage.type.generic.java | #454A13de | bold |
| storage.type.groovy | #3B284Dde | bold |
| storage.type.java | #474747de | bold |
| storage.type.modifier.cs | #61043Cde | bold |
| storage.type.numeric.go | #454B12de | bold |
| storage.type.object.array.groovy | #213A35de | bold |
| storage.type.object.array.java | #502417de | bold |
| storage.type.parameters.groovy | #163630de | bold |
| storage.type.primitive.array.groovy | #3B2750de | bold |
| storage.type.primitive.array.java | #4C2F68de | bold |
| storage.type.primitive.groovy | #252E52de | bold |
| storage.type.primitive.java | #401E66de | bold |
| storage.type.rune.go | #303030de | bold |
| storage.type.string.go | #213A35de | bold |
| storage.type.token.java | #40225Bde | bold |
| storage.type.uintptr.go | #401E66de | bold |
| storage.type.variable.cs | #3E2456de | bold |
| string | #102877de | — |
| string.quoted.docstring.multi.python | #3030306e | — |
| string.regexp | #2D3861de | — |
| string.tag | #242E55de | — |
| string.value | #464A15de | — |
| strong | #383A21de | — |
| support.class | #5C123Ede | — |
| support.constant.color | #5B123Ade | — |
| support.constant.dom | #102877de | — |
| support.constant.font-name | #4C2F68de | — |
| support.constant.handlebars | #252E52de | — |
| support.constant.json | #4D283Ede | — |
| support.constant.math | #3E2456de | — |
| support.constant.media | #1E2D63de | — |
| support.constant.media-type | #5B352Cde | bold |
| support.constant.property-value | #683A2Fde | — |
| support.function | #303216de | — |
| support.function.git-rebase | #59163Fde | — |
| support.other.parenthesis.regexp | #4F1F3Bde | — |
| support.type | #2E330Ede | bold |
| support.type.property-name | #4B233Bde | bold |
| support.type.vendored.property-name | #612D4Dde | bold |
| support.variable | #3E2456de | — |
| token.debug-token | #1F3430de | — |
| token.error-token | #531B3Ede | — |
| token.info-token | #021F8Fde | — |
| token.warn-token | #4D251Bde | — |
| variable | #303030de | — |
| variable.css | #454B12de | — |
| variable.language | #3B284Dde | — |
| variable.language.wildcard.java | #2A3254de | — |
| variable.other.constant | #401E66de | — |
| variable.other.definition.java | #40225Bde | — |
| variable.other.enummember | #373737de | — |
| variable.other.less | #021F8Fde | — |
| variable.other.object.java | #3B2750de | — |
| variable.other.object.property.java | #450284de | — |
| variable.parameter.c | #303030de | — |
| variable.parameter.function.language.python | #303218de | — |
| variable.parameter.java | #462A23de | — |
| variable.scss | #454A13de | — |
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}!`;
}