Slate Neon
Publisher: Oskar SodelThemes in package: 1
Slate Neon is a dark, minimalist theme with soft neon accents. Subtle colors for functions, classes, and variables make your code easy to read and gentle on the eyes.
Slate Neon is a dark, minimalist theme with soft neon accents. Subtle colors for functions, classes, and variables make your code easy to read and gentle on the eyes.
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 | #6A6F85 | italic |
| keyword, keyword.control, keyword.operator, storage.type, storage.modifier | #FF6FAE | bold |
| string, constant.character, string.quoted.double, string.quoted.single, string.interpolated | #A0F0C0 | bold |
| entity.name.function, support.function, variable.function | #4FE0D0 | — |
| variable, variable.parameter | #FFA64F | — |
| constant.numeric | #82B1FF | — |
| constant.language, support.type.builtin | #C39AFF | bold |
| entity.name.type, support.class | #FF6FAE | underline |
| entity.name.tag.html | #FF6FAE | — |
| entity.other.attribute-name, variable.language | #4FE0D0 | — |
| string.quoted.double.html, string.quoted.single.html | #A0F0C0 | — |
| entity.name.tag.css, entity.other.attribute-name.id.css, entity.other.attribute-name.class.css | #FF6FAE | bold |
| support.type.property-name.css, meta.property-name.css | #FFA64F | — |
| constant.numeric.css | #82B1FF | — |
| entity.name.class, entity.name.selector.css | #C39AFF | — |
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}!`;
}