Neptune
Publisher: Matheus MazetoThemes in package: 1
A great theme inspired in Neptune planet.
A great theme inspired in Neptune planet.
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 |
|---|---|---|
| Global settings | #FFFFFF | — |
| string | #FE6B8F | — |
| constant.language.boolean | #8B78EA | — |
| constant.numeric | #FFD96C | — |
| variable, support.variable, support.class, support.type, support.constant, meta.definition.variable, entity.name | #AFCCE9 | — |
| keyword, modifier, variable.language.this, support.type.object, constant.language | #8B78EA | italic |
| entity.name.function, support.function | #FFD96C | — |
| storage.type, storage.modifier | #8B78EA | italic |
| support.module, support.node | #FD9F71 | italic |
| support.type | #AEDD7E | — |
| entity.name.type, entity.other.inherited-class | #AEDD7E | — |
| comment | #4b5775 | italic |
| entity.name.type.class | #AEDD7E | underline |
| variable.object.property | #AEDD7E | — |
| meta.definition.method entity.name.function | #AEDD7E | — |
| meta.function entity.name.function | #AEDD7E | — |
| template.expression.begin, template.expression.end | #8B78EA | — |
| entity.name.tag.yaml | #FFD96C | — |
| meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json | #FFD96C | — |
| constant.language.json | #8B78EA | — |
| entity.other.attribute-name.class | #8B78EA | — |
| entity.other.attribute-name.id | #FE6B8F | — |
| source.css entity.name.tag | #AEDD7E | — |
| meta.tag, punctuation.definition.tag | #8B78EA | — |
| entity.name.tag | #ffebff | — |
| entity.other.attribute-name | #FFD96C | italic |
| markup.heading | #8B78EA | — |
| text.html.markdown meta.link.inline, meta.link.reference | #ffebff | — |
| text.html.markdown beginning.punctuation.definition.list | #8B78EA | — |
| markup.italic | #ffebff | italic |
| markup.bold | #ffebff | bold |
| markup.bold markup.italic, markup.italic markup.bold | #ffebff | italic bold |
| keyword.other.definition.ini | #ffebff | — |
| entity.name.section.group-title.ini | #8B78EA | — |
| source.cs meta.class.identifier storage.type | #AEDD7E | underline |
| source.cs meta.method.identifier entity.name.function | #AEDD7E | — |
| source.cs meta.method-call meta.method, source.cs entity.name.function | #FFD96C | — |
| source.cs storage.type | #AEDD7E | — |
| source.cs meta.method.return-type | #AEDD7E | — |
| source.cs meta.preprocessor | #4b5775 | — |
| source.cs entity.name.type.namespace | #FFFFFF | — |
| Global settings | #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}!`;
}