Catppuccin Noctis
Publisher: Alex DauenhauerThemes in package: 5
Catppuccin palette with Noctis syntax highlighting!
Catppuccin palette with Noctis syntax highlighting!
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 | #6c7086 | — |
| punctuation.support.type, punctuation.separator, punctuation.section, punctuation.terminator, punctuation.other, punctuation.semi, punctuation.support.type, markup.fenced_code.block | #9399b2 | — |
| string, string.quoted.docstring.single | #a6e3a1 | — |
| keyword, storage.modifier, storage.type.modifier.access.control, markup.heading | #cba6f7 | — |
| constant, punctuation.bracket, punctuation.brackets, fenced_code.block.language | #eba0ac | — |
| comment.block.documentation, string.quoted.docstring | #7f849c | — |
| storage.type, keyword.other.class, keyword.function, keyword.interface, meta.class.identifier storage.modifier, meta.function.definition keyword.other | #f38ba8 | — |
| support.type, entity.other.inherited-class, markup.underline.link, entity.name.scope-resolution, entity.name.type.cs | #89dceb | — |
| storage.type.built-in, entity.name.type, keyword.type, source.go storage.type, source.java storage.type | #b4befe | — |
| support.function.builtin, support.function.magic | #74c7ec | — |
| support.type.property-name, entity.name.tag, keyword.other.definition.ini | #74c7ec | — |
| entity.name.function.decorator | #94e2d5 | — |
| entity.name.function, meta.function-call.generic, punctuation.definition.decorator, source.go support.function, string.other.link.title | #89b4fa | — |
| variable.parameter.function | #f2cdcd | — |
| constant.other.caps, entity.name.section.group-title, support.type.property-name.table | #f9e2af | — |
| entity.name.type.class, variable.parameter.function.language.special.self, variable.language.special.self, variable.language.this, keyword.other.this | #fab387 | — |
| text, meta.import storage.modifier | #cdd6f4 | — |
| keyword, variable.parameter, variable.parameter.function, variable.parameter.function-call, entity.name.variable.parameter, markup.heading, meta.class.identifier storage.modifier, entity.name.section.group-title, support.type.property-name.table | — | bold |
| storage.type, fenced_code.block.language | — | italic bold |
| comment, comment.block.documentation, string.quoted.docstring, variable.parameter.function.language.special.self, variable.language.special.self, entity.other.inherited-class, storage.type.built-in, storage.type.modifier.access.control, storage.modifier, variable.language.this, keyword.other.this, keyword.type, source.go storage.type | — | italic |
| text, support.type.property-name, string.quoted.docstring.single, storage.type.template, keyword.interface, source.java storage.type, meta.import storage.modifier, meta.var.expr storage.type, source.rust storage.type, keyword.other.definition.ini | — |
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}!`;
}