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 | #1537156e | — |
| comment.block.html | #1437146e | — |
| comment.block.java | #1537156e | — |
| comment.block.javadoc.java | #1437146e | — |
| comment.block.powershell | #1537156e | — |
| comment.block.xml | #1437146e | — |
| comment.line.double-slash.c | #1237126e | — |
| comment.line.double-slash.cpp | #1437146e | — |
| comment.line.double-slash.java | #1237126e | — |
| comment.line.double-slash.js | #1537156e | — |
| comment.line.number-sign.makefile | #1537156e | — |
| comment.line.number-sign.python | #1437146e | — |
| comment.line.number-sign.yaml | #1437146e | — |
| comment.line.percentage.erlang | #1537156e | — |
| comment.line.powershell | #1437146e | — |
| comment.source.cmake | #1437146e | — |
| comment.source.cmakecache | #1237126e | — |
| constant.character | #732D28de | — |
| constant.character.character-class.regexp | #113056de | — |
| constant.character.escape | #095138de | — |
| constant.character.set.regexp | #27446Cde | — |
| constant.language | #350193de | — |
| constant.numeric | #392263de | — |
| constant.numeric.dec.python | #1A3C30de | — |
| constant.other.caps.python | #193613de | — |
| constant.other.character-class.regexp | #303030de | — |
| constant.other.character-class.set.regexp | #5E140Fde | — |
| constant.other.color.rgb-value | #17520Dde | — |
| constant.other.placeholder | #032D67de | — |
| constant.other.rgb-value | #0F5039de | — |
| constant.regexp | #254065de | — |
| constant.sha.git-rebase | #193613de | — |
| emphasis | #303030de | — |
| entity.name.class | #303030de | — |
| entity.name.function | #095138de | — |
| entity.name.function.preprocessor | #3A2164de | — |
| entity.name.function.python | #640903de | — |
| entity.name.label | #551F1Ade | — |
| entity.name.namespace | #3C2565de | — |
| entity.name.operator | #1D4235de | — |
| entity.name.operator.custom-literal | #5E244Dde | — |
| entity.name.scope-resolution | #6C2758de | — |
| entity.name.tag | #414141de | — |
| entity.name.tag.css | #1A5111de | — |
| entity.name.type | #5E140Fde | bold |
| entity.name.variable | #18510Fde | — |
| entity.other.attribute | #392361de | — |
| entity.other.attribute-name | #572248de | — |
| entity.other.attribute-name.class.css | #392361de | — |
| entity.other.attribute-name.class.mixin.css | #303030de | — |
| entity.other.attribute-name.id | #5B0F40de | — |
| entity.other.attribute-name.id.css | #5E244Dde | — |
| entity.other.attribute-name.parent-selector.css | #183151de | — |
| entity.other.attribute-name.pseudo-class.css | #5B0B45de | — |
| entity.other.attribute-name.pseudo-element.css | #1E3149de | — |
| entity.other.attribute-name.scss | #1E3149de | — |
| entity.other.document.begin.yaml | #1537156e | — |
| entity.other.inherited-class | #502420de | — |
| header | #1F3C1Ade | — |
| invalid | #1E314Ade | — |
| keyword | #541843de | bold |
| keyword.codetag.notation.python | #303030de | bold |
| keyword.control | #392068de | bold |
| keyword.control.anchor.regexp | #620D04de | bold |
| keyword.control.import.python | #551D18de | bold |
| keyword.operator | #572248de | bold |
| keyword.operator.alignas | #51211Cde | bold |
| keyword.operator.alignof | #652553de | bold |
| keyword.operator.cast | #1F3C1Ade | bold |
| keyword.operator.delete | #133628de | bold |
| keyword.operator.documentation.powershell | #1537156e | bold |
| keyword.operator.expression | #303030de | bold |
| keyword.operator.instanceof | #652553de | bold |
| keyword.operator.logical.python | #3F276Cde | bold |
| keyword.operator.minus.exponent | #5A0F44de | bold |
| keyword.operator.negation.regexp | #303030de | bold |
| keyword.operator.new | #12503Ade | bold |
| keyword.operator.noexcept | #572248de | bold |
| keyword.operator.or.regexp | #303030de | bold |
| keyword.operator.plus.exponent | #0E3627de | bold |
| keyword.operator.quantifier.regexp | #3C2565de | bold |
| keyword.operator.sizeof | #153053de | bold |
| keyword.operator.typeid | #350193de | bold |
| keyword.operator.wordlike | #12503Ade | bold |
| keyword.other.operator | #5B0B45de | bold |
| keyword.other.package.java | #0D2D67de | bold |
| keyword.other.unit | #5E2824de | bold |
| keyword.other.using | #095138de | bold |
| markup.bold | #203550de | — |
| markup.changed | #16520Bde | — |
| markup.deleted | #303030de | — |
| markup.fenced_code.block.markdown | #5A0F44de | — |
| markup.heading | #303030de | — |
| markup.inline.raw | #502420de | — |
| markup.inserted | #303030de | — |
| markup.italic | #521A43de | — |
| markup.raw.block.markdown | #3D3D3Dde | — |
| markup.strikethrough | #303030de | — |
| markup.underline | #153053de | — |
| meta.block.c | #243D5Ede | — |
| meta.block.c | #1D4235de | — |
| meta.class.java | #5B0F40de | — |
| meta.definition.variable.name | #153053de | — |
| meta.diff.header | #1A3C30de | — |
| meta.embedded | #572248de | — |
| meta.embedded.assembly | #243D5Ede | — |
| meta.function-call.arguments.python | #1B5112de | — |
| meta.function-call.python | #115039de | — |
| meta.member.access.python | #3A147Dde | — |
| meta.method.java | #3A1C6Fde | — |
| meta.object-literal.key | #303030de | — |
| meta.paragraph.markdown | #25491Ede | — |
| meta.preprocessor | #203550de | — |
| meta.preprocessor.numeric | #14370Dde | — |
| meta.preprocessor.string | #18352Bde | — |
| meta.scope.prerequisites.makefile | #145209de | — |
| meta.structure.dictionary.json.comments | #1437146e | — |
| meta.structure.dictionary.key.python | #6C2758de | — |
| meta.structure.dictionary.value.json.comments | #1537156e | — |
| meta.template.expression | #38245Ede | — |
| meta.type.cast.expr | #5E244Dde | bold |
| meta.type.new.expr | #1A314Cde | bold |
| parameter | #115039de | — |
| punctuation.character.set.begin.regexp | #330294de | — |
| punctuation.character.set.end.regexp | #502042de | — |
| punctuation.definition.array.begin.json | #303030de | — |
| punctuation.definition.character-class.regexp | #5E2824de | — |
| punctuation.definition.comment | #1237126e | — |
| punctuation.definition.comment.json.comments | #1537156e | — |
| punctuation.definition.comment.python | #1237126e | — |
| punctuation.definition.dictionary.begin.json | #14370Dde | — |
| punctuation.definition.dictionary.end.json | #551D18de | — |
| punctuation.definition.group.assertion.regexp | #1A5111de | — |
| punctuation.definition.group.regexp | #303030de | — |
| punctuation.definition.list.begin.json | #032D67de | — |
| punctuation.definition.list.begin.markdown | #5E140Fde | — |
| punctuation.definition.list.begin.python | #360C8Bde | — |
| punctuation.definition.list.end.json | #5F140Ede | — |
| punctuation.definition.list.end.markdown | #1F3C1Ade | — |
| punctuation.definition.list.end.python | #5A0F44de | — |
| punctuation.definition.parameters.begin.python | #1E493Ade | — |
| punctuation.definition.parameters.end.bracket.round.java | #303030de | — |
| punctuation.definition.quote.begin.markdown | #5A1815de | — |
| punctuation.definition.tag | #0E5038de | — |
| punctuation.definition.template-expression.begin | #3A147Dde | — |
| punctuation.definition.template-expression.end | #1E493Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #392263de | — |
| punctuation.section.embedded | #343434de | — |
| punctuation.section.embedded.begin.php | #27446Cde | — |
| punctuation.section.embedded.end.php | #18352Bde | — |
| punctuation.terminator.java | #572622de | — |
| source.cmake | #5A0F44de | — |
| source.coffee.embedded | #343434de | — |
| source.cpp | #303030de | — |
| source.css.less | #5B0B45de | — |
| source.groovy.embedded | #223957de | — |
| source.java | #330294de | — |
| source.java-properties | #1F3C1Ade | — |
| source.json.comments | #1437146e | — |
| source.makefile | #5F140Ede | — |
| source.powershell | #1E493Ade | — |
| source.powershell.variable.other.member | #3A147Dde | — |
| source.python | #5F0344de | — |
| storage | #652553de | — |
| storage.modifier | #032D67de | — |
| storage.modifier.import.java | #343434de | — |
| storage.modifier.package.java | #1E493Ade | — |
| storage.type | #541843de | bold |
| storage.type.annotation.groovy | #1E3149de | bold |
| storage.type.annotation.java | #033825de | bold |
| storage.type.boolean.go | #38245Ede | bold |
| storage.type.byte.go | #392068de | bold |
| storage.type.cs | #343434de | bold |
| storage.type.error.go | #12503Ade | bold |
| storage.type.generic.cs | #303030de | bold |
| storage.type.generic.groovy | #1E493Ade | bold |
| storage.type.generic.java | #350193de | bold |
| storage.type.groovy | #3A147Dde | bold |
| storage.type.java | #303030de | bold |
| storage.type.modifier.cs | #561544de | bold |
| storage.type.numeric.go | #14370Dde | bold |
| storage.type.object.array.groovy | #5A0F44de | bold |
| storage.type.object.array.java | #22421Dde | bold |
| storage.type.parameters.groovy | #5E244Dde | bold |
| storage.type.primitive.array.groovy | #0D2D67de | bold |
| storage.type.primitive.array.java | #732D28de | bold |
| storage.type.primitive.groovy | #732D28de | bold |
| storage.type.primitive.java | #1E3149de | bold |
| storage.type.rune.go | #25491Ede | bold |
| storage.type.string.go | #4F1E40de | bold |
| storage.type.token.java | #521A43de | bold |
| storage.type.uintptr.go | #383838de | bold |
| storage.type.variable.cs | #640903de | bold |
| string | #27446Cde | — |
| string.quoted.docstring.multi.python | #1437146e | — |
| string.regexp | #113056de | — |
| string.tag | #6C2758de | — |
| string.value | #17520Dde | — |
| strong | #1E3149de | — |
| support.class | #133628de | — |
| support.constant.color | #572622de | — |
| support.constant.dom | #0E3627de | — |
| support.constant.font-name | #303030de | — |
| support.constant.handlebars | #3A147Dde | — |
| support.constant.json | #303030de | — |
| support.constant.math | #16520Bde | — |
| support.constant.media | #303030de | — |
| support.constant.media-type | #303030de | bold |
| support.constant.property-value | #3A2164de | — |
| support.function | #3F276Cde | — |
| support.function.git-rebase | #22421Dde | — |
| support.other.parenthesis.regexp | #561544de | — |
| support.type | #511C41de | bold |
| support.type.property-name | #145209de | bold |
| support.type.vendored.property-name | #5E2824de | bold |
| support.variable | #1A3C30de | — |
| token.debug-token | #303030de | — |
| token.error-token | #0B5138de | — |
| token.info-token | #0A3803de | — |
| token.warn-token | #561544de | — |
| variable | #1B5112de | — |
| variable.css | #303030de | — |
| variable.language | #3D3D3Dde | — |
| variable.language.wildcard.java | #0E3627de | — |
| variable.other.constant | #551F1Ade | — |
| variable.other.definition.java | #303030de | — |
| variable.other.enummember | #1A5111de | — |
| variable.other.less | #432873de | — |
| variable.other.object.java | #1A5111de | — |
| variable.other.object.property.java | #153053de | — |
| variable.parameter.c | #360C8Bde | — |
| variable.parameter.function.language.python | #254065de | — |
| variable.parameter.java | #6C2C27de | — |
| variable.scss | #0C3803de | — |
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}!`;
}