Postdawn
Publisher: Douglas Soares de AndradeThemes in package: 1
Postdawn is a dark interface and syntax theme for VSCode
Postdawn is a dark interface and syntax theme for VSCode
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #c5c8c6 | — |
| variable.parameter.function | #c5c8c6 | — |
| comment, punctuation.definition.comment | #969896 | — |
| punctuation.definition.string, punctuation.definition.variable, punctuation.definition.string, punctuation.definition.parameters, punctuation.definition.string, punctuation.definition.array | #c5c8c6 | — |
| none | #c5c8c6 | — |
| keyword.operator | #c5c8c6 | — |
| keyword | #b294bb | — |
| variable | #cc6666 | — |
| entity.name.function, meta.require, support.function.any-method | #81a2be | — |
| support.class, entity.name.class, entity.name.type.class | #f0c674 | — |
| meta.class | #ffffff | — |
| keyword.other.special-method | #81a2be | — |
| storage | #b294bb | — |
| support.function | #8abeb7 | — |
| string, constant.other.symbol, entity.other.inherited-class | #b5bd68 | — |
| constant.numeric | #de935f | — |
| none | #de935f | — |
| none | #de935f | — |
| constant | #de935f | — |
| entity.name.tag | #cc6666 | — |
| entity.other.attribute-name | #de935f | — |
| entity.other.attribute-name.id, punctuation.definition.entity | #81a2be | — |
| meta.selector | #b294bb | — |
| none | #de935f | — |
| markup.heading punctuation.definition.heading, entity.name.section | #81a2be | |
| keyword.other.unit | #de935f | — |
| markup.bold, punctuation.definition.bold | #f0c674 | bold |
| markup.italic, punctuation.definition.italic | #b294bb | italic |
| markup.raw.inline | #b5bd68 | — |
| string.other.link | #cc6666 | — |
| meta.link | #de935f | — |
| markup.list | #cc6666 | — |
| markup.quote | #de935f | — |
| meta.separator | #c5c8c6 | — |
| markup.inserted | #b5bd68 | — |
| markup.deleted | #cc6666 | — |
| markup.changed | #b294bb | — |
| constant.other.color | #8abeb7 | — |
| string.regexp | #8abeb7 | — |
| constant.character.escape | #8abeb7 | — |
| punctuation.section.embedded, variable.interpolation | #a3685a | — |
| invalid.illegal | #969896 | — |
| sublimelinter.mark.error | #D02000 | — |
| sublimelinter.mark.warning | #DDB700 | — |
| sublimelinter.gutter-mark | #FFFFFF | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}
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}!`;
}