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 | #FAAEAE6e | — |
| comment.block.html | #F6AEAE6e | — |
| comment.block.java | #F6AEAE6e | — |
| comment.block.javadoc.java | #F6AEAE6e | — |
| comment.block.powershell | #F5AEAE6e | — |
| comment.block.xml | #F5AEAE6e | — |
| comment.line.double-slash.c | #F8ADAD6e | — |
| comment.line.double-slash.cpp | #F6AEAE6e | — |
| comment.line.double-slash.java | #F6AEAE6e | — |
| comment.line.double-slash.js | #FAAEAE6e | — |
| comment.line.number-sign.makefile | #F5AEAE6e | — |
| comment.line.number-sign.python | #FAAEAE6e | — |
| comment.line.number-sign.yaml | #FAAEAE6e | — |
| comment.line.percentage.erlang | #F8ADAD6e | — |
| comment.line.powershell | #F5AEAE6e | — |
| comment.source.cmake | #F5AEAE6e | — |
| comment.source.cmakecache | #FAAEAE6e | — |
| constant.character | #86C7FEde | — |
| constant.character.character-class.regexp | #EF7BD8de | — |
| constant.character.escape | #E8BC0Ede | — |
| constant.character.set.regexp | #7BB9EFde | — |
| constant.language | #7BB9EFde | — |
| constant.numeric | #66ACEAde | — |
| constant.numeric.dec.python | #C2ADF9de | — |
| constant.other.caps.python | #0BDD7Ade | — |
| constant.other.character-class.regexp | #E8BC0Fde | — |
| constant.other.character-class.set.regexp | #AD95F2de | — |
| constant.other.color.rgb-value | #46DD10de | — |
| constant.other.placeholder | #88C7FDde | — |
| constant.other.rgb-value | #F49090de | — |
| constant.regexp | #FEA3ECde | — |
| constant.sha.git-rebase | #46DE0Ede | — |
| emphasis | #FEA3ECde | — |
| entity.name.class | #F9ADADde | — |
| entity.name.function | #89C7FDde | — |
| entity.name.function.preprocessor | #46DE10de | — |
| entity.name.function.python | #E7BC0Ede | — |
| entity.name.label | #88C7FDde | — |
| entity.name.namespace | #F69797de | — |
| entity.name.operator | #C7B5FAde | — |
| entity.name.operator.custom-literal | #E9BC0Dde | — |
| entity.name.scope-resolution | #E7BC10de | — |
| entity.name.tag | #AC93F4de | — |
| entity.name.tag.css | #0FDD7Bde | — |
| entity.name.type | #E6BC0Cde | — |
| entity.name.variable | #C9B6FEde | — |
| entity.other.attribute | #89C7FDde | — |
| entity.other.attribute-name | #AD93F4de | — |
| entity.other.attribute-name.class.css | #E8BC0Fde | — |
| entity.other.attribute-name.class.mixin.css | #8AC7FEde | — |
| entity.other.attribute-name.id | #AD93F2de | — |
| entity.other.attribute-name.id.css | #E8BC0Ede | — |
| entity.other.attribute-name.parent-selector.css | #E7BC0Ede | — |
| entity.other.attribute-name.pseudo-class.css | #E8BC0Ede | — |
| entity.other.attribute-name.pseudo-element.css | #C2ADF9de | — |
| entity.other.attribute-name.scss | #45DD10de | — |
| entity.other.document.begin.yaml | #F5AEAE6e | — |
| entity.other.inherited-class | #40DD0Bde | — |
| header | #43DE0Dde | — |
| invalid | #0DDC7Cde | — |
| keyword | #E8BD0Fde | — |
| keyword.codetag.notation.python | #60A8E8de | — |
| keyword.control | #EE78D6de | — |
| keyword.control.anchor.regexp | #E9BC0Dde | — |
| keyword.control.import.python | #FEA3ECde | — |
| keyword.operator | #43DE0Dde | — |
| keyword.operator.alignas | #47DD0Ede | — |
| keyword.operator.alignof | #10DC7Cde | — |
| keyword.operator.cast | #10DC7Cde | — |
| keyword.operator.delete | #E8BD0Dde | — |
| keyword.operator.documentation.powershell | #F6AEAE6e | — |
| keyword.operator.expression | #E6BC0Cde | — |
| keyword.operator.instanceof | #FEACACde | — |
| keyword.operator.logical.python | #F49090de | — |
| keyword.operator.minus.exponent | #42DE0Cde | — |
| keyword.operator.negation.regexp | #86C7FEde | — |
| keyword.operator.new | #F181DBde | — |
| keyword.operator.noexcept | #E8BD10de | — |
| keyword.operator.or.regexp | #6DB1ECde | — |
| keyword.operator.plus.exponent | #45DD0Fde | — |
| keyword.operator.quantifier.regexp | #46DE10de | — |
| keyword.operator.sizeof | #BCA6F8de | — |
| keyword.operator.typeid | #F389DEde | — |
| keyword.operator.wordlike | #0DDC7Cde | — |
| keyword.other.operator | #F8A6A6de | — |
| keyword.other.package.java | #EE8484de | — |
| keyword.other.unit | #AD93F4de | — |
| keyword.other.using | #66ACEAde | — |
| markup.bold | #08DC79de | — |
| markup.changed | #C7B4FEde | — |
| markup.deleted | #E9BC0Dde | — |
| markup.fenced_code.block.markdown | #E8BD10de | — |
| markup.heading | #FEA3ECde | — |
| markup.inline.raw | #E7BC10de | — |
| markup.inserted | #C2ADF9de | — |
| markup.italic | #0DDC7Cde | — |
| markup.raw.block.markdown | #10DD7Dde | — |
| markup.strikethrough | #48DE11de | — |
| markup.underline | #47DD0Ede | — |
| meta.block.c | #F79EE5de | — |
| meta.block.c | #43DE0Dde | — |
| meta.class.java | #0EDD7Dde | — |
| meta.definition.variable.name | #0FDD7Bde | — |
| meta.diff.header | #8AC7FEde | — |
| meta.embedded | #EE8484de | — |
| meta.embedded.assembly | #10DD7Ede | — |
| meta.function-call.arguments.python | #F181DBde | — |
| meta.function-call.python | #47DD10de | — |
| meta.member.access.python | #AD93F2de | — |
| meta.method.java | #E6BC10de | — |
| meta.object-literal.key | #47DD0Ede | — |
| meta.paragraph.markdown | #46DD0Ede | — |
| meta.preprocessor | #40DD0Bde | — |
| meta.preprocessor.numeric | #E9BC0Fde | — |
| meta.preprocessor.string | #10DC7Dde | — |
| meta.scope.prerequisites.makefile | #E9BC0Dde | — |
| meta.structure.dictionary.json.comments | #F6AEAE6e | — |
| meta.structure.dictionary.key.python | #47DD0Ede | — |
| meta.structure.dictionary.value.json.comments | #F8ADAD6e | — |
| meta.template.expression | #F08484de | — |
| meta.type.cast.expr | #46DD10de | — |
| meta.type.new.expr | #40DC08de | — |
| parameter | #F8A6A6de | — |
| punctuation.character.set.begin.regexp | #EABC08de | — |
| punctuation.character.set.end.regexp | #E8BC0Ede | — |
| punctuation.definition.array.begin.json | #EF8484de | — |
| punctuation.definition.character-class.regexp | #10DD7Ede | — |
| punctuation.definition.comment | #F6AEAE6e | — |
| punctuation.definition.comment.json.comments | #FAAEAE6e | — |
| punctuation.definition.comment.python | #F6AEAE6e | — |
| punctuation.definition.dictionary.begin.json | #47DE10de | — |
| punctuation.definition.dictionary.end.json | #47DE10de | — |
| punctuation.definition.group.assertion.regexp | #FEABABde | — |
| punctuation.definition.group.regexp | #EC79D5de | — |
| punctuation.definition.list.begin.json | #40DD0Bde | — |
| punctuation.definition.list.begin.markdown | #EB79D4de | — |
| punctuation.definition.list.begin.python | #F69797de | — |
| punctuation.definition.list.end.json | #FEACACde | — |
| punctuation.definition.list.end.markdown | #C7B5FAde | — |
| punctuation.definition.list.end.python | #10DD7Dde | — |
| punctuation.definition.parameters.begin.python | #E8BC0Ede | — |
| punctuation.definition.parameters.end.bracket.round.java | #BCA6F8de | — |
| punctuation.definition.quote.begin.markdown | #EB79D4de | — |
| punctuation.definition.tag | #FEA3ECde | — |
| punctuation.definition.template-expression.begin | #E8BC0Ede | — |
| punctuation.definition.template-expression.end | #FEA3ECde | — |
| punctuation.section.class.begin.bracket.curly.java | #FEACACde | — |
| punctuation.section.embedded | #90C5F4de | — |
| punctuation.section.embedded.begin.php | #AD94F1de | — |
| punctuation.section.embedded.end.php | #0DDC7Cde | — |
| punctuation.terminator.java | #FEA3ECde | — |
| source.cmake | #90C5F4de | — |
| source.coffee.embedded | #C9B6FEde | — |
| source.cpp | #90C5F4de | — |
| source.css.less | #FEACACde | — |
| source.groovy.embedded | #BCA6F8de | — |
| source.java | #F389DEde | — |
| source.java-properties | #7BB9EFde | — |
| source.json.comments | #F5AEAE6e | — |
| source.makefile | #6DB1ECde | — |
| source.powershell | #F490E0de | — |
| source.powershell.variable.other.member | #0EDD7Dde | — |
| source.python | #11DC7Ede | — |
| storage | #86C7FEde | — |
| storage.modifier | #F49090de | — |
| storage.modifier.import.java | #47DD10de | — |
| storage.modifier.package.java | #81BDF1de | — |
| storage.type | #10DC7Cde | — |
| storage.type.annotation.groovy | #EF8383de | — |
| storage.type.annotation.java | #F181DBde | — |
| storage.type.boolean.go | #FEA3ECde | — |
| storage.type.byte.go | #AD94F1de | — |
| storage.type.cs | #EF8383de | — |
| storage.type.error.go | #47DE10de | — |
| storage.type.generic.cs | #F490E0de | — |
| storage.type.generic.groovy | #E9BC0Dde | — |
| storage.type.generic.java | #B097F6de | — |
| storage.type.groovy | #0BDD7Ade | — |
| storage.type.java | #AD93F4de | — |
| storage.type.modifier.cs | #EF8484de | — |
| storage.type.numeric.go | #E8BD10de | — |
| storage.type.object.array.groovy | #AD95F2de | — |
| storage.type.object.array.java | #B097F6de | — |
| storage.type.parameters.groovy | #F79EE5de | — |
| storage.type.primitive.array.groovy | #88C7FDde | — |
| storage.type.primitive.array.java | #81BDF1de | — |
| storage.type.primitive.groovy | #E8BD10de | — |
| storage.type.primitive.java | #EF8383de | — |
| storage.type.rune.go | #C7B4FEde | — |
| storage.type.string.go | #B69EF7de | — |
| storage.type.token.java | #48DE11de | — |
| storage.type.uintptr.go | #46DD10de | — |
| storage.type.variable.cs | #89C7FEde | — |
| string | #C7B5FAde | — |
| string.quoted.docstring.multi.python | #FAAEAE6e | — |
| string.regexp | #8AC7FEde | — |
| string.tag | #0FDD7Bde | — |
| string.value | #FEABABde | — |
| strong | #74B5EEde | — |
| support.class | #81BDF1de | — |
| support.constant.color | #C9B6FEde | — |
| support.constant.dom | #40DC08de | — |
| support.constant.font-name | #F69797de | — |
| support.constant.handlebars | #E6BC0Cde | — |
| support.constant.json | #E9BC0Ade | — |
| support.constant.math | #ED78D5de | — |
| support.constant.media | #E9BC0Fde | — |
| support.constant.media-type | #90C5F4de | — |
| support.constant.property-value | #66ACEAde | — |
| support.function | #E7BC10de | — |
| support.function.git-rebase | #E8BD10de | — |
| support.other.parenthesis.regexp | #45DD10de | — |
| support.type | #AD93F4de | — |
| support.type.property-name | #0CDB7Ade | — |
| support.type.vendored.property-name | #90C5F4de | — |
| support.variable | #43DE0Dde | — |
| token.debug-token | #FEABABde | — |
| token.error-token | #F181DBde | — |
| token.info-token | #10DC7Cde | — |
| token.warn-token | #74B5EEde | — |
| variable | #F79E9Ede | — |
| variable.css | #0EDD7Ede | — |
| variable.language | #88C7FDde | — |
| variable.language.wildcard.java | #F08484de | — |
| variable.other.constant | #F79E9Ede | — |
| variable.other.definition.java | #40DD0Bde | — |
| variable.other.enummember | #0EDC7Dde | — |
| variable.other.less | #E8BD10de | — |
| variable.other.object.java | #46DD0Ede | — |
| variable.other.object.property.java | #F38989de | — |
| variable.parameter.c | #E8BC0Ede | — |
| variable.parameter.function.language.python | #F38989de | — |
| variable.parameter.java | #FEA3ECde | — |
| variable.scss | #10DD7Dde | — |
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}!`;
}