Atom One Dark Syntax Theme
Publisher: Andreas SchererThemes in package: 1
Atom One Dark theme for VSCode
Atom One Dark 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 |
|---|---|---|
| — | #ABB2BF | — |
| comment | #5C6370 | italic |
| string | #98C379 | — |
| constant.numeric | #D19A66 | — |
| constant.language | #D19A66 | — |
| constant.character, constant.other | #56B6C2 | — |
| variable | #E06C75 | — |
| keyword | #C678DD | — |
| storage | #C678DD | italic |
| storage.type | #C678DD | |
| entity.name.class | #E5C07B | |
| entity.other.inherited-class | #E5C07B | italic underline |
| entity.name.function | #61AFEF | |
| variable.parameter | #ABB2BF | |
| entity.name.tag | #E06C75 | — |
| entity.other.attribute-name | #D19A66 | italic |
| support.function | #56B6C2 | |
| support.constant | #D19A66 | |
| support.type, support.class | #E06C75 | |
| support.other.variable | — | |
| invalid | #FFFFFF | |
| invalid.deprecated | #523D14 | — |
| meta.structure.dictionary.json string.quoted.double.json | #98C379 | — |
| meta.diff, meta.diff.header | #75715E | — |
| markup.deleted | #F92672 | — |
| markup.inserted | #A6E22E | — |
| markup.changed | #E6DB74 | — |
| constant.numeric.line-number.find-in-files - match | #AE81FFA0 | — |
| entity.name.filename.find-in-files | #E6DB74 | — |
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}!`;
}