Vercel Cursor Theme
Publisher: fleimThemes in package: 1
Theme with vercel color palette and cursor background colors
Theme with vercel color palette and cursor background colors
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, string.comment | #a1a1a1 | — |
| entity.name.type | #bf7af0 | — |
| entity.other.attribute-name, entity.name.function, meta.function-call, token.debug-token | #c472fb | — |
| meta.diff.range | #c472fb | bold |
| constant, entity.name.constant, variable.other.constant, variable.language, entity, source.python, entity.name, meta.export.default, meta.definition.variable, support.class.component, support.type.primitive, support.type.builtin, support.type.object.module, variable.other.object, support.type.property-name.css, meta.property-name, support.constant, support.variable, meta.module-reference, string.regexp.character-class, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition, string variable, source.regexp, string.regexp, markup.quote, markup.raw, markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted, meta.diff.header, meta.output | #52a8ff | — |
| markup.heading, markup.heading entity.name, string.regexp constant.character.escape, meta.separator | #52a8ff | bold |
| constant.other.reference.link, string.other.link | #52a8ff | underline |
| variable.parameter.function, meta.jsx.children, meta.block, meta.tag.attributes, entity.name.constant, meta.object.member, meta.embedded.expression, meta.template.expression, string.other.begin.yaml, string.other.end.yaml, meta.function-call.arguments.python, storage.modifier.package, storage.modifier.import, storage.type.java, variable, variable.other, string source, meta.export.default, brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #ededed | — |
| markup.italic | #ededed | italic |
| markup.bold | #ededed | bold |
| keyword, keyword.operator, storage, storage.type, storage.type.function.arrow, punctuation.separator.key-value, entity.name.tag.yaml, punctuation.separator.key-value.mapping.yaml, support, punctuation.definition.template-expression, invalid.broken, invalid.deprecated, invalid.illegal, invalid.unimplemented, message.error, markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted, brackethighlighter.unmatched, token.error-token | #ff4d8d | — |
| string, punctuation.definition.string, string punctuation.section.embedded source, entity.name.tag | #62c073 | — |
| carriage-return | #111111 | — |
| punctuation.definition.list.begin.markdown, markup.changed, punctuation.definition.changed, token.warn-token | #eaac00 | — |
| markup.ignored, markup.untracked | #777777 | — |
| token.info-token | #6796E6 | — |
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}!`;
}