Source Theme
Publisher: UthshoThemes in package: 1
🔥 Official theme by Uthsho.
🔥 Official theme by Uthsho.
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, string.quoted.docstring.multi.python | #c4c2fc93 | italic |
| entity.name, support.type, support.class, support.orther.namespace.use.php, meta.use.php, support.other.namespace.php, markup.changed.git_gutter, support.type.sys-types | #FFCB6B | — |
| entity.name.tag | #51FFC5 | — |
| punctuation.definition.tag | #36f9f6 | — |
| string | #F1FA8C | — |
| constant.numeric | #ffdf3d | — |
| constant.language | #51FFC5 | — |
| constant.character, constant.other | #ff73dc | — |
| variable | — | |
| keyword | #F1FA8C | — |
| storage | #40a9ff | |
| storage.type | #00FFFF | |
| support.type.vendored.property-name | #F1FA8C | bold |
| string.quoted.double.js | #FF9CBE | — |
| constant.language.boolean | #ff9271 | italic bold |
| meta.jsx.children, meta.jsx.children.js, meta.jsx.children.tsx | #f1ff62 | — |
| variable.other.object.js, variable.other.object.jsx, variable.object.property.js, variable.object.property.jsx | #40a9ff | — |
| punctuation.definition.parameters | #ffee80 | — |
| punctuation.definition.template-expression | #ffee80 | — |
| entity.name.class, entity.name.type.class | #00faa7 | |
| entity.name.function | #fede5d | — |
| keyword.control.import.include.php | #9EFFFF | italic |
| keyword.operator.key.php | #51FFC5 | italic |
| string.quoted.single.php, meta.array.php, meta.function-call.php | #9bff73 | italic |
| entity.other.inherited-class, meta.other.inherited-class.php | #6ab0ff | italic |
| entity.name.function - meta.function-call | #39c0ff | |
| variable.parameter | #51FFC5 | |
| entity.other.attribute-name | #FF92A5 | italic |
| entity.other.attribute-name.class, entity.other.attribute-name.id | #F1FA8C | |
| entity.other.attribute-name.pseudo-class, meta.selector | #F1FA8C | — |
| constant.other.color | #f5aea8 | — |
| source | #51FFC5 | — |
| support.variable.property.js | #F1FC59 | — |
| entity.name.function, entity.name.function.js, variable.function, support.function, keyword.other.special-method | #51FFC5 | — |
| support.constant | #39c0ff | |
| support.type, support.class | #ff2cf1 | italic |
| support.other.variable | #39c0ff | |
| support.variable.property.dom | #67b3ff | — |
| invalid | #ff3957 | |
| invalid.deprecated | #00d7e2 | — |
| meta.diff, meta.diff.header | #009af3 | — |
| markup.deleted | #ec107b | — |
| markup.inserted | #dbcd00 | — |
| markup.changed | #029fcf | — |
| constant.numeric.line-number.find-in-files - match | #e92778 | — |
| entity.name.filename.find-in-files | #51FFC5 | — |
| keyword.other | #a83dff | — |
| keyword.other.important | #fc456c | bold |
| meta.property-value, support.constant.property-value, constant.other.color, constant.numeric | #FB94FF | — |
| meta.structure.dictionary.json string.quoted.double.json | #FF0081 | — |
| support.type.property-name.json | #f1fa8ef1 | |
| meta.structure.dictionary.value.json string.quoted.double.json | #9EFFFF | — |
| meta.property-name support.type.property-name | #9EFFFF | |
| meta.property-value punctuation.separator.key-value | #44a1fd | — |
| keyword.other.use, keyword.other.function.use, keyword.other.namespace, keyword.other.new, keyword.other.special-method, keyword.other.unit, keyword.other.use-as | #ff00f2 | — |
| keyword.other.unit | #ff37cd | — |
| source.php entity, variable.other.class.php | #9EFFFF | — |
| keyword.other.phpdoc.php | #FF9D00 | — |
| entity.name.function.php, support.function.basic_functions.php, meta.function-call.php, variable.other.property | #FAD000 | — |
| variable.other.php, punctuation.definition.variable.php, variable.other.global.php, variable.language.this.php | #9EFFFF | — |
| storage.modifier.php, keyword.other.namespace.php | #FF9D00 | — |
| entity.name.tag.yaml | #FAD000 | — |
| punctuation.definition.block.sequence.item.yaml | #E1EFFF | — |
| storage.type.function.php, meta.function.parameters.php | #FF628C | — |
| keyword.blade | #FF9D00 | — |
| begin.bracket.round.blade.php, end.bracket.round.blade.php | #E1EFFF | — |
| support.function.construct.begin.blade, support.function.construct.end.blade | #FFEE80 | — |
| support.other.namespace.php | #973dfd | — |
| meta.use | #2fb3ff | |
| variable.other | #51FFC5 | |
| keyword.other.phpdoc.php | #35a3fd | |
| variable.parameter.function.coffee | #51FFC5 | |
| entity.name.function.member | #b7fa4a | — |
| variable.other.object.access | #f7e8e8 | — |
| keyword.control.import.python | #ff008e | — |
| meta.function-call.generic.python | #2ed9f7 | — |
| variable.parameter.function.language.special.self.python | #FB94FF | — |
| support.function.builtin.python | #51FFC5 | — |
| punctuation.separator.colon.python | #dcf56e | — |
| source.ts entity.name.type | #dbcd00 | — |
| source.ts keyword | #ff25f0 | — |
| source.ts punctuation.definition.parameters | #dbcd00 | — |
| meta.arrow.ts punctuation.definition.parameters | #ffee80 | — |
| source.ts storage | #03dac6 | — |
| variable.language, entity.name.type.class.ts, entity.name.type.class.tsx | #51FFC5 | — |
| entity.other.inherited-class.ts, entity.other.inherited-class.tsx | #dbcd00 | — |
| source.js storage.type.function, source.ts storage.type.function | #FF628C | — |
| variable.language, entity.name.type.class.js | #fb94ff | — |
| entity.other.inherited-class.js | #ff15ef | — |
| text.html.vue-html | #ffd400 | — |
| entity.name.section.markdown | #51FFC5 | — |
| string.other.link.title.markdown | #51FFC5 | — |
| punctuation.definition.heading.markdown | #f37500b9 | — |
| markup.raw.inline.markdown | #e9e9e9 | — |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown | #f37500b9 | — |
| punctuation.definition.list.begin.markdown | #cff300 | — |
| punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown | #ff22f0 | — |
| punctuation.definition.metadata.markdown | #fc63f3 | — |
| markup.underline.link.markdown, markup.underline.link.image.markdown, meta.image.inline.markdown | #F78C6C | |
| markup.bold.markdown, markup.italic.markdown | #f188ff | — |
| markup.italic.markdown | — | italic |
| markup.bold.markdown | — | bold |
| fenced_code.block.language, markup.inline.raw.markdown | #51FFC5 | — |
| fenced_code.block.language, markup.inline.raw.markdown | #51FFC5 | — |
| meta.paragraph.markdown | #e1efff | — |
| markup.raw.block.markdown | #ffffff | — |
| markup.deleted.git_gutter | #e700d8 | — |
| markup.inserted.git_gutter | #ffc400 | — |
| markup.changed.git_gutter | #d9ff00 | — |
| meta.template.expression | #18b6ff | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
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}!`;
}