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 | #4E4E4E6e | — |
| comment.block.html | #6F3A6F6e | — |
| comment.block.java | #6F3C6F6e | — |
| comment.block.javadoc.java | #6F3C6F6e | — |
| comment.block.powershell | #4E4E4E6e | — |
| comment.block.xml | #6F3C6F6e | — |
| comment.line.double-slash.c | #4E4E4E6e | — |
| comment.line.double-slash.cpp | #4E4E4E6e | — |
| comment.line.double-slash.java | #6F3A6F6e | — |
| comment.line.double-slash.js | #6F3A6F6e | — |
| comment.line.number-sign.makefile | #4F4F4F6e | — |
| comment.line.number-sign.python | #6F3A6F6e | — |
| comment.line.number-sign.yaml | #6F3C6F6e | — |
| comment.line.percentage.erlang | #6F3C6F6e | — |
| comment.line.powershell | #6F3A6F6e | — |
| comment.source.cmake | #4E4E4E6e | — |
| comment.source.cmakecache | #6F3A6F6e | — |
| constant.character | #0C550Cde | — |
| constant.character.character-class.regexp | #8A320Ede | — |
| constant.character.escape | #730BC1de | — |
| constant.character.set.regexp | #2B462Bde | — |
| constant.language | #091FADde | — |
| constant.numeric | #9A0E4Ade | — |
| constant.numeric.dec.python | #8A320Ede | — |
| constant.other.caps.python | #674334de | — |
| constant.other.character-class.regexp | #0C550Cde | — |
| constant.other.character-class.set.regexp | #394028de | — |
| constant.other.color.rgb-value | #9D0949de | — |
| constant.other.placeholder | #0E23A9de | — |
| constant.other.rgb-value | #0E5B0Ede | — |
| constant.regexp | #7201C8de | — |
| constant.sha.git-rebase | #693A88de | — |
| emphasis | #9C0C4Ade | — |
| entity.name.class | #2D4C4Cde | — |
| entity.name.function | #673B89de | — |
| entity.name.function.preprocessor | #6A4535de | — |
| entity.name.function.python | #0E23A9de | — |
| entity.name.label | #41550Ede | — |
| entity.name.namespace | #7A3854de | — |
| entity.name.operator | #7A3854de | — |
| entity.name.operator.custom-literal | #0C4F0Cde | — |
| entity.name.scope-resolution | #0E5A0Ede | — |
| entity.name.tag | #0F5B0Fde | — |
| entity.name.tag.css | #41560Ade | — |
| entity.name.type | #7201C8de | bold |
| entity.name.variable | #593D31de | — |
| entity.other.attribute | #343C67de | — |
| entity.other.attribute-name | #0C22A8de | — |
| entity.other.attribute-name.class.css | #7303C5de | — |
| entity.other.attribute-name.class.mixin.css | #6F00C2de | — |
| entity.other.attribute-name.id | #730BC1de | — |
| entity.other.attribute-name.id.css | #730BC0de | — |
| entity.other.attribute-name.parent-selector.css | #0C420Cde | — |
| entity.other.attribute-name.pseudo-class.css | #49532Fde | — |
| entity.other.attribute-name.pseudo-element.css | #343C67de | — |
| entity.other.attribute-name.scss | #7C3857de | — |
| entity.other.document.begin.yaml | #6F3A6F6e | — |
| entity.other.inherited-class | #0E5B0Ede | — |
| header | #7207C4de | — |
| invalid | #41550Ede | — |
| keyword | #0D24B2de | bold |
| keyword.codetag.notation.python | #0C4242de | bold |
| keyword.control | #0E5757de | bold |
| keyword.control.anchor.regexp | #673B89de | bold |
| keyword.control.import.python | #9D0646de | bold |
| keyword.operator | #9D0544de | bold |
| keyword.operator.alignas | #56366Ede | bold |
| keyword.operator.alignof | #343C67de | bold |
| keyword.operator.cast | #8F2E06de | bold |
| keyword.operator.delete | #56366Ede | bold |
| keyword.operator.documentation.powershell | #6F3A6F6e | bold |
| keyword.operator.expression | #604033de | bold |
| keyword.operator.instanceof | #0D23A6de | bold |
| keyword.operator.logical.python | #67344Ade | bold |
| keyword.operator.minus.exponent | #674334de | bold |
| keyword.operator.negation.regexp | #40540Dde | bold |
| keyword.operator.new | #673A8Bde | bold |
| keyword.operator.noexcept | #333960de | bold |
| keyword.operator.or.regexp | #0E25AAde | bold |
| keyword.operator.plus.exponent | #7309C2de | bold |
| keyword.operator.quantifier.regexp | #694435de | bold |
| keyword.operator.sizeof | #7A3854de | bold |
| keyword.operator.typeid | #374075de | bold |
| keyword.operator.wordlike | #305830de | bold |
| keyword.other.operator | #9A0E4Ade | bold |
| keyword.other.package.java | #0E5858de | bold |
| keyword.other.unit | #0D5858de | bold |
| keyword.other.using | #532F3Ede | bold |
| markup.bold | #8B310Ede | — |
| markup.changed | #8F2E06de | — |
| markup.deleted | #9A0E4Ade | — |
| markup.fenced_code.block.markdown | #0F5B0Fde | — |
| markup.heading | #091FADde | — |
| markup.inline.raw | #730BC0de | — |
| markup.inserted | #9A0E4Ade | — |
| markup.italic | #434C2Dde | — |
| markup.raw.block.markdown | #0A21ACde | — |
| markup.strikethrough | #313759de | — |
| markup.underline | #305830de | — |
| meta.block.c | #9A0E4Ade | — |
| meta.block.c | #284028de | — |
| meta.class.java | #0E25AAde | — |
| meta.definition.variable.name | #0B21ABde | — |
| meta.diff.header | #4D3360de | — |
| meta.embedded | #333960de | — |
| meta.embedded.assembly | #0E5757de | — |
| meta.function-call.arguments.python | #3B4895de | — |
| meta.function-call.python | #674334de | — |
| meta.member.access.python | #7B3956de | — |
| meta.method.java | #0C4242de | — |
| meta.object-literal.key | #0E5858de | — |
| meta.paragraph.markdown | #0E5B0Ede | — |
| meta.preprocessor | #673987de | — |
| meta.preprocessor.numeric | #0D23A6de | — |
| meta.preprocessor.string | #4D3360de | — |
| meta.scope.prerequisites.makefile | #673987de | — |
| meta.structure.dictionary.json.comments | #4E4E4E6e | — |
| meta.structure.dictionary.key.python | #0E5757de | — |
| meta.structure.dictionary.value.json.comments | #4E4E4E6e | — |
| meta.template.expression | #0D5858de | — |
| meta.type.cast.expr | #0E5757de | bold |
| meta.type.new.expr | #41550Fde | bold |
| parameter | #434C2Dde | — |
| punctuation.character.set.begin.regexp | #41550Ede | — |
| punctuation.character.set.end.regexp | #47522Ede | — |
| punctuation.definition.array.begin.json | #0E5757de | — |
| punctuation.definition.character-class.regexp | #47522Fde | — |
| punctuation.definition.comment | #4E4E4E6e | — |
| punctuation.definition.comment.json.comments | #6F3A6F6e | — |
| punctuation.definition.comment.python | #4F4F4F6e | — |
| punctuation.definition.dictionary.begin.json | #2B462Bde | — |
| punctuation.definition.dictionary.end.json | #7C3857de | — |
| punctuation.definition.group.assertion.regexp | #0E25AAde | — |
| punctuation.definition.group.regexp | #41560Ede | — |
| punctuation.definition.list.begin.json | #8B310Ede | — |
| punctuation.definition.list.begin.markdown | #0E23A9de | — |
| punctuation.definition.list.begin.python | #333960de | — |
| punctuation.definition.list.end.json | #0820ABde | — |
| punctuation.definition.list.end.markdown | #394028de | — |
| punctuation.definition.list.end.python | #2B462Bde | — |
| punctuation.definition.parameters.begin.python | #41560Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #41550Ede | — |
| punctuation.definition.quote.begin.markdown | #0E5757de | — |
| punctuation.definition.tag | #2F5353de | — |
| punctuation.definition.template-expression.begin | #9C0C4Ade | — |
| punctuation.definition.template-expression.end | #394028de | — |
| punctuation.section.class.begin.bracket.curly.java | #9D0949de | — |
| punctuation.section.embedded | #41550Ede | — |
| punctuation.section.embedded.begin.php | #0D24B2de | — |
| punctuation.section.embedded.end.php | #41550Ede | — |
| punctuation.terminator.java | #8A310Dde | — |
| source.cmake | #41550Ede | — |
| source.coffee.embedded | #0D24ABde | — |
| source.cpp | #604033de | — |
| source.css.less | #394028de | — |
| source.groovy.embedded | #8E2E08de | — |
| source.java | #0D24ABde | — |
| source.java-properties | #0C4F4Fde | — |
| source.json.comments | #4F4F4F6e | — |
| source.makefile | #9C0C4Ade | — |
| source.powershell | #6E364Ede | — |
| source.powershell.variable.other.member | #9D0646de | — |
| source.python | #8C310Dde | — |
| storage | #673A88de | — |
| storage.modifier | #0E5757de | — |
| storage.modifier.import.java | #643A83de | — |
| storage.modifier.package.java | #513467de | — |
| storage.type | #0D23A6de | bold |
| storage.type.annotation.groovy | #0D24B2de | bold |
| storage.type.annotation.java | #0E5757de | bold |
| storage.type.boolean.go | #0F5B0Fde | bold |
| storage.type.byte.go | #47522Ede | bold |
| storage.type.cs | #6E364Ede | bold |
| storage.type.error.go | #2B462Bde | bold |
| storage.type.generic.cs | #0C4F4Fde | bold |
| storage.type.generic.groovy | #7201C8de | bold |
| storage.type.generic.java | #9C0C4Ade | bold |
| storage.type.groovy | #673A86de | bold |
| storage.type.java | #49532Fde | bold |
| storage.type.modifier.cs | #7207C4de | bold |
| storage.type.numeric.go | #7309C2de | bold |
| storage.type.object.array.groovy | #434C2Dde | bold |
| storage.type.object.array.java | #9B0D4Ade | bold |
| storage.type.parameters.groovy | #0E5757de | bold |
| storage.type.primitive.array.groovy | #0C550Cde | bold |
| storage.type.primitive.array.java | #305555de | bold |
| storage.type.primitive.groovy | #7207C4de | bold |
| storage.type.primitive.java | #2B462Bde | bold |
| storage.type.rune.go | #674334de | bold |
| storage.type.string.go | #3B498Ede | bold |
| storage.type.token.java | #7A3854de | bold |
| storage.type.uintptr.go | #8D300Ade | bold |
| storage.type.variable.cs | #7B3858de | bold |
| string | #39427Cde | — |
| string.quoted.docstring.multi.python | #6F3A6F6e | — |
| string.regexp | #2B462Bde | — |
| string.tag | #7206C4de | — |
| string.value | #7201C8de | — |
| strong | #8A310Dde | — |
| support.class | #0E5757de | — |
| support.constant.color | #0E5C0Ede | — |
| support.constant.dom | #7309C2de | — |
| support.constant.font-name | #41560Ade | — |
| support.constant.handlebars | #47522Fde | — |
| support.constant.json | #0D24ABde | — |
| support.constant.math | #730CC1de | — |
| support.constant.media | #9A0E4Ade | — |
| support.constant.media-type | #673A86de | bold |
| support.constant.property-value | #0F5B0Fde | — |
| support.function | #9C0C4Ade | — |
| support.function.git-rebase | #9A0E4Ade | — |
| support.other.parenthesis.regexp | #0E5757de | — |
| support.type | #5F397Cde | bold |
| support.type.property-name | #8B310Ede | bold |
| support.type.vendored.property-name | #41550Fde | bold |
| support.variable | #0E25AAde | — |
| token.debug-token | #674334de | — |
| token.error-token | #9D0949de | — |
| token.info-token | #8B310Ede | — |
| token.warn-token | #9C0C4Ade | — |
| variable | #9A0E4Ade | — |
| variable.css | #53392Fde | — |
| variable.language | #7B3858de | — |
| variable.language.wildcard.java | #663B89de | — |
| variable.other.constant | #0C5555de | — |
| variable.other.definition.java | #673A88de | — |
| variable.other.enummember | #0E5757de | — |
| variable.other.less | #0E5757de | — |
| variable.other.object.java | #9D0646de | — |
| variable.other.object.property.java | #2D4C4Cde | — |
| variable.parameter.c | #305555de | — |
| variable.parameter.function.language.python | #2F5353de | — |
| variable.parameter.java | #6A4535de | — |
| variable.scss | #40540Ede | — |
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}!`;
}