Obsidian Night Theme Pack
14 ultra-dark themes built for developers who code for hours. Palette-driven, fully typed, open source — with semantic highlighting, terminal ANSI colors, and support for every major language.
14 ultra-dark themes built for developers who code for hours. Palette-driven, fully typed, open source — with semantic highlighting, terminal ANSI colors, and support for every major language.
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 | #5B6472 | italic |
| keyword, keyword.control, keyword.operator.expression, storage.modifier | #B99AD1 | — |
| storage.type, storage.type.function, storage.type.class, storage.type.interface | #B99AD1 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, support.type, support.class | #65B9BF | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method | #75A9D3 | — |
| variable, variable.other, variable.parameter, meta.definition.variable.name, support.variable | #D4A94A | — |
| constant, constant.numeric, constant.language, constant.character, variable.other.constant | #C88758 | — |
| string, string.quoted, string.regexp, constant.other.symbol, constant.other.key | #91B978 | — |
| string.template, punctuation.definition.template-expression, meta.template.expression | #91B978 | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter, punctuation.separator, punctuation.terminator | #5B6472 | — |
| entity.name.tag, entity.other.attribute-name, support.class.component, punctuation.definition.tag | #65B9BF | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.type.property-name.css, support.constant.property-value.css | #75A9D3 | — |
| markup.heading, markup.bold, markup.italic, markup.quote, markup.inline.raw, markup.list | #D4A94A | — |
| invalid, invalid.illegal | #D96B75 | — |
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 | #5B6472 | italic |
| keyword, keyword.control, keyword.operator.expression, storage.modifier | #AE94CA | — |
| storage.type, storage.type.function, storage.type.class, storage.type.interface | #AE94CA | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, support.type, support.class | #81B8BC | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method | #8AAFC4 | — |
| variable, variable.other, variable.parameter, meta.definition.variable.name, support.variable | #D6B56D | — |
| constant, constant.numeric, constant.language, constant.character, variable.other.constant | #CE9060 | — |
| string, string.quoted, string.regexp, constant.other.symbol, constant.other.key | #8FBF76 | — |
| string.template, punctuation.definition.template-expression, meta.template.expression | #8FBF76 | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter, punctuation.separator, punctuation.terminator | #5B6472 | — |
| entity.name.tag, entity.other.attribute-name, support.class.component, punctuation.definition.tag | #81B8BC | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.type.property-name.css, support.constant.property-value.css | #8AAFC4 | — |
| markup.heading, markup.bold, markup.italic, markup.quote, markup.inline.raw, markup.list | #8AAFC4 | — |
| invalid, invalid.illegal | #D96B75 | — |
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 | #5B6472 | italic |
| keyword, keyword.control, keyword.operator.expression, storage.modifier | #C084A8 | — |
| storage.type, storage.type.function, storage.type.class, storage.type.interface | #C084A8 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, support.type, support.class | #75B8B9 | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method | #76A8D1 | — |
| variable, variable.other, variable.parameter, meta.definition.variable.name, support.variable | #D6B56D | — |
| constant, constant.numeric, constant.language, constant.character, variable.other.constant | #CE9060 | — |
| string, string.quoted, string.regexp, constant.other.symbol, constant.other.key | #91B77A | — |
| string.template, punctuation.definition.template-expression, meta.template.expression | #91B77A | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter, punctuation.separator, punctuation.terminator | #5B6472 | — |
| entity.name.tag, entity.other.attribute-name, support.class.component, punctuation.definition.tag | #75B8B9 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.type.property-name.css, support.constant.property-value.css | #76A8D1 | — |
| markup.heading, markup.bold, markup.italic, markup.quote, markup.inline.raw, markup.list | #C084A8 | — |
| invalid, invalid.illegal | #D96B75 | — |
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 | #5B6472 | italic |
| keyword, keyword.control, keyword.operator.expression, storage.modifier | #BF8FC8 | — |
| storage.type, storage.type.function, storage.type.class, storage.type.interface | #BF8FC8 | — |
| entity.name.type, entity.name.class, entity.name.struct, entity.name.enum, entity.name.interface, support.type, support.class | #65B9BF | — |
| entity.name.function, support.function, meta.function-call, variable.function, entity.name.method | #73A9CD | — |
| variable, variable.other, variable.parameter, meta.definition.variable.name, support.variable | #D6B56D | — |
| constant, constant.numeric, constant.language, constant.character, variable.other.constant | #D4814A | — |
| string, string.quoted, string.regexp, constant.other.symbol, constant.other.key | #8FBA76 | — |
| string.template, punctuation.definition.template-expression, meta.template.expression | #8FBA76 | — |
| keyword.operator, punctuation, meta.brace, meta.delimiter, punctuation.separator, punctuation.terminator | #5B6472 | — |
| entity.name.tag, entity.other.attribute-name, support.class.component, punctuation.definition.tag | #65B9BF | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, support.type.property-name.css, support.constant.property-value.css | #73A9CD | — |
| markup.heading, markup.bold, markup.italic, markup.quote, markup.inline.raw, markup.list | #D4814A | — |
| invalid, invalid.illegal | #D96B75 | — |
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}!`;
}