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 | #3131316e | — |
| comment.block.html | #5415546e | — |
| comment.block.java | #3131316e | — |
| comment.block.javadoc.java | #5415546e | — |
| comment.block.powershell | #5415546e | — |
| comment.block.xml | #5614566e | — |
| comment.line.double-slash.c | #3131316e | — |
| comment.line.double-slash.cpp | #5614566e | — |
| comment.line.double-slash.java | #5415546e | — |
| comment.line.double-slash.js | #5614566e | — |
| comment.line.number-sign.makefile | #5415546e | — |
| comment.line.number-sign.python | #5614566e | — |
| comment.line.number-sign.yaml | #5614566e | — |
| comment.line.percentage.erlang | #3131316e | — |
| comment.line.powershell | #5415546e | — |
| comment.source.cmake | #5614566e | — |
| comment.source.cmakecache | #5415546e | — |
| constant.character | #394F0Fde | — |
| constant.character.character-class.regexp | #272B65de | — |
| constant.character.escape | #27502Ade | — |
| constant.character.set.regexp | #1E3720de | — |
| constant.language | #202776de | — |
| constant.numeric | #1E3737de | — |
| constant.numeric.dec.python | #5F1132de | — |
| constant.other.caps.python | #500D6Ede | — |
| constant.other.character-class.regexp | #283515de | — |
| constant.other.character-class.set.regexp | #4C2A5Dde | — |
| constant.other.color.rgb-value | #531F33de | — |
| constant.other.placeholder | #442355de | — |
| constant.other.rgb-value | #232B69de | — |
| constant.regexp | #3B4E14de | — |
| constant.sha.git-rebase | #1E3737de | — |
| emphasis | #4A1A62de | — |
| entity.name.class | #272B65de | — |
| entity.name.function | #023838de | — |
| entity.name.function.preprocessor | #642C43de | — |
| entity.name.function.python | #203D23de | — |
| entity.name.label | #234325de | — |
| entity.name.namespace | #432552de | — |
| entity.name.operator | #254A4Ade | — |
| entity.name.operator.custom-literal | #292D58de | — |
| entity.name.scope-resolution | #522134de | — |
| entity.name.tag | #1E3737de | — |
| entity.name.tag.css | #125318de | — |
| entity.name.type | #510375de | bold |
| entity.name.variable | #502738de | — |
| entity.other.attribute | #081B97de | — |
| entity.other.attribute-name | #254A28de | — |
| entity.other.attribute-name.class.css | #292D60de | — |
| entity.other.attribute-name.class.mixin.css | #282C5Fde | — |
| entity.other.attribute-name.id | #4D2714de | — |
| entity.other.attribute-name.id.css | #502613de | — |
| entity.other.attribute-name.parent-selector.css | #57293Cde | — |
| entity.other.attribute-name.pseudo-class.css | #254A4Ade | — |
| entity.other.attribute-name.pseudo-element.css | #41264Fde | — |
| entity.other.attribute-name.scss | #135319de | — |
| entity.other.document.begin.yaml | #5415546e | — |
| entity.other.inherited-class | #283515de | — |
| header | #203D23de | — |
| invalid | #452B1Ede | — |
| keyword | #1E3720de | bold |
| keyword.codetag.notation.python | #081B97de | bold |
| keyword.control | #572104de | bold |
| keyword.control.anchor.regexp | #083A0Ede | bold |
| keyword.control.import.python | #1E3720de | bold |
| keyword.operator | #18381Cde | bold |
| keyword.operator.alignas | #272B65de | bold |
| keyword.operator.alignof | #384F0Dde | bold |
| keyword.operator.cast | #28360Cde | bold |
| keyword.operator.delete | #163636de | bold |
| keyword.operator.documentation.powershell | #5415546e | bold |
| keyword.operator.expression | #0F5050de | bold |
| keyword.operator.instanceof | #4A1A62de | bold |
| keyword.operator.logical.python | #471F5Bde | bold |
| keyword.operator.minus.exponent | #41264Fde | bold |
| keyword.operator.negation.regexp | #573829de | bold |
| keyword.operator.new | #4E0E6Ede | bold |
| keyword.operator.noexcept | #452B1Ede | bold |
| keyword.operator.or.regexp | #043838de | bold |
| keyword.operator.plus.exponent | #283515de | bold |
| keyword.operator.quantifier.regexp | #394E11de | bold |
| keyword.operator.sizeof | #452B1Ede | bold |
| keyword.operator.typeid | #4D136Ade | bold |
| keyword.operator.wordlike | #18381Cde | bold |
| keyword.other.operator | #3D4A25de | bold |
| keyword.other.package.java | #0F5416de | bold |
| keyword.other.unit | #422750de | bold |
| keyword.other.using | #3D4A25de | bold |
| markup.bold | #573829de | — |
| markup.changed | #263604de | — |
| markup.deleted | #292D58de | — |
| markup.fenced_code.block.markdown | #272B65de | — |
| markup.heading | #292D58de | — |
| markup.inline.raw | #432E23de | — |
| markup.inserted | #2B3517de | — |
| markup.italic | #282C5Fde | — |
| markup.raw.block.markdown | #3B4E14de | — |
| markup.strikethrough | #462158de | — |
| markup.underline | #28360Cde | — |
| meta.block.c | #28360Cde | — |
| meta.block.c | #254A28de | — |
| meta.class.java | #4D2714de | — |
| meta.definition.variable.name | #292D5Bde | — |
| meta.diff.header | #203D3Dde | — |
| meta.embedded | #2C3164de | — |
| meta.embedded.assembly | #333D20de | — |
| meta.function-call.arguments.python | #384323de | — |
| meta.function-call.python | #394E11de | — |
| meta.member.access.python | #0D5050de | — |
| meta.method.java | #2A2F5Dde | — |
| meta.object-literal.key | #292D5Ede | — |
| meta.paragraph.markdown | #254A28de | — |
| meta.preprocessor | #442B20de | — |
| meta.preprocessor.numeric | #234325de | — |
| meta.preprocessor.string | #0F5050de | — |
| meta.scope.prerequisites.makefile | #2C3164de | — |
| meta.structure.dictionary.json.comments | #5415546e | — |
| meta.structure.dictionary.key.python | #432552de | — |
| meta.structure.dictionary.value.json.comments | #5415546e | — |
| meta.template.expression | #043A09de | — |
| meta.type.cast.expr | #163636de | bold |
| meta.type.new.expr | #283515de | bold |
| parameter | #292D58de | — |
| punctuation.character.set.begin.regexp | #263604de | — |
| punctuation.character.set.end.regexp | #232B69de | — |
| punctuation.definition.array.begin.json | #384323de | — |
| punctuation.definition.character-class.regexp | #135319de | — |
| punctuation.definition.comment | #3131316e | — |
| punctuation.definition.comment.json.comments | #3131316e | — |
| punctuation.definition.comment.python | #5415546e | — |
| punctuation.definition.dictionary.begin.json | #4A1A62de | — |
| punctuation.definition.dictionary.end.json | #292D60de | — |
| punctuation.definition.group.assertion.regexp | #4A2918de | — |
| punctuation.definition.group.regexp | #043A09de | — |
| punctuation.definition.list.begin.json | #125318de | — |
| punctuation.definition.list.begin.markdown | #254A28de | — |
| punctuation.definition.list.begin.python | #163819de | — |
| punctuation.definition.list.end.json | #2E336Bde | — |
| punctuation.definition.list.end.markdown | #292D60de | — |
| punctuation.definition.list.end.python | #572E6Bde | — |
| punctuation.definition.parameters.begin.python | #432552de | — |
| punctuation.definition.parameters.end.bracket.round.java | #191E8Ede | — |
| punctuation.definition.quote.begin.markdown | #153818de | — |
| punctuation.definition.tag | #083A0Ede | — |
| punctuation.definition.template-expression.begin | #292D5Ede | — |
| punctuation.definition.template-expression.end | #4D136Ade | — |
| punctuation.section.class.begin.bracket.curly.java | #28360Cde | — |
| punctuation.section.embedded | #263703de | — |
| punctuation.section.embedded.begin.php | #191E8Ede | — |
| punctuation.section.embedded.end.php | #292D60de | — |
| punctuation.terminator.java | #292D5Bde | — |
| source.cmake | #282C5Fde | — |
| source.coffee.embedded | #5F1132de | — |
| source.cpp | #28360Cde | — |
| source.css.less | #283515de | — |
| source.groovy.embedded | #0B3737de | — |
| source.java | #2F371Ede | — |
| source.java-properties | #105050de | — |
| source.json.comments | #5614566e | — |
| source.makefile | #522C64de | — |
| source.powershell | #333D20de | — |
| source.powershell.variable.other.member | #66042Ede | — |
| source.python | #083A0Ede | — |
| storage | #384323de | — |
| storage.modifier | #7D2F09de | — |
| storage.modifier.import.java | #0D5050de | — |
| storage.modifier.package.java | #2C3164de | — |
| storage.type | #502613de | bold |
| storage.type.annotation.groovy | #4A2918de | bold |
| storage.type.annotation.java | #4D136Ade | bold |
| storage.type.boolean.go | #5B1636de | bold |
| storage.type.byte.go | #500D6Ede | bold |
| storage.type.cs | #125318de | bold |
| storage.type.error.go | #472957de | bold |
| storage.type.generic.cs | #272B65de | bold |
| storage.type.generic.groovy | #2B3516de | bold |
| storage.type.generic.java | #0E5412de | bold |
| storage.type.groovy | #4A3125de | bold |
| storage.type.java | #125050de | bold |
| storage.type.modifier.cs | #5D3B2Ade | bold |
| storage.type.numeric.go | #4D136Ade | bold |
| storage.type.object.array.groovy | #452B1Ede | bold |
| storage.type.object.array.java | #0E5412de | bold |
| storage.type.parameters.groovy | #292D60de | bold |
| storage.type.primitive.array.groovy | #500D6Ede | bold |
| storage.type.primitive.array.java | #202776de | bold |
| storage.type.primitive.groovy | #531F33de | bold |
| storage.type.primitive.java | #125318de | bold |
| storage.type.rune.go | #442355de | bold |
| storage.type.string.go | #232B69de | bold |
| storage.type.token.java | #0D5050de | bold |
| storage.type.uintptr.go | #083A0Ede | bold |
| storage.type.variable.cs | #432E23de | bold |
| string | #254A4Ade | — |
| string.quoted.docstring.multi.python | #5415546e | — |
| string.regexp | #642C43de | — |
| string.tag | #620C2Fde | — |
| string.value | #125050de | — |
| strong | #41264Fde | — |
| support.class | #292D5Ede | — |
| support.constant.color | #532309de | — |
| support.constant.dom | #2B3517de | — |
| support.constant.font-name | #2E336Bde | — |
| support.constant.handlebars | #573829de | — |
| support.constant.json | #1E3720de | — |
| support.constant.math | #7D2F09de | — |
| support.constant.media | #591B33de | — |
| support.constant.media-type | #643F2Cde | bold |
| support.constant.property-value | #272B65de | — |
| support.function | #234325de | — |
| support.function.git-rebase | #18381Cde | — |
| support.other.parenthesis.regexp | #572E6Bde | — |
| support.type | #532309de | bold |
| support.type.property-name | #202776de | bold |
| support.type.vendored.property-name | #1E3720de | bold |
| support.variable | #510375de | — |
| token.debug-token | #125318de | — |
| token.error-token | #4A2918de | — |
| token.info-token | #2A2F5Dde | — |
| token.warn-token | #3B4E13de | — |
| variable | #203D3Dde | — |
| variable.css | #472957de | — |
| variable.language | #2B3516de | — |
| variable.language.wildcard.java | #422750de | — |
| variable.other.constant | #232B69de | — |
| variable.other.definition.java | #083A0Ede | — |
| variable.other.enummember | #282C5Fde | — |
| variable.other.less | #191E8Ede | — |
| variable.other.object.java | #133914de | — |
| variable.other.object.property.java | #28360Cde | — |
| variable.parameter.c | #472A1Cde | — |
| variable.parameter.function.language.python | #133914de | — |
| variable.parameter.java | #502738de | — |
| variable.scss | #522C64de | — |
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}!`;
}