Santi020k Theme
Publisher: Santi020kThemes in package: 12
A coordinated dark, light, and high-contrast VS Code theme with muted violet accents, validated contrast, and semantic highlighting for long sessions.
A coordinated dark, light, and high-contrast VS Code theme with muted violet accents, validated contrast, and semantic highlighting for long sessions.
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 | #9880c0 | bold italic |
| string, string.quoted.single, string.quoted.double, string.quoted.backtick, string.template | #a06000 | bold |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #8b52d6 | bold |
| constant.numeric | #006090 | bold |
| constant.language | #6319be | bold italic |
| constant.character, constant.other | #006090 | bold |
| keyword.control, keyword.other | #5a1ab0 | bold italic |
| storage.type, storage.modifier | #5a1ab0 | bold italic |
| keyword.operator, storage.type.function.arrow | #8b52d6 | bold |
| punctuation | #9880c0 | bold |
| entity.name.function, support.function | #006080 | bold |
| variable.parameter | #403860 | bold italic |
| entity.name.type, entity.name.class, entity.name.interface, support.class, support.type, support.type.primitive | #5a18a8 | bold |
| variable, variable.other.readwrite | #302e36 | bold |
| entity.name.type.model.prisma, support.type.primitive.prisma | #6319be | bold |
| variable.other.property, variable.other.object.property, support.variable.property | #403860 | bold |
| entity.name.tag, support.class.component | #5a1ab0 | bold |
| entity.other.attribute-name | #6020b8 | bold |
| support.type.property-name, support.type.property-name.css | #6020b8 | bold |
| support.constant.property-value | #7030b0 | bold |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #5a18a8 | bold |
| support.type.property-name.json | #6020b8 | bold |
| string.quoted.double.json | #1a6a3e | bold |
| constant.numeric.json | #b05500 | bold |
| string.regexp | #8030c8 | bold |
| meta.decorator, punctuation.decorator | #8b52d6 | bold italic |
| constant.character.escape | #6319be | bold |
| markup.heading, punctuation.definition.heading.markdown | #5a18a8 | bold |
| markup.bold | #302e36 | bold |
| markup.italic | #403860 | bold italic |
| markup.underline.link | #5a1ab0 | bold |
| markup.raw.inline, markup.fenced_code.block | #7030b0 | bold |
| invalid | #c0392b | bold |
| invalid.deprecated | #c07a10 | bold strikethrough |
| variable.language | #6319be | bold italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #5a1ab0 | bold italic |
| markup.quote | #9880c0 | bold italic |
| markup.list, punctuation.definition.list.begin.markdown | #8b52d6 | bold |
| markup.strikethrough | #8b52d6 | bold strikethrough |
| variable.other.constant, variable.other.constant.object | #8030c8 | bold italic |
| entity.name.section.group-title.ini, keyword.other.definition.ini, support.type.property-name.toml | #6020b8 | bold |
| entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #a06010 | bold italic |
| meta.attribute.rust, punctuation.definition.attribute.rust | #8b52d6 | bold italic |
| support.function.builtin.go | #0870a0 | bold |
| entity.name.package.go | #6020b8 | bold |
| meta.embedded, source.groovy.embedded | #302e36 | bold |
| entity.name.tag.yaml, support.type.property-name.yaml, variable.other.anchor.yaml, variable.other.alias.yaml | #6020b8 | bold |
| entity.other.document.begin.yaml, keyword.control.directive.yaml, storage.type.tag-handle.yaml, storage.type.tag-suffix.yaml | #5a1ab0 | bold italic |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile, storage.modifier.dockerfile | #5a1ab0 | bold italic |
| support.function.builtin.shell, support.function.utility.shell, variable.other.option.shell, variable.other.normal.shell | #0870a0 | bold |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, storage.type.sql, support.function.aggregate.sql, support.function.scalar.sql | #5a1ab0 | bold italic |
| entity.name.function.sql, entity.name.type.sql, support.type.sql | #6020b8 | bold |
| entity.name.type.graphql, entity.name.function.graphql, support.type.builtin.graphql, variable.graphql | #6020b8 | bold |
| variable.other.php, punctuation.definition.variable.php, support.class.php, support.function.construct.php | #403860 | bold |
| support.function.magic.python, support.variable.magic.python, variable.language.special.self.python, variable.language.special.cls.python | #0870a0 | bold italic |
| entity.name.type.namespace.cs, entity.name.type.class.cs, entity.name.type.interface.cs, meta.attribute.cs, storage.type.cs | #6020b8 | bold |
| constant.other.symbol.ruby, constant.other.symbol.hashkey.ruby, constant.other.symbol.elixir, constant.other.atom.elixir | #8030c8 | bold |
| support.function.library.lua, support.function.lua, support.type.lua | #0870a0 | bold |
| entity.name.type.terraform, entity.name.function.terraform, variable.other.terraform, support.type.property-name.terraform, support.type.property-name.hcl | #6020b8 | bold |
| keyword.other.import.java, keyword.other.package.java, storage.modifier.import.java, storage.modifier.package.java | #5a1ab0 | bold italic |
| entity.name.type.c, entity.name.type.cpp, storage.type.c, storage.type.cpp, storage.type.built-in.c, storage.type.built-in.cpp | #5a18a8 | bold |
| keyword.other.kotlin, storage.type.kotlin, keyword.other.declaration-specifier.swift, storage.type.swift | #5a1ab0 | bold italic |
| entity.name.type.dart, support.class.dart | #5a18a8 | bold |
| keyword.control.zig, storage.type.zig, support.function.zig | #5a1ab0 | bold italic |
| entity.name.tag.svelte, entity.name.tag.vue, support.class.component.svelte, support.class.component.vue | #5a1ab0 | bold |
| entity.other.attribute-name.class.tailwind, support.constant.color.tailwind | #0870a0 | bold |
| keyword.control.prisma, storage.type.prisma, entity.name.type.model.prisma, variable.other.property.prisma | #5a1ab0 | bold |
| support.function.test.js, support.function.test.ts, entity.name.function.test, support.function.any-method.playwright, support.function.any-method.cypress | #6020b8 | bold italic |
| keyword.control.elixir, variable.other.readwrite.module.elixir, entity.name.type.module.elixir, punctuation.section.embedded.elixir, support.function.phoenix | #5a1ab0 | bold |
| source.ruby, keyword.control.ruby, support.class.rails, keyword.other.special-method.ruby, variable.other.readwrite.instance.ruby | #5a1ab0 | bold |
| source.cs, storage.type.cs, keyword.control.cs, entity.name.type.cs, variable.other.object.cs | #5a1ab0 | bold |
| entity.other.attribute-name.ng-binding, entity.other.attribute-name.ng-directive, support.class.component.angular | #5a1ab0 | bold |
| source.js.styled, source.ts.styled, source.jsx.styled, source.tsx.styled, entity.name.tag.styled | #0870a0 | bold |
| entity.name.type.sanity, support.type.sanity, variable.other.property.sanity | #6020b8 | bold |
| support.class.firebase, support.function.firebase | #5a1ab0 | bold |
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}!`;
}