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 | #7C34346e | — |
| comment.block.html | #7B36366e | — |
| comment.block.java | #7835356e | — |
| comment.block.javadoc.java | #7835356e | — |
| comment.block.powershell | #7B36366e | — |
| comment.block.xml | #7B34346e | — |
| comment.line.double-slash.c | #7C34346e | — |
| comment.line.double-slash.cpp | #7B34346e | — |
| comment.line.double-slash.java | #7B36366e | — |
| comment.line.double-slash.js | #7B36366e | — |
| comment.line.number-sign.makefile | #7B34346e | — |
| comment.line.number-sign.python | #7C34346e | — |
| comment.line.number-sign.yaml | #7B36366e | — |
| comment.line.percentage.erlang | #7835356e | — |
| comment.line.powershell | #7835356e | — |
| comment.source.cmake | #7B34346e | — |
| comment.source.cmakecache | #7C34346e | — |
| constant.character | #3F5207de | — |
| constant.character.character-class.regexp | #273BB9de | — |
| constant.character.escape | #1A5252de | — |
| constant.character.set.regexp | #3E5106de | — |
| constant.language | #85244Fde | — |
| constant.numeric | #091DB1de | — |
| constant.numeric.dec.python | #09560Ede | — |
| constant.other.caps.python | #7E350Ade | — |
| constant.other.character-class.regexp | #095252de | — |
| constant.other.character-class.set.regexp | #7805ABde | — |
| constant.other.color.rgb-value | #960644de | — |
| constant.other.placeholder | #58331Dde | — |
| constant.other.rgb-value | #5C2276de | — |
| constant.regexp | #872450de | — |
| constant.sha.git-rebase | #1A4A1Dde | — |
| emphasis | #6F3E21de | — |
| entity.name.class | #762247de | — |
| entity.name.function | #095252de | — |
| entity.name.function.preprocessor | #56216Ede | — |
| entity.name.function.python | #712693de | — |
| entity.name.label | #6E3E21de | — |
| entity.name.namespace | #333C16de | — |
| entity.name.operator | #09580Ede | — |
| entity.name.operator.custom-literal | #194B4Bde | — |
| entity.name.scope-resolution | #7E350Ade | — |
| entity.name.tag | #095454de | — |
| entity.name.tag.css | #3E5106de | — |
| entity.name.type | #703E20de | bold |
| entity.name.variable | #08570Dde | — |
| entity.other.attribute | #095454de | — |
| entity.other.attribute-name | #084C4Cde | — |
| entity.other.attribute-name.class.css | #3F5209de | — |
| entity.other.attribute-name.class.mixin.css | #163E3Ede | — |
| entity.other.attribute-name.id | #7F3509de | — |
| entity.other.attribute-name.id.css | #722694de | — |
| entity.other.attribute-name.parent-selector.css | #18431Bde | — |
| entity.other.attribute-name.pseudo-class.css | #095353de | — |
| entity.other.attribute-name.pseudo-element.css | #7708AAde | — |
| entity.other.attribute-name.scss | #08570Dde | — |
| entity.other.document.begin.yaml | #7B36366e | — |
| entity.other.inherited-class | #702593de | — |
| header | #1B5420de | — |
| invalid | #882550de | — |
| keyword | #7D350Ade | bold |
| keyword.codetag.notation.python | #672485de | bold |
| keyword.control | #074A0Bde | bold |
| keyword.control.anchor.regexp | #3E4A1Ade | bold |
| keyword.control.import.python | #803406de | bold |
| keyword.operator | #7708AAde | bold |
| keyword.operator.alignas | #2737A5de | bold |
| keyword.operator.alignof | #293BB8de | bold |
| keyword.operator.cast | #43511Bde | bold |
| keyword.operator.delete | #86234Fde | bold |
| keyword.operator.documentation.powershell | #7B34346e | bold |
| keyword.operator.expression | #09580Ede | bold |
| keyword.operator.instanceof | #6E3E21de | bold |
| keyword.operator.logical.python | #064B0Ade | bold |
| keyword.operator.minus.exponent | #7703ACde | bold |
| keyword.operator.negation.regexp | #703E21de | bold |
| keyword.operator.new | #7E350Ade | bold |
| keyword.operator.noexcept | #3F5109de | bold |
| keyword.operator.or.regexp | #813304de | bold |
| keyword.operator.plus.exponent | #940A47de | bold |
| keyword.operator.quantifier.regexp | #7E3408de | bold |
| keyword.operator.sizeof | #085353de | bold |
| keyword.operator.typeid | #424E1Ade | bold |
| keyword.operator.wordlike | #405208de | bold |
| keyword.other.operator | #08560Dde | bold |
| keyword.other.package.java | #405209de | bold |
| keyword.other.unit | #2839ADde | bold |
| keyword.other.using | #43511Bde | bold |
| markup.bold | #1C5520de | — |
| markup.changed | #7804ADde | — |
| markup.deleted | #86244Fde | — |
| markup.fenced_code.block.markdown | #071BADde | — |
| markup.heading | #950745de | — |
| markup.inline.raw | #09580Ede | — |
| markup.inserted | #960444de | — |
| markup.italic | #095353de | — |
| markup.raw.block.markdown | #672485de | — |
| markup.strikethrough | #51301Cde | — |
| markup.underline | #703E20de | — |
| meta.block.c | #6E3E21de | — |
| meta.block.c | #3F5209de | — |
| meta.class.java | #950946de | — |
| meta.definition.variable.name | #2939BCde | — |
| meta.diff.header | #424E1Ade | — |
| meta.embedded | #094C4Cde | — |
| meta.embedded.assembly | #18431Bde | — |
| meta.function-call.arguments.python | #7708ABde | — |
| meta.function-call.python | #405209de | — |
| meta.member.access.python | #095454de | — |
| meta.method.java | #384318de | — |
| meta.object-literal.key | #073F3Fde | — |
| meta.paragraph.markdown | #51301Cde | — |
| meta.preprocessor | #3F5108de | — |
| meta.preprocessor.numeric | #075050de | — |
| meta.preprocessor.string | #43511Bde | — |
| meta.scope.prerequisites.makefile | #194B4Bde | — |
| meta.structure.dictionary.json.comments | #7C34346e | — |
| meta.structure.dictionary.key.python | #872450de | — |
| meta.structure.dictionary.value.json.comments | #7C34346e | — |
| meta.template.expression | #095353de | — |
| meta.type.cast.expr | #7807ADde | bold |
| meta.type.new.expr | #184444de | bold |
| parameter | #09580Ede | — |
| punctuation.character.set.begin.regexp | #6F2692de | — |
| punctuation.character.set.end.regexp | #6F3E21de | — |
| punctuation.definition.array.begin.json | #1A4A1Dde | — |
| punctuation.definition.character-class.regexp | #722695de | — |
| punctuation.definition.comment | #7B36366e | — |
| punctuation.definition.comment.json.comments | #7B36366e | — |
| punctuation.definition.comment.python | #7B36366e | — |
| punctuation.definition.dictionary.begin.json | #095454de | — |
| punctuation.definition.dictionary.end.json | #091CA5de | — |
| punctuation.definition.group.assertion.regexp | #091DABde | — |
| punctuation.definition.group.regexp | #283AB5de | — |
| punctuation.definition.list.begin.json | #3F5109de | — |
| punctuation.definition.list.begin.markdown | #095454de | — |
| punctuation.definition.list.begin.python | #7807ADde | — |
| punctuation.definition.list.end.json | #5C2276de | — |
| punctuation.definition.list.end.markdown | #095353de | — |
| punctuation.definition.list.end.python | #722694de | — |
| punctuation.definition.parameters.begin.python | #095353de | — |
| punctuation.definition.parameters.end.bracket.round.java | #3F5109de | — |
| punctuation.definition.quote.begin.markdown | #095353de | — |
| punctuation.definition.tag | #2839BAde | — |
| punctuation.definition.template-expression.begin | #703E20de | — |
| punctuation.definition.template-expression.end | #3E5107de | — |
| punctuation.section.class.begin.bracket.curly.java | #184444de | — |
| punctuation.section.embedded | #405209de | — |
| punctuation.section.embedded.begin.php | #5F371Fde | — |
| punctuation.section.embedded.end.php | #095454de | — |
| punctuation.terminator.java | #222D76de | — |
| source.cmake | #095454de | — |
| source.coffee.embedded | #084C4Cde | — |
| source.cpp | #2839BCde | — |
| source.css.less | #7D350Ade | — |
| source.groovy.embedded | #073F3Fde | — |
| source.java | #095353de | — |
| source.java-properties | #950745de | — |
| source.json.comments | #7B34346e | — |
| source.makefile | #08570Dde | — |
| source.powershell | #7805ABde | — |
| source.powershell.variable.other.member | #872450de | — |
| source.python | #970545de | — |
| storage | #094C4Cde | — |
| storage.modifier | #7708ABde | — |
| storage.modifier.import.java | #3F5109de | — |
| storage.modifier.package.java | #283AB7de | — |
| storage.type | #095353de | bold |
| storage.type.annotation.groovy | #3F5109de | bold |
| storage.type.annotation.java | #7E350Ade | bold |
| storage.type.boolean.go | #1C5520de | bold |
| storage.type.byte.go | #095454de | bold |
| storage.type.cs | #960846de | bold |
| storage.type.error.go | #6F3E20de | bold |
| storage.type.generic.cs | #882550de | bold |
| storage.type.generic.groovy | #405209de | bold |
| storage.type.generic.java | #673B20de | bold |
| storage.type.groovy | #074A0Bde | bold |
| storage.type.java | #293BB8de | bold |
| storage.type.modifier.cs | #074A0Bde | bold |
| storage.type.numeric.go | #3E5107de | bold |
| storage.type.object.array.groovy | #091DB1de | bold |
| storage.type.object.array.java | #1B551Fde | bold |
| storage.type.parameters.groovy | #09570Ede | bold |
| storage.type.primitive.array.groovy | #3E4A1Ade | bold |
| storage.type.primitive.array.java | #950946de | bold |
| storage.type.primitive.groovy | #283AB8de | bold |
| storage.type.primitive.java | #081CACde | bold |
| storage.type.rune.go | #6E2143de | bold |
| storage.type.string.go | #384318de | bold |
| storage.type.token.java | #7709A8de | bold |
| storage.type.uintptr.go | #2737A5de | bold |
| storage.type.variable.cs | #095454de | bold |
| string | #3F5109de | — |
| string.quoted.docstring.multi.python | #7835356e | — |
| string.regexp | #960846de | — |
| string.tag | #7E3408de | — |
| string.value | #084C4Cde | — |
| strong | #2737A5de | — |
| support.class | #712693de | — |
| support.constant.color | #1B5353de | — |
| support.constant.dom | #702591de | — |
| support.constant.font-name | #950946de | — |
| support.constant.handlebars | #5F1F3Bde | — |
| support.constant.json | #702591de | — |
| support.constant.math | #073F3Fde | — |
| support.constant.media | #3F5209de | — |
| support.constant.media-type | #722694de | bold |
| support.constant.property-value | #7D234Bde | — |
| support.function | #07530Bde | — |
| support.function.git-rebase | #095353de | — |
| support.other.parenthesis.regexp | #283AB7de | — |
| support.type | #7E3408de | bold |
| support.type.property-name | #081CACde | bold |
| support.type.vendored.property-name | #58331Dde | bold |
| support.variable | #512067de | — |
| token.debug-token | #071BADde | — |
| token.error-token | #7805ABde | — |
| token.info-token | #263495de | — |
| token.warn-token | #762247de | — |
| variable | #095454de | — |
| variable.css | #094C4Cde | — |
| variable.language | #074747de | — |
| variable.language.wildcard.java | #5F371Fde | — |
| variable.other.constant | #273BB9de | — |
| variable.other.definition.java | #08560Dde | — |
| variable.other.enummember | #3F5209de | — |
| variable.other.less | #074747de | — |
| variable.other.object.java | #263495de | — |
| variable.other.object.property.java | #27369Dde | — |
| variable.parameter.c | #081CA6de | — |
| variable.parameter.function.language.python | #7F3509de | — |
| variable.parameter.java | #7F3509de | — |
| variable.scss | #6E2143de | — |
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}!`;
}