Microdigm Theme
Publisher: MicrodigmThemes in package: 2
Official VS Code theme for Microdigm, lime green accents on near-black, built from the Microdigm brand guidelines.
Official VS Code theme for Microdigm, lime green accents on near-black, built from the Microdigm brand guidelines.
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 |
|---|---|---|
| — | #CBD5E1 | — |
| comment, punctuation.definition.comment | #5A6A5E | italic |
| string, string.quoted, string.template | #FFCB6B | — |
| string.regexp | #FFDE9E | — |
| constant.numeric | #E0A458 | — |
| constant.language, constant.language.boolean | #99EC30 | — |
| constant.character.escape | #DCFF83 | — |
| variable.other.constant, variable.other.enummember | #99EC30 | — |
| keyword, keyword.control, keyword.other | #CBFF59 | — |
| keyword.operator | #94A3B8 | — |
| storage, storage.type, storage.modifier | #B8FF4D | — |
| entity.name.function, support.function, meta.function-call | #DCFF83 | — |
| entity.name.class, entity.name.type, support.class, support.type | #7DD3FC | — |
| entity.other.inherited-class | #7DD3FC | italic |
| variable, variable.other.readwrite | #E2E8F0 | — |
| variable.parameter | #C4B5FD | — |
| variable.language, variable.language.this | #B8FF4D | italic |
| entity.name.tag | #B8FF4D | — |
| entity.other.attribute-name | #DCFF83 | — |
| punctuation, meta.brace, punctuation.definition | #7A8FA6 | — |
| meta.property-name, support.type.property-name | #7DD3FC | — |
| entity.name.section, markup.heading | #B8FF4D | bold |
| markup.bold | #FFFFFF | bold |
| markup.italic | #E2E8F0 | italic |
| markup.underline.link | #CBFF59 | — |
| markup.inserted | #B8FF4D | — |
| markup.deleted | #FF6B6B | — |
| invalid, invalid.illegal | #FF6B6B | — |
| invalid.deprecated | #FFCB6B | — |
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 |
|---|---|---|
| — | #374151 | — |
| comment, punctuation.definition.comment | #6B7280 | italic |
| string, string.quoted, string.template | #B45309 | — |
| string.regexp | #C2660D | — |
| constant.numeric | #C2410C | — |
| constant.language, constant.language.boolean | #5B901A | — |
| constant.character.escape | #79BF22 | — |
| variable.other.constant, variable.other.enummember | #5B901A | — |
| keyword, keyword.control, keyword.other | #406513 | — |
| keyword.operator | #4B5563 | — |
| storage, storage.type, storage.modifier | #5B901A | — |
| entity.name.function, support.function, meta.function-call | #4D7A16 | — |
| entity.name.class, entity.name.type, support.class, support.type | #0369A1 | — |
| entity.other.inherited-class | #0369A1 | italic |
| variable, variable.other.readwrite | #1E293B | — |
| variable.parameter | #7C3AED | — |
| variable.language, variable.language.this | #406513 | italic |
| entity.name.tag | #406513 | — |
| entity.other.attribute-name | #5B901A | — |
| punctuation, meta.brace, punctuation.definition | #6B7280 | — |
| meta.property-name, support.type.property-name | #0369A1 | — |
| entity.name.section, markup.heading | #406513 | bold |
| markup.bold | #0F172A | bold |
| markup.italic | #1E293B | italic |
| markup.underline.link | #406513 | — |
| markup.inserted | #5B901A | — |
| markup.deleted | #DC2626 | — |
| invalid, invalid.illegal | #DC2626 | — |
| invalid.deprecated | #B45309 | — |
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}!`;
}