Midnight Breeze
Publisher: Leandro Aparecido de SiqueiraThemes in package: 1
Midnight Breeze is a stylish dark theme for Visual Studio Code, with a soft palette and balanced contrasts that help ease eye strain during long coding sessions.
Midnight Breeze is a stylish dark theme for Visual Studio Code, with a soft palette and balanced contrasts that help ease eye strain during 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 | #5C6773 | italic |
| keyword | #FF9D00 | bold |
| variable, identifier | #D6DEEB | — |
| string | #ECC48D | — |
| constant.numeric | #F78C6C | — |
| entity.name.function, support.function | #82AAFF | — |
| storage.type, support.class | #C792EA | — |
| entity.name.type | #ADD7FF | — |
| invalid, invalid.illegal | #FFFFFF | — |
| punctuation.separator, punctuation.terminator | #89DDFF | — |
| entity.name.tag | #FF5370 | — |
| entity.other.attribute-name | #C792EA | — |
| support.type.property-name | #82AAFF | — |
| constant.language | #FF9D00 | — |
| meta.preprocessor | #C792EA | — |
| entity.name.section | #82AAFF | bold |
| markup.heading | #82AAFF | bold |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline | — | underline |
| entity.name.class | #FFCC00 | bold |
| entity.name.interface | #82AAFF | bold |
| entity.name.namespace | #C792EA | — |
| entity.name.module | #C792EA | — |
| entity.name.import | #89DDFF | — |
| entity.name.label | #FF9D00 | — |
| entity.name.function.constructor | #FFCC00 | bold |
| entity.name.function.member | #82AAFF | — |
| support.function.builtin | #C792EA | — |
| support.function.magic | #C792EA | italic |
| variable.parameter | #ADD7FF | italic |
| variable.language | #FF9D00 | italic |
| variable.other.readwrite | #D6DEEB | — |
| variable.other.constant | #C792EA | — |
| variable.other.property | #82AAFF | — |
| string.quoted.single | #ECC48D | — |
| string.quoted.double | #ECC48D | — |
| string.quoted.triple | #ECC48D | — |
| string.template | #ECC48D | — |
| string.regexp | #C3E88D | — |
| string.interpolated | #ECC48D | — |
| keyword.operator.arithmetic | #89DDFF | — |
| keyword.operator.assignment | #89DDFF | — |
| keyword.operator.comparison | #89DDFF | — |
| keyword.operator.logical | #89DDFF | — |
| punctuation.definition.string | #ECC48D | — |
| punctuation.definition.array | #89DDFF | — |
| punctuation.definition.dictionary | #89DDFF | — |
| keyword.control.flow | #FF9D00 | bold |
| keyword.control.import | #FF9D00 | bold |
| keyword.control.export | #FF9D00 | bold |
| keyword.other.unit | #F78C6C | — |
| storage.modifier | #C792EA | — |
| storage.modifier.async | #C792EA | italic |
| constant.other.color | #F78C6C | — |
| constant.character.escape | #89DDFF | — |
| meta.function-call | #82AAFF | — |
| meta.method-call | #82AAFF | — |
| meta.property-name | #82AAFF | — |
| meta.object-literal.key | #82AAFF | — |
| support.type.primitive | #C792EA | — |
| support.class.builtin | #FFCC00 | — |
| support.constant | #C792EA | — |
| support.variable | #FF9D00 | — |
| markup.list | #ECC48D | — |
| markup.quote | #5C6773 | italic |
| markup.raw | #C3E88D | — |
| markup.fenced_code | #C3E88D | — |
| punctuation.definition.tag | #FF5370 | — |
| entity.other.attribute-name.class | #FFCC00 | — |
| entity.other.attribute-name.id | #82AAFF | — |
| source.css support.type.property-name | #82AAFF | — |
| source.css constant.numeric | #F78C6C | — |
| source.css support.constant.color | #F78C6C | — |
| source.json meta.structure.dictionary.key | #82AAFF | — |
| source.json meta.structure.dictionary.value string | #ECC48D | — |
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}!`;
}