VSCode Vercel Theme
Publisher: Gabriel MorenoThemes in package: 2
A carefully crafted set of colorschemes that are faithful to Next.js & Vercel's docs
A carefully crafted set of colorschemes that are faithful to Next.js & Vercel's docs
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.other.attribute-name | #b675f1 | — |
| constant, entity.name.constant, variable.other.constant, variable.language, entity | #62a6ff | — |
| entity.name, meta.export.default, meta.definition.variable | #62a6ff | — |
| 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 | #ededed | — |
| entity.name.function, support.type.primitive | #b675f1 | — |
| support.class.component | #62a6ff | — |
| keyword | #f05b8d | — |
| keyword.operator, storage.type.function.arrow, punctuation.separator.key-value.css, entity.name.tag.yaml, punctuation.separator.key-value.mapping.yaml | #f05b8d | — |
| storage, storage.type | #f05b8d | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #ededed | — |
| string, punctuation.definition.string, string punctuation.section.embedded source, entity.name.tag | #58c760 | — |
| support | #f05b8d | — |
| support.type.object.module, variable.other.object, support.type.property-name.css | #62a6ff | — |
| meta.property-name | #62a6ff | — |
| variable | #ededed | — |
| variable.other | #ededed | — |
| invalid.broken | #f05b8d | — |
| invalid.deprecated | #f05b8d | — |
| invalid.illegal | #f05b8d | — |
| invalid.unimplemented | #f05b8d | — |
| carriage-return | #111111 | — |
| message.error | #f05b8d | — |
| string source | #ededed | — |
| string variable | #62a6ff | — |
| source.regexp, string.regexp | #62a6ff | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #62a6ff | — |
| string.regexp constant.character.escape | #62a6ff | bold |
| support.constant | #62a6ff | — |
| support.variable | #62a6ff | — |
| meta.module-reference | #62a6ff | — |
| punctuation.definition.list.begin.markdown | #f99902 | — |
| markup.heading, markup.heading entity.name | #62a6ff | bold |
| markup.quote | #62a6ff | — |
| markup.italic | #ededed | italic |
| markup.bold | #ededed | bold |
| markup.raw | #62a6ff | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #f05b8d | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #62a6ff | — |
| markup.changed, punctuation.definition.changed | #f99902 | — |
| markup.ignored, markup.untracked | #777777 | — |
| meta.diff.range | #b675f1 | bold |
| meta.diff.header | #62a6ff | — |
| meta.separator | #62a6ff | bold |
| meta.output | #62a6ff | — |
| meta.export.default | #ededed | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #ededed | — |
| brackethighlighter.unmatched | #f05b8d | — |
| constant.other.reference.link, string.other.link | #62a6ff | underline |
| token.info-token | #6796E6 | — |
| token.warn-token | #f99902 | — |
| token.error-token | #f05b8d | — |
| token.debug-token | #b675f1 | — |
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}!`;
}