Solarized Light Strate
Publisher: StrateThemes in package: 1
Full workbench mockup using this variant's colors and tokenColors.
Loading...
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| — | #586E75 | — |
| comment | #93A1A1 | |
| string | #2aa198 | — |
| string | #586E75 | — |
| string.regexp | #dc322f | — |
| constant.numeric | #d33682 | — |
| variable.language, variable.other | #268bd2 | — |
| keyword | #859900 | — |
| storage | #073642 | — |
| entity.name.class, entity.name.type.class | #268bd2 | — |
| entity.name.function | #268bd2 | — |
| punctuation.definition.variable | #859900 | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #dc322f | — |
| constant.language, meta.preprocessor | #B58900 | — |
| support.function.construct, keyword.other.new | #dc322f | — |
| constant.character, constant.other | #CB4B16 | — |
| entity.other.inherited-class | — | — |
| variable.parameter | — | — |
| entity.name.tag | #268bd2 | — |
| punctuation.definition.tag.html, punctuation.definition.tag.begin, punctuation.definition.tag.end | #93A1A1 | — |
| entity.other.attribute-name | #93A1A1 | — |
| support.function | #268bd2 | — |
| punctuation.separator.continuation | #dc322f | — |
| support.constant | — | — |
| support.type, support.class | #859900 | — |
| support.type.exception | #CB4B16 | — |
| keyword.other.special-method | #CB4B16 | — |
| support.other.variable | — | — |
| invalid | — | — |
| string.quoted.double, string.quoted.single | #2aa198 | — |
| punctuation.definition.string.begin, punctuation.definition.string.end | #dc322f | — |
| entity.name.tag.css, support.type.property-name.css, meta.property-name.css | #b58900 | |
| source.css | #dc322f | — |
| meta.selector.css | #586e75 | |
| punctuation.section.property-list.css | #6c71c4 | — |
| meta.property-value.css constant.numeric.css, keyword.other.unit.css, constant.other.color.rgb-value.css | #2aa198 | |
| meta.property-value.css | #2aa198 | |
| keyword.other.important.css | #dc322f | — |
| support.constant.color | #2aa198 | — |
| entity.name.tag.css | #859900 | — |
| punctuation.separator.key-value.css, punctuation.terminator.rule.css | #586e75 | |
| entity.other.attribute-name.class.css | #268bd2 | |
| entity.other.attribute-name.pseudo-element.css, entity.other.attribute-name.pseudo-class.css | #cb4b16 | |
| entity.other.attribute-name.id.css | #268bd2 | |
| meta.function.js, entity.name.function.js, support.function.dom.js | #b58900 | — |
| text.html.basic source.js.embedded.html | #b58900 | |
| storage.type.function.js | #268bd2 | — |
| constant.numeric.js | #2aa198 | — |
| meta.brace.square.js | #268bd2 | — |
| storage.type.js | #268bd2 | — |
| meta.brace.round, punctuation.definition.parameters.begin.js, punctuation.definition.parameters.end.js | #93A1A1 | — |
| meta.brace.curly.js | #268bd2 | — |
| entity.name.tag.doctype.html, meta.tag.sgml.html, string.quoted.double.doctype.identifiers-and-DTDs.html | #93a1a1 | italic |
| comment.block.html | #839496 | italic |
| entity.name.tag.script.html | — | italic |
| source.css.embedded.html string.quoted.double.html | #2aa198 | |
| text.html.ruby | #cb4b16 | — |
| 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 | #657b83 | |
| text.html.basic entity.other.attribute-name.html | #657b83 | — |
| text.html.basic meta.tag.structure.any.html punctuation.definition.string.begin.html, punctuation.definition.string.begin.html, punctuation.definition.string.end.html | #2aa198 | |
| entity.name.tag.block.any.html | #268bd2 | — |
| source.css.embedded.html entity.name.tag.style.html | — | italic |
| entity.name.tag.style.html | — | |
| text.html.basic punctuation.section.property-list.css | — | |
| source.css.embedded.html, comment.block.html | #839496 | italic |
| punctuation.definition.variable.ruby | #268bd2 | |
| meta.function.method.with-arguments.ruby | #657b83 | — |
| variable.language.ruby | #2aa198 | — |
| entity.name.function.ruby | #268bd2 | — |
| keyword.control.ruby, keyword.control.def.ruby | #859900 | — |
| keyword.control.class.ruby, meta.class.ruby | #859900 | — |
| entity.name.type.class.ruby | #b58900 | |
| keyword.control.ruby | #859900 | |
| support.class.ruby | #b58900 | |
| keyword.other.special-method.ruby | #859900 | — |
| constant.language.ruby, constant.numeric.ruby | #2aa198 | — |
| variable.other.constant.ruby | #b58900 | |
| constant.other.symbol.ruby | #2aa198 | |
| punctuation.section.embedded.ruby, punctuation.definition.string.begin.ruby, punctuation.definition.string.end.ruby | #dc322f | — |
| keyword.other.special-method.ruby | #cb4b16 | — |
| keyword.control.import.include.php | #cb4b16 | — |
| text.html.ruby meta.tag.inline.any.html | #839496 | |
| text.html.ruby punctuation.definition.string.begin, text.html.ruby punctuation.definition.string.end | #2aa198 | |
| punctuation.definition.string.begin, punctuation.definition.string.end | #839496 | — |
| keyword.operator.index-start.php, keyword.operator.index-end.php | #dc322f | — |
| meta.array.php | #586e75 | — |
| meta.array.php support.function.construct.php, meta.array.empty.php support.function.construct.php | #b58900 | |
| support.function.construct.php | #b58900 | — |
| punctuation.definition.array.begin, punctuation.definition.array.end | #dc322f | — |
| constant.numeric.php | #2aa198 | — |
| keyword.other.new.php | #CB4B16 | — |
| support.class.php, keyword.operator.class | #586e75 | |
| variable.other.property.php | #93a1a1 | — |
| storage.modifier.extends.php, storage.type.class.php, keyword.operator.class.php | #b58900 | — |
| PHP: Class Function | — | — |
| meta.other.inherited-class.php | #586e75 | |
| storage.type.php | #859900 | — |
| entity.name.function.php | #93a1a1 | — |
| support.function.construct.php | #859900 | — |
| entity.name.type.class.php, meta.function-call.php, meta.function-call.static.php, meta.function-call.object.php | #839496 | — |
| keyword.other.phpdoc | #93a1a1 | |
| source.php.embedded.block.html | #cb4b16 | — |
| storage.type.function.php | #cb4b16 | — |
| constant.numeric.c | #2aa198 | |
| meta.preprocessor.c.include, meta.preprocessor.macro.c | #cb4b16 | |
| keyword.control.import.define.c, keyword.control.import.include.c | #cb4b16 | |
| entity.name.function.preprocessor.c | #cb4b16 | |
| 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 | #2aa198 | |
| support.function.C99.c, support.function.any-method.c, entity.name.function.c | #586e75 | |
| punctuation.definition.string.begin.c, punctuation.definition.string.end.c | #2aa198 | |
| storage.type.c | #b58900 | |
| meta.diff, meta.diff.header | #E0EDDD | italic |
| markup.deleted | #dc322f | |
| markup.changed | #cb4b16 | |
| markup.inserted | #219186 | — |
| text.html.markdown meta.dummy.line-break | #E0EDDD | — |
| text.html.markdown markup.raw.inline | #2aa198 | — |
| text.restructuredtext markup.raw | #2aa198 | — |
| other.package.exclude, other.remove | #dc322f | |
| other.add | #2aa198 | — |
| punctuation.section.group.tex, punctuation.definition.arguments.begin.latex, punctuation.definition.arguments.end.latex, punctuation.definition.arguments.latex | #dc322f | |
| meta.group.braces.tex | #b58900 | |
| string.other.math.tex | #b58900 | |
| variable.parameter.function.latex | #cb4b16 | |
| punctuation.definition.constant.math.tex | #dc322f | |
| text.tex.latex constant.other.math.tex, constant.other.general.math.tex, constant.other.general.math.tex, constant.character.math.tex | #2aa198 | |
| string.other.math.tex | #b58900 | |
| punctuation.definition.string.begin.tex, punctuation.definition.string.end.tex | #dc322f | |
| keyword.control.label.latex, text.tex.latex constant.other.general.math.tex | #2aa198 | |
| variable.parameter.definition.label.latex | #dc322f | |
| support.function.be.latex | #859900 | |
| support.function.section.latex | #cb4b16 | |
| support.function.general.tex | #2aa198 | |
| punctuation.definition.comment.tex, comment.line.percentage.tex | — | italic |
| keyword.control.ref.latex | #2aa198 | |
| string.quoted.double.block.python | #586e75 | |
| storage.type.class.python, storage.type.function.python, storage.modifier.global.python | #859900 | |
| keyword.control.import.python, keyword.control.import.from.python | #cb4b16 | — |
| support.type.exception.python | #b58900 | — |
| support.function.builtin.shell | #859900 | — |
| variable.other.normal.shell | #cb4b16 | — |
| source.shell | #268bd2 | |
| meta.scope.for-in-loop.shell, variable.other.loop.shell | #586e75 | |
| punctuation.definition.string.end.shell, punctuation.definition.string.begin.shell | #859900 | |
| meta.scope.case-block.shell, meta.scope.case-body.shell | #586e75 | |
| punctuation.definition.logical-expression.shell | #dc322f | |
| comment.line.number-sign.shell | — | italic |
| keyword.other.import.java | #cb4b16 | |
| storage.modifier.import.java | #586E75 | |
| meta.class.java storage.modifier.java | #b58900 | |
| source.java comment.block | #586e75 | |
| comment.block meta.documentation.tag.param.javadoc keyword.other.documentation.param.javadoc | #586e75 | |
| punctuation.definition.variable.perl, variable.other.readwrite.global.perl, variable.other.predefined.perl, keyword.operator.comparison.perl | #b58900 | — |
| support.function.perl | #859900 | — |
| comment.line.number-sign.perl | #586E75 | italic |
| punctuation.definition.string.begin.perl, punctuation.definition.string.end.perl | #2aa198 | — |
| constant.character.escape.perl | #DC322F | — |
| markup.heading.markdown, markup.heading.1.markdown, markup.heading.2.markdown, markup.heading.3.markdown, markup.heading.4.markdown, markup.heading.5.markdown, markup.heading.6.markdown | #268bd2 | — |
| markup.bold.markdown | #586E75 | bold |
| markup.italic.markdown | #586E75 | italic |
| punctuation.definition.bold.markdown, punctuation.definition.italic.markdown, punctuation.definition.raw.markdown | #DC322F | — |
| markup.list.unnumbered.markdown | #B58900 | — |
| markup.list.numbered.markdown | #859900 | — |
| markup.raw.block.markdown, markup.raw.inline.markdown | #2aa198 | — |
| markup.quote.markdown | #6c71c4 | — |
| punctuation.definition.blockquote.markdown | #6c71c4 | — |
| meta.separator.markdown | #d33682 | — |
| markup.underline.link.markdown | #839496 | — |
| markup.underline.link.markdown | #839496 | — |
| meta.link.inet.markdown, meta.link.email.lt-gt.markdown, punctuation.definition.string.begin.markdown, punctuation.definition.string.end.markdown, punctuation.definition.link.markdown | #DC322F | — |
| text.plain | #6a8187 | — |
| sublimelinter.notes | #eee8d5 | — |
| sublimelinter.outline.illegal | #93a1a1 | — |
| sublimelinter.underline.illegal | — | — |
| sublimelinter.outline.warning | #839496 | — |
| sublimelinter.underline.warning | — | — |
| sublimelinter.outline.violation | #657b83 | — |
| sublimelinter.underline.violation | — | — |
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}!`;
}