Solarized Obsidian
Publisher: superzadehThemes in package: 1
Solarized Dark Theme variant
Solarized Dark Theme variant
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #fdf6e3 | — |
| comment | #847d64 | italic |
| string | #839496 | — |
| string.regexp | #dc322f | — |
| constant.numeric | #58c2e5 | — |
| variable.language, variable.other | #fdf6e3 | — |
| keyword | #839496 | — |
| storage | #58c2e5 | — |
| entity.name.class, entity.name.type.class | #58c2e5 | |
| entity.name.function | #268bd2 | — |
| punctuation.definition.variable | #859900 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #847d64 | — |
| constant.language, meta.preprocessor | #268bd2 | — |
| support.function.construct, keyword.other.new | #839496 | — |
| constant.character, constant.other | #CB4B16 | — |
| entity.other.inherited-class | #6C71C4 | — |
| variable.parameter | — | — |
| entity.name.tag | #847d64 | bold |
| punctuation.definition.tag | #847d64 | — |
| entity.other.attribute-name | #58c2e5 | — |
| support.function | #58c2e5 | — |
| punctuation.separator.continuation | #cb4b16 | — |
| support.constant | — | — |
| support.type, support.class | #859900 | — |
| support.type.exception | #CB4B16 | — |
| support.other.variable | — | — |
| invalid | — | — |
| meta.brace.square.js | #58c2e5 | — |
| text.html.basic source.js.embedded.html | #b58900 | |
| storage.type.js | #58c2e5 | — |
| meta.brace.round, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js | #93A1A1 | — |
| meta.selector.css | #839496 | |
| entity.name.tag.css, support.type.property-name.css, meta.property-name.css | #847d64 | |
| meta.property-value.css constant.numeric.css, keyword.other.unit.css, constant.other.color.rgb-value.css | #58c2e5 | |
| meta.property-value.css | #fdf6e3 | |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #cb4b16 | |
| keyword.other.important.css | #dc322f | — |
| entity.other.attribute-name.class.css | #58c2e5 | |
| entity.other.attribute-name.id.css | #58c2e5 |
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}!`;
}