Vedic Code Pro
Publisher: Ansh MittalThemes in package: 2
A spiritually inspired dark and light theme with modern 3D polish and ancient golden accents
A spiritually inspired dark and light theme with modern 3D polish and ancient golden accents
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 |
|---|---|---|
| invalid | #FF5555 | bold underline |
| comment | #6A717C | italic |
| comment.annotation | #FFB454 | italic |
| keyword, storage.type, storage.modifier | #C17AD8 | |
| entity.name.function, support.function | #FFD580 | |
| string, punctuation.definition.string | #8DC48A | — |
| variable | #B3C7D8 | |
| parameter | #80D160 | |
| variable.parameter | #FF9166 | |
| keyword.control.flow.async | #FF6B6B | |
| invalid.deprecated | #F44747 | strikethrough |
| storage.modifier.lifetime.rust, keyword.operator.arrow.cpp | #98C379 | |
| meta.type.annotation.python, support.type.python | #61AFEF | |
| keyword.operator.channel.go | #FF9166 | |
| meta.type.parameters.ts | #FF9166 | |
| entity.name.tag.custom, entity.name.tag.svelte, entity.name.tag.astro | #8AFF80 | |
| entity.name.type.class.python, variable.parameter.jupyter | #4DC4FF | |
| meta.embedded.inline.markdown | #98F598 | — |
| markup.inline.raw.markdown | #98C379 | — |
| entity.name.tag.html, meta.tag.block.html entity.name.tag, meta.tag.inline.html entity.name.tag, meta.tag.other.html entity.name.tag | #F07178 | |
| meta.tag.structure.any.html entity.name.tag.html | #F07178 | |
| entity.other.attribute-name.html | #E5C07B | |
| entity.other.attribute-name.data.html | #56B6C2 | |
| punctuation.definition.tag.html | #7F8C9D | |
| string.quoted.double.html | #9ABBD6 | — |
| meta.tag.void.html | #FF8A7A | — |
| text.html.basic | #F0F3F6 | — |
| entity.other.attribute-name.class.css | #FABD2F | |
| entity.other.attribute-name.id.css | #56B6C2 | |
| entity.name.tag.css | #C678DD | — |
| support.type.property-name.css | #6AD4FF | |
| support.type.vendored.property-name.css | #7F8C9D | |
| entity.name.type | #4DC4FF | |
| meta.attribute-selector.css | #FF9166 | — |
| storage.type.generic.java | #C17AD8 | — |
| meta.property-value.css | #E5C07B | — |
| meta.property-value.numeric.css | #E5C07B | — |
| entity.other.attribute-name.pseudo-class.css | #C17AD8 | |
| entity.other.attribute-name.pseudo-element.css | #FF6B6B | |
| meta.at-rule.media.css | #FF9166 | |
| meta.property-list.css meta.property-name | #4DC4FF | |
| support.type.property-name.animation.css | #FF80BF | |
| meta.function.css | #7FD962 | |
| meta.declaration-id.css | #F44747 | |
| entity.other.attribute-name.class.css.tailwind | #FABD2F | |
| support.type.property-name.transition.css | #6AD4FF | |
| support.class.component.jsx, meta.class.component.jsx | #FF80BF | |
| meta.tag.jsx entity.name.tag.jsx | #EF7C85 | |
| meta.tag.jsx entity.other.attribute-name.jsx | #D8A166 | |
| meta.jsx.children.js | #E6EDF3 | — |
| meta.jsx.children | #E6EDF3 | — |
| entity.name.tag.styled.jsx | #C678DD | |
| variable.other.readwrite.jsx | #C3A6FF | |
| storage.type.function.arrow.js | #FFD580 | |
| support.function.hook.js | #4DC4FF | |
| meta.function-call.js | #FFD580 | |
| keyword.operator.spread.js, keyword.operator.optional.js | #FF9166 | |
| keyword.control.flow.js | #FF6B6B | |
| meta.import.js, meta.export.js | #C792EA | |
| meta.object-literal.js | #B3C7D8 | — |
| variable.other.property.js | #FABD2F | — |
| support.class.promise.js | #00E0FF | |
| support.type.object.console.js | #98F598 | — |
| entity.name.tag.template.js | #7FD962 | — |
| punctuation.definition.interpolation.js | #FFD580 | — |
| comment.block.documentation.js | #9AFF8F | italic |
| meta.type.annotation.ts | #56B6C2 | |
| support.type.primitive.ts | #C678DD | — |
| meta.type.parameters.ts | #E5C07B | — |
| support.type.utility.ts | #56B6C2 | — |
| entity.name.type.interface.ts | #98C379 | |
| entity.name.type.enum.ts | #61AFEF | — |
| markup.heading, markup.bold, markup.italic, markup.quote, markup.list, markup.underline.link, markup.underline.link.markdown | #FFD580 | — |
| markup.heading.1.markdown, markup.heading.2.markdown, markup.heading.3.markdown | #FFD580 | — |
| markup.quote.markdown | #98C379 | — |
| markup.underline.link.markdown | #6A9BEE | underline |
| markup.list.numbered.markdown | #FFD580 | — |
| markup.underline.link.markdown:visited | #C17AD8 | — |
| entity.other.attribute-name.svelte | #FF80BF | — |
| meta.selectionset.graphql | #C678DD | — |
| entity.other.attribute-name.class.tailwind | #7FD962 | — |
| entity.other.inherited-class | #98C379 | |
| meta.tag.sgml.doctype | #7F8C9D | — |
| storage.type.annotation.java | #C17AD8 | — |
| entity.other.attribute-name.vue, meta.tag.astro | #8AFF80 | |
| meta.arbitrary-value.tailwindcss | #7FD962 | — |
| entity.name.tag.yaml, punctuation.separator.key-value.yaml, meta.tag.table.toml | #6A9BEE | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #C17AD8 | |
| support.type.exception.python | #F44747 | — |
| string.quoted.docstring.python | #98C379AA | |
| variable.parameter.python | #FF9166 | — |
| keyword.control.import.python, keyword.control.from.python, punctuation.separator.period.python | #C17AD8 | — |
| meta.fstring.python, string.interpolated.python, punctuation.definition.interpolation.python | #8DC48A | — |
| variable.parameter.self.python | #FFB454 | |
| support.function.magic.python | #56B6C2 | |
| meta.function.parameters.python | #B3C7D8 | — |
| storage.modifier.annotation.python | #6AD4FF | — |
| entity.name.type.annotation.python | #61AFEF | |
| meta.typehint.python | #7F8C9D | — |
| support.function.hook.js, support.function.hook.ts, support.function.hook.jsx | #4DC4FF | bold |
| keyword.directive.tailwindcss, entity.name.function.tailwindcss | #6AD4FF | — |
| support.function.vue, support.type.vue | #8AFF80 | — |
| constant, variable.other.constant | #6AD4FF | bold |
| support.type, support.class | #4DC4FF | — |
| entity.name.type, entity.name.class | #4DC4FF | — |
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}!`;
}