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 | #3030306e | — |
| comment.block.html | #3030306e | — |
| comment.block.java | #3030306e | — |
| comment.block.javadoc.java | #3030306e | — |
| comment.block.powershell | #3030306e | — |
| comment.block.xml | #3030306e | — |
| comment.line.double-slash.c | #3030306e | — |
| comment.line.double-slash.cpp | #3030306e | — |
| comment.line.double-slash.java | #3030306e | — |
| comment.line.double-slash.js | #3030306e | — |
| comment.line.number-sign.makefile | #3030306e | — |
| comment.line.number-sign.python | #3030306e | — |
| comment.line.number-sign.yaml | #3030306e | — |
| comment.line.percentage.erlang | #3030306e | — |
| comment.line.powershell | #3030306e | — |
| comment.source.cmake | #3030306e | — |
| comment.source.cmakecache | #3030306e | — |
| constant.character | #0404A9de | — |
| constant.character.character-class.regexp | #510D64de | — |
| constant.character.escape | #530E5Fde | — |
| constant.character.set.regexp | #572231de | — |
| constant.language | #24350Fde | — |
| constant.numeric | #530E5Fde | — |
| constant.numeric.dec.python | #4F2257de | — |
| constant.other.caps.python | #0C3818de | — |
| constant.other.character-class.regexp | #6C273Ade | — |
| constant.other.character-class.set.regexp | #314F0Ade | — |
| constant.other.color.rgb-value | #29296Bde | — |
| constant.other.placeholder | #610E20de | — |
| constant.other.rgb-value | #293518de | — |
| constant.regexp | #530E5Fde | — |
| constant.sha.git-rebase | #610E26de | — |
| emphasis | #12353Ede | — |
| entity.name.class | #610E20de | — |
| entity.name.function | #16353Ade | — |
| entity.name.function.preprocessor | #561C2Dde | — |
| entity.name.function.python | #3E2D18de | — |
| entity.name.label | #0F5222de | — |
| entity.name.namespace | #0F5222de | — |
| entity.name.operator | #27276Dde | — |
| entity.name.operator.custom-literal | #0D5220de | — |
| entity.name.scope-resolution | #4A1F50de | — |
| entity.name.tag | #293518de | — |
| entity.name.tag.css | #673E0Ade | — |
| entity.name.type | #12353Ade | bold |
| entity.name.variable | #520F5Fde | — |
| entity.other.attribute | #412C13de | — |
| entity.other.attribute-name | #492050de | — |
| entity.other.attribute-name.class.css | #1D3D42de | — |
| entity.other.attribute-name.class.mixin.css | #213605de | — |
| entity.other.attribute-name.id | #574022de | — |
| entity.other.attribute-name.id.css | #15371Fde | — |
| entity.other.attribute-name.parent-selector.css | #462A04de | — |
| entity.other.attribute-name.pseudo-class.css | #55245Ede | — |
| entity.other.attribute-name.pseudo-element.css | #1A373Cde | — |
| entity.other.attribute-name.scss | #412D12de | — |
| entity.other.document.begin.yaml | #3030306e | — |
| entity.other.inherited-class | #15371Fde | — |
| header | #600F26de | — |
| invalid | #673E0Ade | — |
| keyword | #27276Fde | bold |
| keyword.codetag.notation.python | #1E4349de | bold |
| keyword.control | #5D1429de | bold |
| keyword.control.anchor.regexp | #094E5Bde | bold |
| keyword.control.import.python | #572231de | bold |
| keyword.operator | #570364de | bold |
| keyword.operator.alignas | #1A3C24de | bold |
| keyword.operator.alignof | #0B531Fde | bold |
| keyword.operator.cast | #161698de | bold |
| keyword.operator.delete | #0D5220de | bold |
| keyword.operator.documentation.powershell | #3030306e | bold |
| keyword.operator.expression | #653E0Dde | bold |
| keyword.operator.instanceof | #033913de | bold |
| keyword.operator.logical.python | #1C1C8Dde | bold |
| keyword.operator.minus.exponent | #28286Bde | bold |
| keyword.operator.negation.regexp | #643F0Fde | bold |
| keyword.operator.new | #324F0Cde | bold |
| keyword.operator.noexcept | #673E0Ade | bold |
| keyword.operator.or.regexp | #0B4E5Bde | bold |
| keyword.operator.plus.exponent | #28286Ade | bold |
| keyword.operator.quantifier.regexp | #0D4E59de | bold |
| keyword.operator.sizeof | #03363Dde | bold |
| keyword.operator.typeid | #105223de | bold |
| keyword.operator.wordlike | #033913de | bold |
| keyword.other.operator | #0404A9de | bold |
| keyword.other.package.java | #1D4227de | bold |
| keyword.other.unit | #643F0Fde | bold |
| keyword.other.using | #23237Bde | bold |
| markup.bold | #572231de | — |
| markup.changed | #293518de | — |
| markup.deleted | #49371Ede | — |
| markup.fenced_code.block.markdown | #412D12de | — |
| markup.heading | #49371Ede | — |
| markup.inline.raw | #521F2Dde | — |
| markup.inserted | #42321Dde | — |
| markup.italic | #24350Fde | — |
| markup.raw.block.markdown | #28286Bde | — |
| markup.strikethrough | #12353Ade | — |
| markup.underline | #412C13de | — |
| meta.block.c | #37491Ede | — |
| meta.block.c | #334F0Fde | — |
| meta.class.java | #0F5222de | — |
| meta.definition.variable.name | #1A3C24de | — |
| meta.diff.header | #503B20de | — |
| meta.embedded | #1E492Bde | — |
| meta.embedded.assembly | #354E12de | — |
| meta.function-call.arguments.python | #03363Dde | — |
| meta.function-call.python | #0F4E58de | — |
| meta.member.access.python | #572231de | — |
| meta.method.java | #412D12de | — |
| meta.object-literal.key | #530E5Fde | — |
| meta.paragraph.markdown | #510D64de | — |
| meta.preprocessor | #660320de | — |
| meta.preprocessor.numeric | #033913de | — |
| meta.preprocessor.string | #412C13de | — |
| meta.scope.prerequisites.makefile | #412C13de | — |
| meta.structure.dictionary.json.comments | #3030306e | — |
| meta.structure.dictionary.key.python | #462A04de | — |
| meta.structure.dictionary.value.json.comments | #3030306e | — |
| meta.template.expression | #4D1A55de | — |
| meta.type.cast.expr | #27276Cde | bold |
| meta.type.new.expr | #643F0Fde | bold |
| parameter | #1C1C8Dde | — |
| punctuation.character.set.begin.regexp | #334F0Ede | — |
| punctuation.character.set.end.regexp | #12353Bde | — |
| punctuation.definition.array.begin.json | #5D1429de | — |
| punctuation.definition.character-class.regexp | #581A2Ede | — |
| punctuation.definition.comment | #3030306e | — |
| punctuation.definition.comment.json.comments | #3030306e | — |
| punctuation.definition.comment.python | #3030306e | — |
| punctuation.definition.dictionary.begin.json | #4E1858de | — |
| punctuation.definition.dictionary.end.json | #28286Ade | — |
| punctuation.definition.group.assertion.regexp | #15371Fde | — |
| punctuation.definition.group.regexp | #560364de | — |
| punctuation.definition.list.begin.json | #12353Bde | — |
| punctuation.definition.list.begin.markdown | #660320de | — |
| punctuation.definition.list.begin.python | #653E0Dde | — |
| punctuation.definition.list.end.json | #412C13de | — |
| punctuation.definition.list.end.markdown | #32421Dde | — |
| punctuation.definition.list.end.python | #314F0Ade | — |
| punctuation.definition.parameters.begin.python | #581A2Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #1C1C8Dde | — |
| punctuation.definition.quote.begin.markdown | #314F0Ade | — |
| punctuation.definition.tag | #094E5Bde | — |
| punctuation.definition.template-expression.begin | #033913de | — |
| punctuation.definition.template-expression.end | #1E492Bde | — |
| punctuation.section.class.begin.bracket.curly.java | #521F2Dde | — |
| punctuation.section.embedded | #2D3C1Ade | — |
| punctuation.section.embedded.begin.php | #0B4E5Bde | — |
| punctuation.section.embedded.end.php | #561C2Dde | — |
| punctuation.terminator.java | #263513de | — |
| source.cmake | #572231de | — |
| source.coffee.embedded | #4A1F50de | — |
| source.cpp | #572231de | — |
| source.css.less | #50155Ade | — |
| source.groovy.embedded | #094E5Bde | — |
| source.java | #570364de | — |
| source.java-properties | #202083de | — |
| source.json.comments | #3030306e | — |
| source.makefile | #15371Fde | — |
| source.powershell | #643F0Fde | — |
| source.powershell.variable.other.member | #213603de | — |
| source.python | #161698de | — |
| storage | #12381Dde | — |
| storage.modifier | #12353Ade | — |
| storage.modifier.import.java | #161698de | — |
| storage.modifier.package.java | #263513de | — |
| storage.type | #354E12de | bold |
| storage.type.annotation.groovy | #610E26de | bold |
| storage.type.annotation.java | #492050de | bold |
| storage.type.boolean.go | #13371Dde | bold |
| storage.type.byte.go | #12353Bde | bold |
| storage.type.cs | #252573de | bold |
| storage.type.error.go | #033913de | bold |
| storage.type.generic.cs | #12353Ade | bold |
| storage.type.generic.groovy | #293518de | bold |
| storage.type.generic.java | #462A04de | bold |
| storage.type.groovy | #314F0Ade | bold |
| storage.type.java | #105223de | bold |
| storage.type.modifier.cs | #572231de | bold |
| storage.type.numeric.go | #600F26de | bold |
| storage.type.object.array.groovy | #652537de | bold |
| storage.type.object.array.java | #581A2Ede | bold |
| storage.type.parameters.groovy | #24350Fde | bold |
| storage.type.primitive.array.groovy | #412C13de | bold |
| storage.type.primitive.array.java | #643F0Fde | bold |
| storage.type.primitive.groovy | #12381Dde | bold |
| storage.type.primitive.java | #610E20de | bold |
| storage.type.rune.go | #1E4349de | bold |
| storage.type.string.go | #16353Ade | bold |
| storage.type.token.java | #3E2D17de | bold |
| storage.type.uintptr.go | #1A3C24de | bold |
| storage.type.variable.cs | #600F26de | bold |
| string | #462A04de | — |
| string.quoted.docstring.multi.python | #3030306e | — |
| string.regexp | #530E5Fde | — |
| string.tag | #2D3C1Ade | — |
| string.value | #12353Ede | — |
| strong | #1A3C24de | — |
| support.class | #204950de | — |
| support.constant.color | #610E26de | — |
| support.constant.dom | #29296Bde | — |
| support.constant.font-name | #50155Ade | — |
| support.constant.handlebars | #531F2Fde | — |
| support.constant.json | #1C1C8Dde | — |
| support.constant.math | #570364de | — |
| support.constant.media | #610E26de | — |
| support.constant.media-type | #1A373Cde | bold |
| support.constant.property-value | #1E492Bde | — |
| support.function | #1A373Cde | — |
| support.function.git-rebase | #0F5222de | — |
| support.other.parenthesis.regexp | #5B182Bde | — |
| support.type | #0D5220de | bold |
| support.type.property-name | #213603de | bold |
| support.type.vendored.property-name | #412D12de | bold |
| support.variable | #05363Fde | — |
| token.debug-token | #1E4349de | — |
| token.error-token | #023912de | — |
| token.info-token | #574022de | — |
| token.warn-token | #24350Fde | — |
| variable | #520F5Fde | — |
| variable.css | #0F4E58de | — |
| variable.language | #263513de | — |
| variable.language.wildcard.java | #23237Bde | — |
| variable.other.constant | #1E492Bde | — |
| variable.other.definition.java | #1D4227de | — |
| variable.other.enummember | #0404A9de | — |
| variable.other.less | #29296Bde | — |
| variable.other.object.java | #263512de | — |
| variable.other.object.property.java | #643F0Fde | — |
| variable.parameter.c | #27276Cde | — |
| variable.parameter.function.language.python | #1E4349de | — |
| variable.parameter.java | #5B182Bde | — |
| variable.scss | #15371Fde | — |
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}!`;
}