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 | #EABC8E6e | — |
| comment.block.html | #E5BE8A6e | — |
| comment.block.java | #EABC8E6e | — |
| comment.block.javadoc.java | #ECBC8D6e | — |
| comment.block.powershell | #EABC8E6e | — |
| comment.block.xml | #E5BE8A6e | — |
| comment.line.double-slash.c | #E5BE8A6e | — |
| comment.line.double-slash.cpp | #ECBC8D6e | — |
| comment.line.double-slash.java | #E1BE8A6e | — |
| comment.line.double-slash.js | #EABC8E6e | — |
| comment.line.number-sign.makefile | #E1BE8A6e | — |
| comment.line.number-sign.python | #E5BE8A6e | — |
| comment.line.number-sign.yaml | #E5BE8A6e | — |
| comment.line.percentage.erlang | #EABC8E6e | — |
| comment.line.powershell | #EABC8E6e | — |
| comment.source.cmake | #EABC8E6e | — |
| comment.source.cmakecache | #E1BE8A6e | — |
| constant.character | #9E9EEEde | — |
| constant.character.character-class.regexp | #18E418de | — |
| constant.character.escape | #9E9EEDde | — |
| constant.character.set.regexp | #B7B7FEde | — |
| constant.language | #9E9EEEde | — |
| constant.numeric | #BEBEFEde | — |
| constant.numeric.dec.python | #9E9EEEde | — |
| constant.other.caps.python | #9E9EEDde | — |
| constant.other.character-class.regexp | #ACACF5de | — |
| constant.other.character-class.set.regexp | #F5ACACde | — |
| constant.other.color.rgb-value | #ED92EDde | — |
| constant.other.placeholder | #FEADADde | — |
| constant.other.rgb-value | #9F9FE9de | — |
| constant.regexp | #EB8C8Cde | — |
| constant.sha.git-rebase | #E88C8Cde | — |
| emphasis | #FEA5FEde | — |
| entity.name.class | #B9B9F8de | — |
| entity.name.function | #BEBEFEde | — |
| entity.name.function.preprocessor | #9E9EEAde | — |
| entity.name.function.python | #9F9FEBde | — |
| entity.name.label | #18E418de | — |
| entity.name.namespace | #15E415de | — |
| entity.name.operator | #F5ACF5de | — |
| entity.name.operator.custom-literal | #E68D8Dde | — |
| entity.name.scope-resolution | #E88C8Cde | — |
| entity.name.tag | #0DE30Dde | — |
| entity.name.tag.css | #E58D8Dde | — |
| entity.name.type | #18E418de | — |
| entity.name.variable | #15E315de | — |
| entity.other.attribute | #BFBFFEde | — |
| entity.other.attribute-name | #E68D8Dde | — |
| entity.other.attribute-name.class.css | #9E9EF0de | — |
| entity.other.attribute-name.class.mixin.css | #E58D8Dde | — |
| entity.other.attribute-name.id | #FEB0B0de | — |
| entity.other.attribute-name.id.css | #9E9EEAde | — |
| entity.other.attribute-name.parent-selector.css | #F5ACF5de | — |
| entity.other.attribute-name.pseudo-class.css | #EB8C8Cde | — |
| entity.other.attribute-name.pseudo-element.css | #13E413de | — |
| entity.other.attribute-name.scss | #B7B7FEde | — |
| entity.other.document.begin.yaml | #EABC8E6e | — |
| entity.other.inherited-class | #E58D8Dde | — |
| header | #FEB0B0de | — |
| invalid | #F29F9Fde | — |
| keyword | #16E316de | — |
| keyword.codetag.notation.python | #F4A5A5de | — |
| keyword.control | #FEADADde | — |
| keyword.control.anchor.regexp | #0FE30Fde | — |
| keyword.control.import.python | #B7B7FEde | — |
| keyword.operator | #16E316de | — |
| keyword.operator.alignas | #E68D8Dde | — |
| keyword.operator.alignof | #EB8CEBde | — |
| keyword.operator.cast | #FEA6FEde | — |
| keyword.operator.delete | #BEBEFEde | — |
| keyword.operator.documentation.powershell | #E5BE8A6e | — |
| keyword.operator.expression | #ACACF5de | — |
| keyword.operator.instanceof | #18E318de | — |
| keyword.operator.logical.python | #F5ACACde | — |
| keyword.operator.minus.exponent | #9E9EF0de | — |
| keyword.operator.negation.regexp | #ED9292de | — |
| keyword.operator.new | #9E9EF0de | — |
| keyword.operator.noexcept | #A5A5F4de | — |
| keyword.operator.or.regexp | #B7B7FEde | — |
| keyword.operator.plus.exponent | #ACACF5de | — |
| keyword.operator.quantifier.regexp | #9E9EEFde | — |
| keyword.operator.sizeof | #0FE30Fde | — |
| keyword.operator.typeid | #E58D8Dde | — |
| keyword.operator.wordlike | #18E318de | — |
| keyword.other.operator | #F09898de | — |
| keyword.other.package.java | #F7B3B3de | — |
| keyword.other.unit | #F29F9Fde | — |
| keyword.other.using | #B3B3F7de | — |
| markup.bold | #18E418de | — |
| markup.changed | #15E315de | — |
| markup.deleted | #9E9EF0de | — |
| markup.fenced_code.block.markdown | #9E9EEAde | — |
| markup.heading | #F4A5F4de | — |
| markup.inline.raw | #F5ACF5de | — |
| markup.inserted | #9E9EEFde | — |
| markup.italic | #BFBFFEde | — |
| markup.raw.block.markdown | #9E9EEAde | — |
| markup.strikethrough | #10E410de | — |
| markup.underline | #FEB0B0de | — |
| meta.block.c | #18E318de | — |
| meta.block.c | #16E316de | — |
| meta.class.java | #B3B3F7de | — |
| meta.definition.variable.name | #FEA6FEde | — |
| meta.diff.header | #15E415de | — |
| meta.embedded | #E68D8Dde | — |
| meta.embedded.assembly | #EB8C8Cde | — |
| meta.function-call.arguments.python | #E68D8Dde | — |
| meta.function-call.python | #15E315de | — |
| meta.member.access.python | #E68D8Dde | — |
| meta.method.java | #F09898de | — |
| meta.object-literal.key | #9F9FE9de | — |
| meta.paragraph.markdown | #9E9EEEde | — |
| meta.preprocessor | #15E415de | — |
| meta.preprocessor.numeric | #BFBFFEde | — |
| meta.preprocessor.string | #EB8C8Cde | — |
| meta.scope.prerequisites.makefile | #FEADADde | — |
| meta.structure.dictionary.json.comments | #E1BE8A6e | — |
| meta.structure.dictionary.key.python | #9F9FEBde | — |
| meta.structure.dictionary.value.json.comments | #ECBC8D6e | — |
| meta.template.expression | #F09898de | — |
| meta.type.cast.expr | #E88C8Cde | — |
| meta.type.new.expr | #EB8C8Cde | — |
| parameter | #E88C8Cde | — |
| punctuation.character.set.begin.regexp | #B9B9F8de | — |
| punctuation.character.set.end.regexp | #E88C8Cde | — |
| punctuation.definition.array.begin.json | #F4A5A5de | — |
| punctuation.definition.character-class.regexp | #B3B3F7de | — |
| punctuation.definition.comment | #E1BE8A6e | — |
| punctuation.definition.comment.json.comments | #EABC8E6e | — |
| punctuation.definition.comment.python | #E5BE8A6e | — |
| punctuation.definition.dictionary.begin.json | #9E9EEAde | — |
| punctuation.definition.dictionary.end.json | #B3B3F7de | — |
| punctuation.definition.group.assertion.regexp | #E88C8Cde | — |
| punctuation.definition.group.regexp | #FEADADde | — |
| punctuation.definition.list.begin.json | #ED92EDde | — |
| punctuation.definition.list.begin.markdown | #EB8CEBde | — |
| punctuation.definition.list.begin.python | #FEB1B1de | — |
| punctuation.definition.list.end.json | #18E418de | — |
| punctuation.definition.list.end.markdown | #ED9292de | — |
| punctuation.definition.list.end.python | #FEB1B1de | — |
| punctuation.definition.parameters.begin.python | #B3B3F7de | — |
| punctuation.definition.parameters.end.bracket.round.java | #18E418de | — |
| punctuation.definition.quote.begin.markdown | #E88C8Cde | — |
| punctuation.definition.tag | #9E9EF0de | — |
| punctuation.definition.template-expression.begin | #B7B7FEde | — |
| punctuation.definition.template-expression.end | #9E9EEEde | — |
| punctuation.section.class.begin.bracket.curly.java | #F5ACACde | — |
| punctuation.section.embedded | #9E9EF0de | — |
| punctuation.section.embedded.begin.php | #18E418de | — |
| punctuation.section.embedded.end.php | #A5A5F4de | — |
| punctuation.terminator.java | #18E418de | — |
| source.cmake | #B9B9F8de | — |
| source.coffee.embedded | #9F9FEBde | — |
| source.cpp | #16E316de | — |
| source.css.less | #ACACF5de | — |
| source.groovy.embedded | #BFBFFEde | — |
| source.java | #FEA5FEde | — |
| source.java-properties | #EB8C8Cde | — |
| source.json.comments | #ECBC8D6e | — |
| source.makefile | #F4A5F4de | — |
| source.powershell | #9E9EEAde | — |
| source.powershell.variable.other.member | #9E9EEDde | — |
| source.python | #0FE30Fde | — |
| storage | #EB8CEBde | — |
| storage.modifier | #0FE30Fde | — |
| storage.modifier.import.java | #BFBFFEde | — |
| storage.modifier.package.java | #FEA6FEde | — |
| storage.type | #9F9FEBde | — |
| storage.type.annotation.groovy | #18E418de | — |
| storage.type.annotation.java | #FEA6FEde | — |
| storage.type.boolean.go | #9E9EEDde | — |
| storage.type.byte.go | #0FE30Fde | — |
| storage.type.cs | #FEA5FEde | — |
| storage.type.error.go | #15E415de | — |
| storage.type.generic.cs | #9E9EEDde | — |
| storage.type.generic.groovy | #A5A5F4de | — |
| storage.type.generic.java | #9E9EF0de | — |
| storage.type.groovy | #FEB1B1de | — |
| storage.type.java | #FEB0B0de | — |
| storage.type.modifier.cs | #F4A5A5de | — |
| storage.type.numeric.go | #FEA5FEde | — |
| storage.type.object.array.groovy | #FEA5FEde | — |
| storage.type.object.array.java | #F4A5A5de | — |
| storage.type.parameters.groovy | #0FE30Fde | — |
| storage.type.primitive.array.groovy | #9E9EEFde | — |
| storage.type.primitive.array.java | #EB8CEBde | — |
| storage.type.primitive.groovy | #18E418de | — |
| storage.type.primitive.java | #F5ACACde | — |
| storage.type.rune.go | #9E9EEEde | — |
| storage.type.string.go | #0FE30Fde | — |
| storage.type.token.java | #E58D8Dde | — |
| storage.type.uintptr.go | #E68D8Dde | — |
| storage.type.variable.cs | #E68D8Dde | — |
| string | #B7B7FEde | — |
| string.quoted.docstring.multi.python | #E5BE8A6e | — |
| string.regexp | #18E318de | — |
| string.tag | #15E415de | — |
| string.value | #9F9FEBde | — |
| strong | #18E418de | — |
| support.class | #9F9FE9de | — |
| support.constant.color | #18E418de | — |
| support.constant.dom | #16E316de | — |
| support.constant.font-name | #B9B9F8de | — |
| support.constant.handlebars | #18E318de | — |
| support.constant.json | #FEA5FEde | — |
| support.constant.math | #9E9EF0de | — |
| support.constant.media | #B3B3F7de | — |
| support.constant.media-type | #E68D8Dde | — |
| support.constant.property-value | #9E9EEEde | — |
| support.function | #FEA5FEde | — |
| support.function.git-rebase | #18E418de | — |
| support.other.parenthesis.regexp | #FEB0B0de | — |
| support.type | #E986E9de | — |
| support.type.property-name | #F29F9Fde | — |
| support.type.vendored.property-name | #BFBFFEde | — |
| support.variable | #16E316de | — |
| token.debug-token | #F29FF2de | — |
| token.error-token | #FEB0B0de | — |
| token.info-token | #0FE30Fde | — |
| token.warn-token | #9E9EEEde | — |
| variable | #E88C8Cde | — |
| variable.css | #9E9EF0de | — |
| variable.language | #F29F9Fde | — |
| variable.language.wildcard.java | #9E9EEDde | — |
| variable.other.constant | #FEB0B0de | — |
| variable.other.definition.java | #9F9FE9de | — |
| variable.other.enummember | #9E9EEFde | — |
| variable.other.less | #18E318de | — |
| variable.other.object.java | #FEADADde | — |
| variable.other.object.property.java | #18E418de | — |
| variable.parameter.c | #A5A5F4de | — |
| variable.parameter.function.language.python | #F29F9Fde | — |
| variable.parameter.java | #15E415de | — |
| variable.scss | #A5A5F4de | — |
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}!`;
}