Ink Painting
Publisher: denjayThemes in package: 1
A Warm Color Theme For Visual Studio Code.
A Warm Color Theme For Visual Studio Code.
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 |
|---|---|---|
| keyword.control, keyword.other, keyword.control.module.js, storage.type.class.js, storage.type.extends.js, variable.language.this.js, keyword.control.switch.js, keyword.control.loop.js, keyword.control.conditional.js, keyword.control.flow.js, keyword.operator.accessor.js, keyword.other.important.css, keyword.control.at-rule.media.scss, entity.name.tag.reference.scss, meta.class.python, storage.type.function.python, keyword.control.flow.python, storage.type.function.js, keyword.control.export.ts, keyword.control.flow.ts, keyword.control.from.ts, keyword.control.import.ts, storage.type.class.ts, keyword.control.loop.ts, keyword.control.ruby, keyword.control.module.ruby, keyword.control.class.ruby, keyword.other.special-method.ruby, keyword.control.def.ruby, markup.heading, keyword.other.import.java, keyword.other.package.java, storage.modifier.java, storage.modifier.extends.java, storage.modifier.cs, keyword.package.go, keyword.import.go, storage.modifier.js | #40b4c4 | — |
| entity.name.function, entity.name.function.js, entity.name.function.method.js, entity.name.function.python, meta.method.declaration.ts, entity.name.function.ts, entity.name.function.ruby, support.function.misc.scss, support.function.go, support.function.console.js, support.function.dom.js, support.function | #EB64B9 | — |
| string, string.quoted.module.js, string.quoted.double.js, string.quoted.single.js, string.quoted.template.js, string.unquoted.js, string.quoted.double.json.comments, string.quoted.double.html, string.quoted.double.css, string.other.link.title.markdown | #b4dce7 | — |
| constant.numeric, constant.numeric.js, constant.numeric.css | #b381c5 | — |
| punctuation.bracket, punctuation.terminator, punctuation.separator, punctuation.definition, punctuation.parenthesis, punctuation.definition.string, meta.brace.curly.litobj.js, meta.brace.round.js, meta.brace.curly.js, meta.delimiter.comma.js, punctuation.separator.key-value.js, meta.brace.square.js, punctuation.definition.tag.jsx, punctuation.definition.tag.html, punctuation.section.property-list.end.bracket.curly.css, punctuation.section.property-list.begin.bracket.curly.css, punctuation.terminator.rule.css, punctuation.separator.key-value.css, punctuation.section.embedded, punctuation.definition.string.begin.js, punctuation.definition.string.end.js, punctuation.definition.parameters.begin.python, punctuation.definition.parameters.end.python, punctuation.section.function.begin.python, punctuation.separator.parameters.python, punctuation.section.class.begin.python, punctuation.separator.dict.python, punctuation.definition.arguments.begin.python, punctuation.definition.block.ts, punctuation.definition.parameters.begin.ts, punctuation.definition.parameters.end.ts, meta.brace.round.ts, punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag, punctuation.definition.parameters.ruby, punctuation.section.array.begin.ruby, punctuation.section.array.end.ruby, punctuation.section.scope.begin.ruby, punctuation.section.scope.end.ruby, punctuation.definition.markdown, punctuation.definition.parameters.begin.bracket.round.java, punctuation.definition.parameters.end.bracket.round.java, punctuation.definition.typeparameters.begin.cs, punctuation.definition.typeparameters.end.cs, punctuation.squarebracket.open.cs, punctuation.squarebracket.close.cs, punctuation.section.function.scss, punctuation.definition.map.begin.bracket.round.scss, punctuation.definition.constant.css, puncatuation.other.comma.go, punctuation.section.class.begin.js, punctuation.section.class.end.js, punctuation.section.bracket.begin.powershell, punctuation.section.bracket.end.powershell, punctuation.section.braces.begin.powershell, punctuation.section.braces.end.powershell, punctuation.section.group.begin.powershell, punctuation.section.group.end.powershell | #716385 | — |
| keyword.operator.comparison, keyword.operator.arithmetic, keyword.operator.assignment, keyword.operator.logical, storage.type.function.arrow.js, keyword.operator.relational.js, keyword.operator.ternary.js, keyword.operator.arithmetic.js, keyword.operator.assignment.js, keyword.operator.logical.js, meta.tag.inline.any.html, keyword.operator.assignment.python, keyword.operator.arithmetic.python, keyword.operator.logical.python, punctuation.accessor.ts, storage.type.function.arrow.ts, entity.name.type.ts, keyword.operator.increment.ts, keyword.operator.increment.js, keyword.operator.relational.ts, meta.decorator.ts, punctuation.separator.method.ruby, keyword.operator.other.ruby, keyword.operator, keyword.operator.increment-decrement.java, punctuation.accessor.cs, punctuation.separator.java, punctuation.separator.period.java, punctuation.other.period.go | #74dfc4 | — |
| comment, punctuation.definition.comment | #91889b | — |
| entity.name.tag.open.jsx, entity.name.tag.close.jsx, entity.name.tag.structure.any.html, entity.name.tag.inline.any.html, entity.name.tag, meta.tag.sgml | #74dfc4 | — |
| entity.other.attribute-name, entity.other.attribute-name.jsx, entity.other.attribute-name.id.html, entity.other.attribute-name.html, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #EB64B9 | — |
| variable.other.property, support.type.property-name.css, support.type.property-name.json, variable.other.property.js, variable.other.property.ts, support.variable.property.dom.js, support.variable.property.js | #40b4c4 | — |
| variable.language.this, support.class.builtin.js, constant.language.boolean.false.js, constant.language.boolean.true.js, support.type.object.console.js, support.type.object.dom.js, variable.language.special.self.python, support.function.builtin.python, variable.other.constant.js, variable.language.this.js, support.constant.json.ts, variable.language.this.ts, support.class.console.ts, support.class.console.js, constant.language, constant.language.undefined.js, variable.language.self.ruby, variable.other.constant.ruby, constant.other.elm, support.constant.automatic.powershell | #ffe261 | — |
| variable.other.readwrite.js, variable.other.object.js, variable.parameter.ts, variable.other.readwrite.ts, variable.other.object.ts, variable.other.property.dom.ts, support.function.json.ts, support.function.console.ts, support.variable.property.dom.ts, variable.scss, variable.other.readwrite.powershell | #fff | — |
| keyword.type.js, storage.type.js, storage.type.ts, storage.type, storage.modifier.ts, keyword.operator.new.ts, meta.type.annotation.ts, punctuation.definition.variable.ruby, punctuation.definition.constant.ruby, keyword.type.cs, keyword.var.go, keyword.const.go, keyword.type.go, keyword.function.go, keyword.struct.go, storage.modifier.async.js | #a96bc0 | — |
| markup.bold, markup.italic | #EB64B9 | — |
| meta.object-literal.key.js, constant.other.object.key.js | #40b4c4 | — |
| #ffb85b | — | |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}