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 | #9878cc | italic |
| string, string.quoted.single, string.quoted.double, string.quoted.backtick, string.template | #c5a3ff | — |
| punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end | #987acd | — |
| constant.numeric | #dbc7ff | — |
| constant.language | #a570ff | italic |
| constant.character, constant.other | #dbc7ff | — |
| keyword.control, keyword.other | #955ff2 | italic |
| storage.type, storage.modifier | #955ff2 | italic |
| keyword.operator, storage.type.function.arrow | #987acd | |
| punctuation | #8e70c2 | — |
| entity.name.function, support.function | #a677f8 | — |
| variable.parameter | #decff7 | italic |
| entity.name.type, entity.name.class, entity.name.interface, support.class, support.type, support.type.primitive | #a570ff | — |
| variable, variable.other.readwrite | #f0ebfa | — |
| entity.other.attribute-name.class.tailwind, support.constant.color.tailwind | #60c8e0 | — |
| entity.name.type.model.prisma, support.type.primitive.prisma | #a570ff | — |
| variable.other.readwrite.module.elixir, punctuation.section.embedded.elixir | #b48df7 | — |
| variable.other.property, variable.other.object.property, support.variable.property | #decff7 | — |
| entity.name.tag, support.class.component | #955ff2 | — |
| entity.other.attribute-name | #a677f8 | — |
| support.type.property-name, support.type.property-name.css | #a677f8 | — |
| support.constant.property-value | #c5a3ff | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.id.css, entity.name.tag.css | #a570ff | — |
| support.type.property-name.json | #a677f8 | — |
| string.quoted.double.json | #60c8e0 | — |
| constant.numeric.json | #ffc060 | — |
| string.regexp | #dbc7ff | — |
| meta.decorator, punctuation.decorator | #987acd | italic |
| constant.character.escape | #a570ff | — |
| markup.heading, punctuation.definition.heading.markdown | #a570ff | bold |
| markup.bold | #f0ebfa | bold |
| markup.italic | #decff7 | italic |
| markup.underline.link | #955ff2 | — |
| markup.raw.inline, markup.fenced_code.block | #c5a3ff | — |
| invalid | #ff7070 | — |
| invalid.deprecated | #ffc060 | strikethrough |
| variable.language | #a570ff | italic |
| keyword.control.import, keyword.control.export, keyword.control.from | #955ff2 | italic |
| markup.quote | #8e70c2 | italic |
| markup.list, punctuation.definition.list.begin.markdown | #987acd | — |
| markup.strikethrough | #987acd | strikethrough |
| variable.other.constant, variable.other.constant.object | #dbc7ff | italic |
| entity.name.section.group-title.ini, keyword.other.definition.ini, support.type.property-name.toml | #a677f8 | — |
| entity.name.lifetime.rust, punctuation.definition.lifetime.rust | #ffc060 | italic |
| meta.attribute.rust, punctuation.definition.attribute.rust | #987acd | italic |
| support.function.builtin.go | #60c8e0 | — |
| entity.name.package.go | #a677f8 | — |
| meta.embedded, source.groovy.embedded | #f0ebfa | — |
| entity.name.tag.yaml, support.type.property-name.yaml, variable.other.anchor.yaml, variable.other.alias.yaml | #a677f8 | — |
| entity.other.document.begin.yaml, keyword.control.directive.yaml, storage.type.tag-handle.yaml, storage.type.tag-suffix.yaml | #955ff2 | italic |
| keyword.other.special-method.dockerfile, keyword.control.dockerfile, storage.modifier.dockerfile | #955ff2 | italic |
| support.function.builtin.shell, support.function.utility.shell, variable.other.option.shell, variable.other.normal.shell | #60c8e0 | — |
| keyword.other.DML.sql, keyword.other.DDL.sql, keyword.other.sql, storage.type.sql, support.function.aggregate.sql, support.function.scalar.sql | #955ff2 | italic |
| entity.name.function.sql, entity.name.type.sql, support.type.sql | #a677f8 | — |
| entity.name.type.graphql, entity.name.function.graphql, support.type.builtin.graphql, variable.graphql | #a677f8 | — |
| variable.other.php, punctuation.definition.variable.php, support.class.php, support.function.construct.php | #decff7 | — |
| support.function.magic.python, support.variable.magic.python, variable.language.special.self.python, variable.language.special.cls.python | #60c8e0 | italic |
| entity.name.type.namespace.cs, entity.name.type.class.cs, entity.name.type.interface.cs, meta.attribute.cs, storage.type.cs | #a677f8 | — |
| constant.other.symbol.ruby, constant.other.symbol.hashkey.ruby, constant.other.symbol.elixir, constant.other.atom.elixir | #dbc7ff | — |
| support.function.library.lua, support.function.lua, support.type.lua | #60c8e0 | — |
| entity.name.type.terraform, entity.name.function.terraform, variable.other.terraform, support.type.property-name.terraform, support.type.property-name.hcl | #a677f8 | — |
| keyword.other.import.java, keyword.other.package.java, storage.modifier.import.java, storage.modifier.package.java | #955ff2 | 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 | #a570ff | — |
| keyword.other.kotlin, storage.type.kotlin, keyword.other.declaration-specifier.swift, storage.type.swift | #955ff2 | italic |
| entity.name.type.dart, support.class.dart | #a570ff | — |
| keyword.control.zig, storage.type.zig, support.function.zig | #955ff2 | italic |
| entity.name.tag.svelte, entity.name.tag.vue, support.class.component.svelte, support.class.component.vue | #955ff2 | — |
| support.constant.color.tailwind, entity.other.attribute-name.class.tailwind | #60c8e0 | — |
| keyword.control.prisma, storage.type.prisma, entity.name.type.model.prisma, variable.other.property.prisma | #955ff2 | — |
| support.function.test.js, support.function.test.ts, entity.name.function.test, support.function.any-method.playwright, support.function.any-method.cypress | #a677f8 | italic |
| source.elixir, keyword.control.elixir, variable.other.readwrite.module.elixir, entity.name.type.module.elixir, punctuation.section.embedded.elixir, support.function.phoenix | #955ff2 | — |
| source.ruby, keyword.control.ruby, support.class.rails, keyword.other.special-method.ruby, variable.other.readwrite.instance.ruby | #955ff2 | — |
| source.cs, storage.type.cs, keyword.control.cs, entity.name.type.cs, variable.other.object.cs | #955ff2 | — |
| entity.other.attribute-name.ng-binding, entity.other.attribute-name.ng-directive, support.class.component.angular | #955ff2 | — |
| source.js.styled, source.ts.styled, source.jsx.styled, source.tsx.styled, entity.name.tag.styled | #60c8e0 | — |
| entity.name.type.sanity, support.type.sanity, variable.other.property.sanity | #a677f8 | — |
| support.class.firebase, support.function.firebase | #955ff2 | — |
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}!`;
}