Ven Atomize
Publisher: Ven AtomizeThemes in package: 1
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, punctuation.definition.comment | #5C6370 | italic |
| keyword, storage, variable.language.super, variable.language.this, variable.language.special | #ff0000 | — |
| string, punctuation.definition.string | #91f748 | — |
| constant, keyword.other.unit, variable.other.constant, variable.other.enummember | #f4a81c | — |
| entity.name.function, support.function, punctuation.definition.decorator, punctuation.decorator, meta.function-call.generic | #269bfc | — |
| entity.name.type, entity.other.inherited-class, support.class | #d455f7 | — |
| meta.type.annotation, meta.type.parameters, support.type.primitive, support.type.builtin, support.type.exception | #f4a81c | — |
| punctuation.accessor, keyword.operator.logical, keyword.operator.comparison, keyword.operator.increment, keyword.operator.decrement, keyword.operator.assignment, keyword.operator.relational, keyword.operator.ternary, keyword.operator.arithmetic, keyword.operator.rest, keyword.operator.spread, keyword.operator.type, keyword.operator.optional, keyword.operator.combinator, keyword.operator.pattern, keyword.operator.or, keyword.operator.quantifier, keyword.operator.bitwise | #00daf7 | — |
| punctuation, keyword.operator.type.annotation, meta.brace | #ABB2BF | — |
| variable, entity.name, support.variable | #fd8181 | — |
| meta.object-literal.key | #ff2583 | — |
| punctuation.definition.directive.cpp, keyword.other.using.directive.cpp | #c106fa | — |
| entity.name.scope-resolution.parameter.cpp, entity.name.scope-resolution.cpp, entity.name.scope-resolution.function.call.cpp, entity.name.scope-resolution.template.call.cpp, entity.name.scope-resolution.function.definition.cpp | #f4a81c | — |
| punctuation.definition.keyword.css, punctuation.definition.keyword.scss, keyword.operator.logical.and.media.css, keyword.operator.logical.and.media.scss, keyword.operator.logical.scss | #c106fa | — |
| support.constant.property-value.css, support.constant.vendored.property-value.css, support.constant.color.w3c-standard-color-name.css, support.constant.font-name.css, punctuation.definition.constant.css, entity.other.attribute-name.css, entity.other.attribute-name.attribute.scss | #f4a81c | — |
| keyword.operator.css, keyword.operator.scss | #00daf7 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #ff0015 | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #f4a81c | — |
| meta.property-value.css | #ff0015 | — |
| support.type.map.key.scss, entity.other.keyframe-offset.css, meta.property-name.css, entity.other.attribute-name.scss, support.type.property-name.media.css | #61e900 | — |
| meta.attribute-selector.scss | #61e900 | — |
| variable.parameter.url.css, variable.parameter.url.scss | #ABB2BF | — |
| punctuation.whitespace.comment | #5C6370 | italic |
| support.type.graphql, support.type.location.graphql, support.type.enum.graphql, entity.scalar.graphql | #f4a81c | — |
| punctuation.or.graphql, keyword.operator.nulltype.graphql, punctuation.assignment.graphql | #00daf7 | — |
| entity.other.attribute-name.html, entity.other.attribute-name.localname.xml, entity.other.attribute-name.namespace.xml | #f4a81c | italic |
| entity.other.attribute-name.js, entity.other.attribute-name.tsx | #f4a81c | italic |
| support.constant.json.js, support.constant.json.jsx, support.constant.json.ts, support.constant.json.tsx, support.constant.math.js, support.constant.math.jsx, support.constant.math.ts, support.constant.math.tsx | #f4a81c | — |
| support.type.object.module.js, support.type.object.module.jsx, support.type.object.module.ts, support.type.object.module.tsx | #00daf7 | — |
| punctuation.section.embedded.begin.js, punctuation.section.embedded.begin.tsx, punctuation.section.embedded.end.js, punctuation.section.embedded.end.tsx | #ff6d60 | — |
| variable.other.constant.js, variable.other.constant.jsx, variable.other.constant.ts, variable.other.constant.tsx | #ff8800 | — |
| string.json, punctuation.support.type.property-name.begin.json, punctuation.support.type.property-name.end.json | #ff0015 | — |
| punctuation.definition.heading.markdown | #ff0015 | — |
| markup.italic.markdown, punctuation.definition.italic.markdown | #c106fa | italic |
| markup.bold.markdown, punctuation.definition.bold.markdown | #f4a81c | bold |
| punctuation.definition.raw.markdown, markup.inline.raw.string.markdown, punctuation.definition.markdown, fenced_code.block.language.markdown | #61e900 | — |
| punctuation.definition.list.begin.markdown | #ff0015 | — |
| markup.quote.markdown, punctuation.definition.quote.begin.markdown | — | italic |
| markup.underline.link.markdown, markup.underline.link.image.markdown | #00daf7 | — |
| fenced_code.block.language.markdown | — | italic |
| keyword.operator.python, keyword.operator.unpacking.arguments.python, punctuation.separator.period.python | #00daf7 | — |
| keyword.operator.logical.python | #c106fa | — |
| support.type.python | #f4a81c | — |
| source.python | #ff8800 | — |
| punctuation.definition.arguments.begin.python | #ABB2BF | — |
| entity.name.function.python | #269bfc | — |
| entity.name.function.decorator.python | #269bfc | — |
| entity.name.type.class.python | #d455f7 | — |
| string.quoted.single.python | #91f748 | — |
| variable.other.readwrite.instance.python | #ff0000 | — |
| variable.other.constant.python | #f41c9a | — |
| support.type.builtin.python | #00daf7 | — |
| constant.other.table-name.sql, constant.other.database-name.sql | #ABB2BF | — |
| keyword.operator.math.sql, keyword.operator.star.sql | #00daf7 | — |
| keyword.key.toml, entity.other.attribute-name.table.toml, entity.other.attribute-name.table.array.toml | #ff0015 | — |
| keyword.control.flow.block-scalar.folded.yaml, keyword.control.flow.block-scalar.literal.yaml, storage.modifier.chomping-indicator.yaml | #00daf7 | — |
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}!`;
}