CoMPhy Color Theme Collection
Publisher: Vatsal SanjayThemes in package: 2
A collection of high-contrast themes based on Gruvbox with clear foregrounds, optimized for computational physics workflows
A collection of high-contrast themes based on Gruvbox with clear foregrounds, optimized for computational physics workflows
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, punctuation.definition.comment | #7887ab | italic |
| invalid, invalid.illegal | #cc241d | strikethrough |
| constant, support.constant, variable.arguments | #d3869b | — |
| constant.numeric, constant.language | #bd93f9 | — |
| constant.language.import-export-all | #fe8019 | — |
| entity.name | #b8bb26 | — |
| entity.name.class, entity.name.namespace, entity.name.type, storage.type.namespace, support.class, variable.language.this.constructor, variable.language.super.constructor | #8be9fd | — |
| entity.name.type, storage.type.cs, storage.type.java | #8ec07c | — |
| entity.name.function, support.function | #ff79c6 | — |
| entity.name.label, entity.name.tag | #fe8019 | — |
| entity.name.section | #d79921 | — |
| entity.other | #b8bb26 | — |
| entity.other.inherited-class | #8ec07c | — |
| entity.other.attribute-name | #83a598 | — |
| keyword | #f1fa8c | — |
| keyword.control, keyword.other.using, keyword.other.namespace | #fb4934 | — |
| keyword.operator, punctuation.accessor | #ffb86c | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.parameters, punctuation.definition.array, punctuation.separator.delimiter, punctuation.terminator | #a89984 | — |
| punctuation.section | #a89984 | — |
| markup.underline.link, meta.link.inline, meta.link.reference | #83a598 | underline |
| markup.bold | #fe8019 | bold |
| markup.heading, punctuation.definition.heading | #b8bb26 | bold |
| heading.1.markdown entity.name.section.markdown | #fb4934 | bold |
| heading.2.markdown entity.name.section.markdown | #fe8019 | bold |
| heading.3.markdown entity.name.section.markdown | #fabd2f | bold |
| heading.4.markdown entity.name.section.markdown | #b8bb26 | bold |
| heading.5.markdown entity.name.section.markdown | #83a598 | — |
| heading.6.markdown entity.name.section.markdown | #d3869b | — |
| markup.quote.markdown | #928374 | italic |
| punctuation.definition.list.begin.markdown | #fb4934 | — |
| fenced_code.block.language.markdown | #fe8019 | — |
| markup.strikethrough.markdown | #928374 | strikethrough |
| markup.italic | #fe8019 | italic |
| markup.inline.raw | #8ec07c | — |
| markup.raw | #8ec07c | — |
| punctuation.definition.markdown, punctuation.definition.raw.markdown, punctuation.separator.key-value.markdown | #a89984 | — |
| meta.class, meta.module-reference, meta.namespace | #8ec07c | — |
| meta.preprocessor | #fe8019 | — |
| storage | #fb4934 | — |
| storage.type | #fb4934 | — |
| storage.modifier | #fb4934 | — |
| string | #50fa7b | — |
| constant.character.escape | #fe8019 | — |
| support | #8ec07c | — |
| support.function.builtin | #fe8019 | — |
| variable | #e2dcd0 | — |
| variable.function | #b8bb26 | — |
| variable.other | #83a598 | — |
| variable.language | #d3869b | — |
| variable.parameter | #83a598 | — |
| variable.other.property | #83a598 | — |
| support.type, support.class | #8ec07c | — |
| support.other.variable | #83a598 | — |
| invalid.broken | #cc241d | bold italic underline |
| invalid.deprecated | #d3869b | bold italic underline |
| invalid.unimplemented | #cc241d | bold italic underline |
| message.error | #cc241d | — |
| support.type.property-name.json, support.dictionary.json | #b8bb26 | — |
| entity.other.attribute-name.class | #b8bb26 | — |
| entity.name.tag.css | #8ec07c | — |
| support.type.property-name | #fe8019 | — |
| entity.other.attribute-name.id.css | #fabd2f | — |
| entity.other.attribute-name.pseudo-class.css | #d3869b | — |
| support.constant.property-value.css | #83a598 | — |
| keyword.other.unit.css | #d3869b | — |
| variable.css, variable.scss | #83a598 | — |
| keyword.other.important.css | #fb4934 | bold |
| constant.other.caps.python, variable.parameter.function-call.python | #d79921 | — |
| variable.parameter.function.language.python | #d3869b | — |
| meta.function-call.python | #83a598 | — |
| meta.function-call.generic.python | #b8bb26 | — |
| entity.name.function.decorator.python | #9b4fa0 | — |
| support.function.magic.python, support.variable.magic.python | #8ec07c | — |
| variable.language.special.self.python | #d3869b | italic |
| entity.name.type.class.python | #8ec07c | — |
| entity.other.inherited-class.python | #8ec07c | — |
| storage.type.function.python, storage.type.class.python | #fb4934 | — |
| meta.function.parameters.python | #d3869b | — |
| meta.fstring.python | #b8bb26 | — |
| constant.character.format.placeholder.other.python | #d3869b | — |
| keyword.control.import.python, keyword.control.from.python | #fb4934 | — |
| meta.function.return-type.python, meta.function.parameters.annotation.python | #8ec07c | — |
| string.quoted.docstring.multi.python | #928374 | italic |
| support.type.exception.python | #fb4934 | — |
| keyword.operator.logical.python | #fb4934 | — |
| variable.language.this.js, variable.language.this.ts, variable.language.this.jsx, variable.language.this.tsx | #d3869b | italic |
| entity.name.function.js, entity.name.function.ts, entity.name.function.jsx, entity.name.function.tsx | #b8bb26 | — |
| entity.name.type.class.js, entity.name.type.class.ts, entity.name.type.class.jsx, entity.name.type.class.tsx | #8ec07c | — |
| entity.name.type.module.js, entity.name.type.module.ts, entity.name.type.module.jsx, entity.name.type.module.tsx | #8ec07c | — |
| keyword.control.js, keyword.control.ts, keyword.control.jsx, keyword.control.tsx | #fb4934 | — |
| storage.type.js, storage.type.ts, storage.type.jsx, storage.type.tsx | #fb4934 | — |
| keyword.control.import.js, keyword.control.export.js, keyword.control.import.ts, keyword.control.export.ts, keyword.control.import.jsx, keyword.control.export.jsx, keyword.control.import.tsx, keyword.control.export.tsx | #8ec07c | — |
| entity.name.type.ts, entity.name.type.tsx | #8ec07c | — |
| entity.name.type.interface.ts, entity.name.type.interface.tsx | #8ec07c | — |
| entity.name.type.enum.ts, entity.name.type.enum.tsx | #8ec07c | — |
| entity.name.type.parameter.ts, entity.name.type.parameter.tsx | #d3869b | — |
| entity.name.tag.html, entity.name.tag.xml, entity.name.tag.jsx, entity.name.tag.tsx | #fe8019 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.xml, entity.other.attribute-name.jsx, entity.other.attribute-name.tsx | #83a598 | — |
| support.class.component.jsx, support.class.component.tsx | #8ec07c | — |
| keyword.control.directive.define.c, keyword.control.directive.include.c, keyword.control.directive.ifdef.c, keyword.control.directive.ifndef.c, keyword.control.directive.endif.c, keyword.control.directive.undef.c, keyword.control.directive.conditional.c, keyword.control.directive.define.cpp, keyword.control.directive.include.cpp, keyword.control.directive.ifdef.cpp, keyword.control.directive.ifndef.cpp, keyword.control.directive.endif.cpp, keyword.control.directive.undef.cpp, keyword.control.directive.conditional.cpp, meta.preprocessor.c, meta.preprocessor.cpp | #fe8019 | — |
| entity.name.function.preprocessor.c, entity.name.function.preprocessor.cpp | #fabd2f | — |
| string.quoted.other.lt-gt.include.c, string.quoted.other.lt-gt.include.cpp | #b8bb26 | — |
| storage.type.struct.c, storage.type.union.c, storage.type.enum.c, storage.type.struct.cpp, storage.type.union.cpp, storage.type.enum.cpp | #8ec07c | — |
| keyword.operator.dereference.c, keyword.operator.address-of.c, keyword.operator.dereference.cpp, keyword.operator.address-of.cpp | #d3869b | — |
| keyword.operator.sizeof.c, keyword.operator.alignof.c, keyword.operator.sizeof.cpp, keyword.operator.alignof.cpp | #d3869b | — |
| entity.name.function.c, entity.name.function.cpp | #ff79c6 | — |
| punctuation.separator.dot-access.c, punctuation.separator.pointer-access.c, punctuation.separator.dot-access.cpp, punctuation.separator.pointer-access.cpp | #a89984 | — |
| text.tex keyword.control.preamble | #fb4934 | — |
| text.tex support.function.environment | #8ec07c | — |
| text.tex support.function | #b8bb26 | — |
| text.tex keyword.control | #fb4934 | — |
| text.tex punctuation.definition.function.latex | #fb4934 | — |
| text.tex variable.parameter.function.latex | #d3869b | — |
| text.tex string.other.math.latex | #fabd2f | — |
| text.tex punctuation.definition.string.begin.latex, text.tex punctuation.definition.string.end.latex | #d79921 | — |
| text.tex string.quoted.double.latex, text.tex string.quoted.single.latex | #b8bb26 | — |
| text.tex constant.other.citation.latex | #d3869b | — |
| text.tex constant.other.reference.latex | #d3869b | — |
| text.tex comment.line.percentage.latex | #928374 | italic |
| text.tex entity.name.section.latex | #fabd2f | bold |
| entity.name.package.go | #8ec07c | — |
| entity.name.function.go | #b8bb26 | — |
| entity.name.type.go | #8ec07c | — |
| entity.name.lifetime.rust | #d3869b | — |
| entity.name.macro.rust | #fe8019 | — |
| entity.name.trait.rust | #8ec07c | — |
| variable.other.readwrite.shell, variable.other.special.shell | #83a598 | — |
| entity.name.function.shell | #b8bb26 | — |
| keyword.control.shell | #fb4934 | — |
| keyword.operator.pipe.shell, keyword.operator.redirect.shell | #fe8019 | — |
| string.interpolated.backtick.shell, string.interpolated.dollar.shell | #d3869b | — |
| support.function.builtin.shell | #fe8019 | — |
| string.unquoted.heredoc.shell | #b8bb26 | — |
| string.regexp | #8ec07c | — |
| constant.other.character-class.regexp | #d3869b | — |
| keyword.operator.quantifier.regexp | #fabd2f | — |
| keyword.control.anchor.regexp | #fb4934 | — |
| entity.name.tag.yaml | #fe8019 | — |
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}!`;
}