Quantum Material Theme
Publisher: Michael MéndezThemes in package: 3
A beautiful theme inspired by quantum physics and material design - featuring ocean blues and cosmic purples in dark, light, and void variants for optimal coding experience.
A beautiful theme inspired by quantum physics and material design - featuring ocean blues and cosmic purples in dark, light, and void variants for optimal coding experience.
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 |
|---|---|---|
| meta.embedded, source.groovy.embedded | #374151 | — |
| emphasis | — | italic |
| strong | — | — |
| header | #2563eb | — |
| comment | #64748b | — |
| constant.language | #ea580c | — |
| constant.numeric | #ea580c | — |
| constant.regexp | #7c3aed | — |
| entity.name.tag | #b91c1c | — |
| entity.name.tag.css | #ea580c | — |
| entity.other.attribute-name | #7c3aed | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.mixin.css, entity.other.attribute-name.id.css, entity.other.attribute-name.parent-selector.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css, source.css.less entity.other.attribute-name.id, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.scss | #7c3aed | — |
| invalid | #dc2626 | — |
| markup.underline | — | underline |
| markup.bold | #7c3aed | — |
| markup.heading | #7c3aed | — |
| markup.italic | — | italic |
| markup.inserted | #059669 | — |
| markup.deleted | #dc2626 | — |
| markup.changed | #7c3aed | — |
| punctuation.definition.quote.begin.markdown | #047857 | — |
| punctuation.definition.list.begin.markdown | #2563eb | — |
| markup.inline.raw | #047857 | — |
| punctuation.definition.tag | #0369a1 | — |
| meta.preprocessor | #7c3aed | — |
| meta.preprocessor.string | #047857 | — |
| meta.preprocessor.numeric | #ea580c | — |
| meta.structure.dictionary.key.python | #111827 | — |
| meta.diff.header | #7c3aed | — |
| storage | #7c3aed | — |
| storage.type | #7c3aed | — |
| storage.modifier | #7c3aed | — |
| string | #047857 | — |
| string.tag | #047857 | — |
| string.value | #047857 | — |
| string.regexp | #047857 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #4b5563 | — |
| meta.template.expression | #111827 | — |
| support.type.vendored.property-name, support.type.property-name, variable.css, variable.scss, variable.other.less, source.coffee.embedded | #4b5563 | — |
| keyword | #7c3aed | — |
| keyword.control | #7c3aed | — |
| keyword.operator | #4b5563 | — |
| keyword.operator.new, keyword.operator.expression, keyword.operator.cast, keyword.operator.sizeof, keyword.operator.instanceof, keyword.operator.logical.python | #7c3aed | — |
| keyword.other.unit | #ea580c | — |
| punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php | #7c3aed | — |
| support.function.git-rebase | #1d4ed8 | — |
| constant.sha.git-rebase | #ea580c | — |
| storage.modifier.import.java, variable.language.wildcard.java, storage.modifier.package.java | #111827 | — |
| variable.language | #7c3aed | — |
| entity.name.function, support.function, support.constant.handlebars | #1d4ed8 | — |
| meta.return-type, support.class, support.type, entity.name.type, entity.name.class, storage.type.numeric.go, storage.type.byte.go, storage.type.boolean.go, storage.type.string.go, storage.type.uintptr.go, storage.type.error.go, storage.type.rune.go, storage.type.cs, storage.type.generic.cs, storage.type.modifier.cs, storage.type.variable.cs, storage.type.annotation.java, storage.type.generic.java, storage.type.java, storage.type.object.array.java, storage.type.primitive.array.java, storage.type.primitive.java, storage.type.token.java, storage.type.groovy, storage.type.annotation.groovy, storage.type.parameters.groovy, storage.type.generic.groovy, storage.type.object.array.groovy, storage.type.primitive.array.groovy, storage.type.primitive.groovy | #1d4ed8 | — |
| meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class | #1d4ed8 | — |
| keyword.control | #7c3aed | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable | #4b5563 | — |
| meta.object-literal.key | #111827 | — |
| support.constant.property-value, support.constant.font-name, support.constant.media-type, support.constant.media, constant.other.color.rgb-value, constant.other.rgb-value, support.constant.color | #047857 | — |
| punctuation.definition.group.regexp, punctuation.definition.group.assertion.regexp, punctuation.definition.character-class.regexp, punctuation.character.set.begin.regexp, punctuation.character.set.end.regexp, keyword.operator.negation.regexp, support.other.parenthesis.regexp | #0369a1 | — |
| constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #7c3aed | — |
| keyword.operator.or.regexp, keyword.control.anchor.regexp | #374151 | — |
| keyword.operator.quantifier.regexp | #ea580c | — |
| constant.character | #7c3aed | — |
| constant.character.escape | #0369a1 | — |
| token.info-token | #2563eb | — |
| token.warn-token | #d97706 | — |
| token.error-token | #dc2626 | — |
| token.debug-token | #7c3aed | — |
| string.quoted.double.html | #047857 | — |
| string.template | #047857 | — |
| storage.type.function | #7c3aed | — |
| support.class.component.js | #b91c1c | — |
| variable.parameter | #b91c1c | — |
| variable.other.property | #111827 | — |
| support.function, support.constant.handlebars | #1d4ed8 | — |
| support.type, support.class, support.constant.math | #ea580c | — |
| support.type.vendored.property-name, support.type.property-name | #111827 | — |
| support.function | #1d4ed8 | — |
| variable.other.constant | #b91c1c | — |
| meta.brace.round, meta.brace.square, meta.brace.angle, punctuation | #0369a1 | — |
| support.type.property-name.json | #1f2937 | — |
| storage.type.function.arrow.js, storage.type.function.arrow.ts, storage.type.function.arrow.tsx | #4b5563 | — |
| punctuation.definition.keyword.css, punctuation.definition.directive.c, punctuation.definition.heading.markdown | #7c3aed | — |
| entity.name.type.class, entity.name.type.module | #1d4ed8 | — |
| punctuation.definition.comment, punctuation.definition.list.begin.markdown | #94a3b8 | — |
| markup.heading | — |
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}!`;
}