OKSolar
Publisher: dalenThemes in package: 4
OKLabs Solarized theme based on Braver's Solarized theme
OKLabs Solarized theme based on Braver's Solarized theme
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, meta.documentation | #8faaab | — |
| string | #259d94 | — |
| string.regexp | #259d94 | — |
| constant.character.escape | #f23749 | — |
| constant.numeric | #7d80d1 | — |
| variable | #2b90d8 | — |
| variable.other.readwrite, variable.other.object, variable.other.constant | #657377 | — |
| variable.function | #ac8300 | — |
| variable.language.this, variable.language.super | #dd459d | — |
| keyword | #819500 | — |
| meta.import keyword, keyword.control.import, keyword.control.import.from, keyword.other.import, keyword.control.at-rule.include, keyword.control.at-rule.import | #d56500 | — |
| keyword.operator.comparison, keyword.operator.assignment, keyword.operator.arithmetic | #657377 | — |
| storage | #819500 | — |
| keyword.control.class, meta.class, entity.name.class, entity.name.type.class | #ac8300 | — |
| support.type, support.class | #819500 | — |
| entity.name.function | #ac8300 | — |
| punctuation.definition.variable | #819500 | — |
| constant.language, meta.preprocessor | #ac8300 | — |
| support.function.construct, keyword.other.new | #f23749 | — |
| constant.character, constant.other | #d56500 | — |
| entity.name.tag | #2b90d8 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #8faaab | — |
| support.function | #819500 | — |
| punctuation.separator.continuation | #f23749 | — |
| storage.type | #2b90d8 | — |
| support.type.exception | #d56500 | — |
| keyword.other.special-method | #d56500 | — |
| invalid | #ec9489 | — |
| string.quoted.double, string.quoted.single | #259d94 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #98a8a8 | — |
| meta.brace.square | #2b90d8 | — |
| meta.brace.round, punctuation.definition.parameters.begin, punctuation.definition.parameters.end | #657377 | — |
| meta.brace.curly | #657377 | — |
| support.constant.color, invalid.deprecated.color.w3c-non-standard-color-name.scss | #ac8300 | — |
| meta.selector.css | #657377 | — |
| entity.name.tag.css, entity.name.tag.scss, source.less keyword.control.html.elements, source.sass keyword.control.untitled | #ac8300 | — |
| entity.other.attribute-name.class.css, entity.other.attribute-name.class.sass | #ac8300 | — |
| source.css entity.other.attribute-name.id, source.less entity.other.attribute-name.id, source.scss entity.other.attribute-name.id, source.sass entity.other.attribute-name.id | #ac8300 | — |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class, entity.other.attribute-name.tag.pseudo-class | #2b90d8 | — |
| text.html.basic meta.tag.other.html, text.html.basic meta.tag.any.html, text.html.basic meta.tag.block.any, text.html.basic meta.tag.inline.any, text.html.basic meta.tag.structure.any.html, text.html.basic source.js.embedded.html, punctuation.separator.key-value.html | #657377 | — |
| text.html.basic entity.other.attribute-name.html, meta.tag.xml entity.other.attribute-name | #ac8300 | — |
| keyword.other.special-method.ruby | #819500 | — |
| variable.other.constant.ruby | #ac8300 | — |
| constant.other.symbol.ruby | #259d94 | — |
| keyword.other.special-method.ruby | #d56500 | — |
| meta.array support.function.construct.php | #ac8300 | — |
| entity.name.function.preprocessor.c, meta.preprocessor.c.include, meta.preprocessor.macro.c | #d56500 | — |
| meta.preprocessor.c.include string.quoted.other.lt-gt.include.c, meta.preprocessor.c.include punctuation.definition.string.begin.c, meta.preprocessor.c.include punctuation.definition.string.end.c | #259d94 | — |
| other.package.exclude, other.remove | #f23749 | — |
| other.add | #259d94 | — |
| punctuation.section.group.tex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex, punctuation.definition.arguments.latex | #f23749 | — |
| meta.group.braces.tex | #ac8300 | — |
| string.other.math.tex | #ac8300 | — |
| variable.parameter.function.latex | #d56500 | — |
| punctuation.definition.constant.math.tex | #f23749 | — |
| text.tex.latex constant.other.math.tex, constant.other.general.math.tex, constant.other.general.math.tex, constant.character.math.tex | #259d94 | — |
| string.other.math.tex | #ac8300 | — |
| punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex | #f23749 | — |
| keyword.control.label.latex, text.tex.latex constant.other.general.math.tex | #259d94 | — |
| variable.parameter.definition.label.latex | #f23749 | — |
| support.function.be.latex | #819500 | — |
| support.function.section.latex | #d56500 | — |
| support.function.general.tex | #259d94 | — |
| keyword.control.ref.latex | #259d94 | — |
| storage.type.class.python, storage.type.function.python, storage.modifier.global.python | #819500 | — |
| support.type.exception.python | #ac8300 | — |
| meta.scope.for-in-loop.shell, variable.other.loop.shell | #5b7279 | — |
| meta.scope.case-block.shell, meta.scope.case-body.shell | #5b7279 | — |
| punctuation.definition.logical-expression.shell | #f23749 | — |
| storage.modifier.import.java | #5b7279 | — |
| support.function.perl | #2b90d8 | — |
| meta.diff, meta.diff.header | #8faaab | — |
| meta.diff.range | #2b90d8 | — |
| markup.deleted | #f23749 | — |
| markup.changed | #259d94 | — |
| markup.inserted | #819500 | — |
| markup.heading, punctuation.definition.heading.markdown | #ac8300 | — |
| markup.quote | #819500 | — |
| markup.italic | — | italic |
| markup.bold | — | bold |
| markup.underline.link.markdown, meta.link.reference constant.other.reference.link.markdown | #259d94 | — |
| constant.other.reference.link.markdown | #7d80d1 | — |
| meta.paragraph.markdown meta.dummy.line-break | #f1e9d2 | — |
| sublimelinter.notes | #f1e9d2 | — |
| sublimelinter.outline.illegal | #8faaab | — |
| sublimelinter.underline.illegal | #f23749 | — |
| sublimelinter.outline.warning | #98a8a8 | — |
| sublimelinter.underline.warning | #ac8300 | — |
| sublimelinter.outline.violation | #657377 | — |
| sublimelinter.underline.violation | #d56500 | — |
| sublimelinter.mark.warning | #ac8300 | — |
| sublimelinter.mark.error | #f23749 | — |
| sublimelinter.gutter-mark | #657377 | — |
| brackethighlighter.all | #8faaab | — |
| entity.name.filename.find-in-files | #259d94 | — |
| constant.numeric.line-number.find-in-files | #8faaab | — |
| markup.deleted.git_gutter | #f23749 | — |
| markup.inserted.git_gutter | #819500 | — |
| markup.changed.git_gutter | #ac8300 | — |
| meta.class punctuation | #657377 | — |
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}!`;
}