Astronomy
Publisher: DragWxThemes in package: 3
A dichromatic warm/neutral/cool theme for Visual Studio Code
A dichromatic warm/neutral/cool theme for Visual Studio Code
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 | #777777 | italic |
| string, punctuation.definition.string.begin, punctuation.definition.string.end, markup.inline.raw.string | #DD6677 | — |
| constant.character.escape | #AA4499 | — |
| keyword.control, keyword.operator.new, keyword.other, keyword.operator.expression, string.regexp support.other.match.begin, string.regexp support.other.match.end | #3388EE | italic |
| punctuation, keyword.operator.comparison, keyword.operator.relational, keyword.operator.logical, keyword.operator.or, keyword.operator.disjunction, string.regexp keyword.operator.lookahead, meta.brace | #3388EE | — |
| constant.language, source.css support.constant | #AADDFF | italic |
| entity.name.function, support.function, entity.name.tag, markup.heading, string.regexp keyword.operator.quantifier | #AADDFF | — |
| meta.template.expression, string.unquoted.heredoc.php, punctuation.definition.variable.php, variable.other.php, meta.embedded.block.php, meta.interpolation, text.html.php, variable.other.php | #EEEEEE | — |
| storage, keyword.other.namespace, keyword.operator.assignment, keyword.operator.increment, keyword.operator.decrement, punctuation.definition.bold, punctuation.definition.italic, punctuation.definition.underline, punctuation.definition.strikethrough, meta.brace.square, punctuation.definition.begin.bracket.square, punctuation.definition.end.bracket.square | #DD6677 | — |
| entity.name.type, entity.other.inherited-class, support.type, support.class, keyword.type | #EE9977 | italic |
| keyword.operator.type, keyword.operator.optional, string.regexp constant.other.character-class, string.regexp punctuation.definition.character-class, string.regexp punctuation.character.set, string.regexp support.other.escape.special, string.regexp support.other.match.any | #EE9977 | — |
| constant.numeric, keyword.other.unit, variable.other.property, variable.other.constant.property, support.variable.property, meta.object-literal.key, entity.other.attribute-name, string.regexp constant.other.character-class.set, string.regexp constant.other.character-class.range, string.regexp constant.character.set, markup.bold, markup.italic, markup.underline, markup.strikethrough | #EECCAA | |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline | — | underline |
| markup.strikethrough | — | strikethrough |
| markup.heading | — | bold |
| token.info-token | #6796e6 | — |
| token.warn-token | #cd9731 | — |
| token.error-token | #f44747 | — |
| token.debug-token | #b267e6 | — |
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}!`;
}