Hogwarts colors for VSCode
Publisher: Carlo CardellaThemes in package: 5
VSCode color themes based on the four Hogwarts houses
VSCode color themes based on the four Hogwarts houses
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 |
|---|---|---|
| — | #cec9df | — |
| keyword, keyword.control, entity.name.tag.xml, entity.other.attribute-name.xml, entity.name.tag.namespace.xml, source.php storage.type, punctuation.definition.directive.c | #d7571cf5 | — |
| comment, comment.block, source.powershell punctuation.definition, punctuation.definition.comment | #a9b1b9b0 | — |
| constant, source.cs entity.name, storage.modifier.import.java | #bf9dece7 | — |
| string | #9c83c4 | — |
| variable, keyword.other.variable.definition.powershell, support.constant.automatic.powershell, support.type.property-name.json, entity.other.attribute-name, meta.function-call.c, punctuation.definition.variable.ruby, punctuation.definition.variable.perl, constant.language.powershell, punctuation.definition.variable.powershell | #F0B600 | — |
| keyword.operator.assignment.powershell | #A1E56Ae7 | — |
| storage, entity.name.function.coffee | #68BCEA | — |
| punctuation | #a0bcec | — |
| entity, variable.other.object.property.coffee | #FFD5B4 | — |
| support, storage.type.cs, entity.name.tag, source.php storage.type.class, source.php storage.type.function, storage.modifier.java, entity.name.function.c, variable.other.object.coffee, keyword.control.conditional.batchfile, entity.name.type.class.module.erlang | #f12a2af3 | — |
| meta, string.quoted.double.json, string.quoted.double.xml, storage.modifier.ts, source.cs keyword.control, source.css keyword.other.unit, source.php entity.name.type.class, source.php entity.other.inherited-class, entity.name.function.ruby, entity.name.function.go, entity.name.function.lua, variable.other.field.erlang | #A1E56Ae7 | — |
| text, source.python | #d9d3ca | — |
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}!`;
}