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 | #3535B86e | — |
| comment.block.html | #3737B46e | — |
| comment.block.java | #3434BF6e | — |
| comment.block.javadoc.java | #3535B86e | — |
| comment.block.powershell | #3434BF6e | — |
| comment.block.xml | #3434BF6e | — |
| comment.line.double-slash.c | #3535B86e | — |
| comment.line.double-slash.cpp | #3737B26e | — |
| comment.line.double-slash.java | #3535B86e | — |
| comment.line.double-slash.js | #3737B46e | — |
| comment.line.number-sign.makefile | #3737B46e | — |
| comment.line.number-sign.python | #3535B86e | — |
| comment.line.number-sign.yaml | #3737B26e | — |
| comment.line.percentage.erlang | #3535B86e | — |
| comment.line.powershell | #3737B26e | — |
| comment.source.cmake | #3737B26e | — |
| comment.source.cmakecache | #3737B46e | — |
| constant.character | #6505C6de | — |
| constant.character.character-class.regexp | #414E34de | — |
| constant.character.escape | #30530Fde | — |
| constant.character.set.regexp | #105532de | — |
| constant.language | #10477Fde | — |
| constant.numeric | #910A4Ede | — |
| constant.numeric.dec.python | #554636de | — |
| constant.other.caps.python | #0C3661de | — |
| constant.other.character-class.regexp | #394C5Fde | — |
| constant.other.character-class.set.regexp | #4E3A62de | — |
| constant.other.color.rgb-value | #901050de | — |
| constant.other.placeholder | #8F0F4Fde | — |
| constant.other.rgb-value | #384C5Dde | — |
| constant.regexp | #93064Bde | — |
| constant.sha.git-rebase | #31520Fde | — |
| emphasis | #0F5532de | — |
| entity.name.class | #105532de | — |
| entity.name.function | #31520Fde | — |
| entity.name.function.preprocessor | #3C352Dde | — |
| entity.name.function.python | #0F5532de | — |
| entity.name.label | #910E50de | — |
| entity.name.namespace | #6C3E11de | — |
| entity.name.operator | #643D64de | — |
| entity.name.operator.custom-literal | #6D3F11de | — |
| entity.name.scope-resolution | #831183de | — |
| entity.name.tag | #0F5532de | — |
| entity.name.tag.css | #423142de | — |
| entity.name.type | #31520Fde | bold |
| entity.name.variable | #6E3F10de | — |
| entity.other.attribute | #93064Bde | — |
| entity.other.attribute-name | #105432de | — |
| entity.other.attribute-name.class.css | #643D64de | — |
| entity.other.attribute-name.class.mixin.css | #315310de | — |
| entity.other.attribute-name.id | #0F3B66de | — |
| entity.other.attribute-name.id.css | #0D482Ade | — |
| entity.other.attribute-name.parent-selector.css | #841184de | — |
| entity.other.attribute-name.pseudo-class.css | #10375Ede | — |
| entity.other.attribute-name.pseudo-element.css | #840E84de | — |
| entity.other.attribute-name.scss | #6D3E0Fde | — |
| entity.other.document.begin.yaml | #3535B86e | — |
| entity.other.inherited-class | #841084de | bold |
| header | #315110de | — |
| invalid | #423930de | — |
| keyword | #315310de | bold |
| keyword.codetag.notation.python | #6200C3de | bold |
| keyword.control | #841184de | bold |
| keyword.control.anchor.regexp | #3C352Dde | bold |
| keyword.control.import.python | #683C52de | bold |
| keyword.operator | #673B53de | bold |
| keyword.operator.alignas | #3C352Dde | bold |
| keyword.operator.alignof | #105432de | bold |
| keyword.operator.cast | #93094Fde | bold |
| keyword.operator.delete | #423930de | bold |
| keyword.operator.documentation.powershell | #3737B26e | bold |
| keyword.operator.expression | #693C54de | bold |
| keyword.operator.instanceof | #2D353Cde | bold |
| keyword.operator.logical.python | #3D3248de | bold |
| keyword.operator.minus.exponent | #34414Ede | bold |
| keyword.operator.negation.regexp | #643D64de | bold |
| keyword.operator.new | #830E83de | bold |
| keyword.operator.noexcept | #105432de | bold |
| keyword.operator.or.regexp | #6D3E0Fde | bold |
| keyword.operator.plus.exponent | #910F50de | bold |
| keyword.operator.quantifier.regexp | #6D3F11de | bold |
| keyword.operator.sizeof | #0E3762de | bold |
| keyword.operator.typeid | #563E6Fde | bold |
| keyword.operator.wordlike | #623C62de | bold |
| keyword.other.operator | #105432de | bold |
| keyword.other.package.java | #660BC2de | bold |
| keyword.other.unit | #423039de | bold |
| keyword.other.using | #394A5Bde | bold |
| markup.bold | #103F70de | — |
| markup.changed | #6F3F0Dde | — |
| markup.deleted | #3D4832de | — |
| markup.fenced_code.block.markdown | #5B00B2de | — |
| markup.heading | #554636de | — |
| markup.inline.raw | #703D0Cde | — |
| markup.inserted | #673B53de | — |
| markup.italic | #10477Fde | — |
| markup.raw.block.markdown | #353C2Dde | — |
| markup.strikethrough | #105331de | — |
| markup.underline | #34414Ede | — |
| meta.block.c | #573F75de | — |
| meta.block.c | #6401C8de | — |
| meta.class.java | #841084de | — |
| meta.definition.variable.name | #0F5531de | — |
| meta.diff.header | #860786de | — |
| meta.embedded | #105532de | — |
| meta.embedded.assembly | #623C62de | — |
| meta.function-call.arguments.python | #0D482Ade | — |
| meta.function-call.python | #650AC1de | — |
| meta.member.access.python | #48323Dde | — |
| meta.method.java | #315310de | — |
| meta.object-literal.key | #394A5Bde | — |
| meta.paragraph.markdown | #4E3A62de | — |
| meta.preprocessor | #523C68de | — |
| meta.preprocessor.numeric | #354E40de | — |
| meta.preprocessor.string | #910A4Ede | — |
| meta.scope.prerequisites.makefile | #325310de | — |
| meta.structure.dictionary.json.comments | #3434BF6e | — |
| meta.structure.dictionary.key.python | #543854de | — |
| meta.structure.dictionary.value.json.comments | #3737B46e | — |
| meta.template.expression | #653C65de | — |
| meta.type.cast.expr | #30530Dde | — |
| meta.type.new.expr | #11457Ade | — |
| parameter | #0F3B66de | — |
| punctuation.character.set.begin.regexp | #703D0Cde | — |
| punctuation.character.set.end.regexp | #11467Bde | — |
| punctuation.definition.array.begin.json | #831183de | — |
| punctuation.definition.character-class.regexp | #840A84de | — |
| punctuation.definition.comment | #3737B46e | — |
| punctuation.definition.comment.json.comments | #3434BF6e | — |
| punctuation.definition.comment.python | #3737B46e | — |
| punctuation.definition.dictionary.begin.json | #91084Ede | — |
| punctuation.definition.dictionary.end.json | #6D3F11de | — |
| punctuation.definition.group.assertion.regexp | #623C62de | — |
| punctuation.definition.group.regexp | #404E35de | — |
| punctuation.definition.list.begin.json | #723D08de | — |
| punctuation.definition.list.begin.markdown | #5A3A5Ade | — |
| punctuation.definition.list.begin.python | #6401C8de | — |
| punctuation.definition.list.end.json | #93064Bde | — |
| punctuation.definition.list.end.markdown | #683C4Fde | — |
| punctuation.definition.list.end.python | #423930de | — |
| punctuation.definition.parameters.begin.python | #105432de | — |
| punctuation.definition.parameters.end.bracket.round.java | #463755de | — |
| punctuation.definition.quote.begin.markdown | #315310de | — |
| punctuation.definition.tag | #0F5432de | — |
| punctuation.definition.template-expression.begin | #6D3F11de | — |
| punctuation.definition.template-expression.end | #0F4228de | — |
| punctuation.section.class.begin.bracket.curly.java | #574836de | — |
| punctuation.section.embedded | #105432de | — |
| punctuation.section.embedded.begin.php | #315110de | — |
| punctuation.section.embedded.end.php | #105533de | — |
| punctuation.terminator.java | #6505C6de | — |
| source.cmake | #3D3248de | — |
| source.coffee.embedded | #660DC0de | — |
| source.cpp | #423142de | — |
| source.css.less | #93064Bde | — |
| source.groovy.embedded | #830E83de | — |
| source.java | #315310de | — |
| source.java-properties | #103F70de | — |
| source.json.comments | #3434BF6e | — |
| source.makefile | #2F530Bde | — |
| source.powershell | #414F34de | — |
| source.powershell.variable.other.member | #3B4C61de | — |
| source.python | #105432de | — |
| storage | #323D48de | — |
| storage.modifier | #2A3731de | — |
| storage.modifier.import.java | #593D74de | — |
| storage.modifier.package.java | #344E41de | — |
| storage.type | #105432de | bold |
| storage.type.annotation.groovy | #653C65de | bold |
| storage.type.annotation.java | #93064Bde | bold |
| storage.type.boolean.go | #2D353Cde | bold |
| storage.type.byte.go | #8F0F4Fde | bold |
| storage.type.cs | #6D3E0Fde | bold |
| storage.type.error.go | #660BC2de | bold |
| storage.type.generic.cs | #840A84de | bold |
| storage.type.generic.groovy | #574638de | bold |
| storage.type.generic.java | #6F3F0Dde | bold |
| storage.type.groovy | #6E3F10de | bold |
| storage.type.java | #414E34de | bold |
| storage.type.modifier.cs | #573F75de | bold |
| storage.type.numeric.go | #6E3F0Ede | bold |
| storage.type.object.array.groovy | #32483Dde | bold |
| storage.type.object.array.java | #315210de | bold |
| storage.type.parameters.groovy | #831183de | bold |
| storage.type.primitive.array.groovy | #483D32de | bold |
| storage.type.primitive.array.java | #303942de | bold |
| storage.type.primitive.groovy | #414F34de | bold |
| storage.type.primitive.java | #6D3F11de | bold |
| storage.type.rune.go | #34414Ede | bold |
| storage.type.string.go | #653C65de | bold |
| storage.type.token.java | #6E3F0Ede | bold |
| storage.type.uintptr.go | #315110de | bold |
| storage.type.variable.cs | #860786de | bold |
| string | #6E3F10de | — |
| string.quoted.docstring.multi.python | #3737B26e | — |
| string.regexp | #5B3E75de | — |
| string.tag | #30530Fde | — |
| string.value | #673B53de | — |
| strong | #593D74de | — |
| support.class | #315210de | — |
| support.constant.color | #0D3762de | — |
| support.constant.dom | #11467Bde | — |
| support.constant.font-name | #30530Cde | — |
| support.constant.handlebars | #920C4Ede | — |
| support.constant.json | #613C61de | — |
| support.constant.math | #8E1050de | — |
| support.constant.media | #3D4832de | — |
| support.constant.media-type | #6E3E10de | — |
| support.constant.property-value | #6E3E10de | — |
| support.function | #315110de | — |
| support.function.git-rebase | #6C3E11de | — |
| support.other.parenthesis.regexp | #113B66de | — |
| support.type | #30530Dde | bold |
| support.type.property-name | #315210de | bold |
| support.type.vendored.property-name | #10457Ade | bold |
| support.variable | #543854de | — |
| token.debug-token | #574638de | — |
| token.error-token | #554637de | — |
| token.info-token | #713D09de | — |
| token.warn-token | #48323Dde | — |
| variable | #554636de | — |
| variable.css | #574638de | — |
| variable.language | #830E83de | — |
| variable.language.wildcard.java | #6F3F0Dde | — |
| variable.other.constant | #0E3762de | — |
| variable.other.definition.java | #830E83de | — |
| variable.other.enummember | #374655de | — |
| variable.other.less | #4E364Ede | — |
| variable.other.object.java | #394A5Bde | — |
| variable.other.object.property.java | #840D84de | — |
| variable.parameter.c | #374655de | — |
| variable.parameter.function.language.python | #6303C6de | — |
| variable.parameter.java | #3C352Dde | — |
| variable.scss | #105532de | — |
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}!`;
}