My Oceanic Theme
Publisher: ZAndyThemes in package: 1
Dark theme inspired by Material Oceanic with enhanced semantic highlighting for TypeScript, Vue, and CSS
Dark theme inspired by Material Oceanic with enhanced semantic highlighting for TypeScript, Vue, and CSS
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 |
|---|---|---|
| entity.name.tag.script.html.vue, entity.name.tag.style.html.vue, entity.name.tag.template.html.vue | #26bda4 | — |
| meta.template-tag.start entity.name.tag.template.html.vue | #F07178 | — |
| meta.tag.other.unrecognized.html.derivative entity.name.tag.html | #26bda4 | — |
| punctuation.definition.tag.begin.html.vue, punctuation.definition.tag.end.html.vue | #89DDFF | — |
| keyword.control.conditional.vue, keyword.control.loop.vue, meta.attribute.directive | #FFCB6B | italic |
| entity.name.tag.css | #F07178 | — |
| entity.other.attribute-name.pseudo-class.css, entity.other.attribute-name.pseudo-element.css | #C792EA | italic |
| variable.css, variable.argument.css | #FFCB6B | — |
| support.constant.property-value.css, support.constant.font-name.css, support.constant.color.w3c-standard-color-name.css, meta.property-value.css | #F07178 | — |
| support.function.misc.css, support.function.transform.css, support.function.calc.css, support.function.gradient.css | #82AAFF | — |
| support.constant.vendored.property-value.css, keyword.other.unit.css, keyword.other.unit.px.css, keyword.other.unit.rem.css, keyword.other.unit.em.css, keyword.other.unit.deg.css, keyword.other.unit.s.css, keyword.other.unit.ms.css, keyword.other.unit.vh.css, keyword.other.unit.vw.css | #F07178 | |
| constant.other.color.rgb-value.hex.css, constant.other.color.rgb-value.css, keyword.other.unit.percentage.css | #89DDFF | — |
| constant.numeric.css | #F07178 | — |
| keyword.control.at-rule.keyframes.css | #C792EA | italic |
| variable.parameter.keyframe-list.css, entity.other.keyframe-offset.css, entity.other.keyframe-offset.percentage.css | #FFCB6B | — |
| variable.other.readwrite.alias | #EEFFE3 | — |
| variable.other.readwrite | #EEFFE3 | — |
| keyword, keyword.operator.new, storage.type, storage.modifier | #C792EA | italic |
| keyword.control.import, keyword.control.export, keyword.control.from, keyword.control.default, keyword.operator.expression.import | #C792EA | — |
| constant.language.import-export-all | #89DDFF | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #89DDFF | — |
| keyword.control.conditional, keyword.control.trycatch, keyword.control.flow | #C792EA | — |
| keyword.control.as, keyword.operator.expression.keyof, keyword.operator.expression.typeof, keyword.operator.expression.infer | #C792EA | — |
| keyword.operator.type | #89DDFF | — |
| keyword.operator, storage.type.function.arrow | #89DDFF | |
| punctuation.accessor, punctuation.separator, punctuation.terminator, punctuation.definition.block, punctuation.definition.parameters, punctuation.definition.array, punctuation.definition.typeparameters, meta.brace | #89DDFF | — |
| comment, comment.line, comment.block, punctuation.definition.comment | #546E7A | italic |
| storage.type.class.jsdoc, entity.name.type.instance.jsdoc | #C792EA | bold italic |
| string, string.quoted, string.regexp | #C3E88D | — |
| constant.character.escape, constant.other.placeholder | #89DDFF | — |
| constant.numeric | #F78C6C | — |
| constant.language.boolean, constant.language.null, constant.language.undefined, constant.language.nan | #C792EA | italic |
| variable.language.this, variable.language.super | #C792EA | — |
| support.type.primitive, support.type.builtin | #C792EA | — |
| entity.name.type.parameter | #FFCB6B | — |
| support.class.console | #FFCB6B | — |
| keyword.other.debugger | #F78C6C | — |
| entity.name.tag, punctuation.definition.tag | #F07178 | — |
| entity.other.attribute-name | #FFCB6B | italic |
| meta.decorator, punctuation.decorator | #82AAFF | — |
| support.type.property-name.json, meta.structure.dictionary.key.json | #C792EA | — |
| constant.language.json | #F78C6C | italic |
| support.type.property-name.css | #B2CCD6 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css | #FFCB6B | — |
| meta.function-call entity.name.function | #82AAFF | italic |
| meta.definition.method entity.name.function | #82AAFF | — |
| variable.other.object | #EEFFFF | — |
| variable.other.property | #b7bbbd | — |
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}!`;
}