Adam
Publisher: Ricardo BritoThemes in package: 2
Adam is a minimalist and elegant theme with a built-in icon pack.
Adam is a minimalist and elegant theme with a built-in icon pack.
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 |
|---|---|---|
| source, keyword.other.unit, constant.numeric.css, text.html.derivative, variable.other.object, variable.other.readwrite, variable.other.constant, support.type.property-name.css, meta.field.declaration, meta.object.member, meta.definition.method, punctuation.separator.comma, punctuation.terminator.statement, punctuation.definition.section.case-statement, source.yaml, meta.paragraph.markdown, string.other.link.title, text.html.markdown, support.class.promise, support.type.object.module, string.quoted.double.json, variable.parameter, entity.name.function, punctuation.accessor, punctuation.separator.parameter, entity.name.type, entity.name.type.alias, entity.name.type.interface | #f8f9fa | italic bold |
| comment, comment.line.double-slash.js, punctuation.definition.tag | #7D87A3 | italic bold |
| string.quoted, string.template, markup.quote.markdown | #fff3ad | italic bold |
| constant.language.boolean, constant.numeric, constant.numeric.json.comments, markup.underline.link, punctuation.definition.bold, variable.other.constant.property, source.ts | #8be9fd | italic bold |
| storage, keyword, entity.name.tag, punctuation.separator.key-value.html, constant.language.json.comments | #FF8DC7 | italic bold |
| support.type.primitive | #FFAF8D | italic bold |
| support.type.property-name.json, constant.language.boolean, entity.name.function, entity.other.attribute-name.class, markup.list.unnumbered, markup.inline.raw.string.markdown, entity.name.tag.yaml | #A8FFAF | italic bold |
| variable.language.this, constant.numeric.json.comments, support.type, entity.other.attribute-name.id, source.js, punctuation.terminator.rule, punctuation.separator.key-value, meta.property-name, punctuation.definition.heading, entity.name.section, punctuation.definition.italic, variable.language.this, support.type.swift | #ab9df2 | italic bold |
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}!`;
}