Material Sandy Beach Theme
Publisher: lemon_cnThemes in package: 1
A light VS Code theme based on the Material Sandy Beach palette.
A light VS Code theme based on the Material Sandy Beach palette.
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 | #888477 | italic |
| keyword, storage.type, storage.modifier | #945EB8 | italic |
| keyword.control.import.python, keyword.control.from.python, keyword.control.as.python, keyword.control.flow.python, keyword.control.conditional.python, keyword.control.loop.python, keyword.control.exception.python, keyword.control.return.python, keyword.control.async.python, keyword.control.await.python, keyword.operator.logical.python, keyword.operator.wordlike.python, keyword.operator.expression.is.python, keyword.operator.expression.not.python | #39ADB5 | italic |
| keyword.argument.python, variable.parameter.function-call.python, meta.function-call.arguments.python variable.parameter.python, meta.function-call.python variable.parameter.python | #945EB8 | — |
| string, punctuation.definition.string | #91B859 | — |
| constant.numeric | #F76D47 | — |
| entity.name.function, meta.function-call | #6182B8 | — |
| entity.name.class, entity.name.type, support.class, support.type, support.type.exception.python, support.class.exception.python, meta.typehint.python support.class, meta.typehint.python support.type, meta.annotation.python support.class, meta.annotation.python support.type | #E2931D | — |
| variable | #272727 | — |
| variable.parameter, entity.name.variable.parameter | #F76D47 | — |
| variable.language.special.self.python, variable.parameter.function.language.special.self.python, variable.language.special.cls.python | #E53935 | italic |
| keyword.operator, punctuation | #39ADB5 | — |
| entity.name.tag | #E53935 | — |
| entity.other.attribute-name, meta.attribute | #F76D47 | — |
| support.function, support.function.builtin, support.function.magic.python, support.function.builtin.python | #6182B8 | italic |
| support.constant | #F76D47 | — |
| markup.heading.1.markdown, punctuation.definition.heading.markdown | #C77A1A | bold |
| entity.name.section.markdown | #C77A1A | bold |
| markup.heading.2.markdown | #E2931D | bold |
| markup.heading.3.markdown | #F7A84A | bold |
| markup.heading.4.markdown, markup.heading.5.markdown, markup.heading.6.markdown | #F76D47 | bold |
| markup.bold.markdown | #272727 | bold |
| markup.italic.markdown | #E2931D | italic |
| markup.bold_italic.markdown | #C77A1A | bold italic |
| markup.inline.raw.string.markdown, markup.raw.inline.markdown | #F76D47 | — |
| fenced_code.block.language.markdown | #888477 | italic |
| punctuation.definition.list.begin.markdown, beginning.punctuation.definition.list.markdown | #39ADB5 | bold |
| markup.list.unnumbered.markdown | #6E8796 | — |
| markup.list.numbered.markdown | #6E8796 | — |
| string.other.link.title.markdown | #6182B8 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #39ADB5 | — |
| markup.quote.markdown | #888477 | italic |
| meta.separator.markdown | #D4C4A8 | — |
| punctuation.definition.raw.markdown, markup.fenced_code.block.markdown | #888477 | — |
| keyword.other.special-method.dockerfile, keyword.control.onbuild.dockerfile, keyword.other.special-method.from.dockerfile, keyword.other.special-method.as.dockerfile | #945EB8 | italic |
| entity.name.image.dockerfile | #E2931D | underline |
| entity.name.image.stage.dockerfile | #E2931D | — |
| constant.numeric.version.dockerfile, constant.constant.language.symbol.digest.dockerfile | #F76D47 | — |
| variable.other.dockerfile, punctuation.definition.variable.dockerfile, variable.other.env.dockerfile, variable.other.arg.dockerfile | #F7A84A | — |
| string.quoted.single.dockerfile, string.quoted.double.dockerfile | #91B859 | — |
| entity.name.command.shell.dockerfile | #39ADB5 | italic |
| variable.other.normal.shell.dockerfile, variable.other.readwrite.shell.dockerfile, variable.other.bracket.shell.dockerfile, variable.other.special.shell.dockerfile, variable.other.positional.shell.dockerfile, variable.other.assignment.shell.dockerfile, punctuation.definition.variable.shell.dockerfile | #F7A84A | — |
| keyword.operator.logical.shell.dockerfile, punctuation.separator.statement.and.shell.dockerfile, punctuation.separator.statement.or.shell.dockerfile | #945EB8 | bold |
| constant.other.option.shell.dockerfile, constant.other.option.dash.shell.dockerfile, string.unquoted.argument.shell.dockerfile constant.other.option.shell.dockerfile | #6182B8 | — |
| string.unquoted.argument.shell.dockerfile | #546E7A | — |
| string.quoted.double.shell.dockerfile | #91B859 | — |
| string.quoted.single.shell.dockerfile | #91B859 | — |
| markup.underline.link.shell.dockerfile, string.other.link.shell.dockerfile | #39ADB5 | underline |
| comment.line.number-sign.shell.dockerfile, punctuation.definition.comment.shell.dockerfile | #888477 | italic |
| constant.numeric.integer.shell.dockerfile, constant.numeric.hex.shell.dockerfile, constant.numeric.octal.shell.dockerfile | #F76D47 | — |
| constant.language.true.shell.dockerfile, constant.language.false.shell.dockerfile | #F76D47 | — |
| keyword.operator.pipe.shell.dockerfile | #945EB8 | — |
| keyword.operator.redirect.shell.dockerfile | #39ADB5 | — |
| constant.character.escape.shell.dockerfile, constant.character.escaped.dockerfile | #F76D47 | — |
| punctuation.terminator.statement.semicolon.shell.dockerfile | #39ADB5 | — |
| punctuation.separator.version.dockerfile | #888477 | — |
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}!`;
}