Solarized Luau
Publisher: crossStarCrossThemes in package: 2
Solarized theme specifically configured for use with luau-lsp
Solarized theme specifically configured for use with luau-lsp
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 |
|---|---|---|
| string | #859900 | — |
| constant.numeric | #b58900 | |
| constant.language.boolean | #cb4b16 | — |
| constant.language.nil | #cb4b16 | — |
| constant.language, support.constant, support.function, variable.other.enummember | #268bd2 | — |
| keyword, storage.modifier.local, storage.type, keyword.operator.wordlike | #b58900 | |
| keyword.operator, keyword.operator.type, keyword.operator.typecast, keyword.operator.assignment, keyword.operator.comparison, keyword.operator.arithmetic | #839496 | — |
| entity.name.type, support.type.primitive | #6c71c4 | — |
| entity.name.function | #cb4b16 | — |
| variable.language, variable.other | #839496 | |
| variable.other.property | #93a1a1 | — |
| meta.preprocessor | #cb4b16 | — |
| meta.embedded, source.groovy.embedded, string meta.image.inline.markdown, variable.legacy.builtin.python | #002b36 | — |
| comment | #586e75 | italic |
| string.regexp | #dc322f | — |
| entity.name.class, entity.name.namespace, entity.name.scope-resolution | #268bd2 | |
| punctuation.definition.variable | #859900 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #dc322f | — |
| support.function.construct, keyword.other.new | #cb4b16 | — |
| constant.character, constant.other | #cb4b16 | — |
| entity.other.inherited-class | #6c71c4 | — |
| entity.name.tag | #268bd2 | — |
| punctuation.definition.tag | #586e75 | — |
| entity.other.attribute-name | #93a1a1 | — |
| punctuation.separator.continuation | #dc322f | — |
| support.variable | — | — |
| support.type, support.class | #cb4b16 | — |
| support.type.exception | #cb4b16 | — |
| support.other.variable | — | — |
| invalid | #dc322f | — |
| meta.diff, meta.diff.header | #268bd2 | italic |
| markup.deleted | #dc322f | |
| markup.changed | #cb4b16 | |
| markup.inserted | #859900 | — |
| markup.quote | #859900 | — |
| markup.list | #b58900 | — |
| markup.bold, markup.italic | #d33682 | — |
| markup.bold | — | bold |
| markup.italic | — | italic |
| markup.strikethrough | — | strikethrough |
| markup.inline.raw | #2aa198 | |
| markup.heading | #268bd2 | bold |
| markup.heading.setext | #268bd2 | |
| ref.matchtext | #FFFFFF | — |
| token.info-token | #6796E6 | — |
| token.warn-token | #CD9731 | — |
| token.error-token | #F44747 | — |
| token.debug-token | #B267E6 | — |
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}!`;
}