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 | #1335356e | — |
| comment.block.html | #1636366e | — |
| comment.block.java | #1335356e | — |
| comment.block.javadoc.java | #1535356e | — |
| comment.block.powershell | #1535356e | — |
| comment.block.xml | #1335356e | — |
| comment.line.double-slash.c | #1335356e | — |
| comment.line.double-slash.cpp | #1335356e | — |
| comment.line.double-slash.java | #1335356e | — |
| comment.line.double-slash.js | #1335356e | — |
| comment.line.number-sign.makefile | #1535356e | — |
| comment.line.number-sign.python | #1636366e | — |
| comment.line.number-sign.yaml | #1335356e | — |
| comment.line.percentage.erlang | #1535356e | — |
| comment.line.powershell | #1335356e | — |
| comment.source.cmake | #1535356e | — |
| comment.source.cmakecache | #1335356e | — |
| constant.character | #03381Ede | — |
| constant.character.character-class.regexp | #21510Fde | — |
| constant.character.escape | #224057de | — |
| constant.character.set.regexp | #544511de | — |
| constant.language | #322564de | — |
| constant.numeric | #732868de | — |
| constant.numeric.dec.python | #56450Ade | — |
| constant.other.caps.python | #1C3612de | — |
| constant.other.character-class.regexp | #103152de | — |
| constant.other.character-class.set.regexp | #5D0351de | — |
| constant.other.color.rgb-value | #213518de | — |
| constant.other.placeholder | #570F4Dde | — |
| constant.other.rgb-value | #243C1Ade | — |
| constant.regexp | #5B1818de | — |
| constant.sha.git-rebase | #56450Cde | — |
| emphasis | #544510de | — |
| entity.name.class | #363016de | — |
| entity.name.function | #382F12de | — |
| entity.name.function.preprocessor | #2A099Ade | — |
| entity.name.function.python | #57224Fde | — |
| entity.name.label | #521849de | — |
| entity.name.namespace | #5E2424de | — |
| entity.name.operator | #27421Dde | — |
| entity.name.operator.custom-literal | #07497Cde | — |
| entity.name.scope-resolution | #322468de | — |
| entity.name.tag | #3C351Ade | — |
| entity.name.tag.css | #570F4Dde | — |
| entity.name.type | #660303de | bold |
| entity.name.variable | #630D0Dde | — |
| entity.other.attribute | #03381Ede | — |
| entity.other.attribute-name | #35276Cde | — |
| entity.other.attribute-name.class.css | #332466de | — |
| entity.other.attribute-name.class.mixin.css | #1E5109de | — |
| entity.other.attribute-name.id | #54450Ede | — |
| entity.other.attribute-name.id.css | #2E1787de | — |
| entity.other.attribute-name.parent-selector.css | #3B2E03de | — |
| entity.other.attribute-name.pseudo-class.css | #55154Cde | — |
| entity.other.attribute-name.pseudo-element.css | #57224Fde | — |
| entity.other.attribute-name.scss | #5E2424de | — |
| entity.other.document.begin.yaml | #1636366e | — |
| entity.other.inherited-class | #133624de | — |
| header | #1C3612de | — |
| invalid | #1A3243de | — |
| keyword | #322071de | bold |
| keyword.codetag.notation.python | #322563de | bold |
| keyword.control | #5A1A1Ade | bold |
| keyword.control.anchor.regexp | #544510de | bold |
| keyword.control.import.python | #125132de | bold |
| keyword.operator | #332565de | bold |
| keyword.operator.alignas | #5A1A1Ade | bold |
| keyword.operator.alignof | #2B491Ede | bold |
| keyword.operator.cast | #363016de | bold |
| keyword.operator.delete | #115130de | bold |
| keyword.operator.documentation.powershell | #1535356e | bold |
| keyword.operator.expression | #2A099Ade | bold |
| keyword.operator.instanceof | #03381Ede | bold |
| keyword.operator.logical.python | #1C3612de | bold |
| keyword.operator.minus.exponent | #541F1Fde | bold |
| keyword.operator.negation.regexp | #21510Fde | bold |
| keyword.operator.new | #0D512Fde | bold |
| keyword.operator.noexcept | #103152de | bold |
| keyword.operator.or.regexp | #1A3612de | bold |
| keyword.operator.plus.exponent | #57224Fde | bold |
| keyword.operator.quantifier.regexp | #1A3C2Bde | bold |
| keyword.operator.sizeof | #133803de | bold |
| keyword.operator.typeid | #1B3244de | bold |
| keyword.operator.wordlike | #115130de | bold |
| keyword.other.operator | #115130de | bold |
| keyword.other.package.java | #183246de | bold |
| keyword.other.unit | #382F12de | bold |
| keyword.other.using | #07497Cde | bold |
| markup.bold | #24455Ede | — |
| markup.changed | #56450Ade | — |
| markup.deleted | #115130de | — |
| markup.fenced_code.block.markdown | #03381Ede | — |
| markup.heading | #541F1Fde | — |
| markup.inline.raw | #630D0Dde | — |
| markup.inserted | #382F0Cde | — |
| markup.italic | #630D0Dde | — |
| markup.raw.block.markdown | #504620de | — |
| markup.strikethrough | #12324Cde | — |
| markup.underline | #24455Ede | — |
| meta.block.c | #24455Ede | — |
| meta.block.c | #1D3242de | — |
| meta.class.java | #133803de | — |
| meta.definition.variable.name | #213518de | — |
| meta.diff.header | #5D0050de | — |
| meta.embedded | #12324Cde | — |
| meta.embedded.assembly | #322468de | — |
| meta.function-call.arguments.python | #163627de | — |
| meta.function-call.python | #322468de | — |
| meta.member.access.python | #123803de | — |
| meta.method.java | #65255Cde | — |
| meta.object-literal.key | #1C3612de | — |
| meta.paragraph.markdown | #32236Cde | — |
| meta.preprocessor | #363016de | — |
| meta.preprocessor.numeric | #531F1Fde | — |
| meta.preprocessor.string | #3C351Ade | — |
| meta.scope.prerequisites.makefile | #561C1Cde | — |
| meta.structure.dictionary.json.comments | #1636366e | — |
| meta.structure.dictionary.key.python | #372F13de | — |
| meta.structure.dictionary.value.json.comments | #1636366e | — |
| meta.template.expression | #57224Fde | — |
| meta.type.cast.expr | #502049de | bold |
| meta.type.new.expr | #382F0Cde | bold |
| parameter | #572222de | — |
| punctuation.character.set.begin.regexp | #322563de | — |
| punctuation.character.set.end.regexp | #2A099Ade | — |
| punctuation.definition.array.begin.json | #1D422Fde | — |
| punctuation.definition.character-class.regexp | #32236Cde | — |
| punctuation.definition.comment | #1636366e | — |
| punctuation.definition.comment.json.comments | #1335356e | — |
| punctuation.definition.comment.python | #1636366e | — |
| punctuation.definition.dictionary.begin.json | #382F12de | — |
| punctuation.definition.dictionary.end.json | #11324Bde | — |
| punctuation.definition.group.assertion.regexp | #12324Cde | — |
| punctuation.definition.group.regexp | #133803de | — |
| punctuation.definition.list.begin.json | #372F15de | — |
| punctuation.definition.list.begin.markdown | #531F1Fde | — |
| punctuation.definition.list.begin.python | #183246de | — |
| punctuation.definition.list.end.json | #630D0Dde | — |
| punctuation.definition.list.end.markdown | #243C1Ade | — |
| punctuation.definition.list.end.python | #544510de | — |
| punctuation.definition.parameters.begin.python | #225111de | — |
| punctuation.definition.parameters.end.bracket.round.java | #58104Cde | — |
| punctuation.definition.quote.begin.markdown | #630D0Dde | — |
| punctuation.definition.tag | #5D0050de | — |
| punctuation.definition.template-expression.begin | #2A099Ade | — |
| punctuation.definition.template-expression.end | #5E2424de | — |
| punctuation.section.class.begin.bracket.curly.java | #56450Cde | — |
| punctuation.section.embedded | #09512Dde | — |
| punctuation.section.embedded.begin.php | #321C7Ade | — |
| punctuation.section.embedded.end.php | #332466de | — |
| punctuation.terminator.java | #1D422Fde | — |
| source.cmake | #652525de | — |
| source.coffee.embedded | #123803de | — |
| source.cpp | #58104Cde | — |
| source.css.less | #163627de | — |
| source.groovy.embedded | #56450Cde | — |
| source.java | #54450Ede | — |
| source.java-properties | #58104Cde | — |
| source.json.comments | #1335356e | — |
| source.makefile | #0D512Fde | — |
| source.powershell | #1B3244de | — |
| source.powershell.variable.other.member | #5E2424de | — |
| source.python | #19370Dde | — |
| storage | #20510Dde | — |
| storage.modifier | #1C3613de | — |
| storage.modifier.import.java | #521849de | — |
| storage.modifier.package.java | #5B1818de | — |
| storage.type | #3C351Ade | bold |
| storage.type.annotation.groovy | #502049de | bold |
| storage.type.annotation.java | #5B1818de | bold |
| storage.type.boolean.go | #133803de | bold |
| storage.type.byte.go | #183246de | bold |
| storage.type.cs | #630D0Dde | bold |
| storage.type.error.go | #2A1091de | bold |
| storage.type.generic.cs | #20510Dde | bold |
| storage.type.generic.groovy | #332565de | bold |
| storage.type.generic.java | #620D0Dde | bold |
| storage.type.groovy | #4E1C46de | bold |
| storage.type.java | #27421Dde | bold |
| storage.type.modifier.cs | #125132de | bold |
| storage.type.numeric.go | #20510Dde | bold |
| storage.type.object.array.groovy | #203B50de | bold |
| storage.type.object.array.java | #33216Ede | bold |
| storage.type.parameters.groovy | #03381Cde | bold |
| storage.type.primitive.array.groovy | #224057de | bold |
| storage.type.primitive.array.java | #620D0Dde | bold |
| storage.type.primitive.groovy | #372F13de | bold |
| storage.type.primitive.java | #570F4Dde | bold |
| storage.type.rune.go | #56450Ade | bold |
| storage.type.string.go | #115130de | bold |
| storage.type.token.java | #322468de | bold |
| storage.type.uintptr.go | #12324Cde | bold |
| storage.type.variable.cs | #5D0351de | bold |
| string | #382F0Cde | — |
| string.quoted.docstring.multi.python | #1335356e | — |
| string.regexp | #0D3721de | — |
| string.tag | #382F0Cde | — |
| string.value | #332466de | — |
| strong | #732868de | — |
| support.class | #423A1Dde | — |
| support.constant.color | #544511de | — |
| support.constant.dom | #1D3242de | — |
| support.constant.font-name | #5D0351de | — |
| support.constant.handlebars | #125132de | — |
| support.constant.json | #19370Dde | — |
| support.constant.math | #12324Cde | — |
| support.constant.media | #5E2455de | — |
| support.constant.media-type | #332565de | bold |
| support.constant.property-value | #382F0Cde | — |
| support.function | #541F1Fde | — |
| support.function.git-rebase | #363016de | — |
| support.other.parenthesis.regexp | #1C3613de | — |
| support.type | #32236Cde | bold |
| support.type.property-name | #115130de | bold |
| support.type.vendored.property-name | #541F1Fde | bold |
| support.variable | #502049de | — |
| token.debug-token | #620F0Fde | — |
| token.error-token | #521849de | — |
| token.info-token | #243C1Ade | — |
| token.warn-token | #5E1414de | — |
| variable | #0D3721de | — |
| variable.css | #572222de | — |
| variable.language | #163247de | — |
| variable.language.wildcard.java | #3C351Ade | — |
| variable.other.constant | #630D0Dde | — |
| variable.other.definition.java | #570F4Dde | — |
| variable.other.enummember | #5D0351de | — |
| variable.other.less | #382F0Cde | — |
| variable.other.object.java | #630D0Dde | — |
| variable.other.object.property.java | #203B50de | — |
| variable.parameter.c | #1A3612de | — |
| variable.parameter.function.language.python | #11324Bde | — |
| variable.parameter.java | #544510de | — |
| variable.scss | #203B50de | — |
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}!`;
}