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 | #F44747 | bold underline |
| comment | #7C8494 | italic |
| comment.annotation | #FFB454 | italic |
| keyword, storage.type, storage.modifier | #C17AD8 | |
| entity.name.function, support.function | #FFD580 | |
| string, punctuation.definition.string | #98C379 | — |
| variable | #B3C7D8 | |
| parameter | #FF9166 | |
| 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 | #98C379 | |
| entity.name.type.class.python, variable.parameter.jupyter | #4DC4FF | |
| meta.embedded.inline.markdown | #98C379 | — |
| 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 | #98C379 | — |
| meta.tag.void.html | #F07178 | — |
| text.html.basic | #F0F3F6 | — |
| entity.other.attribute-name.class.css | #E5C07B | |
| entity.other.attribute-name.id.css | #56B6C2 | |
| entity.name.tag.css | #C17AD8 | — |
| 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 | #98C379 | |
| meta.declaration-id.css | #F44747 | |
| entity.other.attribute-name.class.css.tailwind | #E5C07B | |
| support.type.property-name.transition.css | #6AD4FF | |
| support.class.component.jsx, meta.class.component.jsx | #FF80BF | |
| meta.tag.jsx entity.name.tag.jsx | #F07178 | |
| meta.tag.jsx entity.other.attribute-name.jsx | #D8A166 | |
| meta.jsx.children.js | #E6EDF3 | — |
| meta.jsx.children | #E6EDF3 | — |
| entity.name.tag.styled.jsx | #C17AD8 | |
| variable.other.readwrite.jsx | #C792EA | |
| 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 | #E5C07B | — |
| support.class.promise.js | #6AD4FF | |
| support.type.object.console.js | #98C379 | — |
| entity.name.tag.template.js | #98C379 | — |
| punctuation.definition.interpolation.js | #FFD580 | — |
| comment.block.documentation.js | #98C379 | italic |
| meta.type.annotation.ts | #56B6C2 | |
| support.type.primitive.ts | #C17AD8 | — |
| 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 | #61AFEF | underline |
| markup.list.numbered.markdown | #FFD580 | — |
| markup.underline.link.markdown:visited | #C17AD8 | — |
| entity.other.attribute-name.svelte | #FF80BF | — |
| meta.selectionset.graphql | #C17AD8 | — |
| entity.other.attribute-name.class.tailwind | #98C379 | — |
| entity.other.inherited-class | #98C379 | |
| meta.tag.sgml.doctype | #7F8C9D | — |
| storage.type.annotation.java | #C17AD8 | — |
| entity.other.attribute-name.vue, meta.tag.astro | #98C379 | |
| meta.arbitrary-value.tailwindcss | #98C379 | — |
| entity.name.tag.yaml, punctuation.separator.key-value.yaml, meta.tag.table.toml | #61AFEF | — |
| 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 | #98C379 | — |
| 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 | #98C379 | — |
| constant, variable.other.constant | #6AD4FF | bold |
| support.type, support.class | #4DC4FF | — |
| entity.name.type, entity.name.class | #4DC4FF | — |
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 | #C0453F | bold underline |
| comment | #74706A | italic |
| comment.annotation | #A85A1E | italic |
| keyword, storage.type, storage.modifier | #8E3E97 | |
| entity.name.function, support.function | #8B6824 | |
| string, punctuation.definition.string | #4F7A3E | — |
| variable | #4A6378 | |
| parameter | #A85A1E | |
| variable.parameter | #A85A1E | |
| keyword.control.flow.async | #C0453F | |
| invalid.deprecated | #C0453F | strikethrough |
| storage.modifier.lifetime.rust, keyword.operator.arrow.cpp | #4F7A3E | |
| meta.type.annotation.python, support.type.python | #2E7A96 | |
| keyword.operator.channel.go | #A85A1E | |
| meta.type.parameters.ts | #A85A1E | |
| entity.name.tag.custom, entity.name.tag.svelte, entity.name.tag.astro | #4F7A3E | |
| entity.name.type.class.python, variable.parameter.jupyter | #2E7A96 | |
| meta.embedded.inline.markdown | #4F7A3E | — |
| markup.inline.raw.markdown | #4F7A3E | — |
| 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 | #C0453F | |
| meta.tag.structure.any.html entity.name.tag.html | #C0453F | |
| entity.other.attribute-name.html | #8B6824 | |
| entity.other.attribute-name.data.html | #2E7A96 | |
| punctuation.definition.tag.html | #726E62 | |
| string.quoted.double.html | #4F7A3E | — |
| meta.tag.void.html | #B94C46 | — |
| text.html.basic | #4A5560 | — |
| entity.other.attribute-name.class.css | #8B6824 | |
| entity.other.attribute-name.id.css | #2E7A96 | |
| entity.name.tag.css | #8E3E97 | — |
| support.type.property-name.css | #2E7A96 | |
| support.type.vendored.property-name.css | #726E62 | |
| entity.name.type | #2E7A96 | |
| meta.attribute-selector.css | #A85A1E | — |
| storage.type.generic.java | #8E3E97 | — |
| meta.property-value.css | #8B6824 | — |
| meta.property-value.numeric.css | #8B6824 | — |
| entity.other.attribute-name.pseudo-class.css | #8E3E97 | |
| entity.other.attribute-name.pseudo-element.css | #C0453F | |
| meta.at-rule.media.css | #A85A1E | |
| meta.property-list.css meta.property-name | #2E7A96 | |
| support.type.property-name.animation.css | #B94C46 | |
| meta.function.css | #4F7A3E | |
| meta.declaration-id.css | #C0453F | |
| entity.other.attribute-name.class.css.tailwind | #8B6824 | |
| support.type.property-name.transition.css | #2E7A96 | |
| support.class.component.jsx, meta.class.component.jsx | #B94C46 | |
| meta.tag.jsx entity.name.tag.jsx | #C0453F | |
| meta.tag.jsx entity.other.attribute-name.jsx | #8B6824 | |
| meta.jsx.children.js | #4A5560 | — |
| meta.jsx.children | #4A5560 | — |
| entity.name.tag.styled.jsx | #8E3E97 | |
| variable.other.readwrite.jsx | #8E3E97 | |
| storage.type.function.arrow.js | #8B6824 | |
| support.function.hook.js | #2E7A96 | |
| meta.function-call.js | #8B6824 | |
| keyword.operator.spread.js, keyword.operator.optional.js | #A85A1E | |
| keyword.control.flow.js | #C0453F | |
| meta.import.js, meta.export.js | #8E3E97 | |
| meta.object-literal.js | #4A6378 | — |
| variable.other.property.js | #8B6824 | — |
| support.class.promise.js | #2E7A96 | |
| support.type.object.console.js | #4F7A3E | — |
| entity.name.tag.template.js | #4F7A3E | — |
| punctuation.definition.interpolation.js | #8B6824 | — |
| comment.block.documentation.js | #4F7A3E | italic |
| meta.type.annotation.ts | #2E7A96 | |
| support.type.primitive.ts | #8E3E97 | — |
| meta.type.parameters.ts | #8B6824 | — |
| support.type.utility.ts | #2E7A96 | — |
| entity.name.type.interface.ts | #4F7A3E | |
| entity.name.type.enum.ts | #2E7A96 | — |
| markup.heading, markup.bold, markup.italic, markup.quote, markup.list, markup.underline.link, markup.underline.link.markdown | #A85A1E | — |
| markup.heading.1.markdown, markup.heading.2.markdown, markup.heading.3.markdown | #A85A1E | — |
| markup.quote.markdown | #4F7A3E | — |
| markup.underline.link.markdown | #2E7A96 | underline |
| markup.list.numbered.markdown | #A85A1E | — |
| markup.underline.link.markdown:visited | #8E3E97 | — |
| entity.other.attribute-name.svelte | #B94C46 | — |
| meta.selectionset.graphql | #8E3E97 | — |
| entity.other.attribute-name.class.tailwind | #4F7A3E | — |
| entity.other.inherited-class | #4F7A3E | |
| meta.tag.sgml.doctype | #726E62 | — |
| storage.type.annotation.java | #8E3E97 | — |
| entity.other.attribute-name.vue, meta.tag.astro | #4F7A3E | |
| meta.arbitrary-value.tailwindcss | #4F7A3E | — |
| entity.name.tag.yaml, punctuation.separator.key-value.yaml, meta.tag.table.toml | #2E7A96 | — |
| entity.name.function.decorator.python, meta.function.decorator.python | #8E3E97 | |
| support.type.exception.python | #C0453F | — |
| string.quoted.docstring.python | #4F7A3E | |
| variable.parameter.python | #A85A1E | — |
| keyword.control.import.python, keyword.control.from.python, punctuation.separator.period.python | #8E3E97 | — |
| meta.fstring.python, string.interpolated.python, punctuation.definition.interpolation.python | #4F7A3E | — |
| variable.parameter.self.python | #9A4EA2 | |
| support.function.magic.python | #2E7A96 | |
| meta.function.parameters.python | #4A6378 | — |
| storage.modifier.annotation.python | #2E7A96 | — |
| entity.name.type.annotation.python | #2E7A96 | |
| meta.typehint.python | #726E62 | — |
| support.function.hook.js, support.function.hook.ts, support.function.hook.jsx | #2E7A96 | bold |
| keyword.directive.tailwindcss, entity.name.function.tailwindcss | #2E7A96 | — |
| support.function.vue, support.type.vue | #4F7A3E | — |
| constant, variable.other.constant | #2E7A96 | bold |
| support.type, support.class | #2E7A96 | — |
| entity.name.type, entity.name.class | #2E7A96 | — |
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}!`;
}