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 | #83D6D66e | — |
| comment.block.html | #86D5D56e | — |
| comment.block.java | #7ED6D66e | — |
| comment.block.javadoc.java | #7CD6D66e | — |
| comment.block.powershell | #86D5D56e | — |
| comment.block.xml | #7CD6D66e | — |
| comment.line.double-slash.c | #83D6D66e | — |
| comment.line.double-slash.cpp | #83D6D66e | — |
| comment.line.double-slash.java | #83D6D66e | — |
| comment.line.double-slash.js | #86D5D56e | — |
| comment.line.number-sign.makefile | #7CD6D66e | — |
| comment.line.number-sign.python | #83D6D66e | — |
| comment.line.number-sign.yaml | #7ED6D66e | — |
| comment.line.percentage.erlang | #86D5D56e | — |
| comment.line.powershell | #86D5D56e | — |
| comment.source.cmake | #86D5D56e | — |
| comment.source.cmakecache | #86D5D56e | — |
| constant.character | #FEB5B5de | — |
| constant.character.character-class.regexp | #1AE71Ade | — |
| constant.character.escape | #FEB4B4de | — |
| constant.character.set.regexp | #A8A8A8de | — |
| constant.language | #19E719de | — |
| constant.numeric | #19E719de | — |
| constant.numeric.dec.python | #19E719de | — |
| constant.other.caps.python | #0DE70Dde | — |
| constant.other.character-class.regexp | #E89191de | — |
| constant.other.character-class.set.regexp | #E89191de | — |
| constant.other.color.rgb-value | #A1A1EDde | — |
| constant.other.placeholder | #ABABF5de | — |
| constant.other.rgb-value | #0DE70Dde | — |
| constant.regexp | #A1A1EBde | — |
| constant.sha.git-rebase | #ED9191de | — |
| emphasis | #F29E9Ede | — |
| entity.name.class | #A1A1EBde | — |
| entity.name.function | #C8C8C8de | — |
| entity.name.function.preprocessor | #ABABF5de | — |
| entity.name.function.python | #0FE80Fde | — |
| entity.name.label | #A1A1EDde | — |
| entity.name.namespace | #AAAAAAde | — |
| entity.name.operator | #F5ABABde | — |
| entity.name.operator.custom-literal | #A0A0F2de | — |
| entity.name.scope-resolution | #F29E9Ede | — |
| entity.name.tag | #14E714de | — |
| entity.name.tag.css | #C0C0FAde | — |
| entity.name.type | #BCBCBCde | — |
| entity.name.variable | #A1A1EEde | — |
| entity.other.attribute | #C2C2FEde | — |
| entity.other.attribute-name | #EA8F8Fde | — |
| entity.other.attribute-name.class.css | #13E613de | — |
| entity.other.attribute-name.class.mixin.css | #EB8F8Fde | — |
| entity.other.attribute-name.id | #E89191de | — |
| entity.other.attribute-name.id.css | #F5ABABde | — |
| entity.other.attribute-name.parent-selector.css | #BCBCBCde | — |
| entity.other.attribute-name.pseudo-class.css | #18E718de | — |
| entity.other.attribute-name.pseudo-element.css | #F5ABABde | — |
| entity.other.attribute-name.scss | #A1A1F0de | — |
| entity.other.document.begin.yaml | #7ED6D66e | — |
| entity.other.inherited-class | #BEBEFEde | — |
| header | #19E719de | — |
| invalid | #A1A1EEde | — |
| keyword | #A1A1EDde | — |
| keyword.codetag.notation.python | #A0A0F2de | — |
| keyword.control | #19E719de | — |
| keyword.control.anchor.regexp | #F5ABABde | — |
| keyword.control.import.python | #A1A1ECde | — |
| keyword.operator | #E89191de | — |
| keyword.operator.alignas | #C8C8C8de | — |
| keyword.operator.alignof | #13E613de | — |
| keyword.operator.cast | #B2B2F7de | — |
| keyword.operator.delete | #19E719de | — |
| keyword.operator.documentation.powershell | #83D6D66e | — |
| keyword.operator.expression | #C5C5C5de | — |
| keyword.operator.instanceof | #18E718de | — |
| keyword.operator.logical.python | #18E718de | — |
| keyword.operator.minus.exponent | #A1A1ECde | — |
| keyword.operator.negation.regexp | #A8A8A8de | — |
| keyword.operator.new | #0EE80Ede | — |
| keyword.operator.noexcept | #FEADADde | — |
| keyword.operator.or.regexp | #1AE71Ade | — |
| keyword.operator.plus.exponent | #1AE71Ade | — |
| keyword.operator.quantifier.regexp | #C0C0FAde | — |
| keyword.operator.sizeof | #B9B9F8de | — |
| keyword.operator.typeid | #E69191de | — |
| keyword.operator.wordlike | #F29E9Ede | — |
| keyword.other.operator | #E89191de | — |
| keyword.other.package.java | #F7B2B2de | — |
| keyword.other.unit | #17E717de | — |
| keyword.other.using | #B9B9F8de | — |
| markup.bold | #1AE71Ade | — |
| markup.changed | #0FE80Fde | — |
| markup.deleted | #FEB5B5de | — |
| markup.fenced_code.block.markdown | #B9B9F8de | — |
| markup.heading | #A1A1EEde | — |
| markup.inline.raw | #F7B2B2de | — |
| markup.inserted | #A4A4F3de | — |
| markup.italic | #13E613de | — |
| markup.raw.block.markdown | #A1A1F0de | — |
| markup.strikethrough | #A1A1ECde | — |
| markup.underline | #EF9898de | — |
| meta.block.c | #18E718de | — |
| meta.block.c | #B9B9F8de | — |
| meta.class.java | #C8C8C8de | — |
| meta.definition.variable.name | #FEB5B5de | — |
| meta.diff.header | #1AE71Ade | — |
| meta.embedded | #0FE80Fde | — |
| meta.embedded.assembly | #E69191de | — |
| meta.function-call.arguments.python | #16E716de | — |
| meta.function-call.python | #C0C0C0de | — |
| meta.member.access.python | #C0C0FAde | — |
| meta.method.java | #C8C8C8de | — |
| meta.object-literal.key | #FEB5B5de | — |
| meta.paragraph.markdown | #EA8F8Fde | — |
| meta.preprocessor | #16E716de | — |
| meta.preprocessor.numeric | #AAAAAAde | — |
| meta.preprocessor.string | #E69191de | — |
| meta.scope.prerequisites.makefile | #A1A1EEde | — |
| meta.structure.dictionary.json.comments | #7ED6D66e | — |
| meta.structure.dictionary.key.python | #C2C2FEde | — |
| meta.structure.dictionary.value.json.comments | #86D5D56e | — |
| meta.template.expression | #EB8F8Fde | — |
| meta.type.cast.expr | #A2A2EAde | — |
| meta.type.new.expr | #E89191de | — |
| parameter | #FEADADde | — |
| punctuation.character.set.begin.regexp | #ABABF5de | — |
| punctuation.character.set.end.regexp | #19E719de | — |
| punctuation.definition.array.begin.json | #15E715de | — |
| punctuation.definition.character-class.regexp | #A2A2EAde | — |
| punctuation.definition.comment | #7CD6D66e | — |
| punctuation.definition.comment.json.comments | #83D6D66e | — |
| punctuation.definition.comment.python | #7ED6D66e | — |
| punctuation.definition.dictionary.begin.json | #A1A1EEde | — |
| punctuation.definition.dictionary.end.json | #FEB4B4de | — |
| punctuation.definition.group.assertion.regexp | #0FE80Fde | — |
| punctuation.definition.group.regexp | #19E719de | — |
| punctuation.definition.list.begin.json | #F7B2B2de | — |
| punctuation.definition.list.begin.markdown | #EB8F8Fde | — |
| punctuation.definition.list.begin.python | #B2B2F7de | — |
| punctuation.definition.list.end.json | #EF9898de | — |
| punctuation.definition.list.end.markdown | #EF9898de | — |
| punctuation.definition.list.end.python | #FEB5B5de | — |
| punctuation.definition.parameters.begin.python | #A1A1EBde | — |
| punctuation.definition.parameters.end.bracket.round.java | #1AE71Ade | — |
| punctuation.definition.quote.begin.markdown | #A1A1EFde | — |
| punctuation.definition.tag | #A0A0F2de | — |
| punctuation.definition.template-expression.begin | #0DE70Dde | — |
| punctuation.definition.template-expression.end | #C2C2FEde | — |
| punctuation.section.class.begin.bracket.curly.java | #F5ABABde | — |
| punctuation.section.embedded | #EF9898de | — |
| punctuation.section.embedded.begin.php | #C8C8C8de | — |
| punctuation.section.embedded.end.php | #15E715de | — |
| punctuation.terminator.java | #EF9898de | — |
| source.cmake | #B2B2F7de | — |
| source.coffee.embedded | #C2C2FEde | — |
| source.cpp | #F3A4A4de | — |
| source.css.less | #19E719de | — |
| source.groovy.embedded | #BEBEFEde | — |
| source.java | #E99090de | — |
| source.java-properties | #14E714de | — |
| source.json.comments | #86D5D56e | — |
| source.makefile | #FEADADde | — |
| source.powershell | #14E714de | — |
| source.powershell.variable.other.member | #F29E9Ede | — |
| source.python | #EA8F8Fde | — |
| storage | #13E613de | — |
| storage.modifier | #F5ABABde | — |
| storage.modifier.import.java | #F3A4A4de | — |
| storage.modifier.package.java | #C8C8C8de | — |
| storage.type | #F7B2B2de | — |
| storage.type.annotation.groovy | #E99090de | — |
| storage.type.annotation.java | #15E715de | — |
| storage.type.boolean.go | #E99090de | — |
| storage.type.byte.go | #19E719de | — |
| storage.type.cs | #15E715de | — |
| storage.type.error.go | #17E717de | — |
| storage.type.generic.cs | #F7B2B2de | — |
| storage.type.generic.groovy | #A8A8A8de | — |
| storage.type.generic.java | #16E716de | — |
| storage.type.groovy | #C8C8C8de | — |
| storage.type.java | #1AE71Ade | — |
| storage.type.modifier.cs | #AFAFAFde | — |
| storage.type.numeric.go | #B7B7B7de | — |
| storage.type.object.array.groovy | #A4A4F3de | — |
| storage.type.object.array.java | #E99090de | — |
| storage.type.parameters.groovy | #ED9191de | — |
| storage.type.primitive.array.groovy | #AFAFAFde | — |
| storage.type.primitive.array.java | #A2A2EAde | — |
| storage.type.primitive.groovy | #F3A4A4de | — |
| storage.type.primitive.java | #F3A4A4de | — |
| storage.type.rune.go | #C8C8C8de | — |
| storage.type.string.go | #13E613de | — |
| storage.type.token.java | #15E715de | — |
| storage.type.uintptr.go | #A1A1EEde | — |
| storage.type.variable.cs | #18E718de | — |
| string | #EB8F8Fde | — |
| string.quoted.docstring.multi.python | #86D5D56e | — |
| string.regexp | #FEB5B5de | — |
| string.tag | #C8C8C8de | — |
| string.value | #13E613de | — |
| strong | #1AE71Ade | — |
| support.class | #EF9898de | — |
| support.constant.color | #C8C8C8de | — |
| support.constant.dom | #1AE71Ade | — |
| support.constant.font-name | #E99090de | — |
| support.constant.handlebars | #E99090de | — |
| support.constant.json | #0EE80Ede | — |
| support.constant.math | #0FE80Fde | — |
| support.constant.media | #A1A1EBde | — |
| support.constant.media-type | #C0C0FAde | — |
| support.constant.property-value | #0EE80Ede | — |
| support.function | #18E718de | — |
| support.function.git-rebase | #A4A4F3de | — |
| support.other.parenthesis.regexp | #FEB4B4de | — |
| support.type | #E89191de | — |
| support.type.property-name | #AFAFAFde | — |
| support.type.vendored.property-name | #E89191de | — |
| support.variable | #0EE80Ede | — |
| token.debug-token | #A1A1F0de | — |
| token.error-token | #A1A1ECde | — |
| token.info-token | #FEB5B5de | — |
| token.warn-token | #C6C6C6de | — |
| variable | #19E719de | — |
| variable.css | #A1A1ECde | — |
| variable.language | #A8A8A8de | — |
| variable.language.wildcard.java | #13E613de | — |
| variable.other.constant | #B3B3B3de | — |
| variable.other.definition.java | #F3A4A4de | — |
| variable.other.enummember | #B3B3B3de | — |
| variable.other.less | #EB8F8Fde | — |
| variable.other.object.java | #A1A1F0de | — |
| variable.other.object.property.java | #19E719de | — |
| variable.parameter.c | #C0C0FAde | — |
| variable.parameter.function.language.python | #14E714de | — |
| variable.parameter.java | #B7B7B7de | — |
| variable.scss | #A1A1ECde | — |
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}!`;
}