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 | #3333146e | — |
| comment.block.html | #3434156e | — |
| comment.block.java | #3434156e | — |
| comment.block.javadoc.java | #3434156e | — |
| comment.block.powershell | #3333146e | — |
| comment.block.xml | #3434126e | — |
| comment.line.double-slash.c | #3333136e | — |
| comment.line.double-slash.cpp | #3333136e | — |
| comment.line.double-slash.java | #3333136e | — |
| comment.line.double-slash.js | #3333146e | — |
| comment.line.number-sign.makefile | #3434156e | — |
| comment.line.number-sign.python | #3434156e | — |
| comment.line.number-sign.yaml | #3333136e | — |
| comment.line.percentage.erlang | #3333136e | — |
| comment.line.powershell | #3333146e | — |
| comment.source.cmake | #3333146e | — |
| comment.source.cmakecache | #3434126e | — |
| constant.character | #3C0292de | — |
| constant.character.character-class.regexp | #133730de | — |
| constant.character.escape | #1D371Dde | — |
| constant.character.set.regexp | #5E1905de | — |
| constant.language | #5C3C33de | — |
| constant.numeric | #3E235Fde | — |
| constant.numeric.dec.python | #1D3631de | — |
| constant.other.caps.python | #125312de | — |
| constant.other.character-class.regexp | #46293Ade | — |
| constant.other.character-class.set.regexp | #492920de | — |
| constant.other.color.rgb-value | #133730de | — |
| constant.other.placeholder | #193819de | — |
| constant.other.rgb-value | #64003Ede | — |
| constant.regexp | #4B376Ade | — |
| constant.sha.git-rebase | #412C28de | — |
| emphasis | #382D49de | — |
| entity.name.class | #62053Fde | — |
| entity.name.function | #571A3Dde | — |
| entity.name.function.preprocessor | #633551de | — |
| entity.name.function.python | #113911de | — |
| entity.name.label | #2B3146de | — |
| entity.name.namespace | #133730de | — |
| entity.name.operator | #3C0094de | — |
| entity.name.operator.custom-literal | #5E1905de | — |
| entity.name.scope-resolution | #3E432Bde | — |
| entity.name.tag | #492920de | — |
| entity.name.tag.css | #06382Fde | — |
| entity.name.type | #563931de | bold |
| entity.name.variable | #013929de | — |
| entity.other.attribute | #412C28de | — |
| entity.other.attribute-name | #06382Fde | — |
| entity.other.attribute-name.class.css | #0B1E92de | — |
| entity.other.attribute-name.class.mixin.css | #5E1905de | — |
| entity.other.attribute-name.id | #2C350Dde | — |
| entity.other.attribute-name.id.css | #2D3349de | — |
| entity.other.attribute-name.parent-selector.css | #013929de | — |
| entity.other.attribute-name.pseudo-class.css | #3B2756de | — |
| entity.other.attribute-name.pseudo-element.css | #53231Bde | — |
| entity.other.attribute-name.scss | #51203Bde | — |
| entity.other.document.begin.yaml | #3333146e | — |
| entity.other.inherited-class | #563147de | — |
| header | #2C350Dde | — |
| invalid | #2B432Bde | — |
| keyword | #2F364Fde | bold |
| keyword.codetag.notation.python | #145145de | bold |
| keyword.control | #2B432Bde | bold |
| keyword.control.anchor.regexp | #5B143Fde | bold |
| keyword.control.import.python | #333C5Cde | bold |
| keyword.operator | #013929de | bold |
| keyword.operator.alignas | #5C334Cde | bold |
| keyword.operator.alignof | #411082de | bold |
| keyword.operator.cast | #46293Ade | bold |
| keyword.operator.delete | #44335Cde | bold |
| keyword.operator.documentation.powershell | #3434156e | bold |
| keyword.operator.expression | #37416Ade | bold |
| keyword.operator.instanceof | #263733de | bold |
| keyword.operator.logical.python | #5C3C33de | bold |
| keyword.operator.minus.exponent | #892209de | bold |
| keyword.operator.negation.regexp | #411B6Fde | bold |
| keyword.operator.new | #414C15de | bold |
| keyword.operator.noexcept | #1C371Cde | bold |
| keyword.operator.or.regexp | #021F92de | bold |
| keyword.operator.plus.exponent | #125144de | bold |
| keyword.operator.quantifier.regexp | #145314de | bold |
| keyword.operator.sizeof | #64003Ede | bold |
| keyword.operator.typeid | #424C17de | bold |
| keyword.operator.wordlike | #263733de | bold |
| keyword.other.operator | #125144de | bold |
| keyword.other.package.java | #3C2F4Fde | bold |
| keyword.other.unit | #3C0292de | bold |
| keyword.other.using | #0A382Ede | bold |
| markup.bold | #62053Fde | — |
| markup.changed | #3E432Bde | — |
| markup.deleted | #283D28de | — |
| markup.fenced_code.block.markdown | #432B39de | — |
| markup.heading | #2A3048de | — |
| markup.inline.raw | #892209de | — |
| markup.inserted | #193819de | — |
| markup.italic | #2A3048de | — |
| markup.raw.block.markdown | #411B6Fde | — |
| markup.strikethrough | #2E3416de | — |
| markup.underline | #411B6Fde | — |
| meta.block.c | #283D28de | — |
| meta.block.c | #49332Dde | — |
| meta.class.java | #021F92de | — |
| meta.definition.variable.name | #3C0292de | — |
| meta.diff.header | #43492Dde | — |
| meta.embedded | #6A3755de | — |
| meta.embedded.assembly | #29304Dde | — |
| meta.function-call.arguments.python | #3C0094de | — |
| meta.function-call.python | #414C15de | — |
| meta.member.access.python | #563147de | — |
| meta.method.java | #125144de | — |
| meta.object-literal.key | #2B3146de | — |
| meta.paragraph.markdown | #4F362Fde | — |
| meta.preprocessor | #2D3349de | — |
| meta.preprocessor.numeric | #542216de | — |
| meta.preprocessor.string | #2B433Ede | — |
| meta.scope.prerequisites.makefile | #313956de | — |
| meta.structure.dictionary.json.comments | #3434126e | — |
| meta.structure.dictionary.key.python | #462A23de | — |
| meta.structure.dictionary.value.json.comments | #3333136e | — |
| meta.template.expression | #571A3Dde | — |
| meta.type.cast.expr | #113911de | bold |
| meta.type.new.expr | #333C5Cde | bold |
| parameter | #414C11de | — |
| punctuation.character.set.begin.regexp | #462A23de | — |
| punctuation.character.set.end.regexp | #382D49de | — |
| punctuation.definition.array.begin.json | #51203Bde | — |
| punctuation.definition.character-class.regexp | #105145de | — |
| punctuation.definition.comment | #3434126e | — |
| punctuation.definition.comment.json.comments | #3333146e | — |
| punctuation.definition.comment.python | #3434156e | — |
| punctuation.definition.dictionary.begin.json | #412C28de | — |
| punctuation.definition.dictionary.end.json | #892209de | — |
| punctuation.definition.group.assertion.regexp | #482639de | — |
| punctuation.definition.group.regexp | #412C26de | — |
| punctuation.definition.list.begin.json | #283604de | — |
| punctuation.definition.list.begin.markdown | #424C17de | — |
| punctuation.definition.list.begin.python | #2C3505de | — |
| punctuation.definition.list.end.json | #412C26de | — |
| punctuation.definition.list.end.markdown | #063A06de | — |
| punctuation.definition.list.end.python | #333C5Cde | — |
| punctuation.definition.parameters.begin.python | #2D492Dde | — |
| punctuation.definition.parameters.end.bracket.round.java | #49332Dde | — |
| punctuation.definition.quote.begin.markdown | #37416Ade | — |
| punctuation.definition.tag | #1D3631de | — |
| punctuation.definition.template-expression.begin | #492D3Ede | — |
| punctuation.definition.template-expression.end | #462A23de | — |
| punctuation.section.class.begin.bracket.curly.java | #283D28de | — |
| punctuation.section.embedded | #44335Cde | — |
| punctuation.section.embedded.begin.php | #0B1E92de | — |
| punctuation.section.embedded.end.php | #263733de | — |
| punctuation.terminator.java | #105145de | — |
| source.cmake | #571A3Dde | — |
| source.coffee.embedded | #601604de | — |
| source.cpp | #37416Ade | — |
| source.css.less | #412C26de | — |
| source.groovy.embedded | #185045de | — |
| source.java | #2F3320de | — |
| source.java-properties | #185045de | — |
| source.json.comments | #3434156e | — |
| source.makefile | #145145de | — |
| source.powershell | #2F4F2Fde | — |
| source.powershell.variable.other.member | #145314de | — |
| source.python | #563931de | — |
| storage | #6A3755de | — |
| storage.modifier | #424C17de | — |
| storage.modifier.import.java | #473563de | — |
| storage.modifier.package.java | #542216de | — |
| storage.type | #2C350Dde | bold |
| storage.type.annotation.groovy | #2A3048de | bold |
| storage.type.annotation.java | #4F2F42de | bold |
| storage.type.boolean.go | #283604de | bold |
| storage.type.byte.go | #1D371Dde | bold |
| storage.type.cs | #263733de | bold |
| storage.type.error.go | #4C243Dde | bold |
| storage.type.generic.cs | #1D2D64de | bold |
| storage.type.generic.groovy | #892209de | bold |
| storage.type.generic.java | #382B4Dde | bold |
| storage.type.groovy | #165316de | bold |
| storage.type.java | #6A3755de | bold |
| storage.type.modifier.cs | #125312de | bold |
| storage.type.numeric.go | #392A50de | bold |
| storage.type.object.array.groovy | #1D3631de | bold |
| storage.type.object.array.java | #411082de | bold |
| storage.type.parameters.groovy | #283D28de | bold |
| storage.type.primitive.array.groovy | #3C2F4Fde | bold |
| storage.type.primitive.array.java | #2F3320de | bold |
| storage.type.primitive.groovy | #571A3Dde | bold |
| storage.type.primitive.java | #3C2F4Fde | bold |
| storage.type.rune.go | #283D28de | bold |
| storage.type.string.go | #0B1E92de | bold |
| storage.type.token.java | #6A3755de | bold |
| storage.type.uintptr.go | #6A3755de | bold |
| storage.type.variable.cs | #063A06de | bold |
| string | #411082de | — |
| string.quoted.docstring.multi.python | #3434156e | — |
| string.regexp | #0A382Ede | — |
| string.tag | #542216de | — |
| string.value | #353E63de | — |
| strong | #563147de | — |
| support.class | #0B1E92de | — |
| support.constant.color | #193819de | — |
| support.constant.dom | #2D3349de | — |
| support.constant.font-name | #333C5Cde | — |
| support.constant.handlebars | #333726de | — |
| support.constant.json | #412C28de | — |
| support.constant.math | #424C17de | — |
| support.constant.media | #133730de | — |
| support.constant.media-type | #64003Ede | bold |
| support.constant.property-value | #145145de | — |
| support.function | #62053Fde | — |
| support.function.git-rebase | #411B6Fde | — |
| support.other.parenthesis.regexp | #412C28de | — |
| support.type | #382D49de | bold |
| support.type.property-name | #2B3146de | bold |
| support.type.vendored.property-name | #021F92de | bold |
| support.variable | #482639de | — |
| token.debug-token | #462A23de | — |
| token.error-token | #263726de | — |
| token.info-token | #563147de | — |
| token.warn-token | #62053Fde | — |
| variable | #44335Cde | — |
| variable.css | #125312de | — |
| variable.language | #53231Bde | — |
| variable.language.wildcard.java | #362C48de | — |
| variable.other.constant | #6A3755de | — |
| variable.other.definition.java | #1D3631de | — |
| variable.other.enummember | #1D3631de | — |
| variable.other.less | #563931de | — |
| variable.other.object.java | #571A3Dde | — |
| variable.other.object.property.java | #53231Bde | — |
| variable.parameter.c | #53231Bde | — |
| variable.parameter.function.language.python | #0B1E92de | — |
| variable.parameter.java | #2B3146de | — |
| variable.scss | #3E432Bde | — |
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}!`;
}