Aperture Theme
Publisher: Ryan OlsonThemes in package: 25
A collection of popular VS Code color schemes re-engineered into a gradient of highlight levels. Choose your Aperture from f/22 (minimal) to f/2.8 (vibrant) for the perfect visual focus.
A collection of popular VS Code color schemes re-engineered into a gradient of highlight levels. Choose your Aperture from f/22 (minimal) to f/2.8 (vibrant) for the perfect visual focus.
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 | #5C6370 | italic |
| comment markup.link | #5C6370 | — |
| string | #98C379 | — |
| string > source, string embedded | #ABB2BF | — |
| string.regexp | #56B6C2 | — |
| string.regexp source.ruby.embedded | #E5C07B | — |
| string.other.link | #E06C75 | — |
| meta.template.expression | #abb2bf | — |
| invalid.deprecated | #523D14 | — |
| invalid.illegal | — | — |
| markup.bold | — | bold |
| markup.changed | #C678DD | — |
| markup.deleted | #E06C75 | — |
| markup.italic | #C678DD | italic |
| markup.heading | #E06C75 | — |
| markup.heading punctuation.definition.heading | #61AFEF | — |
| markup.link | #56B6C2 | — |
| markup.inserted | #98C379 | — |
| markup.quote | #D19A66 | — |
| markup.raw | #98C379 | — |
| constant | #D19A66 | — |
| constant.variable | #D19A66 | — |
| constant.character.escape | #56B6C2 | — |
| constant.numeric | #D19A66 | — |
| constant.other.color | #56B6C2 | — |
| constant.other.symbol | #56B6C2 | — |
| source.elixir constant.language, source.elixir constant.numeric, source.elixir constant.definition | #61AFEF | — |
| source.json meta.structure.dictionary.json > constant.language.json, source.json meta.structure.array.json > constant.language.json | #56B6C2 | — |
| source.ruby constant.other.symbol > punctuation | — | — |
| support.constant | #D19A66 | — |
| constant.language.import-export-all.js, constant.language.import-export-all.ts | #E06C75 | — |
| constant.language.import-export-all.jsx, constant.language.import-export-all.tsx | #56B6C2 | — |
| constant.language.json | #56B6C2 | — |
| source.python constant.other | #ABB2BF | — |
| source.python constant | #D19A66 | — |
| constant.character.format.placeholder.other.python storage | #D19A66 | — |
| support.constant.property-value.css | #ABB2BF | — |
| punctuation.definition.constant.css | #D19A66 | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}