PostHog Theme
Publisher: PostHogThemes in package: 2
The official PostHog color theme for VS Code. Warm neutrals, bold accents, and hedgehog-approved syntax highlighting.
The official PostHog color theme for VS Code. Warm neutrals, bold accents, and hedgehog-approved 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, punctuation.definition.comment | #6B6B66 | italic |
| variable, string constant.other.placeholder | #E2E2DD | — |
| variable.other.property, variable.other.object.property | #9CDCFE | — |
| variable.parameter | #F87A4C | — |
| variable.language | #F54E00 | italic |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape | #FFBA53 | — |
| invalid, invalid.illegal | #F35454 | — |
| keyword, storage.type, storage.modifier | #B62AD9 | — |
| keyword.control | #A56EFF | — |
| keyword.operator | #E2E2DD | — |
| keyword.other.unit | #FFBA53 | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary | #30ABC6 | — |
| punctuation, meta.brace, meta.delimiter | #C8CAC1 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #2F80FA | — |
| meta.function.parameters variable.parameter | #F87A4C | — |
| string, constant.other.symbol, constant.other.key | #5F9D32 | — |
| string.template, punctuation.definition.template-expression | #5F9D32 | — |
| meta.template.expression | #E2E2DD | — |
| string.regexp | #29DBBB | — |
| constant.character.escape | #30ABC6 | — |
| support.type, support.class, entity.name.type, entity.name.class, entity.other.inherited-class | #29DBBB | — |
| entity.name.type.parameter | #30ABC6 | — |
| entity.name.type.interface | #29DBBB | — |
| entity.name.type.enum | #29DBBB | — |
| variable.other.enummember | #FFBA53 | — |
| entity.name.namespace, entity.name.module | #E2E2DD | — |
| meta.decorator, meta.decorator entity.name.function | #F7A501 | italic |
| entity.name.tag, meta.tag.sgml | #F54E00 | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #8F8F8A | — |
| entity.other.attribute-name | #F7A501 | — |
| meta.tag string.quoted | #5F9D32 | — |
| support.class.component | #29DBBB | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #9CDCFE | — |
| support.constant.property-value.css, support.constant.css | #FFBA53 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss | #F7A501 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss | #2F80FA | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #30ABC6 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #2F80FA | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F7A501 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #29DBBB | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #B62AD9 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F54E00 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #30ABC6 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #E2E2DD | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #F7A501 | bold |
| markup.bold, markup.bold string | #F54E00 | bold |
| markup.italic | #A56EFF | italic |
| string.other.link.title.markdown, string.other.link.description.markdown | #2F80FA | — |
| markup.underline.link.markdown | #8F8F8A | underline |
| markup.inline.raw.markdown, markup.fenced_code.block.markdown | #29DBBB | — |
| markup.quote, markup.quote punctuation.definition.blockquote.markdown | #6B6B66 | italic |
| meta.separator | #3A3B40 | bold |
| markup.inserted | #5F9D32 | — |
| markup.deleted | #F35454 | — |
| markup.changed | #F7A501 | — |
| *url*, *link*, *uri* | — | underline |
| variable.parameter.function.language.special.self.python | #F54E00 | italic |
| support.function.magic.python | #2F80FA | italic |
| entity.name.type.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #30ABC6 | — |
| entity.name.function.macro.rust | #F7A501 | bold |
| entity.name.package.go | #E2E2DD | — |
| entity.name.tag.yaml | #2F80FA | — |
| support.type.property-name.toml | #2F80FA | — |
| support.type.property-name.table.toml | #F7A501 | — |
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 | #8F8F8C | italic |
| variable, string constant.other.placeholder | #23251D | — |
| variable.other.property, variable.other.object.property | #1E2F46 | — |
| variable.parameter | #7C440E | — |
| variable.language | #DB3707 | italic |
| constant.numeric, constant.language, support.constant, constant.character, constant.escape | #B17816 | — |
| invalid, invalid.illegal | #DB3707 | — |
| keyword, storage.type, storage.modifier | #A621C8 | — |
| keyword.control | #8C3D5A | — |
| keyword.operator | #23251D | — |
| keyword.other.unit | #B17816 | — |
| keyword.operator.assignment, keyword.operator.arithmetic, keyword.operator.logical, keyword.operator.comparison, keyword.operator.ternary | #2EA2D3 | — |
| punctuation, meta.brace, meta.delimiter | #4A4C42 | — |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #1D4AFF | — |
| meta.function.parameters variable.parameter | #7C440E | — |
| string, constant.other.symbol, constant.other.key | #245700 | — |
| string.template, punctuation.definition.template-expression | #245700 | — |
| meta.template.expression | #23251D | — |
| string.regexp | #2EA2D3 | — |
| constant.character.escape | #2EA2D3 | — |
| support.type, support.class, entity.name.type, entity.name.class, entity.other.inherited-class | #267F99 | — |
| entity.name.type.parameter | #2EA2D3 | — |
| entity.name.type.interface | #267F99 | — |
| entity.name.type.enum | #267F99 | — |
| variable.other.enummember | #B17816 | — |
| entity.name.namespace, entity.name.module | #23251D | — |
| meta.decorator, meta.decorator entity.name.function | #F54E00 | italic |
| entity.name.tag, meta.tag.sgml | #992705 | — |
| punctuation.definition.tag, punctuation.definition.tag.html, punctuation.definition.tag.begin.html, punctuation.definition.tag.end.html | #8F8F8C | — |
| entity.other.attribute-name | #F54E00 | — |
| meta.tag string.quoted | #245700 | — |
| support.class.component | #267F99 | — |
| support.type.property-name.css, support.type.property-name.scss, support.type.property-name.less, support.type.property-name.sass | #1E2F46 | — |
| support.constant.property-value.css, support.constant.css | #B17816 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.scss | #F54E00 | — |
| entity.other.attribute-name.id.css, entity.other.attribute-name.id.scss | #1D4AFF | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #2EA2D3 | — |
| source.json meta.structure.dictionary.json support.type.property-name.json | #1D4AFF | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #F54E00 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #267F99 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #A621C8 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #DB3707 | — |
| source.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json | #2EA2D3 | — |
| text.html.markdown, punctuation.definition.list_item.markdown | #23251D | — |
| markdown.heading, markup.heading | markup.heading entity.name, markup.heading.markdown punctuation.definition.heading.markdown | #F54E00 | bold |
| markup.bold, markup.bold string | #DB3707 | bold |
| markup.italic | #A621C8 | italic |
| string.other.link.title.markdown, string.other.link.description.markdown | #1D4AFF | — |
| markup.underline.link.markdown | #8F8F8C | underline |
| markup.inline.raw.markdown, markup.fenced_code.block.markdown | #267F99 | — |
| markup.quote, markup.quote punctuation.definition.blockquote.markdown | #8F8F8C | italic |
| meta.separator | #D2D3CC | bold |
| markup.inserted | #388600 | — |
| markup.deleted | #DB3707 | — |
| markup.changed | #F7A501 | — |
| *url*, *link*, *uri* | — | underline |
| variable.parameter.function.language.special.self.python | #DB3707 | italic |
| support.function.magic.python | #1D4AFF | italic |
| entity.name.type.lifetime.rust, storage.modifier.lifetime.rust, punctuation.definition.lifetime.rust | #2EA2D3 | — |
| entity.name.function.macro.rust | #F54E00 | bold |
| entity.name.package.go | #23251D | — |
| entity.name.tag.yaml | #1D4AFF | — |
| support.type.property-name.toml | #1D4AFF | — |
| support.type.property-name.table.toml | #F54E00 | — |
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}!`;
}