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 | #A9A9FB6e | — |
| comment.block.html | #AEAEFA6e | — |
| comment.block.java | #9D9DFA6e | — |
| comment.block.javadoc.java | #B5B5FC6e | — |
| comment.block.powershell | #B0B0FB6e | — |
| comment.block.xml | #B5B5FC6e | — |
| comment.line.double-slash.c | #9A9AF66e | — |
| comment.line.double-slash.cpp | #A9A9FB6e | — |
| comment.line.double-slash.java | #B0B0FB6e | — |
| comment.line.double-slash.js | #9C9CF76e | — |
| comment.line.number-sign.makefile | #9D9DFA6e | — |
| comment.line.number-sign.python | #9D9DFA6e | — |
| comment.line.number-sign.yaml | #AEAEFA6e | — |
| comment.line.percentage.erlang | #ACACFA6e | — |
| comment.line.powershell | #B8B8FC6e | — |
| comment.source.cmake | #A2A2F86e | — |
| comment.source.cmakecache | #B1B1FC6e | — |
| constant.character | #35CD08de | — |
| constant.character.character-class.regexp | #F7A2A2de | — |
| constant.character.escape | #50BB2Fde | — |
| constant.character.set.regexp | #6BAFE9de | — |
| constant.language | #09D978de | — |
| constant.numeric | #30B979de | — |
| constant.numeric.dec.python | #57D133de | — |
| constant.other.caps.python | #34C20Ade | — |
| constant.other.character-class.regexp | #CBAD0Ade | — |
| constant.other.character-class.set.regexp | #AC96F4de | — |
| constant.other.color.rgb-value | #AD98F5de | — |
| constant.other.placeholder | #7CB9EEde | — |
| constant.other.rgb-value | #C5B5FAde | — |
| constant.regexp | #F69F9Fde | — |
| constant.sha.git-rebase | #36CE09de | — |
| emphasis | #08DA79de | — |
| entity.name.class | #30C781de | — |
| entity.name.function | #34BD09de | — |
| entity.name.function.preprocessor | #D6BE3Dde | — |
| entity.name.function.python | #BBA9F8de | — |
| entity.name.label | #DCBC09de | — |
| entity.name.namespace | #F69F9Fde | — |
| entity.name.operator | #6FB2EBde | — |
| entity.name.operator.custom-literal | #C9AB09de | — |
| entity.name.scope-resolution | #6EB1EAde | — |
| entity.name.tag | #F59999de | — |
| entity.name.tag.css | #33BC0Ade | — |
| entity.name.type | #4FB930de | — |
| entity.name.variable | #33C309de | — |
| entity.other.attribute | #08D677de | — |
| entity.other.attribute-name | #68ADE8de | — |
| entity.other.attribute-name.class.css | #F28AE2de | — |
| entity.other.attribute-name.class.mixin.css | #6FB2EBde | — |
| entity.other.attribute-name.id | #0ACC73de | — |
| entity.other.attribute-name.id.css | #F69F9Fde | — |
| entity.other.attribute-name.parent-selector.css | #B9A6F8de | — |
| entity.other.attribute-name.pseudo-class.css | #51C130de | — |
| entity.other.attribute-name.pseudo-element.css | #89C2F2de | — |
| entity.other.attribute-name.scss | #09CB71de | — |
| entity.other.document.begin.yaml | #B0B0FB6e | — |
| entity.other.inherited-class | #F38D8Dde | — |
| header | #74B5ECde | — |
| invalid | #38D809de | — |
| keyword | #61D63Ede | — |
| keyword.codetag.notation.python | #38D009de | — |
| keyword.control | #F08181de | — |
| keyword.control.anchor.regexp | #66D943de | — |
| keyword.control.import.python | #81BDF0de | — |
| keyword.operator | #BFADF9de | — |
| keyword.operator.alignas | #66D943de | — |
| keyword.operator.alignof | #F8A8A8de | — |
| keyword.operator.cast | #5FB4FDde | — |
| keyword.operator.delete | #09CF73de | — |
| keyword.operator.documentation.powershell | #ADADFB6e | — |
| keyword.operator.expression | #F595E6de | — |
| keyword.operator.instanceof | #F07FDEde | — |
| keyword.operator.logical.python | #F494E6de | — |
| keyword.operator.minus.exponent | #CAAD09de | — |
| keyword.operator.negation.regexp | #F082DFde | — |
| keyword.operator.new | #F08282de | — |
| keyword.operator.noexcept | #09D478de | — |
| keyword.operator.or.regexp | #EE7BDCde | — |
| keyword.operator.plus.exponent | #37D208de | — |
| keyword.operator.quantifier.regexp | #F49191de | — |
| keyword.operator.sizeof | #36D307de | — |
| keyword.operator.typeid | #F18787de | — |
| keyword.operator.wordlike | #7CB9EEde | — |
| keyword.other.operator | #3ED690de | — |
| keyword.other.package.java | #3ADE09de | — |
| keyword.other.unit | #E0BF09de | — |
| keyword.other.using | #B19DF6de | — |
| markup.bold | #C9B230de | — |
| markup.changed | #F38E8Ede | — |
| markup.deleted | #F082DFde | — |
| markup.fenced_code.block.markdown | #53C930de | — |
| markup.heading | #DCBB08de | — |
| markup.inline.raw | #D0B109de | — |
| markup.inserted | #0ACA73de | — |
| markup.italic | #D0B733de | — |
| markup.raw.block.markdown | #38D709de | — |
| markup.strikethrough | #C6B6FAde | — |
| markup.underline | #C5B5FAde | — |
| meta.block.c | #62A9E6de | — |
| meta.block.c | #F8A7A7de | — |
| meta.class.java | #3ED690de | — |
| meta.definition.variable.name | #35C109de | — |
| meta.diff.header | #3CD58Ede | — |
| meta.embedded | #85BFF1de | — |
| meta.embedded.assembly | #6CAFEAde | — |
| meta.function-call.arguments.python | #CEB008de | — |
| meta.function-call.python | #F59999de | — |
| meta.member.access.python | #8CC3F3de | — |
| meta.method.java | #57D033de | — |
| meta.object-literal.key | #0AC46Dde | — |
| meta.paragraph.markdown | #F598E7de | — |
| meta.preprocessor | #C7AB0Ade | — |
| meta.preprocessor.numeric | #F69D9Dde | — |
| meta.preprocessor.string | #39D409de | — |
| meta.scope.prerequisites.makefile | #AB96F5de | — |
| meta.structure.dictionary.json.comments | #B8B8FC6e | — |
| meta.structure.dictionary.key.python | #BDABF8de | — |
| meta.structure.dictionary.value.json.comments | #B2B2FB6e | — |
| meta.template.expression | #4FB930de | — |
| meta.type.cast.expr | #F289E2de | — |
| meta.type.new.expr | #3AD809de | — |
| parameter | #F7A2A2de | — |
| punctuation.character.set.begin.regexp | #6FB2EBde | — |
| punctuation.character.set.end.regexp | #34C20Ade | — |
| punctuation.definition.array.begin.json | #5CD338de | — |
| punctuation.definition.character-class.regexp | #36CB09de | — |
| punctuation.definition.comment | #9E9EF76e | — |
| punctuation.definition.comment.json.comments | #A3A3F96e | — |
| punctuation.definition.comment.python | #9F9FF86e | — |
| punctuation.definition.dictionary.begin.json | #F38C8Cde | — |
| punctuation.definition.dictionary.end.json | #AD98F5de | — |
| punctuation.definition.group.assertion.regexp | #F8A6EBde | — |
| punctuation.definition.group.regexp | #70B2EAde | — |
| punctuation.definition.list.begin.json | #6AAEE9de | — |
| punctuation.definition.list.begin.markdown | #F69FE9de | — |
| punctuation.definition.list.begin.python | #BEACF9de | — |
| punctuation.definition.list.end.json | #62A9E6de | — |
| punctuation.definition.list.end.markdown | #F8A4EBde | — |
| punctuation.definition.list.end.python | #F59595de | — |
| punctuation.definition.parameters.begin.python | #08BD6Ade | — |
| punctuation.definition.parameters.end.bracket.round.java | #30C17Ede | — |
| punctuation.definition.quote.begin.markdown | #AD98F5de | — |
| punctuation.definition.tag | #50BB2Fde | — |
| punctuation.definition.template-expression.begin | #65D942de | — |
| punctuation.definition.template-expression.end | #8DC5F3de | — |
| punctuation.section.class.begin.bracket.curly.java | #F7A1A1de | — |
| punctuation.section.embedded | #F59898de | — |
| punctuation.section.embedded.begin.php | #BCA62Fde | — |
| punctuation.section.embedded.end.php | #09D878de | — |
| punctuation.terminator.java | #B29EF6de | — |
| source.cmake | #CDB430de | — |
| source.coffee.embedded | #38D00Ade | — |
| source.cpp | #35C20Ade | — |
| source.css.less | #08D878de | — |
| source.groovy.embedded | #C5A80Ade | — |
| source.java | #D8B809de | — |
| source.java-properties | #0AC870de | — |
| source.json.comments | #A9A9FB6e | — |
| source.makefile | #C1A508de | — |
| source.powershell | #F8A8A8de | — |
| source.powershell.variable.other.member | #34CB07de | — |
| source.python | #C5A90Ade | — |
| storage | #F9ADADde | — |
| storage.modifier | #C9AC08de | — |
| storage.modifier.import.java | #36C70Ade | — |
| storage.modifier.package.java | #F38E8Ede | — |
| storage.type | #35C70Ade | — |
| storage.type.annotation.groovy | #36CC09de | — |
| storage.type.annotation.java | #B7A4F7de | — |
| storage.type.boolean.go | #F496E6de | — |
| storage.type.byte.go | #CFB007de | — |
| storage.type.cs | #09CF73de | — |
| storage.type.error.go | #0AC56Fde | — |
| storage.type.generic.cs | #F49393de | — |
| storage.type.generic.groovy | #EE7CDDde | — |
| storage.type.generic.java | #F49393de | — |
| storage.type.groovy | #C1AB30de | — |
| storage.type.java | #C3B2FAde | — |
| storage.type.modifier.cs | #75B6EDde | — |
| storage.type.numeric.go | #82BDF0de | — |
| storage.type.object.array.groovy | #C4B4FAde | — |
| storage.type.object.array.java | #F490E4de | — |
| storage.type.parameters.groovy | #F79F9Fde | — |
| storage.type.primitive.array.groovy | #C7B7FAde | — |
| storage.type.primitive.array.java | #09CC72de | — |
| storage.type.primitive.groovy | #F49090de | — |
| storage.type.primitive.java | #CEB00Ade | — |
| storage.type.rune.go | #09DA7Ade | — |
| storage.type.string.go | #62AAE6de | — |
| storage.type.token.java | #BCA10Ade | — |
| storage.type.uintptr.go | #82BEF0de | — |
| storage.type.variable.cs | #C5A80Ade | — |
| string | #F8ACACde | — |
| string.quoted.docstring.multi.python | #B8B8FC6e | — |
| string.regexp | #30B979de | — |
| string.tag | #F289E1de | — |
| string.value | #7FBBEFde | — |
| strong | #C1AB30de | — |
| support.class | #B29EF6de | — |
| support.constant.color | #B9A6F8de | — |
| support.constant.dom | #7CB9EEde | — |
| support.constant.font-name | #F49797de | — |
| support.constant.handlebars | #38CD0Ade | — |
| support.constant.json | #ED77DAde | — |
| support.constant.math | #B7A5F8de | — |
| support.constant.media | #0AC26Dde | — |
| support.constant.media-type | #F38EE3de | — |
| support.constant.property-value | #6DB0E9de | — |
| support.function | #53C930de | — |
| support.function.git-rebase | #85BFF1de | — |
| support.other.parenthesis.regexp | #F69BE7de | — |
| support.type | #F69D9Dde | — |
| support.type.property-name | #F28989de | — |
| support.type.vendored.property-name | #6EB1EAde | — |
| support.variable | #09C570de | — |
| token.debug-token | #08D074de | — |
| token.error-token | #74B5ECde | — |
| token.info-token | #EE77DBde | — |
| token.warn-token | #53C930de | — |
| variable | #D7BF40de | — |
| variable.css | #B39FF6de | — |
| variable.language | #34C508de | — |
| variable.language.wildcard.java | #E0BD08de | — |
| variable.other.constant | #F69F9Fde | — |
| variable.other.definition.java | #30B979de | — |
| variable.other.enummember | #B8A4F7de | — |
| variable.other.less | #D0B733de | — |
| variable.other.object.java | #08D878de | — |
| variable.other.object.property.java | #68ADE8de | — |
| variable.parameter.c | #BCA9F8de | — |
| variable.parameter.function.language.python | #5CD338de | — |
| variable.parameter.java | #F38E8Ede | — |
| variable.scss | #33C108de | — |
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}!`;
}