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 | #2B53536e | — |
| comment.block.html | #2953536e | — |
| comment.block.java | #2952526e | — |
| comment.block.javadoc.java | #2953536e | — |
| comment.block.powershell | #2953536e | — |
| comment.block.xml | #2B53536e | — |
| comment.line.double-slash.c | #2952526e | — |
| comment.line.double-slash.cpp | #2952526e | — |
| comment.line.double-slash.java | #2B53536e | — |
| comment.line.double-slash.js | #2952526e | — |
| comment.line.number-sign.makefile | #2B53536e | — |
| comment.line.number-sign.python | #2952526e | — |
| comment.line.number-sign.yaml | #2953536e | — |
| comment.line.percentage.erlang | #2B53536e | — |
| comment.line.powershell | #2953536e | — |
| comment.source.cmake | #2B53536e | — |
| comment.source.cmakecache | #2953536e | — |
| constant.character | #5B216Ede | — |
| constant.character.character-class.regexp | #783D0Ade | — |
| constant.character.escape | #792694de | — |
| constant.character.set.regexp | #3D5409de | — |
| constant.language | #283CC1de | — |
| constant.numeric | #1D5824de | — |
| constant.numeric.dec.python | #2737A5de | — |
| constant.other.caps.python | #782692de | — |
| constant.other.character-class.regexp | #41521Bde | — |
| constant.other.character-class.set.regexp | #9A0747de | — |
| constant.other.color.rgb-value | #095B13de | — |
| constant.other.placeholder | #7B3D07de | — |
| constant.other.rgb-value | #40511Cde | — |
| constant.regexp | #095757de | — |
| constant.sha.git-rebase | #6D4420de | — |
| emphasis | #095B13de | — |
| entity.name.class | #2737A5de | — |
| entity.name.function | #6D2485de | — |
| entity.name.function.preprocessor | #3D5508de | — |
| entity.name.function.python | #7A3E09de | — |
| entity.name.label | #9A0546de | — |
| entity.name.namespace | #095A13de | — |
| entity.name.operator | #40511Cde | — |
| entity.name.operator.custom-literal | #6D4520de | — |
| entity.name.scope-resolution | #3D5409de | — |
| entity.name.tag | #095757de | — |
| entity.name.tag.css | #792695de | — |
| entity.name.type | #9B0948de | bold |
| entity.name.variable | #3D5507de | — |
| entity.other.attribute | #762247de | — |
| entity.other.attribute-name | #3B4A1Ade | — |
| entity.other.attribute-name.class.css | #792695de | — |
| entity.other.attribute-name.class.mixin.css | #9B0848de | — |
| entity.other.attribute-name.id | #091DB1de | — |
| entity.other.attribute-name.id.css | #074A0Fde | — |
| entity.other.attribute-name.parent-selector.css | #6B431Fde | — |
| entity.other.attribute-name.pseudo-class.css | #283DC1de | — |
| entity.other.attribute-name.pseudo-element.css | #3C5506de | — |
| entity.other.attribute-name.scss | #075353de | — |
| entity.other.document.begin.yaml | #2952526e | — |
| entity.other.inherited-class | #1B5454de | bold |
| header | #3C5408de | — |
| invalid | #084A4Ade | — |
| keyword | #1A4A4Ade | bold |
| keyword.codetag.notation.python | #095757de | bold |
| keyword.control | #8003AAde | bold |
| keyword.control.anchor.regexp | #6D4520de | bold |
| keyword.control.import.python | #3C5409de | bold |
| keyword.operator | #184343de | bold |
| keyword.operator.alignas | #095A14de | bold |
| keyword.operator.alignof | #3C5405de | bold |
| keyword.operator.cast | #8003AAde | bold |
| keyword.operator.delete | #283CC3de | bold |
| keyword.operator.documentation.powershell | #2953536e | bold |
| keyword.operator.expression | #792695de | bold |
| keyword.operator.instanceof | #762247de | bold |
| keyword.operator.logical.python | #095A13de | bold |
| keyword.operator.minus.exponent | #1A4A4Ade | bold |
| keyword.operator.negation.regexp | #8005A8de | bold |
| keyword.operator.new | #091DABde | bold |
| keyword.operator.noexcept | #095B13de | bold |
| keyword.operator.or.regexp | #793E09de | bold |
| keyword.operator.plus.exponent | #095555de | bold |
| keyword.operator.quantifier.regexp | #095757de | bold |
| keyword.operator.sizeof | #8009A8de | bold |
| keyword.operator.typeid | #73258Dde | bold |
| keyword.operator.wordlike | #792695de | bold |
| keyword.other.operator | #064B4Bde | bold |
| keyword.other.package.java | #5B216Ede | bold |
| keyword.other.unit | #074A0Fde | bold |
| keyword.other.using | #085656de | bold |
| markup.bold | #41521Bde | — |
| markup.changed | #283CC3de | — |
| markup.deleted | #9A0647de | — |
| markup.fenced_code.block.markdown | #3C5409de | — |
| markup.heading | #1C5151de | — |
| markup.inline.raw | #3D5409de | — |
| markup.inserted | #5B216Ede | — |
| markup.italic | #293AC3de | — |
| markup.raw.block.markdown | #782693de | — |
| markup.strikethrough | #095757de | — |
| markup.underline | #8008A8de | — |
| meta.block.c | #782595de | — |
| meta.block.c | #095B14de | — |
| meta.class.java | #293AC3de | — |
| meta.definition.variable.name | #081CACde | — |
| meta.diff.header | #3C5309de | — |
| meta.embedded | #68421Fde | — |
| meta.embedded.assembly | #762247de | — |
| meta.function-call.arguments.python | #091DB1de | — |
| meta.function-call.python | #1C5925de | — |
| meta.member.access.python | #3D5509de | — |
| meta.method.java | #095757de | — |
| meta.object-literal.key | #793E09de | — |
| meta.paragraph.markdown | #3D5409de | — |
| meta.preprocessor | #1B5555de | — |
| meta.preprocessor.numeric | #9B0748de | — |
| meta.preprocessor.string | #8007A8de | — |
| meta.scope.prerequisites.makefile | #792695de | — |
| meta.structure.dictionary.json.comments | #2952526e | — |
| meta.structure.dictionary.key.python | #3C5309de | — |
| meta.structure.dictionary.value.json.comments | #2953536e | — |
| meta.template.expression | #782692de | — |
| meta.type.cast.expr | #7F06A7de | — |
| meta.type.new.expr | #074A0Fde | — |
| parameter | #782595de | — |
| punctuation.character.set.begin.regexp | #071CB3de | — |
| punctuation.character.set.end.regexp | #552067de | — |
| punctuation.definition.array.begin.json | #9B0948de | — |
| punctuation.definition.character-class.regexp | #85244Fde | — |
| punctuation.definition.comment | #2953536e | — |
| punctuation.definition.comment.json.comments | #2953536e | — |
| punctuation.definition.comment.python | #2B53536e | — |
| punctuation.definition.dictionary.begin.json | #1B5555de | — |
| punctuation.definition.dictionary.end.json | #8B2452de | — |
| punctuation.definition.group.assertion.regexp | #3C5406de | — |
| punctuation.definition.group.regexp | #085757de | — |
| punctuation.definition.list.begin.json | #7A3E08de | — |
| punctuation.definition.list.begin.markdown | #084A4Ade | — |
| punctuation.definition.list.begin.python | #095757de | — |
| punctuation.definition.list.end.json | #1A4A4Ade | — |
| punctuation.definition.list.end.markdown | #095656de | — |
| punctuation.definition.list.end.python | #293AC3de | — |
| punctuation.definition.parameters.begin.python | #095A13de | — |
| punctuation.definition.parameters.end.bracket.round.java | #5B216Ede | — |
| punctuation.definition.quote.begin.markdown | #095A14de | — |
| punctuation.definition.tag | #792593de | — |
| punctuation.definition.template-expression.begin | #8004A8de | — |
| punctuation.definition.template-expression.end | #1C5555de | — |
| punctuation.section.class.begin.bracket.curly.java | #8D2553de | — |
| punctuation.section.embedded | #074A4Ade | — |
| punctuation.section.embedded.begin.php | #8009A8de | — |
| punctuation.section.embedded.end.php | #793E09de | — |
| punctuation.terminator.java | #9A0A49de | — |
| source.cmake | #095A14de | — |
| source.coffee.embedded | #782692de | — |
| source.cpp | #8007A8de | — |
| source.css.less | #3D5509de | — |
| source.groovy.embedded | #095656de | — |
| source.java | #552067de | — |
| source.java-properties | #2839ADde | — |
| source.json.comments | #2B53536e | — |
| source.makefile | #7F09A6de | — |
| source.powershell | #793E09de | — |
| source.powershell.variable.other.member | #095757de | — |
| source.python | #095A13de | — |
| storage | #990848de | — |
| storage.modifier | #8B2551de | — |
| storage.modifier.import.java | #095555de | — |
| storage.modifier.package.java | #52351Bde | — |
| storage.type | #095A13de | bold |
| storage.type.annotation.groovy | #18431Dde | bold |
| storage.type.annotation.java | #075353de | bold |
| storage.type.boolean.go | #095B13de | bold |
| storage.type.byte.go | #792695de | bold |
| storage.type.cs | #3B4A1Ade | bold |
| storage.type.error.go | #364318de | bold |
| storage.type.generic.cs | #095A13de | bold |
| storage.type.generic.groovy | #7B3C04de | bold |
| storage.type.generic.java | #7A3E08de | bold |
| storage.type.groovy | #25328Dde | bold |
| storage.type.java | #8B2452de | bold |
| storage.type.modifier.cs | #3E5509de | bold |
| storage.type.numeric.go | #095656de | bold |
| storage.type.object.array.groovy | #283AC4de | bold |
| storage.type.object.array.java | #7A3E08de | bold |
| storage.type.parameters.groovy | #2737A5de | bold |
| storage.type.primitive.array.groovy | #293AC3de | bold |
| storage.type.primitive.array.java | #41521Bde | bold |
| storage.type.primitive.groovy | #095656de | bold |
| storage.type.primitive.java | #783D0Ade | bold |
| storage.type.rune.go | #3D5409de | bold |
| storage.type.string.go | #8008A8de | bold |
| storage.type.token.java | #9A0949de | bold |
| storage.type.uintptr.go | #095B13de | bold |
| storage.type.variable.cs | #3D5409de | bold |
| string | #7B3C06de | — |
| string.quoted.docstring.multi.python | #2B53536e | — |
| string.regexp | #1D5824de | — |
| string.tag | #9A0A49de | — |
| string.value | #7A3E08de | — |
| strong | #85244Fde | — |
| support.class | #085B13de | — |
| support.constant.color | #8B2452de | — |
| support.constant.dom | #095656de | — |
| support.constant.font-name | #081DB6de | — |
| support.constant.handlebars | #243185de | — |
| support.constant.json | #7F09A6de | — |
| support.constant.math | #095A13de | — |
| support.constant.media | #293AC3de | — |
| support.constant.media-type | #73258Dde | — |
| support.constant.property-value | #095B13de | — |
| support.function | #095757de | — |
| support.function.git-rebase | #085A13de | — |
| support.other.parenthesis.regexp | #8D2453de | — |
| support.type | #782695de | bold |
| support.type.property-name | #552067de | bold |
| support.type.vendored.property-name | #095B13de | bold |
| support.variable | #095656de | — |
| token.debug-token | #293CC3de | — |
| token.error-token | #792695de | — |
| token.info-token | #793D09de | — |
| token.warn-token | #783E0Ade | — |
| variable | #67203Fde | — |
| variable.css | #1C5724de | — |
| variable.language | #085757de | — |
| variable.language.wildcard.java | #8004A8de | — |
| variable.other.constant | #095A14de | — |
| variable.other.definition.java | #792695de | — |
| variable.other.enummember | #3B4A1Ade | — |
| variable.other.less | #9A0949de | — |
| variable.other.object.java | #085757de | — |
| variable.other.object.property.java | #1C5925de | — |
| variable.parameter.c | #793D09de | — |
| variable.parameter.function.language.python | #283CC3de | — |
| variable.parameter.java | #8008A8de | — |
| variable.scss | #085757de | — |
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}!`;
}