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 | #3434156e | — |
| comment.block.html | #3333156e | — |
| comment.block.java | #3434156e | — |
| comment.block.javadoc.java | #3333146e | — |
| comment.block.powershell | #3333136e | — |
| comment.block.xml | #3333156e | — |
| comment.line.double-slash.c | #3333156e | — |
| comment.line.double-slash.cpp | #3333136e | — |
| comment.line.double-slash.java | #3333136e | — |
| comment.line.double-slash.js | #3434156e | — |
| comment.line.number-sign.makefile | #3333146e | — |
| comment.line.number-sign.python | #3434156e | — |
| comment.line.number-sign.yaml | #3434156e | — |
| comment.line.percentage.erlang | #3333136e | — |
| comment.line.powershell | #3333146e | — |
| comment.source.cmake | #3333156e | — |
| comment.source.cmakecache | #3333156e | — |
| constant.character | #6E2723de | — |
| constant.character.character-class.regexp | #135409de | — |
| constant.character.escape | #214067de | — |
| constant.character.set.regexp | #6E2357de | — |
| constant.language | #032F69de | — |
| constant.numeric | #4E490Bde | — |
| constant.numeric.dec.python | #5E0D46de | — |
| constant.other.caps.python | #033925de | — |
| constant.other.character-class.regexp | #3C2169de | — |
| constant.other.character-class.set.regexp | #103828de | — |
| constant.other.color.rgb-value | #5A1D17de | — |
| constant.other.placeholder | #363415de | — |
| constant.other.rgb-value | #602420de | — |
| constant.regexp | #5B1145de | — |
| constant.sha.git-rebase | #3C2169de | — |
| emphasis | #153255de | — |
| entity.name.class | #003924de | — |
| entity.name.function | #5B1145de | — |
| entity.name.function.preprocessor | #762924de | — |
| entity.name.function.python | #153255de | — |
| entity.name.label | #561B42de | — |
| entity.name.namespace | #033925de | — |
| entity.name.operator | #620346de | — |
| entity.name.operator.custom-literal | #4D4911de | — |
| entity.name.scope-resolution | #672151de | — |
| entity.name.tag | #5E0D45de | — |
| entity.name.tag.css | #3D1E70de | — |
| entity.name.type | #0B2F6Ade | bold |
| entity.name.variable | #1B4B39de | — |
| entity.other.attribute | #3C2169de | — |
| entity.other.attribute-name | #0B2F6Ade | — |
| entity.other.attribute-name.class.css | #3D1F6Cde | — |
| entity.other.attribute-name.class.mixin.css | #1F4419de | — |
| entity.other.attribute-name.id | #5E0D45de | — |
| entity.other.attribute-name.id.css | #103909de | — |
| entity.other.attribute-name.parent-selector.css | #203C60de | — |
| entity.other.attribute-name.pseudo-class.css | #5B1145de | — |
| entity.other.attribute-name.pseudo-element.css | #63110Dde | — |
| entity.other.attribute-name.scss | #62120Cde | — |
| entity.other.document.begin.yaml | #3333146e | — |
| entity.other.inherited-class | #591E46de | — |
| header | #6E2357de | — |
| invalid | #1D3451de | — |
| keyword | #123258de | bold |
| keyword.codetag.notation.python | #185310de | bold |
| keyword.control | #5E0D46de | bold |
| keyword.control.anchor.regexp | #1A3251de | bold |
| keyword.control.import.python | #3D2269de | bold |
| keyword.operator | #5A1544de | bold |
| keyword.operator.alignas | #620346de | bold |
| keyword.operator.alignof | #0D315Fde | bold |
| keyword.operator.cast | #4D490Ede | bold |
| keyword.operator.delete | #1F4419de | bold |
| keyword.operator.documentation.powershell | #3333136e | bold |
| keyword.operator.expression | #762924de | bold |
| keyword.operator.instanceof | #3D1F6Cde | bold |
| keyword.operator.logical.python | #6E2723de | bold |
| keyword.operator.minus.exponent | #203C60de | bold |
| keyword.operator.negation.regexp | #135409de | bold |
| keyword.operator.new | #5E0D45de | bold |
| keyword.operator.noexcept | #60204Cde | bold |
| keyword.operator.or.regexp | #1A3251de | bold |
| keyword.operator.plus.exponent | #3E157Fde | bold |
| keyword.operator.quantifier.regexp | #4D490Dde | bold |
| keyword.operator.sizeof | #0E315Cde | bold |
| keyword.operator.typeid | #1E3859de | bold |
| keyword.operator.wordlike | #123258de | bold |
| keyword.other.operator | #003924de | bold |
| keyword.other.package.java | #444119de | bold |
| keyword.other.unit | #123258de | bold |
| keyword.other.using | #3E157Fde | bold |
| markup.bold | #3F236Ede | — |
| markup.changed | #0D5238de | — |
| markup.deleted | #63110Dde | — |
| markup.fenced_code.block.markdown | #5A1D17de | — |
| markup.heading | #3D1F6Cde | — |
| markup.inline.raw | #093927de | — |
| markup.inserted | #0B2F6Ade | — |
| markup.italic | #093927de | — |
| markup.raw.block.markdown | #194434de | — |
| markup.strikethrough | #3D0F87de | — |
| markup.underline | #353310de | — |
| meta.block.c | #353304de | — |
| meta.block.c | #3E157Fde | — |
| meta.class.java | #672621de | — |
| meta.definition.variable.name | #76245Cde | — |
| meta.diff.header | #59221Ede | — |
| meta.embedded | #185310de | — |
| meta.embedded.assembly | #63110Dde | — |
| meta.function-call.arguments.python | #0D5238de | — |
| meta.function-call.python | #214B1Bde | — |
| meta.member.access.python | #561943de | — |
| meta.method.java | #173D2Fde | — |
| meta.object-literal.key | #203C60de | — |
| meta.paragraph.markdown | #3D3B17de | — |
| meta.preprocessor | #3D0F87de | — |
| meta.preprocessor.numeric | #033925de | — |
| meta.preprocessor.string | #672151de | — |
| meta.scope.prerequisites.makefile | #103909de | — |
| meta.structure.dictionary.json.comments | #3333136e | — |
| meta.structure.dictionary.key.python | #0D5238de | — |
| meta.structure.dictionary.value.json.comments | #3333136e | — |
| meta.template.expression | #672151de | — |
| meta.type.cast.expr | #561943de | bold |
| meta.type.new.expr | #103829de | bold |
| parameter | #105239de | — |
| punctuation.character.set.begin.regexp | #153910de | — |
| punctuation.character.set.end.regexp | #650D07de | — |
| punctuation.definition.array.begin.json | #214067de | — |
| punctuation.definition.character-class.regexp | #4E490Bde | — |
| punctuation.definition.comment | #3333156e | — |
| punctuation.definition.comment.json.comments | #3333156e | — |
| punctuation.definition.comment.python | #3434156e | — |
| punctuation.definition.dictionary.begin.json | #173812de | — |
| punctuation.definition.dictionary.end.json | #571F1Bde | — |
| punctuation.definition.group.assertion.regexp | #1F4419de | — |
| punctuation.definition.group.regexp | #3B088Fde | — |
| punctuation.definition.list.begin.json | #4C490Fde | — |
| punctuation.definition.list.begin.markdown | #0E315Cde | — |
| punctuation.definition.list.begin.python | #16530Dde | — |
| punctuation.definition.list.end.json | #3D1F6Cde | — |
| punctuation.definition.list.end.markdown | #602420de | — |
| punctuation.definition.list.end.python | #3D2269de | — |
| punctuation.definition.parameters.begin.python | #5E0D46de | — |
| punctuation.definition.parameters.end.bracket.round.java | #3B0990de | — |
| punctuation.definition.quote.begin.markdown | #3B226Bde | — |
| punctuation.definition.tag | #3D1E70de | — |
| punctuation.definition.template-expression.begin | #5E0D45de | — |
| punctuation.definition.template-expression.end | #0D315Fde | — |
| punctuation.section.class.begin.bracket.curly.java | #1C3D17de | — |
| punctuation.section.embedded | #173D2Fde | — |
| punctuation.section.embedded.begin.php | #353310de | — |
| punctuation.section.embedded.end.php | #0B2F6Ade | — |
| punctuation.terminator.java | #032F69de | — |
| source.cmake | #571F1Bde | — |
| source.coffee.embedded | #032F69de | — |
| source.cpp | #3B226Bde | — |
| source.css.less | #153910de | — |
| source.groovy.embedded | #23446Ede | — |
| source.java | #16530Dde | — |
| source.java-properties | #093927de | — |
| source.json.comments | #3333136e | — |
| source.makefile | #135409de | — |
| source.powershell | #76245Cde | — |
| source.powershell.variable.other.member | #57201Cde | — |
| source.python | #57201Cde | — |
| storage | #4B481Bde | — |
| storage.modifier | #3C2169de | — |
| storage.modifier.import.java | #0F5239de | — |
| storage.modifier.package.java | #76245Cde | — |
| storage.type | #4B481Bde | bold |
| storage.type.annotation.groovy | #62120Cde | bold |
| storage.type.annotation.java | #5A1544de | bold |
| storage.type.boolean.go | #173812de | bold |
| storage.type.byte.go | #4D490Ede | bold |
| storage.type.cs | #0B2F6Ade | bold |
| storage.type.error.go | #103828de | bold |
| storage.type.generic.cs | #185310de | bold |
| storage.type.generic.groovy | #1F4419de | bold |
| storage.type.generic.java | #571744de | bold |
| storage.type.groovy | #3C197Ade | bold |
| storage.type.java | #35320Dde | bold |
| storage.type.modifier.cs | #214067de | bold |
| storage.type.numeric.go | #1A3251de | bold |
| storage.type.object.array.groovy | #3D1E70de | bold |
| storage.type.object.array.java | #3D1E70de | bold |
| storage.type.parameters.groovy | #185310de | bold |
| storage.type.primitive.array.groovy | #1F4419de | bold |
| storage.type.primitive.array.java | #5E0D45de | bold |
| storage.type.primitive.groovy | #35320Dde | bold |
| storage.type.primitive.java | #1A3251de | bold |
| storage.type.rune.go | #4D490Dde | bold |
| storage.type.string.go | #153910de | bold |
| storage.type.token.java | #4D4909de | bold |
| storage.type.uintptr.go | #12382Ade | bold |
| storage.type.variable.cs | #123258de | bold |
| string | #3D1C74de | — |
| string.quoted.docstring.multi.python | #3333146e | — |
| string.regexp | #762924de | — |
| string.tag | #6E2357de | — |
| string.value | #3D2269de | — |
| strong | #5A1D17de | — |
| support.class | #650D07de | — |
| support.constant.color | #0E315Cde | — |
| support.constant.dom | #032F69de | — |
| support.constant.font-name | #3C2169de | — |
| support.constant.handlebars | #4D490Ede | — |
| support.constant.json | #135409de | — |
| support.constant.math | #23446Ede | — |
| support.constant.media | #17530Ede | — |
| support.constant.media-type | #3C2169de | bold |
| support.constant.property-value | #173812de | — |
| support.function | #3C2169de | — |
| support.function.git-rebase | #23511Dde | — |
| support.other.parenthesis.regexp | #185310de | — |
| support.type | #5F1711de | bold |
| support.type.property-name | #0A5237de | bold |
| support.type.vendored.property-name | #62120Cde | bold |
| support.variable | #3D2269de | — |
| token.debug-token | #5F1711de | — |
| token.error-token | #57201Cde | — |
| token.info-token | #15530Cde | — |
| token.warn-token | #214067de | — |
| variable | #4D4911de | — |
| variable.css | #0C5238de | — |
| variable.language | #363203de | — |
| variable.language.wildcard.java | #032F69de | — |
| variable.other.constant | #62120Cde | — |
| variable.other.definition.java | #4D490Dde | — |
| variable.other.enummember | #5E0D46de | — |
| variable.other.less | #3C197Ade | — |
| variable.other.object.java | #4D490Ede | — |
| variable.other.object.property.java | #3D2269de | — |
| variable.parameter.c | #105239de | — |
| variable.parameter.function.language.python | #444119de | — |
| variable.parameter.java | #3E157Fde | — |
| variable.scss | #0C5238de | — |
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}!`;
}