Codex Palette for VS Code
All 43 Codex appearance presets for VS Code, with faithful colors and one-click system appearance switching.
All 43 Codex appearance presets for VS Code, with faithful colors and one-click system appearance switching.
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 | #71717a | — |
| string, constant.other.symbol, markup.inline.raw | #14b8a6 | — |
| constant.numeric, constant.language.boolean, constant.language.null | #f59e0b | — |
| constant, variable.other.constant | #e4e4e7 | — |
| keyword, storage.type, storage.modifier | #ff5c5c | — |
| variable, meta.object-literal.key, support.variable.property, meta.property-name | #e4e4e7 | — |
| variable.parameter, function.parameter | #71717a | — |
| entity.name.function, support.function, variable.function, meta.function-call | #22c55e | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #22c55e | — |
| entity.name.namespace, entity.name.type.namespace | #e4e4e7 | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment | #f59e0b | — |
| punctuation, meta.brace | #71717a | — |
| entity.name.tag, punctuation.definition.tag | #ff5c5c | — |
| entity.other.attribute-name | #f59e0b | — |
| string.regexp, constant.regexp | #f59e0b | — |
| markup.heading, entity.name.section | #ff5c5c | bold |
| markup.bold, punctuation.definition.bold | #e4e4e7 | bold |
| markup.italic, punctuation.definition.italic | #ff5c5c | italic |
| markup.underline.link, string.other.link | #ff5c5c | underline |
| markup.inserted | #14b8a6 | — |
| markup.deleted | #ff5c5c | — |
| markup.changed | #e4e4e7 | — |
| invalid | #ffffff | — |
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 | #6b6e6e | — |
| string, constant.other.symbol, markup.inline.raw | #C3E88D | — |
| constant.numeric, constant.language.boolean, constant.language.null | #82AAFF | — |
| constant, variable.other.constant | #f07178 | — |
| keyword, storage.type, storage.modifier | #f07178 | — |
| variable, meta.object-literal.key, support.variable.property, meta.property-name | #f07178 | — |
| variable.parameter, function.parameter | #6b6e6e | — |
| entity.name.function, support.function, variable.function, meta.function-call | #C792EA | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #C792EA | — |
| entity.name.namespace, entity.name.type.namespace | #f07178 | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment | #82AAFF | — |
| punctuation, meta.brace | #6b6e6e | — |
| entity.name.tag, punctuation.definition.tag | #f07178 | — |
| entity.other.attribute-name | #82AAFF | — |
| string.regexp, constant.regexp | #82AAFF | — |
| markup.heading, entity.name.section | #f07178 | bold |
| markup.bold, punctuation.definition.bold | #f07178 | bold |
| markup.italic, punctuation.definition.italic | #f07178 | italic |
| markup.underline.link, string.other.link | #717171 | underline |
| markup.inserted | #C3E88D | — |
| markup.deleted | #f07178 | — |
| markup.changed | #f07178 | — |
| invalid | #ffffff | — |
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 | #3f8f52 | — |
| string, constant.other.symbol, markup.inline.raw | #7dff95 | — |
| constant.numeric, constant.language.boolean, constant.language.null | #55ff7d | — |
| constant, variable.other.constant | #b8ffca | — |
| keyword, storage.type, storage.modifier | #1eff5a | — |
| variable, meta.object-literal.key, support.variable.property, meta.property-name | #b8ffca | — |
| variable.parameter, function.parameter | #3f8f52 | — |
| entity.name.function, support.function, variable.function, meta.function-call | #9bffb8 | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #9bffb8 | — |
| entity.name.namespace, entity.name.type.namespace | #b8ffca | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment | #55ff7d | — |
| punctuation, meta.brace | #3f8f52 | — |
| entity.name.tag, punctuation.definition.tag | #1eff5a | — |
| entity.other.attribute-name | #55ff7d | — |
| string.regexp, constant.regexp | #55ff7d | — |
| markup.heading, entity.name.section | #1eff5a | bold |
| markup.bold, punctuation.definition.bold | #b8ffca | bold |
| markup.italic, punctuation.definition.italic | #1eff5a | italic |
| markup.underline.link, string.other.link | #1eff5a | underline |
| markup.inserted | #7dff95 | — |
| markup.deleted | #1eff5a | — |
| markup.changed | #b8ffca | — |
| invalid | #ffffff | — |
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 | #88846f | — |
| string, constant.other.symbol, markup.inline.raw | #86B42B | — |
| constant.numeric, constant.language.boolean, constant.language.null | #6A7EC8 | — |
| constant, variable.other.constant | #F8F8F2 | — |
| keyword, storage.type, storage.modifier | #C4265E | — |
| variable, meta.object-literal.key, support.variable.property, meta.property-name | #F8F8F2 | — |
| variable.parameter, function.parameter | #88846f | — |
| entity.name.function, support.function, variable.function, meta.function-call | #8C6BC8 | — |
| entity.name.type, entity.name.class, support.type, support.class, entity.other.inherited-class | #8C6BC8 | — |
| entity.name.namespace, entity.name.type.namespace | #F8F8F2 | — |
| keyword.operator.arithmetic, keyword.operator.comparison, keyword.operator.logical, keyword.operator.assignment | #6A7EC8 | — |
| punctuation, meta.brace | #88846f | — |
| entity.name.tag, punctuation.definition.tag | #C4265E | — |
| entity.other.attribute-name | #6A7EC8 | — |
| string.regexp, constant.regexp | #819aff | — |
| markup.heading, entity.name.section | #C4265E | bold |
| markup.bold, punctuation.definition.bold | #F8F8F2 | bold |
| markup.italic, punctuation.definition.italic | #C4265E | italic |
| markup.underline.link, string.other.link | #75715E | underline |
| markup.inserted | #86B42B | — |
| markup.deleted | #C4265E | — |
| markup.changed | #F8F8F2 | — |
| invalid | #ffffff | — |
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}!`;
}
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}!`;
}