Vlad.studio Tiniri Theme
Publisher: Vlad.studioThemes in package: 4
A soft and cozy theme, with slightly retro warm colours.
A soft and cozy theme, with slightly retro warm colours.
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 | #4E535F | — |
| constant.character.escape, entity.name.type.tsx, support.type.primitive.tsx, entity.name.type.ts, support.type.primitive.ts | #9F9A9388 | — |
| punctuation | #9F9A93BB | — |
| punctuation.definition.comment | #9F9A9355 | — |
| entity.name.tag, keyword, markup.inline.raw, markup.quote.markdown, meta.brace, meta.delimiter, meta.method, meta.property-name, object.comma, raw, storage, support.constant, keyword.other, keyword.control, variable.language | #9F9A93 | — |
| constant, entity.name.tag.css, entity.other.attribute-name.css, meta.selector.css, meta.tag, meta.jsx.children, source, string, support.class | #E8E6E3 | — |
| entity.name.function, entity.name.section.markdown, invalid.broken, meta.template.expression, support.variable, variable, variable.other.property, variable.other.readwrite | #85A0AD | — |
| entity.other, markup.inserted, markup.underline.link, meta.attribute-selector, meta.function-call, meta.object-literal.key, meta.selector, object, support.function, support.type, variable.function, variable.other, variable.parameter, variable.scss, variable.sass, variable.parameter.url | #85A0AD | — |
| invalid | #E59793 | — |
| markup.changed, meta.diff.header | #85A0AD99 | — |
| markup.deleted | #85A0AD99 | — |
| quote | #538A8A | — |
| meta.property-list.css meta.property-value.css variable.other.less, meta.property-list.scss variable.scss, meta.property-list.sass variable.sass, meta.brace, keyword.operator.operator, keyword.operator.or.regexp, keyword.operator.expression.in, keyword.operator.relational, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.type, keyword.operator, keyword, punctuation.definintion.string, punctuation, storage.type, source.css, string.quoted | — |
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}!`;
}