Osaka Solarized Pro
Publisher: AashishKumar-3002Themes in package: 3
A professional Solarized-inspired theme collection for VS Code with dark, light, and Monokai Storm variants, originally created by craftzdog for Neovim
A professional Solarized-inspired theme collection for VS Code with dark, light, and Monokai Storm variants, originally created by craftzdog for Neovim
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 | #6c7086 | italic |
| constant, entity.name.constant, variable.other.constant, variable.language | #f9e2af | — |
| entity, entity.name | #89b4fa | — |
| variable.parameter.function | #cdd6f4 | — |
| entity.name.tag | #f38ba8 | — |
| keyword | #cba6f7 | — |
| storage, storage.type | #cba6f7 | — |
| storage.modifier.package, storage.modifier.import, storage.type.java | #cdd6f4 | — |
| string, punctuation.definition.string, string punctuation.section.embedded source | #a9dc76 | — |
| support | #f9e2af | — |
| meta.property-name | #89b4fa | — |
| variable | #cdd6f4 | — |
| variable.other | #cdd6f4 | — |
| invalid.broken | #f38ba8 | italic |
| invalid.deprecated | #f38ba8 | italic |
| invalid.illegal | #f38ba8 | italic |
| invalid.unimplemented | #f38ba8 | italic |
| carriage-return | #cdd6f4 | italic underline |
| message.error | #f38ba8 | — |
| string source | #cdd6f4 | — |
| string variable | #a9dc76 | — |
| source.regexp, string.regexp | #f5c2e7 | — |
| string.regexp.character-class, string.regexp constant.character.escape, string.regexp source.ruby.embedded, string.regexp string.regexp.arbitrary-repitition | #f5c2e7 | — |
| string.regexp constant.character.escape | #a9dc76 | bold |
| support.constant | #fab387 | — |
| support.variable | #fab387 | — |
| meta.module-reference | #89b4fa | — |
| punctuation.definition.list.begin.markdown | #fab387 | — |
| markup.heading, markup.heading entity.name | #89b4fa | bold |
| markup.quote | #a9dc76 | — |
| markup.italic | #cdd6f4 | italic |
| markup.bold | #cdd6f4 | bold |
| markup.raw | #a9dc76 | — |
| markup.deleted, meta.diff.header.from-file, punctuation.definition.deleted | #cdd6f4 | — |
| markup.inserted, meta.diff.header.to-file, punctuation.definition.inserted | #cdd6f4 | — |
| markup.changed, punctuation.definition.changed | #cdd6f4 | — |
| markup.ignored, markup.untracked | #1e1e2e | — |
| meta.diff.range | #89b4fa | bold |
| meta.diff.header | #89b4fa | — |
| meta.separator | #89b4fa | bold |
| meta.output | #89b4fa | — |
| brackethighlighter.tag, brackethighlighter.curly, brackethighlighter.round, brackethighlighter.square, brackethighlighter.angle, brackethighlighter.quote | #6c7086 | — |
| brackethighlighter.unmatched | #f38ba8 | — |
| constant.other.reference.link, string.other.link | #74c7ec | underline |
| entity.name.function, meta.function-call, variable.function, support.function, keyword.other.special-method | #89b4fa | — |
| meta.block variable.other | #f38ba8 | — |
| source.java storage.modifier.import, source.java storage.type | #f9e2af | — |
| source.java keyword.operator.instanceof | #cba6f7 | — |
| source.java-properties meta.key-pair | #f9e2af | — |
| source.java-properties meta.key-pair > punctuation | #cdd6f4 | — |
| source.js keyword.operator.new, source.js keyword.operator.in, source.js keyword.operator.of, source.js keyword.operator.instanceof, source.js keyword.operator.typeof | #cba6f7 | — |
| source.js meta.class | #f9e2af | — |
| variable.other.class.js | #f9e2af | — |
| source.js meta.method.declaration storage.type.function | #cba6f7 | — |
| variable.function.constructor | #89b4fa | — |
| entity.name.method.js | #89b4fa | — |
| meta.class-method.js entity.name.function.js, variable.function.js | #89b4fa | — |
| source.js punctuation.definition.template-expression.begin, source.js punctuation.definition.template-expression.end, source.js punctuation.section.embedded | #f38ba8 | — |
| source.js meta.template.expression | #cdd6f4 | — |
| source.js meta.import variable.other | #f38ba8 | — |
| source.ts keyword.operator.new, source.tsx keyword.operator.new, source.ts keyword.operator.in, source.tsx keyword.operator.in, source.ts keyword.operator.of, source.tsx keyword.operator.of, source.ts keyword.operator.instanceof, source.tsx keyword.operator.instanceof, source.ts keyword.operator.typeof, source.tsx keyword.operator.typeof | #cba6f7 | — |
| source.ts meta.type.cast.expr, source.tsx meta.type.cast.expr | #f9e2af | — |
| source.ts meta.type.new.expr entity.name.type, source.tsx meta.type.new.expr entity.name.type | #f9e2af | — |
| source.ts entity.name.type, source.tsx entity.name.type | #f9e2af | — |
| source.ts entity.other.inherited-class, source.tsx entity.other.inherited-class | #f9e2af | — |
| source.ts keyword.operator.expression.import | #89b4fa | — |
| source.ts keyword.operator.expression.in | #cba6f7 | — |
| source.ts meta.import variable.other, source.tsx meta.import variable.other | #f38ba8 | — |
| source.ts punctuation.definition.template-expression.begin, source.ts punctuation.definition.template-expression.end, source.tsx punctuation.definition.template-expression.begin, source.tsx punctuation.definition.template-expression.end, source.ts punctuation.section.embedded, source.tsx punctuation.section.embedded | #f38ba8 | — |
| source.ts meta.template.expression, source.tsx meta.template.expression | #cdd6f4 | — |
| source.python keyword.operator.logical.python | #cba6f7 | — |
| source.python variable.parameter | #fab387 | — |
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}!`;
}