Strawberry Matcha - Dark Theme
Publisher: tipandtaleThemes in package: 1
A cozy dark VS Code theme inspired by strawberry pink and matcha green.
A cozy dark VS Code theme inspired by strawberry pink and matcha green.
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 |
|---|---|---|
| source, text | #FEFCFC | — |
| comment, punctuation.definition.comment | #7F8D78 | italic |
| keyword, storage.type, storage.modifier, storage.type.class, storage.type.interface, storage.type.function, storage.type.const, storage.type.let, storage.type.var | #98556C | bold |
| string, punctuation.definition.string, string.template, string.quoted, string.quoted.single, string.quoted.double | #AEC09B | — |
| entity.name.function.java, meta.method.identifier.java, meta.method.declaration.java entity.name.function.java | #FEFCFC | — |
| constant.numeric, constant.language, constant.character, constant.other, constant.language.boolean, constant.language.null, constant.language.undefined | #AEC09B | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.function.ts, entity.name.function.tsx, meta.method.declaration.ts entity.name.function, meta.method.declaration.tsx entity.name.function | #FEFCFC | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.struct, entity.name.enum, support.type, support.class, support.type.primitive.ts, support.type.builtin.ts, entity.name.type.class.ts, entity.name.type.interface.ts, entity.name.type.alias.ts | #FEFCFC | — |
| variable.parameter, meta.parameter, variable.parameter.ts, variable.parameter.tsx | #CB6B91 | — |
| punctuation.separator.period.java, punctuation.separator.java, punctuation.accessor.java | #FEFCFC | — |
| variable.other.readwrite, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.constant.ts, variable.other.constant.tsx, variable.other | #618C71 | — |
| variable.other.property, variable.other.object.property, support.variable.property, variable.other.property.ts, variable.other.property.tsx, variable.other.object.property.ts, variable.other.object.property.tsx, variable.other.object.property.java, variable.other.property.java, variable.other.member.java, entity.name.variable.field.java | #CB6B91 | — |
| variable.other.global, variable.other.global.ts, variable.other.global.tsx | #618C71 | — |
| variable.other.constant.property, support.constant.property, variable.other.constant.property.ts, variable.other.constant.property.tsx | #B46E8D | — |
| storage.type.annotation, punctuation.definition.annotation, meta.annotation, entity.name.type.annotation, meta.decorator, meta.decorator.ts, meta.decorator.tsx | #B46E8D | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.logical, keyword.operator.expression, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.new | #FEFCFC | — |
| support.type.property-name.json, support.type.property-name.json.comments, source.json support.type.property-name.json, source.json support.type.property-name.json.comments, meta.structure.dictionary.json support.type.property-name.json, meta.structure.dictionary.json.comments support.type.property-name.json.comments | #CB6B91 | — |
| punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json, punctuation.support.type.property-name.begin.json.comments, punctuation.support.type.property-name.end.json.comments | #CB6B91 | — |
| support.constant.property-value.css, constant.other.color.rgb-value.css, keyword.other.unit.css | #AEC09B | — |
| constant.language.json, constant.language.json.comments | #98556C | bold |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name.css | #3A8E74 | — |
| entity.other.attribute-name.class.css | #B46E8D | — |
| entity.other.attribute-name.id.css | #FEFCFC | — |
| entity.name.tag.css | #B46E8D | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-class.scss, entity.other.attribute-name.pseudo-class.sass, entity.other.attribute-name.pseudo-class.less | #B46E8D | — |
| variable.css, variable.other.custom-property.css | #3A8E74 | — |
| support.constant.font-name.css, support.constant.font-name.scss, support.constant.font-name.sass, support.constant.font-name.less, meta.property-value.css support.constant.font-name, meta.property-value.scss support.constant.font-name, meta.property-value.less support.constant.font-name | #AEC09B | — |
| variable.other.readwrite.js, variable.other.readwrite.jsx, variable.other.readwrite.ts, variable.other.readwrite.tsx, variable.other.constant.js, variable.other.constant.jsx, variable.other.constant.ts, variable.other.constant.tsx | #618C71 | — |
| entity.other.attribute-name, entity.other.attribute-name.html, entity.other.attribute-name.xml | #3A8E74 | — |
| support.type.primitive.ts, support.type.primitive.tsx, support.type.builtin.ts, support.type.builtin.tsx, keyword.type.ts, keyword.type.tsx | #98556C | bold |
| string.quoted.double.html, string.quoted.single.html, string.quoted.double.xml, string.quoted.single.xml, meta.attribute-with-value.html string, meta.attribute-with-value.xml string | #AEC09B | — |
| entity.name.tag, entity.name.tag.html, entity.name.tag.xml | #B46E8D | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.xml | #B46E8D | — |
| token.info-token | #316BCD | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #CD3131 | — |
| token.debug-token | #800080 | — |
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}!`;
}