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 | #3333156e | — |
| comment.block.html | #3333166e | — |
| comment.block.java | #3333156e | — |
| comment.block.javadoc.java | #3333166e | — |
| comment.block.powershell | #3333156e | — |
| comment.block.xml | #3333176e | — |
| comment.line.double-slash.c | #3333156e | — |
| comment.line.double-slash.cpp | #3333176e | — |
| comment.line.double-slash.java | #3333166e | — |
| comment.line.double-slash.js | #3333166e | — |
| comment.line.number-sign.makefile | #3333156e | — |
| comment.line.number-sign.python | #3333166e | — |
| comment.line.number-sign.yaml | #3333166e | — |
| comment.line.percentage.erlang | #3333166e | — |
| comment.line.powershell | #3333166e | — |
| comment.source.cmake | #3333176e | — |
| comment.source.cmakecache | #3333166e | — |
| constant.character | #34500Dde | — |
| constant.character.character-class.regexp | #10391Ade | — |
| constant.character.escape | #432D10de | — |
| constant.character.set.regexp | #0808A9de | — |
| constant.language | #5F142Cde | — |
| constant.numeric | #683F0Bde | — |
| constant.numeric.dec.python | #542060de | — |
| constant.other.caps.python | #0D5059de | — |
| constant.other.character-class.regexp | #4F195Bde | — |
| constant.other.character-class.set.regexp | #283615de | — |
| constant.other.color.rgb-value | #232380de | — |
| constant.other.placeholder | #083A14de | — |
| constant.other.rgb-value | #23237Fde | — |
| constant.regexp | #412E13de | — |
| constant.sha.git-rebase | #0A0AACde | — |
| emphasis | #34500Dde | — |
| entity.name.class | #442D10de | — |
| entity.name.function | #662476de | — |
| entity.name.function.preprocessor | #345010de | — |
| entity.name.function.python | #0E5420de | — |
| entity.name.label | #0D5059de | — |
| entity.name.namespace | #173D21de | — |
| entity.name.operator | #1D512Ade | — |
| entity.name.operator.custom-literal | #4B361Bde | — |
| entity.name.scope-resolution | #314419de | — |
| entity.name.tag | #34500Dde | — |
| entity.name.tag.css | #6E233Ade | — |
| entity.name.type | #5D172Ede | bold |
| entity.name.variable | #12391Cde | — |
| entity.other.attribute | #0B541Ede | — |
| entity.other.attribute-name | #57036Cde | — |
| entity.other.attribute-name.class.css | #2D3D17de | — |
| entity.other.attribute-name.class.mixin.css | #4E1C59de | — |
| entity.other.attribute-name.id | #04373Fde | — |
| entity.other.attribute-name.id.css | #17383Dde | — |
| entity.other.attribute-name.parent-selector.css | #25257Ede | — |
| entity.other.attribute-name.pseudo-class.css | #672137de | — |
| entity.other.attribute-name.pseudo-element.css | #1D4B51de | — |
| entity.other.attribute-name.scss | #32500Cde | — |
| entity.other.document.begin.yaml | #3333156e | — |
| entity.other.inherited-class | #23237Fde | — |
| header | #213803de | — |
| invalid | #602034de | — |
| keyword | #412E13de | bold |
| keyword.codetag.notation.python | #593F1Ede | bold |
| keyword.control | #650C28de | bold |
| keyword.control.anchor.regexp | #0808A9de | bold |
| keyword.control.import.python | #593F1Ede | bold |
| keyword.operator | #492B01de | bold |
| keyword.operator.alignas | #683F09de | bold |
| keyword.operator.alignof | #0808A9de | bold |
| keyword.operator.cast | #542060de | bold |
| keyword.operator.delete | #5F142Cde | bold |
| keyword.operator.documentation.powershell | #3333166e | bold |
| keyword.operator.expression | #1B454Bde | bold |
| keyword.operator.instanceof | #08505Bde | bold |
| keyword.operator.logical.python | #6A3E06de | bold |
| keyword.operator.minus.exponent | #511461de | bold |
| keyword.operator.negation.regexp | #23370Bde | bold |
| keyword.operator.new | #15159Cde | bold |
| keyword.operator.noexcept | #213801de | bold |
| keyword.operator.or.regexp | #043A10de | bold |
| keyword.operator.plus.exponent | #34500Dde | bold |
| keyword.operator.quantifier.regexp | #10391Ade | bold |
| keyword.operator.sizeof | #0A505Ade | bold |
| keyword.operator.typeid | #4E1B59de | bold |
| keyword.operator.wordlike | #32500Cde | bold |
| keyword.other.operator | #10391Ade | bold |
| keyword.other.package.java | #232380de | bold |
| keyword.other.unit | #25257Ede | bold |
| keyword.other.using | #0E373Cde | bold |
| markup.bold | #232380de | — |
| markup.changed | #08505Bde | — |
| markup.deleted | #263710de | — |
| markup.fenced_code.block.markdown | #61112Cde | — |
| markup.heading | #0E5420de | — |
| markup.inline.raw | #34500Dde | — |
| markup.inserted | #672137de | — |
| markup.italic | #345010de | — |
| markup.raw.block.markdown | #0F0FA4de | — |
| markup.strikethrough | #683F09de | — |
| markup.underline | #34500Dde | — |
| meta.block.c | #0F0FA4de | — |
| meta.block.c | #1A1A94de | — |
| meta.class.java | #10391Ade | — |
| meta.definition.variable.name | #432E15de | — |
| meta.diff.header | #10363Fde | — |
| meta.embedded | #540C66de | — |
| meta.embedded.assembly | #213801de | — |
| meta.function-call.arguments.python | #4E1C59de | — |
| meta.function-call.python | #25257Ede | — |
| meta.member.access.python | #04373Fde | — |
| meta.method.java | #24247Dde | — |
| meta.object-literal.key | #1D1D8Fde | — |
| meta.paragraph.markdown | #315108de | — |
| meta.preprocessor | #194424de | — |
| meta.preprocessor.numeric | #213801de | — |
| meta.preprocessor.string | #570369de | — |
| meta.scope.prerequisites.makefile | #173D21de | — |
| meta.structure.dictionary.json.comments | #3333176e | — |
| meta.structure.dictionary.key.python | #09541Cde | — |
| meta.structure.dictionary.value.json.comments | #3333176e | — |
| meta.template.expression | #1D1D8Fde | — |
| meta.type.cast.expr | #683F0Bde | bold |
| meta.type.new.expr | #09541Cde | bold |
| parameter | #442D10de | — |
| punctuation.character.set.begin.regexp | #591B2Fde | — |
| punctuation.character.set.end.regexp | #593F1Ede | — |
| punctuation.definition.array.begin.json | #10391Ade | — |
| punctuation.definition.character-class.regexp | #76243Dde | — |
| punctuation.definition.comment | #3333166e | — |
| punctuation.definition.comment.json.comments | #3333166e | — |
| punctuation.definition.comment.python | #3333166e | — |
| punctuation.definition.dictionary.begin.json | #09541Cde | — |
| punctuation.definition.dictionary.end.json | #662476de | — |
| punctuation.definition.group.assertion.regexp | #17383Dde | — |
| punctuation.definition.group.regexp | #23370Bde | — |
| punctuation.definition.list.begin.json | #345010de | — |
| punctuation.definition.list.begin.markdown | #76243Dde | — |
| punctuation.definition.list.begin.python | #570369de | — |
| punctuation.definition.list.end.json | #511461de | — |
| punctuation.definition.list.end.markdown | #25257Fde | — |
| punctuation.definition.list.end.python | #17383Dde | — |
| punctuation.definition.parameters.begin.python | #10391Ade | — |
| punctuation.definition.parameters.end.bracket.round.java | #591B2Fde | — |
| punctuation.definition.quote.begin.markdown | #0D5059de | — |
| punctuation.definition.tag | #4E1B59de | — |
| punctuation.definition.template-expression.begin | #0808A9de | — |
| punctuation.definition.template-expression.end | #23370Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #11391Cde | — |
| punctuation.section.embedded | #5A2167de | — |
| punctuation.section.embedded.begin.php | #283615de | — |
| punctuation.section.embedded.end.php | #50175Dde | — |
| punctuation.terminator.java | #443119de | — |
| source.cmake | #593F1Ede | — |
| source.coffee.embedded | #10373Cde | — |
| source.cpp | #662476de | — |
| source.css.less | #6E233Ade | — |
| source.groovy.embedded | #213801de | — |
| source.java | #0A0AACde | — |
| source.java-properties | #32500Cde | — |
| source.json.comments | #3333166e | — |
| source.makefile | #32500Cde | — |
| source.powershell | #25257Ede | — |
| source.powershell.variable.other.member | #32500Cde | — |
| source.python | #12391Cde | — |
| storage | #315108de | — |
| storage.modifier | #1A1A94de | — |
| storage.modifier.import.java | #0B541Ede | — |
| storage.modifier.package.java | #31500Ade | — |
| storage.type | #76243Dde | bold |
| storage.type.annotation.groovy | #680321de | bold |
| storage.type.annotation.java | #345010de | bold |
| storage.type.boolean.go | #17383Dde | bold |
| storage.type.byte.go | #432D0Fde | bold |
| storage.type.cs | #31500Ade | bold |
| storage.type.error.go | #1B454Bde | bold |
| storage.type.generic.cs | #043A10de | bold |
| storage.type.generic.groovy | #412E13de | bold |
| storage.type.generic.java | #0C505Ade | bold |
| storage.type.groovy | #213801de | bold |
| storage.type.java | #08505Bde | bold |
| storage.type.modifier.cs | #542060de | bold |
| storage.type.numeric.go | #0B541Ede | bold |
| storage.type.object.array.groovy | #5B192Ede | bold |
| storage.type.object.array.java | #213803de | bold |
| storage.type.parameters.groovy | #60236Ede | bold |
| storage.type.primitive.array.groovy | #12391Cde | bold |
| storage.type.primitive.array.java | #672137de | bold |
| storage.type.primitive.groovy | #6A3E06de | bold |
| storage.type.primitive.java | #314419de | bold |
| storage.type.rune.go | #4B361Bde | bold |
| storage.type.string.go | #043A10de | bold |
| storage.type.token.java | #432D0Fde | bold |
| storage.type.uintptr.go | #432D10de | bold |
| storage.type.variable.cs | #57036Cde | bold |
| string | #315108de | — |
| string.quoted.docstring.multi.python | #3333166e | — |
| string.regexp | #2D3D17de | — |
| string.tag | #31500Ade | — |
| string.value | #043A10de | — |
| strong | #0A505Ade | — |
| support.class | #5A2167de | — |
| support.constant.color | #1D512Ade | — |
| support.constant.dom | #24247Dde | — |
| support.constant.font-name | #0A0AACde | — |
| support.constant.handlebars | #4E1E59de | — |
| support.constant.json | #5D172Ede | — |
| support.constant.math | #432E15de | — |
| support.constant.media | #591C2Fde | — |
| support.constant.media-type | #650C28de | bold |
| support.constant.property-value | #76243Dde | — |
| support.function | #232380de | — |
| support.function.git-rebase | #570369de | — |
| support.other.parenthesis.regexp | #540C66de | — |
| support.type | #0F0FA4de | bold |
| support.type.property-name | #09541Cde | bold |
| support.type.vendored.property-name | #315108de | bold |
| support.variable | #672137de | — |
| token.debug-token | #0A0AACde | — |
| token.error-token | #345010de | — |
| token.info-token | #2D3D17de | — |
| token.warn-token | #08505Bde | — |
| variable | #315108de | — |
| variable.css | #0A505Ade | — |
| variable.language | #193E44de | — |
| variable.language.wildcard.java | #12391Cde | — |
| variable.other.constant | #11391Cde | — |
| variable.other.definition.java | #61112Cde | — |
| variable.other.enummember | #0D5059de | — |
| variable.other.less | #283615de | — |
| variable.other.object.java | #5D172Ede | — |
| variable.other.object.property.java | #5F142Cde | — |
| variable.parameter.c | #5B192Ede | — |
| variable.parameter.function.language.python | #591B2Fde | — |
| variable.parameter.java | #314419de | — |
| variable.scss | #08505Bde | — |
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}!`;
}