XK Theme - Safe Colors & Custom Background
A VSCode & Cursor theme extension with safe color presets and custom background image support.
A VSCode & Cursor theme extension with safe color presets and custom background image support.
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|
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 | #6c7086 | italic |
| string, string.quoted, string.template | #a6e3a1 | — |
| keyword, keyword.control, keyword.operator.new, storage.type, storage.modifier | #cba6f7 | — |
| constant.numeric, constant.language | #fab387 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, support.type, support.class | #89dceb | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #89b4fa | — |
| variable, variable.other, support.variable | #cdd6f4 | — |
| variable.parameter | #cdd6f4e6 | italic |
| punctuation, meta.brace | #cdd6f4b3 | — |
| keyword.operator | #cdd6f4cc | — |
| entity.name.tag | #cba6f7 | — |
| entity.other.attribute-name | #cba6f7 | — |
| support.type.property-name.css | #cba6f7 | — |
| support.constant.property-value.css | #a6e3a1 | — |
| keyword.control.import, keyword.control.from, keyword.control.export | #cba6f7 | italic |
| meta.decorator, punctuation.decorator | #89b4fa | italic |
| invalid, invalid.illegal | #f38ba8 | underline |
| markup.heading, entity.name.section | #cba6f7 | bold |
| markup.bold | #89dceb | bold |
| markup.italic | #89b4fa | italic |
| markup.underline.link, string.other.link | #89b4fa | underline |
| markup.inline.raw, markup.inline.raw.string | #a6e3a1 | — |
| markup.fenced_code.block, markup.raw.block | #cdd6f4 | — |
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 | #6272a4 | italic |
| string, string.quoted, string.template | #f1fa8c | — |
| keyword, keyword.control, keyword.operator.new, storage.type, storage.modifier | #ff79c6 | — |
| constant.numeric, constant.language | #bd93f9 | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, support.type, support.class | #8be9fd | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #50fa7b | — |
| variable, variable.other, support.variable | #f8f8f2 | — |
| variable.parameter | #f8f8f2e6 | italic |
| punctuation, meta.brace | #f8f8f2b3 | — |
| keyword.operator | #f8f8f2cc | — |
| entity.name.tag | #ff79c6 | — |
| entity.other.attribute-name | #bd93f9 | — |
| support.type.property-name.css | #bd93f9 | — |
| support.constant.property-value.css | #f1fa8c | — |
| keyword.control.import, keyword.control.from, keyword.control.export | #ff79c6 | italic |
| meta.decorator, punctuation.decorator | #ff79c6 | italic |
| invalid, invalid.illegal | #ff5555 | underline |
| markup.heading, entity.name.section | #bd93f9 | bold |
| markup.bold | #8be9fd | bold |
| markup.italic | #ff79c6 | italic |
| markup.underline.link, string.other.link | #50fa7b | underline |
| markup.inline.raw, markup.inline.raw.string | #f1fa8c | — |
| markup.fenced_code.block, markup.raw.block | #f8f8f2 | — |
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 | #928374 | italic |
| string, string.quoted, string.template | #b8bb26 | — |
| keyword, keyword.control, keyword.operator.new, storage.type, storage.modifier | #fb4934 | — |
| constant.numeric, constant.language | #d3869b | — |
| entity.name.type, entity.name.class, entity.name.interface, entity.name.enum, support.type, support.class | #fabd2f | — |
| entity.name.function, support.function, meta.function-call entity.name.function | #8ec07c | — |
| variable, variable.other, support.variable | #83a598 | — |
| variable.parameter | #83a598e6 | italic |
| punctuation, meta.brace | #ebdbb2b3 | — |
| keyword.operator | #ebdbb2cc | — |
| entity.name.tag | #fb4934 | — |
| entity.other.attribute-name | #fabd2f | — |
| support.type.property-name.css | #fabd2f | — |
| support.constant.property-value.css | #b8bb26 | — |
| keyword.control.import, keyword.control.from, keyword.control.export | #fb4934 | italic |
| meta.decorator, punctuation.decorator | #fe8019 | italic |
| invalid, invalid.illegal | #fb4934 | underline |
| markup.heading, entity.name.section | #fabd2f | bold |
| markup.bold | #fabd2f | bold |
| markup.italic | #fe8019 | italic |
| markup.underline.link, string.other.link | #8ec07c | underline |
| markup.inline.raw, markup.inline.raw.string | #b8bb26 | — |
| markup.fenced_code.block, markup.raw.block | #ebdbb2 | — |
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}!`;
}