midnight beach dark theme
Publisher: pawan kalyanThemes in package: 1
A clean, aesthetic dark theme for VS Code inspired by midnight beaches, designed for calm visuals and long coding sessions.
A clean, aesthetic dark theme for VS Code inspired by midnight beaches, designed for calm visuals and long coding sessions.
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 | #7a7e85 | italic |
| comment.block.documentation, comment.block.javadoc | #7a7e85 | italic |
| string, string.quoted, string.template, string.quoted.single, string.quoted.double, string.quoted.triple | #6aab73 | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end, punctuation.section.embedded | #cf8e6d | — |
| keyword, keyword.control, keyword.control.flow, keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.conditional, keyword.control.loop, keyword.control.trycatch, keyword.operator.new, keyword.operator.expression, keyword.operator.expression.typeof, keyword.operator.expression.instanceof, keyword.operator.expression.of, keyword.operator.expression.in, keyword.operator.expression.void, keyword.operator.expression.delete | #cf8e6d | — |
| storage, storage.type, storage.modifier, storage.type.function, storage.type.class, storage.type.interface, storage.type.enum, storage.type.type | #cf8e6d | — |
| entity.name.function, meta.function-call entity.name.function, support.function, meta.function-call | #56a8f5 | — |
| variable.parameter, meta.parameter | #bcbec4 | — |
| entity.name.type, entity.name.type.class, entity.name.type.interface, entity.name.type.enum, entity.name.type.struct, entity.name.type.type, support.type, support.class, entity.other.inherited-class | #c77dbb | — |
| entity.name.type.parameter | #c77dbb | — |
| constant.numeric, constant.numeric.integer, constant.numeric.float, constant.numeric.hex, constant.numeric.octal, constant.numeric.binary | #2aacb8 | — |
| constant.language, constant.language.boolean, constant.language.null, constant.language.undefined | #cf8e6d | — |
| variable.other.constant, variable.other.enummember | #c77dbb | — |
| variable, variable.other, variable.other.readwrite, variable.other.object | #bcbec4 | — |
| variable.language, variable.language.this, variable.language.self, variable.language.super | #cf8e6d | italic |
| variable.other.property, support.variable.property, variable.other.object.property | #c77dbb | — |
| keyword.operator, keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.ternary, keyword.operator.spread, keyword.operator.rest, keyword.operator.type | #bcbec4 | — |
| punctuation, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.arguments, punctuation.separator, punctuation.terminator, punctuation.accessor, meta.brace.round, meta.brace.square, meta.brace.curly | #bcbec4 | — |
| entity.name.tag, entity.name.tag.html, punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #cf8e6d | — |
| entity.other.attribute-name, entity.other.attribute-name.html | #bababa | — |
| support.class.component, entity.name.tag support.class.component | #56a8f5 | — |
| entity.name.tag.css, entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #cf8e6d | — |
| support.type.property-name.css, support.type.vendored.property-name.css, meta.property-name.css | #bcbec4 | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.media.css | #bcbec4 | — |
| keyword.other.unit.css, constant.other.color.rgb-value.css, support.constant.color.css | #2aacb8 | — |
| keyword.control.at-rule.css, keyword.control.at-rule.media.css, keyword.control.at-rule.import.css | #cf8e6d | — |
| variable.scss, variable.other.less | #bcbec4 | — |
| string.regexp, constant.other.character-class.regexp, keyword.operator.quantifier.regexp, keyword.operator.or.regexp, punctuation.definition.group.regexp, punctuation.definition.character-class.regexp | #2aacb8 | — |
| constant.character.escape, constant.character.escape.backslash | #cf8e6d | — |
| meta.decorator, meta.decorator entity.name.function, punctuation.decorator, meta.annotation, storage.type.annotation | #bbb529 | — |
| support.type.property-name.json, string.json support.type.property-name | #c77dbb | — |
| string.quoted.double.json | #6aab73 | — |
| entity.name.tag.yaml, support.type.property-name.yaml | #cf8e6d | — |
| string.unquoted.plain.out.yaml | #bcbec4 | — |
| entity.name.type.anchor.yaml, variable.other.alias.yaml, keyword.control.flow.block-scalar.yaml | #2aacb8 | — |
| heading.1.markdown entity.name, heading.2.markdown entity.name, heading.3.markdown entity.name, heading.4.markdown entity.name, heading.5.markdown entity.name, heading.6.markdown entity.name, markup.heading, markup.heading.setext | #cf8e6d | bold |
| punctuation.definition.heading.markdown | #cf8e6d | — |
| markup.bold | #bcbec4 | bold |
| markup.italic | #bcbec4 | italic |
| markup.inline.raw, markup.fenced_code.block | #6aab73 | — |
| markup.underline.link, markup.underline.link.markdown | #548af7 | — |
| string.other.link.title.markdown, string.other.link.description.markdown | #56a8f5 | — |
| punctuation.definition.list.begin.markdown, markup.list.numbered.markdown, markup.list.unnumbered.markdown | #cf8e6d | — |
| markup.quote.markdown | #7a7e85 | italic |
| meta.function.decorator.python, entity.name.function.decorator.python | #bbb529 | — |
| support.function.magic.python | #56a8f5 | — |
| constant.character.format.placeholder.other.python | #cf8e6d | — |
| entity.name.package.go | #bcbec4 | — |
| entity.name.import.go | #6aab73 | — |
| entity.name.type.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #2aacb8 | — |
| entity.name.function.macro.rust, support.macro.rust | #56a8f5 | bold |
| meta.attribute.rust | #bbb529 | — |
| variable.other.normal.shell, variable.other.positional.shell, variable.other.bracket.shell, variable.other.special.shell | #bcbec4 | — |
| entity.name.namespace, entity.name.module, entity.name.type.module | #c77dbb | — |
| support.constant, support.variable | #c77dbb | — |
| markup.inserted | #73b00a | — |
| markup.deleted | #f75464 | — |
| markup.changed | #548af7 | — |
| invalid, invalid.illegal | #f75464 | — |
| invalid.deprecated | #e8a33e | strikethrough |
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}!`;
}