Anirak
Publisher: barjoThemes in package: 2
Anirak is a modern, minimalistic theme, designed to be soothing to the eyes and refreshing to the mind.
Anirak is a modern, minimalistic theme, designed to be soothing to the eyes and refreshing to the mind.
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 |
|---|---|---|
| keyword.package, keyword.function, storage.type.function, storage.type.sub, keyword.control.def, storage.type.config, keyword.other.fn, storage.type.model | #3d91ff | — |
| storage, keyword.type, keyword.import, keyword.other.class, keyword.other.var, keyword.other.namespace, variable.language.this, keyword.other.DML, keyword.other.sql, support.type.property-name.css, variable.css, keyword.other.DDL, storage.type, storage.modifier.perl, support.type, entity.name.tag, entity.name.type.ts, entity.name.type.tsx, entity.name.type.cpp, entity.other.inherited-class, keyword.control.lua | #3d91ff | — |
| keyword, punctuation, keyword.operator, meta.brace, meta.selector, meta.tag, punctuation.section.embedded.begin.php, punctuation.section.embedded.end.php, source.php, source.prisma, storage.modifier.async, meta.property-list, punctuation.section.embedded.begin, punctuation.section.embedded.end, source.css, source.perl, punctuation.definition.string.begin.shell, punctuation.definition.string.end.shell | #16216bA0 | — |
| entity.other.attribute-name.pseudo-class, entity.name.function.attribute, meta.group.regexp, meta.selector.css | #16216bA0 | italic |
| punctuation.definition.comment, comment | #16216b50 | italic |
| support, variable.other.object.property, variable.other.property, entity.name.tag.css, entity.other.attribute-name, meta.object-literal.key | #2b2e4b | italic |
| support.function, entity.other.attribute-name.class.css, meta.function-call, entity.name.function.js | #2eafff | bold |
| entity.name.function, entity.name.tag.wildcard, entity.name.type.config, entity.name.package, entity.name.type.model, keyword.go.mod | #2b2e4b | — |
| entity.name.function.macro | #2eafff | — |
| support.class, support.type.property-name.json, variable, source, source.swift, entity.name, entity.name.tag.yaml, constant.language.boolean.yaml, support.constant.property-value.css, support.constant.color, support.constant, entity.other, entity.other.attribute-name.css, entity.other.attribute-name.localname, entity.name.type, text.html, meta.jsx.children, entity.other.attribute-name.class, entity.other.attribute-name.id, meta.property-value.css, string.other.math, punctuation.section.embedded.begin.swift, support.function.any-method | #2b2e4b | — |
| string, punctuation.definition.string, storage.modifier.import | #4c6aff | — |
| entity.name.import | #4c6aff | underline |
| constant, keyword.other.unit | #00d368 | |
| invalid.deprecated | #ff3557 | — |
| storage.modifier, storage.type.modifier, fenced_code.block.language, keyword.other.declaration-specifier.accessibility, storage.type.class.jsdoc, variable.prop.css, support.class.component | #2eafff | italic |
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}!`;
}