Shaant Shakti - Spiritual Dark Theme for Focused Coding
Publisher: AadityaaThemes in package: 8
A spiritually inspired dark theme balancing inner peace and raw coding power. Shaant Shakti keeps you grounded, focused, and creatively fierce.
A spiritually inspired dark theme balancing inner peace and raw coding power. Shaant Shakti keeps you grounded, focused, and creatively fierce.
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 |
|---|---|---|
| source, text | #E8F5E8 | — |
| invalid, invalid.illegal | #FF6B6B | bold |
| comment, punctuation.definition.comment | #4F6F4F | italic |
| comment.block.documentation | #8FBC8F | italic |
| string, punctuation.definition.string | #7FE07F | — |
| string.template, punctuation.definition.template-string | #98FB98 | — |
| string.regexp, constant.character.escape | #40E0D0 | — |
| constant.numeric, constant.language | #FFD700 | bold |
| constant.character, constant.other | #FF69B4 | — |
| keyword.control, storage.type, storage.modifier | #9370DB | italic bold |
| keyword.operator | #00FFFF | bold |
| punctuation, meta.brace, meta.delimiter | #4F6F4F | — |
| variable, meta.definition.variable | #E8F5E8 | — |
| variable.other.readwrite | #B8D4B8 | — |
| variable.parameter | #DDA0DD | italic |
| variable.other.property, variable.other.object.property, meta.object-literal.key | #98FB98 | — |
| entity.name.function, support.function | #32CD32 | bold |
| meta.function-call, entity.name.function.call | #7FE07F | — |
| entity.name.class, entity.name.type.class, support.class | #40E0D0 | bold |
| entity.name.type, support.type, entity.name.interface | #87CEEB | italic |
| entity.name.namespace, entity.name.module, entity.name.package | #9370DB | bold |
| support.class.component, support.type.component | #FF69B4 | bold |
| entity.name.tag | #32CD32 | bold |
| entity.other.attribute-name | #FFD700 | italic |
| meta.decorator, storage.type.annotation, punctuation.decorator | #FF8C00 | italic bold |
| markup.heading, markup.heading.setext, entity.name.section | #FFD700 | bold |
| markup.bold, markup.italic | #40E0D0 | — |
| markup.inline.raw, markup.fenced_code | #7FE07F | — |
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}!`;
}