Orchid
Publisher: SolorThemes in package: 1
Customized dark theme for LUA language
Customized dark theme for LUA language
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 | #4b5d6c | italic |
| constant | #e27e8d | — |
| constant.numeric | #cb9be3 | — |
| entity | #68A1F0 | — |
| invalid | #d95468 | — |
| keyword | #5ec4ff | — |
| storage.type.class.js | #008b94 | — |
| meta | #718CA1 | — |
| meta.brace | #718CA1 | — |
| punctuation | #718CA1 | — |
| punctuation.definition.parameters | #718CA1 | — |
| variable.parameter | #B7C5D3 | — |
| entity.name.variable.parameter, meta.at-rule.function variable, meta.at-rule.mixin variable, meta.function.arguments, meta.selectionset.graphql meta.arguments.graphql variable.arguments.graphql | #ebbf83 | — |
| punctuation.definition.template-expression | #68A1F0 | — |
| storage | #008B94 | — |
| storage.type.function.arrow | #008B94 | — |
| string, punctuation.definition.string | #68A1F0 | — |
| string.template, punctuation.definition.string.template | #68f0e9 | — |
| support | #718CA1 | — |
| support.function | #70e1e8 | — |
| comment.line.double-dash.lua, punctuation.definition.comment.lua, storage.type.function.lua, storage.modifier.local.lua, storage.type.function.property.lua, keyword.control.function-end.lua, keyword.control.lua, keyword.operator.logical.lua, storage.type.function.anonymous.lua | — | italic |
| entity.name.function.lua, meta.function-call.lua | — | bold |
| meta.function.lua | #45888d | — |
| constant.language.boolean.false.lua, constant.language.boolean.true.lua | #cb9be3 | — |
| variable.other.table.property.lua | #8babc4 | — |
| keyword.operator.logic.lua | #ffc75e | — |
| entity.name.function.lua | #68A1F0 | — |
| entity.name.function-table.lua | #3c7fdd | — |
| string.quoted.single.lua, string.quoted.double.lua, string.quoted.block.lua | #37c9b0 | — |
| variable.other.lua, variable.language.lua | #8babc4 | — |
| variable.other.table.property.lua | #74b5c7 | — |
| constant.language.lua | #f3788b | — |
| constant.numeric.lua | #cf84f5 | — |
| keyword.control.lua, keyword.control.function-end.lua, storage.type.function.property.lua, storage.type.function.lua, storage.type.function.anonymous.lua | #39cce6 | — |
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}!`;
}