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 | #13304D6e | — |
| comment.block.html | #13304D6e | — |
| comment.block.java | #1531446e | — |
| comment.block.javadoc.java | #14304C6e | — |
| comment.block.powershell | #13304D6e | — |
| comment.block.xml | #1531446e | — |
| comment.line.double-slash.c | #14304C6e | — |
| comment.line.double-slash.cpp | #13304D6e | — |
| comment.line.double-slash.java | #14304C6e | — |
| comment.line.double-slash.js | #13304D6e | — |
| comment.line.number-sign.makefile | #12304D6e | — |
| comment.line.number-sign.python | #1531446e | — |
| comment.line.number-sign.yaml | #14304C6e | — |
| comment.line.percentage.erlang | #13304D6e | — |
| comment.line.powershell | #1531446e | — |
| comment.source.cmake | #1531446e | — |
| comment.source.cmakecache | #13304D6e | — |
| constant.character | #581D30de | — |
| constant.character.character-class.regexp | #500D5Ade | — |
| constant.character.escape | #5E2067de | — |
| constant.character.set.regexp | #0F3335de | — |
| constant.language | #52065Dde | — |
| constant.numeric | #222278de | — |
| constant.numeric.dec.python | #093336de | — |
| constant.other.caps.python | #442704de | — |
| constant.other.character-class.regexp | #163A3Cde | — |
| constant.other.character-class.set.regexp | #643C09de | — |
| constant.other.color.rgb-value | #511D58de | — |
| constant.other.placeholder | #222275de | — |
| constant.other.rgb-value | #672036de | — |
| constant.regexp | #5F1F33de | — |
| constant.sha.git-rebase | #0F3518de | — |
| emphasis | #53192Cde | — |
| entity.name.class | #043538de | — |
| entity.name.function | #643C09de | — |
| entity.name.function.preprocessor | #084D51de | — |
| entity.name.function.python | #0F3335de | — |
| entity.name.label | #3F2A0Fde | — |
| entity.name.namespace | #623D0Bde | — |
| entity.name.operator | #4F0D5Bde | — |
| entity.name.operator.custom-literal | #4B1951de | — |
| entity.name.scope-resolution | #0C501Dde | — |
| entity.name.tag | #222277de | — |
| entity.name.tag.css | #0101A4de | — |
| entity.name.type | #571F5Fde | bold |
| entity.name.variable | #643B07de | — |
| entity.other.attribute | #20207Ade | — |
| entity.other.attribute-name | #1A474Ade | — |
| entity.other.attribute-name.class.css | #16168Fde | — |
| entity.other.attribute-name.class.mixin.css | #213304de | — |
| entity.other.attribute-name.id | #2E3C16de | — |
| entity.other.attribute-name.id.css | #344C0Ede | — |
| entity.other.attribute-name.parent-selector.css | #5D0D26de | — |
| entity.other.attribute-name.pseudo-class.css | #334318de | — |
| entity.other.attribute-name.pseudo-element.css | #4A351Ade | — |
| entity.other.attribute-name.scss | #3D2B0Fde | — |
| entity.other.document.begin.yaml | #13304D6e | — |
| entity.other.inherited-class | #583E1Dde | — |
| header | #212175de | — |
| invalid | #5F1F33de | — |
| keyword | #1A1A87de | bold |
| keyword.codetag.notation.python | #6E2139de | bold |
| keyword.control | #1A1A87de | bold |
| keyword.control.anchor.regexp | #0D501Ede | bold |
| keyword.control.import.python | #3E2B13de | bold |
| keyword.operator | #00370Ede | bold |
| keyword.operator.alignas | #402A10de | bold |
| keyword.operator.alignof | #65216Ede | bold |
| keyword.operator.cast | #5C0D27de | bold |
| keyword.operator.delete | #163C20de | bold |
| keyword.operator.documentation.powershell | #14304C6e | bold |
| keyword.operator.expression | #0A0A9Ede | bold |
| keyword.operator.instanceof | #344C0Cde | bold |
| keyword.operator.logical.python | #101098de | bold |
| keyword.operator.minus.exponent | #0A0A9Ede | bold |
| keyword.operator.negation.regexp | #344C0Ade | bold |
| keyword.operator.new | #213403de | bold |
| keyword.operator.noexcept | #5D0D26de | bold |
| keyword.operator.or.regexp | #344C0Cde | bold |
| keyword.operator.plus.exponent | #4A351Ade | bold |
| keyword.operator.quantifier.regexp | #16168Fde | bold |
| keyword.operator.sizeof | #4A351Ade | bold |
| keyword.operator.typeid | #5D0D26de | bold |
| keyword.operator.wordlike | #384A1Ade | bold |
| keyword.other.operator | #5E2067de | bold |
| keyword.other.package.java | #222275de | bold |
| keyword.other.unit | #2E3C16de | bold |
| keyword.other.using | #6E2139de | bold |
| markup.bold | #212175de | — |
| markup.changed | #610220de | — |
| markup.deleted | #334318de | — |
| markup.fenced_code.block.markdown | #2E3C16de | — |
| markup.heading | #184043de | — |
| markup.inline.raw | #610220de | — |
| markup.inserted | #5C0D25de | — |
| markup.italic | #3E2B13de | — |
| markup.raw.block.markdown | #1A1A87de | — |
| markup.strikethrough | #084D51de | — |
| markup.underline | #4B1951de | — |
| meta.block.c | #4A1C51de | — |
| meta.block.c | #5F1F33de | — |
| meta.class.java | #1E1E7Ede | — |
| meta.definition.variable.name | #3D2B11de | — |
| meta.diff.header | #0A0A9Ede | — |
| meta.embedded | #0B4D51de | — |
| meta.embedded.assembly | #213403de | — |
| meta.function-call.arguments.python | #4F1058de | — |
| meta.function-call.python | #672036de | — |
| meta.member.access.python | #16168Fde | — |
| meta.method.java | #0A501Bde | — |
| meta.object-literal.key | #093336de | — |
| meta.paragraph.markdown | #433018de | — |
| meta.preprocessor | #24320Fde | — |
| meta.preprocessor.numeric | #344C0Ede | — |
| meta.preprocessor.string | #222275de | — |
| meta.scope.prerequisites.makefile | #1A474Ade | — |
| meta.structure.dictionary.json.comments | #12304D6e | — |
| meta.structure.dictionary.key.python | #043538de | — |
| meta.structure.dictionary.value.json.comments | #1531446e | — |
| meta.template.expression | #500D5Ade | — |
| meta.type.cast.expr | #5D0D26de | bold |
| meta.type.new.expr | #344C0Ade | bold |
| parameter | #1E1E7Ede | — |
| punctuation.character.set.begin.regexp | #0E501Ede | — |
| punctuation.character.set.end.regexp | #0F3335de | — |
| punctuation.definition.array.begin.json | #5C0D27de | — |
| punctuation.definition.character-class.regexp | #643B07de | — |
| punctuation.definition.comment | #14304C6e | — |
| punctuation.definition.comment.json.comments | #1531446e | — |
| punctuation.definition.comment.python | #14304C6e | — |
| punctuation.definition.dictionary.begin.json | #0D4C51de | — |
| punctuation.definition.dictionary.end.json | #0C501Dde | — |
| punctuation.definition.group.assertion.regexp | #1A1A87de | — |
| punctuation.definition.group.regexp | #25320Fde | — |
| punctuation.definition.list.begin.json | #24320Dde | — |
| punctuation.definition.list.begin.markdown | #163A3Cde | — |
| punctuation.definition.list.begin.python | #1A4A26de | — |
| punctuation.definition.list.end.json | #334C09de | — |
| punctuation.definition.list.end.markdown | #6E2139de | — |
| punctuation.definition.list.end.python | #013436de | — |
| punctuation.definition.parameters.begin.python | #433018de | — |
| punctuation.definition.parameters.end.bracket.round.java | #0F3519de | — |
| punctuation.definition.quote.begin.markdown | #184043de | — |
| punctuation.definition.tag | #14361Dde | — |
| punctuation.definition.template-expression.begin | #094D51de | — |
| punctuation.definition.template-expression.end | #1A4A26de | — |
| punctuation.section.class.begin.bracket.curly.java | #222278de | — |
| punctuation.section.embedded | #5C0D27de | — |
| punctuation.section.embedded.begin.php | #4F1058de | — |
| punctuation.section.embedded.end.php | #16168Fde | — |
| punctuation.terminator.java | #0F3519de | — |
| source.cmake | #16168Fde | — |
| source.coffee.embedded | #202078de | — |
| source.cpp | #24320Fde | — |
| source.css.less | #094D51de | — |
| source.groovy.embedded | #4A1C51de | — |
| source.java | #52065Dde | — |
| source.java-properties | #5E2067de | — |
| source.json.comments | #13304D6e | — |
| source.makefile | #4F1058de | — |
| source.powershell | #103335de | — |
| source.powershell.variable.other.member | #56162Bde | — |
| source.python | #202078de | — |
| storage | #293614de | — |
| storage.modifier | #213403de | — |
| storage.modifier.import.java | #1B1B85de | — |
| storage.modifier.package.java | #672036de | — |
| storage.type | #5C0D25de | bold |
| storage.type.annotation.groovy | #1B1B85de | bold |
| storage.type.annotation.java | #672036de | bold |
| storage.type.boolean.go | #5F1F33de | bold |
| storage.type.byte.go | #672036de | bold |
| storage.type.cs | #623D0Bde | bold |
| storage.type.error.go | #581329de | bold |
| storage.type.generic.cs | #5D0D26de | bold |
| storage.type.generic.groovy | #5A1029de | bold |
| storage.type.generic.java | #0A0A9Ede | bold |
| storage.type.groovy | #143336de | bold |
| storage.type.java | #1E1E7Ede | bold |
| storage.type.modifier.cs | #0F3335de | bold |
| storage.type.numeric.go | #08501Ade | bold |
| storage.type.object.array.groovy | #24320Fde | bold |
| storage.type.object.array.java | #00370Ede | bold |
| storage.type.parameters.groovy | #0F3519de | bold |
| storage.type.primitive.array.groovy | #4C1655de | bold |
| storage.type.primitive.array.java | #0F3519de | bold |
| storage.type.primitive.groovy | #084D51de | bold |
| storage.type.primitive.java | #500D5Bde | bold |
| storage.type.rune.go | #043610de | bold |
| storage.type.string.go | #222277de | bold |
| storage.type.token.java | #16168Fde | bold |
| storage.type.uintptr.go | #433018de | bold |
| storage.type.variable.cs | #184323de | bold |
| string | #213304de | — |
| string.quoted.docstring.multi.python | #13304D6e | — |
| string.regexp | #672036de | — |
| string.tag | #581D30de | — |
| string.value | #610320de | — |
| strong | #213403de | — |
| support.class | #163C20de | — |
| support.constant.color | #0E4C50de | — |
| support.constant.dom | #0A0A9Ede | — |
| support.constant.font-name | #433018de | — |
| support.constant.handlebars | #184043de | — |
| support.constant.json | #103335de | — |
| support.constant.math | #6E2139de | — |
| support.constant.media | #334C09de | — |
| support.constant.media-type | #672036de | bold |
| support.constant.property-value | #08501Ade | — |
| support.function | #20207Ade | — |
| support.function.git-rebase | #5F1F33de | — |
| support.other.parenthesis.regexp | #202078de | — |
| support.type | #213403de | bold |
| support.type.property-name | #334C09de | bold |
| support.type.vendored.property-name | #6E2139de | bold |
| support.variable | #513A1Cde | — |
| token.debug-token | #4C1655de | — |
| token.error-token | #344C0Ade | — |
| token.info-token | #3D2B11de | — |
| token.warn-token | #3F2A0Fde | — |
| variable | #0D4C51de | — |
| variable.css | #0F3335de | — |
| variable.language | #354C0Fde | — |
| variable.language.wildcard.java | #1A1A87de | — |
| variable.other.constant | #344C0Ade | — |
| variable.other.definition.java | #4F1058de | — |
| variable.other.enummember | #3D2B0Fde | — |
| variable.other.less | #043610de | — |
| variable.other.object.java | #103335de | — |
| variable.other.object.property.java | #103519de | — |
| variable.parameter.c | #2E3C16de | — |
| variable.parameter.function.language.python | #2E3C16de | — |
| variable.parameter.java | #24320Dde | — |
| variable.scss | #55182Bde | — |
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}!`;
}