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, 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, meta.jsx.children.js.jsx, meta.jsx.children.tsx, entity.other.inherited-class.ts, variable.language.this.ts | #787892 | italic bold |
| comment, comment.line.double-slash.js, punctuation.definition.tag, string.quoted, string.template, entity.other.attribute-name.js.jsx, entity.other.attribute-name.tsx, entity.other.attribute-name.attribute.scss, entity.other.attribute-name.pseudo-element.css, variable.other.enummember.ts, text.html.derivative, support.type.property-name.css, constant.other.color.rgb-value.hex.css | #9393A8 | italic bold |
| comment, comment.line.double-slash.js | #8F8FAD | italic bold |
| constant.language.boolean, constant.numeric, constant.numeric.json.comments, markup.underline.link, punctuation.definition.bold, variable.other.constant.property, constant.numeric.css, keyword.other.unit | #8DDDFF | italic bold |
| storage, keyword, entity.name.tag, punctuation.separator.key-value.html, support.type.property-name.json | #FF80BF | italic bold |
| support.type.primitive, string.quoted.double.css, string.quoted.single.css, string.quoted.double, string.quoted.single, markup.quote.markdown, support.type.swift | #FFAF8D | italic bold |
| variable.argument.css, support.constant.property-value.css, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, entity.name.type.ts, string.quoted.double, string.quoted.single | #AFAEC3 | italic bold |
| constant.language.boolean, entity.name.function, markup.list.unnumbered, meta.attribute-selector.scss, variable.language.super.ts, support.function.misc.css, support.function.calc.css, entity.other.attribute-name, markup.inline.raw.string.markdown | #79F391 | italic bold |
| support.type, constant.numeric.json.comments, entity.other.attribute-name.id, meta.property-name, constant.language.json.comments, punctuation.definition.heading, entity.name.section, punctuation.definition.italic, support.class.component.js.jsx, support.class.component.tsx, variable.other.property, support.function.kernel.ruby | #B1B2FF | 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}!`;
}