Material Design 3 Theme
Publisher: SandladaThemes in package: 291
Material Design 3 (Material You) color themes for VSCode. 291 static themes: 9 variants x 12 HCT hues (Monochrome hue 0 only) x light/dark/dark-oled.
Material Design 3 (Material You) color themes for VSCode. 291 static themes: 9 variants x 12 HCT hues (Monochrome hue 0 only) x light/dark/dark-oled.
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 | #ababab | — |
| string, string.tag, string.value, meta.embedded.assembly, meta.preprocessor.string | #40e26e | — |
| 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, 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 | #40e26e | — |
| string.regexp, constant.regexp, constant.character.character-class.regexp, constant.other.character-class.set.regexp, constant.other.character-class.regexp, constant.character.set.regexp | #ffa9ff | — |
| constant.numeric, keyword.operator.plus.exponent, keyword.operator.minus.exponent, meta.preprocessor.numeric | #ffb4a5 | — |
| constant.language, variable.other.constant, variable.other.enummember, constant.character, constant.other.option | #ffb779 | — |
| keyword, keyword.operator.wordlike, keyword.other.unit, storage, storage.modifier, meta.preprocessor, entity.name.function.preprocessor, punctuation.definition.list.begin.markdown | #b1c5ff | — |
| keyword.control, source.cpp keyword.operator.new, keyword.operator.delete, keyword.other.using, keyword.other.directive.using, keyword.other.operator, entity.name.operator | #88ceff | — |
| keyword.operator | #c6c6c6 | — |
| entity.name.function, support.function, support.constant.handlebars, source.powershell variable.other.member, entity.name.operator.custom-literal, keyword.operator.or.regexp, keyword.control.anchor.regexp | #b7d300 | — |
| support.class, support.type, entity.name.type, entity.name.namespace, entity.other.attribute, entity.name.scope-resolution, entity.name.class, storage.type, meta.type.cast.expr, meta.type.new.expr, support.constant.math, support.constant.dom, support.constant.json, entity.other.inherited-class, punctuation.separator.namespace.ruby, 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 | #00dfc0 | — |
| variable, meta.definition.variable.name, support.variable, entity.name.variable, constant.other.placeholder, meta.object-literal.key | #00daf2 | — |
| entity.other.attribute-name, support.type.property-name, support.type.vendored.property-name, variable.other.property, meta.structure.dictionary.key.python | #f4c000 | — |
| entity.name.tag, entity.name.tag.css, entity.name.tag.less, punctuation.definition.tag, keyword.operator.quantifier.regexp, constant.character.escape | #d0bcff | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #d0bcff | — |
| markup.heading, header | #b1c5ff | bold |
| markup.bold | #b1c5ff | bold |
| markup.italic, emphasis | #b1c5ff | italic |
| markup.inserted | #40e26e | — |
| markup.deleted | #ffb4a5 | — |
| markup.changed | #00daf2 | — |
| markup.inline.raw | #40e26e | — |
| punctuation.definition.quote.begin.markdown | #ababab | — |
| markup.underline.link.markdown | #88ceff | underline |
| meta.diff.header | #00daf2 | — |
| invalid | #ffb4a5 | — |
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}!`;
}