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 | #5050286e | — |
| comment.block.html | #5050286e | — |
| comment.block.java | #5050266e | — |
| comment.block.javadoc.java | #5050286e | — |
| comment.block.powershell | #4D4D246e | — |
| comment.block.xml | #5050266e | — |
| comment.line.double-slash.c | #4D4D246e | — |
| comment.line.double-slash.cpp | #4D4D276e | — |
| comment.line.double-slash.java | #4D4D246e | — |
| comment.line.double-slash.js | #5050266e | — |
| comment.line.number-sign.makefile | #4D4D276e | — |
| comment.line.number-sign.python | #5050286e | — |
| comment.line.number-sign.yaml | #5050286e | — |
| comment.line.percentage.erlang | #5050286e | — |
| comment.line.powershell | #5050266e | — |
| comment.source.cmake | #5050266e | — |
| comment.source.cmakecache | #4D4D246e | — |
| constant.character | #4D276Ede | — |
| constant.character.character-class.regexp | #0B319Bde | — |
| constant.character.escape | #4B5221de | — |
| constant.character.set.regexp | #6C2DA4de | — |
| constant.language | #1F4B42de | — |
| constant.numeric | #215248de | — |
| constant.numeric.dec.python | #235923de | — |
| constant.other.caps.python | #48520Bde | — |
| constant.other.character-class.regexp | #0B319Bde | — |
| constant.other.character-class.set.regexp | #084E08de | — |
| constant.other.color.rgb-value | #97085Ede | — |
| constant.other.placeholder | #0B35A9de | — |
| constant.other.rgb-value | #49520Bde | — |
| constant.regexp | #49520Bde | — |
| constant.sha.git-rebase | #4B5120de | — |
| emphasis | #6E08C6de | — |
| entity.name.class | #084E08de | — |
| entity.name.function | #0B5A0Bde | — |
| entity.name.function.preprocessor | #215221de | — |
| entity.name.function.python | #942307de | — |
| entity.name.label | #0B32A1de | — |
| entity.name.namespace | #0B5B0Bde | — |
| entity.name.operator | #93260Ade | — |
| entity.name.operator.custom-literal | #93260Ade | — |
| entity.name.scope-resolution | #4D276Ede | — |
| entity.name.tag | #092F95de | — |
| entity.name.tag.css | #2C4A97de | — |
| entity.name.type | #0A5C0Ade | bold |
| entity.name.variable | #0B5748de | — |
| entity.other.attribute | #582D23de | — |
| entity.other.attribute-name | #49520Ade | — |
| entity.other.attribute-name.class.css | #084E41de | — |
| entity.other.attribute-name.class.mixin.css | #49530Bde | — |
| entity.other.attribute-name.id | #2C4999de | — |
| entity.other.attribute-name.id.css | #2C4999de | — |
| entity.other.attribute-name.parent-selector.css | #08463Ade | — |
| entity.other.attribute-name.pseudo-class.css | #2C4893de | — |
| entity.other.attribute-name.pseudo-element.css | #97085Ede | — |
| entity.other.attribute-name.scss | #872A61de | — |
| entity.other.document.begin.yaml | #4D4D246e | — |
| entity.other.inherited-class | #0B5848de | bold |
| header | #842A62de | — |
| invalid | #235823de | — |
| keyword | #2C4A97de | bold |
| keyword.codetag.notation.python | #393E1Bde | bold |
| keyword.control | #0B5042de | bold |
| keyword.control.anchor.regexp | #1F4B1Fde | bold |
| keyword.control.import.python | #7C3A2Ade | bold |
| keyword.operator | #0A590Ade | bold |
| keyword.operator.alignas | #980A60de | bold |
| keyword.operator.alignof | #91260Bde | bold |
| keyword.operator.cast | #094C3Fde | bold |
| keyword.operator.delete | #0A594Ade | bold |
| keyword.operator.documentation.powershell | #5050286e | bold |
| keyword.operator.expression | #0A319Dde | bold |
| keyword.operator.instanceof | #582D23de | bold |
| keyword.operator.logical.python | #6E02CBde | bold |
| keyword.operator.minus.exponent | #7C3A2Ade | bold |
| keyword.operator.negation.regexp | #0B5A0Bde | bold |
| keyword.operator.new | #273A6Ede | bold |
| keyword.operator.noexcept | #6E3527de | bold |
| keyword.operator.or.regexp | #0A5849de | bold |
| keyword.operator.plus.exponent | #673326de | bold |
| keyword.operator.quantifier.regexp | #0A5949de | bold |
| keyword.operator.sizeof | #485206de | bold |
| keyword.operator.typeid | #283D75de | bold |
| keyword.operator.wordlike | #0B5748de | bold |
| keyword.other.operator | #0A5849de | bold |
| keyword.other.package.java | #0B5849de | bold |
| keyword.other.unit | #7F3A29de | bold |
| keyword.other.using | #6E03CCde | bold |
| markup.bold | #4B5120de | — |
| markup.changed | #0B5A0Bde | — |
| markup.deleted | #7C3A2Ade | — |
| markup.fenced_code.block.markdown | #0B2E90de | — |
| markup.heading | #970B5Fde | — |
| markup.inline.raw | #4B5221de | — |
| markup.inserted | #263767de | — |
| markup.italic | #2C4996de | — |
| markup.raw.block.markdown | #4A530Bde | — |
| markup.strikethrough | #6C2DA1de | — |
| markup.underline | #6E02CBde | — |
| meta.block.c | #0B319Bde | — |
| meta.block.c | #273A6Ede | — |
| meta.class.java | #0B35A9de | — |
| meta.definition.variable.name | #215221de | — |
| meta.diff.header | #0B5849de | — |
| meta.embedded | #5F2C8Cde | — |
| meta.embedded.assembly | #49530Ade | — |
| meta.function-call.arguments.python | #91260Bde | — |
| meta.function-call.python | #235923de | — |
| meta.member.access.python | #93260Bde | — |
| meta.method.java | #972204de | — |
| meta.object-literal.key | #0B5849de | — |
| meta.paragraph.markdown | #235823de | — |
| meta.preprocessor | #2C4997de | — |
| meta.preprocessor.numeric | #1D441Dde | — |
| meta.preprocessor.string | #235823de | — |
| meta.scope.prerequisites.makefile | #6E03CCde | — |
| meta.structure.dictionary.json.comments | #5050266e | — |
| meta.structure.dictionary.key.python | #2C458Cde | — |
| meta.structure.dictionary.value.json.comments | #5050266e | — |
| meta.template.expression | #6C2DA3de | — |
| meta.type.cast.expr | #0B5A0Bde | — |
| meta.type.new.expr | #094C09de | — |
| parameter | #0A590Ade | — |
| punctuation.character.set.begin.regexp | #872A61de | — |
| punctuation.character.set.end.regexp | #2A407Cde | — |
| punctuation.definition.array.begin.json | #673326de | — |
| punctuation.definition.character-class.regexp | #0B5A0Bde | — |
| punctuation.definition.comment | #5050286e | — |
| punctuation.definition.comment.json.comments | #5050266e | — |
| punctuation.definition.comment.python | #4D4D246e | — |
| punctuation.definition.dictionary.begin.json | #1F4B42de | — |
| punctuation.definition.dictionary.end.json | #49520Bde | — |
| punctuation.definition.group.assertion.regexp | #4A530Bde | — |
| punctuation.definition.group.regexp | #283D75de | — |
| punctuation.definition.list.begin.json | #7F3A29de | — |
| punctuation.definition.list.begin.markdown | #0B5849de | — |
| punctuation.definition.list.begin.python | #0A590Ade | — |
| punctuation.definition.list.end.json | #93260Ade | — |
| punctuation.definition.list.end.markdown | #4A530Ade | — |
| punctuation.definition.list.end.python | #48520Ade | — |
| punctuation.definition.parameters.begin.python | #952509de | — |
| punctuation.definition.parameters.end.bracket.round.java | #0B5B0Bde | — |
| punctuation.definition.quote.begin.markdown | #6C2DA3de | — |
| punctuation.definition.tag | #49520Ade | — |
| punctuation.definition.template-expression.begin | #98085Ede | — |
| punctuation.definition.template-expression.end | #7C3A29de | — |
| punctuation.section.class.begin.bracket.curly.java | #7F3A29de | — |
| punctuation.section.embedded | #0A2E91de | — |
| punctuation.section.embedded.begin.php | #1D443Cde | — |
| punctuation.section.embedded.end.php | #2B4284de | — |
| punctuation.terminator.java | #4B5221de | — |
| source.cmake | #0B5849de | — |
| source.coffee.embedded | #0A319Dde | — |
| source.cpp | #970B5Fde | — |
| source.css.less | #95250Ade | — |
| source.groovy.embedded | #3F441Dde | — |
| source.java | #97085Ede | — |
| source.java-properties | #942408de | — |
| source.json.comments | #4D4D276e | — |
| source.makefile | #980A5Ede | — |
| source.powershell | #2C4893de | — |
| source.powershell.variable.other.member | #96095Ede | — |
| source.python | #562A7Cde | — |
| storage | #4D276Ede | — |
| storage.modifier | #08463Ade | — |
| storage.modifier.import.java | #6C2DA1de | — |
| storage.modifier.package.java | #7C2A5Bde | — |
| storage.type | #0B5A0Bde | bold |
| storage.type.annotation.groovy | #7C2A5Bde | bold |
| storage.type.annotation.java | #0B5849de | bold |
| storage.type.boolean.go | #0B32A1de | bold |
| storage.type.byte.go | #6E06C9de | bold |
| storage.type.cs | #98075Ede | bold |
| storage.type.error.go | #0B500Bde | bold |
| storage.type.generic.cs | #7C2A5Bde | bold |
| storage.type.generic.groovy | #6E08C6de | bold |
| storage.type.generic.java | #7C3A2Ade | bold |
| storage.type.groovy | #6C2DA3de | bold |
| storage.type.java | #96095Ede | bold |
| storage.type.modifier.cs | #094C3Fde | bold |
| storage.type.numeric.go | #49530Ade | bold |
| storage.type.object.array.groovy | #273A6Ede | bold |
| storage.type.object.array.java | #0A5C0Ade | bold |
| storage.type.parameters.groovy | #950B5Ede | bold |
| storage.type.primitive.array.groovy | #235923de | bold |
| storage.type.primitive.array.java | #980A5Fde | bold |
| storage.type.primitive.groovy | #91260Bde | bold |
| storage.type.primitive.java | #495207de | bold |
| storage.type.rune.go | #0B33A3de | bold |
| storage.type.string.go | #0B5848de | bold |
| storage.type.token.java | #0B5B0Bde | bold |
| storage.type.uintptr.go | #7F3A29de | bold |
| storage.type.variable.cs | #7C3A29de | bold |
| string | #0A594Ade | — |
| string.quoted.docstring.multi.python | #5050286e | — |
| string.regexp | #094C09de | — |
| string.tag | #970B5Fde | — |
| string.value | #0B5848de | — |
| strong | #962205de | — |
| support.class | #2C499Dde | — |
| support.constant.color | #215248de | — |
| support.constant.dom | #4B5120de | — |
| support.constant.font-name | #0A5C0Ade | — |
| support.constant.handlebars | #95250Ade | — |
| support.constant.json | #1F4B1Fde | — |
| support.constant.math | #2B4284de | — |
| support.constant.media | #0A2E91de | — |
| support.constant.media-type | #1F4B1Fde | — |
| support.constant.property-value | #96095Ede | — |
| support.function | #5F2448de | — |
| support.function.git-rebase | #952509de | — |
| support.other.parenthesis.regexp | #2C499Dde | — |
| support.type | #0B5849de | bold |
| support.type.property-name | #0B540Bde | bold |
| support.type.vendored.property-name | #1B3E37de | bold |
| support.variable | #2C458Cde | — |
| token.debug-token | #952509de | — |
| token.error-token | #952509de | — |
| token.info-token | #49530Bde | — |
| token.warn-token | #970B5Fde | — |
| variable | #95250Ade | — |
| variable.css | #0B5A0Bde | — |
| variable.language | #2C4A97de | — |
| variable.language.wildcard.java | #0A3098de | — |
| variable.other.constant | #0B5A0Bde | — |
| variable.other.definition.java | #49520Ade | — |
| variable.other.enummember | #2C4999de | — |
| variable.other.less | #753828de | — |
| variable.other.object.java | #0B5446de | — |
| variable.other.object.property.java | #952509de | — |
| variable.parameter.c | #0B32A1de | — |
| variable.parameter.function.language.python | #4A530Bde | — |
| variable.parameter.java | #2C4A97de | — |
| variable.scss | #962306de | — |
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}!`;
}