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 | #9999F96e | — |
| comment.block.html | #9999F96e | — |
| comment.block.java | #9B9BF86e | — |
| comment.block.javadoc.java | #9898F86e | — |
| comment.block.powershell | #9999F96e | — |
| comment.block.xml | #9999F96e | — |
| comment.line.double-slash.c | #9B9BF86e | — |
| comment.line.double-slash.cpp | #9898F86e | — |
| comment.line.double-slash.java | #9A9AF76e | — |
| comment.line.double-slash.js | #9898F86e | — |
| comment.line.number-sign.makefile | #9898F86e | — |
| comment.line.number-sign.python | #9A9AF76e | — |
| comment.line.number-sign.yaml | #9999F96e | — |
| comment.line.percentage.erlang | #9898F86e | — |
| comment.line.powershell | #9898F86e | — |
| comment.source.cmake | #9898F86e | — |
| comment.source.cmakecache | #9B9BF86e | — |
| constant.character | #2DBD08de | — |
| constant.character.character-class.regexp | #EE7ACFde | — |
| constant.character.escape | #4BBC2Fde | — |
| constant.character.set.regexp | #09CE80de | — |
| constant.language | #EE7ACFde | — |
| constant.numeric | #EE78CEde | — |
| constant.numeric.dec.python | #58D439de | — |
| constant.other.caps.python | #EF847Dde | — |
| constant.other.character-class.regexp | #EF847Cde | — |
| constant.other.character-class.set.regexp | #BBA30Ade | — |
| constant.other.color.rgb-value | #EF857Dde | — |
| constant.other.placeholder | #B291F4de | — |
| constant.other.rgb-value | #2EB881de | — |
| constant.regexp | #08B972de | — |
| constant.sha.git-rebase | #07DA85de | — |
| emphasis | #09BA73de | — |
| entity.name.class | #EF837Bde | — |
| entity.name.function | #EF847Dde | — |
| entity.name.function.preprocessor | #09CB7Ede | — |
| entity.name.function.python | #B5A42Fde | — |
| entity.name.label | #2DBC09de | — |
| entity.name.namespace | #07BB72de | — |
| entity.name.operator | #4FCC2Fde | — |
| entity.name.operator.custom-literal | #EF847Cde | — |
| entity.name.scope-resolution | #A2A2A2de | — |
| entity.name.tag | #EF847Cde | — |
| entity.name.tag.css | #2FB881de | — |
| entity.name.type | #B291F3de | — |
| entity.name.variable | #B291F3de | — |
| entity.other.attribute | #B3B3B3de | — |
| entity.other.attribute-name | #B291F3de | — |
| entity.other.attribute-name.class.css | #2DBD09de | — |
| entity.other.attribute-name.class.mixin.css | #EE79CEde | — |
| entity.other.attribute-name.id | #B9A20Ade | — |
| entity.other.attribute-name.id.css | #EF847Dde | — |
| entity.other.attribute-name.parent-selector.css | #B9A20Ade | — |
| entity.other.attribute-name.pseudo-class.css | #09CB7Ede | — |
| entity.other.attribute-name.pseudo-element.css | #B9A20Ade | — |
| entity.other.attribute-name.scss | #EF857Dde | — |
| entity.other.document.begin.yaml | #9B9BF86e | — |
| entity.other.inherited-class | #08D986de | — |
| header | #EE79CFde | — |
| invalid | #EE847Cde | — |
| keyword | #EE7ACFde | — |
| keyword.codetag.notation.python | #EF837Cde | — |
| keyword.control | #EF847Cde | — |
| keyword.control.anchor.regexp | #EE79CFde | — |
| keyword.control.import.python | #EE79CFde | — |
| keyword.operator | #B6A42Fde | — |
| keyword.operator.alignas | #2EB881de | — |
| keyword.operator.alignof | #B291F4de | — |
| keyword.operator.cast | #BCA409de | — |
| keyword.operator.delete | #EF847Cde | — |
| keyword.operator.documentation.powershell | #9999F96e | — |
| keyword.operator.expression | #2DBC09de | — |
| keyword.operator.instanceof | #AEAEAEde | — |
| keyword.operator.logical.python | #EE847Cde | — |
| keyword.operator.minus.exponent | #4AB82Ede | — |
| keyword.operator.negation.regexp | #EF847Cde | — |
| keyword.operator.new | #53D133de | — |
| keyword.operator.noexcept | #2EB881de | — |
| keyword.operator.or.regexp | #BBA30Ade | — |
| keyword.operator.plus.exponent | #B392F4de | — |
| keyword.operator.quantifier.regexp | #07BB72de | — |
| keyword.operator.sizeof | #2DBD08de | — |
| keyword.operator.typeid | #07DA85de | — |
| keyword.operator.wordlike | #B798F5de | — |
| keyword.other.operator | #09CC7Ede | — |
| keyword.other.package.java | #BAA30Ade | — |
| keyword.other.unit | #58D439de | — |
| keyword.other.using | #A3A3A3de | — |
| markup.bold | #A3A3A3de | — |
| markup.changed | #09CF81de | — |
| markup.deleted | #2EBE0Ade | — |
| markup.fenced_code.block.markdown | #F8ACA7de | — |
| markup.heading | #C0C0C0de | — |
| markup.inline.raw | #B291F4de | — |
| markup.inserted | #A2A2A2de | — |
| markup.italic | #2DBB09de | — |
| markup.raw.block.markdown | #2EBE0Ade | — |
| markup.strikethrough | #09CE80de | — |
| markup.underline | #EF857Dde | — |
| meta.block.c | #BD9FF7de | — |
| meta.block.c | #2EBE0Ade | — |
| meta.class.java | #F28AD7de | — |
| meta.definition.variable.name | #4AB92Fde | — |
| meta.diff.header | #B191F4de | — |
| meta.embedded | #F2918Ade | — |
| meta.embedded.assembly | #EE79CFde | — |
| meta.function-call.arguments.python | #08DA86de | — |
| meta.function-call.python | #EF7CD0de | — |
| meta.member.access.python | #EE79CFde | — |
| meta.method.java | #EE79CFde | — |
| meta.object-literal.key | #EF847Cde | — |
| meta.paragraph.markdown | #B291F4de | — |
| meta.preprocessor | #B291F4de | — |
| meta.preprocessor.numeric | #BAA309de | — |
| meta.preprocessor.string | #2FB881de | — |
| meta.scope.prerequisites.makefile | #2EB881de | — |
| meta.structure.dictionary.json.comments | #9898F86e | — |
| meta.structure.dictionary.key.python | #B6A42Fde | — |
| meta.structure.dictionary.value.json.comments | #9898F86e | — |
| meta.template.expression | #B392F4de | — |
| meta.type.cast.expr | #EF847Cde | — |
| meta.type.new.expr | #EE79CEde | — |
| parameter | #B291F4de | — |
| punctuation.character.set.begin.regexp | #39D496de | — |
| punctuation.character.set.end.regexp | #2FCC8Ede | — |
| punctuation.definition.array.begin.json | #D4BF39de | — |
| punctuation.definition.character-class.regexp | #EE79CFde | — |
| punctuation.definition.comment | #9A9AF76e | — |
| punctuation.definition.comment.json.comments | #9999F96e | — |
| punctuation.definition.comment.python | #9A9AF76e | — |
| punctuation.definition.dictionary.begin.json | #BCA409de | — |
| punctuation.definition.dictionary.end.json | #B291F4de | — |
| punctuation.definition.group.assertion.regexp | #58D439de | — |
| punctuation.definition.group.regexp | #B392F4de | — |
| punctuation.definition.list.begin.json | #EF857Dde | — |
| punctuation.definition.list.begin.markdown | #4AB82Fde | — |
| punctuation.definition.list.begin.python | #A2A2A2de | — |
| punctuation.definition.list.end.json | #09BC75de | — |
| punctuation.definition.list.end.markdown | #B392F4de | — |
| punctuation.definition.list.end.python | #EF847Cde | — |
| punctuation.definition.parameters.begin.python | #EF847Cde | — |
| punctuation.definition.parameters.end.bracket.round.java | #2DBD09de | — |
| punctuation.definition.quote.begin.markdown | #EF7CD0de | — |
| punctuation.definition.tag | #39D496de | — |
| punctuation.definition.template-expression.begin | #EE79CFde | — |
| punctuation.definition.template-expression.end | #EF847Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #B7B7B7de | — |
| punctuation.section.embedded | #F491DAde | — |
| punctuation.section.embedded.begin.php | #EE847Cde | — |
| punctuation.section.embedded.end.php | #B5A42Fde | — |
| punctuation.terminator.java | #BBA309de | — |
| source.cmake | #58D439de | — |
| source.coffee.embedded | #2DBB0Ade | — |
| source.cpp | #EE79CEde | — |
| source.css.less | #B798F5de | — |
| source.groovy.embedded | #EE7ACFde | — |
| source.java | #A2A2A2de | — |
| source.java-properties | #BBA40Ade | — |
| source.json.comments | #9A9AF76e | — |
| source.makefile | #B291F4de | — |
| source.powershell | #5DD73Ede | — |
| source.powershell.variable.other.member | #B392F4de | — |
| source.python | #2DBC0Ade | — |
| storage | #B191F4de | — |
| storage.modifier | #B291F4de | — |
| storage.modifier.import.java | #07DA85de | — |
| storage.modifier.package.java | #A2A2A2de | — |
| storage.type | #2FB881de | — |
| storage.type.annotation.groovy | #2EBC0Ade | — |
| storage.type.annotation.java | #4BBC2Fde | — |
| storage.type.boolean.go | #A3A3A3de | — |
| storage.type.byte.go | #BCA40Ade | — |
| storage.type.cs | #D4BF39de | — |
| storage.type.error.go | #A2A2A2de | — |
| storage.type.generic.cs | #A2A2A2de | — |
| storage.type.generic.groovy | #2DBC09de | — |
| storage.type.generic.java | #A2A2A2de | — |
| storage.type.groovy | #B292F4de | — |
| storage.type.java | #B291F4de | — |
| storage.type.modifier.cs | #AAAAAAde | — |
| storage.type.numeric.go | #B291F3de | — |
| storage.type.object.array.groovy | #A3A3A3de | — |
| storage.type.object.array.java | #B191F4de | — |
| storage.type.parameters.groovy | #B292F4de | — |
| storage.type.primitive.array.groovy | #2EBE0Ade | — |
| storage.type.primitive.array.java | #B5A42Fde | — |
| storage.type.primitive.groovy | #B5A42Fde | — |
| storage.type.primitive.java | #4AB92Fde | — |
| storage.type.rune.go | #F183D3de | — |
| storage.type.string.go | #2EBD0Ade | — |
| storage.type.token.java | #EF837Cde | — |
| storage.type.uintptr.go | #A2A2A2de | — |
| storage.type.variable.cs | #07BB72de | — |
| string | #BCA409de | — |
| string.quoted.docstring.multi.python | #9A9AF76e | — |
| string.regexp | #EE7ACFde | — |
| string.tag | #EE79CFde | — |
| string.value | #B392F4de | — |
| strong | #B9A20Ade | — |
| support.class | #EE7ACFde | — |
| support.constant.color | #BD9FF7de | — |
| support.constant.dom | #07BB73de | — |
| support.constant.font-name | #B392F4de | — |
| support.constant.handlebars | #B292F4de | — |
| support.constant.json | #5DD73Ede | — |
| support.constant.math | #B6A42Fde | — |
| support.constant.media | #A3A3A3de | — |
| support.constant.media-type | #07BB73de | — |
| support.constant.property-value | #39D496de | — |
| support.function | #BCA92Fde | — |
| support.function.git-rebase | #EF847Cde | — |
| support.other.parenthesis.regexp | #A2A2A2de | — |
| support.type | #08B972de | — |
| support.type.property-name | #09BC75de | — |
| support.type.vendored.property-name | #B3B3B3de | — |
| support.variable | #EE79CFde | — |
| token.debug-token | #4FCC2Fde | — |
| token.error-token | #2FB982de | — |
| token.info-token | #BBA40Ade | — |
| token.warn-token | #A2A2A2de | — |
| variable | #F59E98de | — |
| variable.css | #4AB82Ede | — |
| variable.language | #F18A83de | — |
| variable.language.wildcard.java | #EF837Cde | — |
| variable.other.constant | #A2A2A2de | — |
| variable.other.definition.java | #BCA409de | — |
| variable.other.enummember | #09CF81de | — |
| variable.other.less | #EE79CEde | — |
| variable.other.object.java | #08B972de | — |
| variable.other.object.property.java | #F491DAde | — |
| variable.parameter.c | #BCA409de | — |
| variable.parameter.function.language.python | #F491DAde | — |
| variable.parameter.java | #2EBE0Ade | — |
| variable.scss | #08D180de | — |
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}!`;
}