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 | #CCCC776e | — |
| comment.block.html | #CCCC736e | — |
| comment.block.java | #CCCC776e | — |
| comment.block.javadoc.java | #CCCC776e | — |
| comment.block.powershell | #CCCC776e | — |
| comment.block.xml | #CCCC776e | — |
| comment.line.double-slash.c | #CCCC7D6e | — |
| comment.line.double-slash.cpp | #CCCC7D6e | — |
| comment.line.double-slash.java | #CCCC736e | — |
| comment.line.double-slash.js | #CCCC776e | — |
| comment.line.number-sign.makefile | #CCCC736e | — |
| comment.line.number-sign.python | #CCCC776e | — |
| comment.line.number-sign.yaml | #CCCC776e | — |
| comment.line.percentage.erlang | #CCCC776e | — |
| comment.line.powershell | #CCCC7D6e | — |
| comment.source.cmake | #CCCC776e | — |
| comment.source.cmakecache | #CCCC736e | — |
| constant.character | #F5A2EDde | — |
| constant.character.character-class.regexp | #3EE612de | — |
| constant.character.escape | #11E57Bde | — |
| constant.character.set.regexp | #EFC318de | — |
| constant.language | #3DE613de | — |
| constant.numeric | #EDC30Ede | — |
| constant.numeric.dec.python | #9BC7F4de | — |
| constant.other.caps.python | #FEADF6de | — |
| constant.other.character-class.regexp | #EDC318de | — |
| constant.other.character-class.set.regexp | #3EE414de | — |
| constant.other.color.rgb-value | #EE87E4de | — |
| constant.other.placeholder | #14E57Cde | — |
| constant.other.rgb-value | #AE9CF4de | — |
| constant.regexp | #99CCFEde | — |
| constant.sha.git-rebase | #39E511de | — |
| emphasis | #3DE614de | — |
| entity.name.class | #BEB0F8de | — |
| entity.name.function | #3EE514de | — |
| entity.name.function.preprocessor | #EA8F8Fde | — |
| entity.name.function.python | #13E47Ade | — |
| entity.name.label | #EE8D8Dde | — |
| entity.name.namespace | #BEB0F8de | — |
| entity.name.operator | #FEB4B4de | — |
| entity.name.operator.custom-literal | #F9B7B7de | — |
| entity.name.scope-resolution | #AD9DEEde | — |
| entity.name.tag | #F8B0B0de | — |
| entity.name.tag.css | #EDC41Bde | — |
| entity.name.type | #ED8D8Dde | — |
| entity.name.variable | #3DE613de | — |
| entity.other.attribute | #EC81E1de | — |
| entity.other.attribute-name | #EDC318de | — |
| entity.other.attribute-name.class.css | #EE8D8Dde | — |
| entity.other.attribute-name.class.mixin.css | #3EE414de | — |
| entity.other.attribute-name.id | #3CE514de | — |
| entity.other.attribute-name.id.css | #AE9CF3de | — |
| entity.other.attribute-name.parent-selector.css | #13E47Ade | — |
| entity.other.attribute-name.pseudo-class.css | #F294E9de | — |
| entity.other.attribute-name.pseudo-element.css | #A2CCF5de | — |
| entity.other.attribute-name.scss | #3DE512de | — |
| entity.other.document.begin.yaml | #CCCC776e | — |
| entity.other.inherited-class | #3AE610de | — |
| header | #F29494de | — |
| invalid | #EB83E1de | — |
| keyword | #EEC319de | — |
| keyword.codetag.notation.python | #73ADE6de | — |
| keyword.control | #3AE40Ede | — |
| keyword.control.anchor.regexp | #EDC318de | — |
| keyword.control.import.python | #ED8D8Dde | — |
| keyword.operator | #A2CCF5de | — |
| keyword.operator.alignas | #8EBFF0de | — |
| keyword.operator.alignof | #FEABF6de | — |
| keyword.operator.cast | #FEADF6de | — |
| keyword.operator.delete | #AD9CF1de | — |
| keyword.operator.documentation.powershell | #CCCC776e | — |
| keyword.operator.expression | #F5A2EDde | — |
| keyword.operator.instanceof | #F5A2A2de | — |
| keyword.operator.logical.python | #EE8D8Dde | — |
| keyword.operator.minus.exponent | #EDC41Bde | — |
| keyword.operator.negation.regexp | #10E57Ade | — |
| keyword.operator.new | #F9B7B7de | — |
| keyword.operator.noexcept | #3DE513de | — |
| keyword.operator.or.regexp | #FEB5B5de | — |
| keyword.operator.plus.exponent | #EFC317de | — |
| keyword.operator.quantifier.regexp | #AE9EEDde | — |
| keyword.operator.sizeof | #F8B0F1de | — |
| keyword.operator.typeid | #CBBFFAde | — |
| keyword.operator.wordlike | #C5B7F9de | — |
| keyword.other.operator | #3CE514de | — |
| keyword.other.package.java | #AE9CF3de | — |
| keyword.other.unit | #F8B0B0de | — |
| keyword.other.using | #94C3F2de | — |
| markup.bold | #73ADE6de | — |
| markup.changed | #13E57Cde | — |
| markup.deleted | #EFC317de | — |
| markup.fenced_code.block.markdown | #EDC41Bde | — |
| markup.heading | #F8B0B0de | — |
| markup.inline.raw | #AD9DEDde | — |
| markup.inserted | #B8A9F7de | — |
| markup.italic | #EDC41Bde | — |
| markup.raw.block.markdown | #C5B7F9de | — |
| markup.strikethrough | #F8B0B0de | — |
| markup.underline | #EDC41Bde | — |
| meta.block.c | #3AE610de | — |
| meta.block.c | #F0C314de | — |
| meta.class.java | #CBBDFEde | — |
| meta.definition.variable.name | #EEC319de | — |
| meta.diff.header | #EE8D8Dde | — |
| meta.embedded | #ED8D8Dde | — |
| meta.embedded.assembly | #F49B9Bde | — |
| meta.function-call.arguments.python | #3DE613de | — |
| meta.function-call.python | #3AE610de | — |
| meta.member.access.python | #EA8F8Fde | — |
| meta.method.java | #74AEE8de | — |
| meta.object-literal.key | #F29494de | — |
| meta.paragraph.markdown | #EA8F8Fde | — |
| meta.preprocessor | #B8A9F7de | — |
| meta.preprocessor.numeric | #E985DFde | — |
| meta.preprocessor.string | #AD9DEDde | — |
| meta.scope.prerequisites.makefile | #EDC41Bde | — |
| meta.structure.dictionary.json.comments | #CCCC776e | — |
| meta.structure.dictionary.key.python | #14E47Bde | — |
| meta.structure.dictionary.value.json.comments | #CCCC776e | — |
| meta.template.expression | #3DE512de | — |
| meta.type.cast.expr | #EDC41Bde | — |
| meta.type.new.expr | #3DE614de | — |
| parameter | #0FE57Cde | — |
| punctuation.character.set.begin.regexp | #EFC317de | — |
| punctuation.character.set.end.regexp | #14E57Cde | — |
| punctuation.definition.array.begin.json | #14E47Dde | — |
| punctuation.definition.character-class.regexp | #AE9CF3de | — |
| punctuation.definition.comment | #CCCC776e | — |
| punctuation.definition.comment.json.comments | #CCCC736e | — |
| punctuation.definition.comment.python | #CCCC7D6e | — |
| punctuation.definition.dictionary.begin.json | #CBBDFEde | — |
| punctuation.definition.dictionary.end.json | #3EE414de | — |
| punctuation.definition.group.assertion.regexp | #ED8D8Dde | — |
| punctuation.definition.group.regexp | #3DE512de | — |
| punctuation.definition.list.begin.json | #F294E9de | — |
| punctuation.definition.list.begin.markdown | #87BBEEde | — |
| punctuation.definition.list.begin.python | #9ACDFDde | — |
| punctuation.definition.list.end.json | #8EBFF0de | — |
| punctuation.definition.list.end.markdown | #AE9CF4de | — |
| punctuation.definition.list.end.python | #EA83DFde | — |
| punctuation.definition.parameters.begin.python | #10E57Ade | — |
| punctuation.definition.parameters.end.bracket.round.java | #AD9CEFde | — |
| punctuation.definition.quote.begin.markdown | #12E47Cde | — |
| punctuation.definition.tag | #7AB2EAde | — |
| punctuation.definition.template-expression.begin | #EEC311de | — |
| punctuation.definition.template-expression.end | #EEC31Cde | — |
| punctuation.section.class.begin.bracket.curly.java | #EC8E8Ede | — |
| punctuation.section.embedded | #39E511de | — |
| punctuation.section.embedded.begin.php | #EB83E1de | — |
| punctuation.section.embedded.end.php | #EA8F8Fde | — |
| punctuation.terminator.java | #10E47Ade | — |
| source.cmake | #AD9DEEde | — |
| source.coffee.embedded | #F08EE6de | — |
| source.cpp | #3EE414de | — |
| source.css.less | #9ACDFDde | — |
| source.groovy.embedded | #EEC319de | — |
| source.java | #9ACCFEde | — |
| source.java-properties | #EA8F8Fde | — |
| source.json.comments | #CCCC776e | — |
| source.makefile | #81B6ECde | — |
| source.powershell | #12E57Ade | — |
| source.powershell.variable.other.member | #9ACCFEde | — |
| source.python | #AD9DEDde | — |
| storage | #0EE47Bde | — |
| storage.modifier | #F5A2A2de | — |
| storage.modifier.import.java | #EEC31Cde | — |
| storage.modifier.package.java | #12E57Ade | — |
| storage.type | #E985DFde | — |
| storage.type.annotation.groovy | #EFC317de | — |
| storage.type.annotation.java | #9ACCFEde | — |
| storage.type.boolean.go | #F5A2A2de | — |
| storage.type.byte.go | #0FE57Cde | — |
| storage.type.cs | #E985DFde | — |
| storage.type.error.go | #EFC311de | — |
| storage.type.generic.cs | #99CCFDde | — |
| storage.type.generic.groovy | #EA8F8Fde | — |
| storage.type.generic.java | #11E57Bde | — |
| storage.type.groovy | #14E47Cde | — |
| storage.type.java | #3AE40Ede | — |
| storage.type.modifier.cs | #F8B0B0de | — |
| storage.type.numeric.go | #FEADF6de | — |
| storage.type.object.array.groovy | #7AB2EAde | — |
| storage.type.object.array.java | #CBBFFAde | — |
| storage.type.parameters.groovy | #EDC417de | — |
| storage.type.primitive.array.groovy | #CBBFFAde | — |
| storage.type.primitive.array.java | #3EE514de | — |
| storage.type.primitive.groovy | #F7A9EFde | — |
| storage.type.primitive.java | #A2CCF5de | — |
| storage.type.rune.go | #B3A2F5de | — |
| storage.type.string.go | #F5A2EDde | — |
| storage.type.token.java | #F49B9Bde | — |
| storage.type.uintptr.go | #AE9CF3de | — |
| storage.type.variable.cs | #C5B7F9de | — |
| string | #F294E9de | — |
| string.quoted.docstring.multi.python | #CCCC776e | — |
| string.regexp | #AD9CF1de | — |
| string.tag | #AE9CF4de | — |
| string.value | #10E47Ade | — |
| strong | #9ACCFEde | — |
| support.class | #3DE513de | — |
| support.constant.color | #14E47Bde | — |
| support.constant.dom | #EA8F8Fde | — |
| support.constant.font-name | #3EE514de | — |
| support.constant.handlebars | #EA8F8Fde | — |
| support.constant.json | #3DE613de | — |
| support.constant.math | #14E47Cde | — |
| support.constant.media | #3DE512de | — |
| support.constant.media-type | #F7A9A9de | — |
| support.constant.property-value | #3DE512de | — |
| support.function | #13E57Cde | — |
| support.function.git-rebase | #3DE510de | — |
| support.other.parenthesis.regexp | #F49BEBde | — |
| support.type | #ED8D8Dde | — |
| support.type.property-name | #FEABF6de | — |
| support.type.vendored.property-name | #EEC319de | — |
| support.variable | #F8B0F1de | — |
| token.debug-token | #3AE610de | — |
| token.error-token | #3CE514de | — |
| token.info-token | #12E47Cde | — |
| token.warn-token | #EFC311de | — |
| variable | #FEABF6de | — |
| variable.css | #EDC30Ede | — |
| variable.language | #3FE414de | — |
| variable.language.wildcard.java | #74AEE8de | — |
| variable.other.constant | #EFC318de | — |
| variable.other.definition.java | #F294E9de | — |
| variable.other.enummember | #EEC31Ede | — |
| variable.other.less | #99CCFDde | — |
| variable.other.object.java | #EDC318de | — |
| variable.other.object.property.java | #EA8F8Fde | — |
| variable.parameter.c | #E884DDde | — |
| variable.parameter.function.language.python | #EC8E8Ede | — |
| variable.parameter.java | #AD9CF0de | — |
| variable.scss | #3CE514de | — |
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}!`;
}