green-theme
Publisher: flyyn2Themes in package: 1
green-theme
green-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 |
|---|---|---|
| — | #657B83 | — |
| meta.embedded, source.groovy.embedded | #657B83 | — |
| meta.property-name | #3c7a03 | — |
| meta.image.inline.markdown | #373224 | — |
| markup.underline.link.image.markdown | #1564E6 | — |
| string.other.link.description.image.title.markdown | #EA465C | — |
| text.html.markdown | #373224 | — |
| comment | #93A1A1 | italic |
| punctuation.definition.comment | #93A1A1 | italic |
| comment.conditional.keyword | #859900 | — |
| comment.conditional.define | #268BD2 | bold |
| string | #248C85 | — |
| string.other.link.description.markdown | #EA465C | — |
| string.other.link.title.markdown | #1A9F00 | — |
| string.regexp | #D30102 | — |
| constant.numeric | #D33682 | — |
| variable.language, variable.scss | #268BD2 | — |
| keyword | #859900 | — |
| storage | #073642 | — |
| storage.type | #364BC0 | italic |
| entity.name.class, entity.name.type | #268BD2 | — |
| entity.name.function | #ae7a00 | — |
| punctuation.definition.variable | #859900 | — |
| beginning.punctuation.definition.list.markdown | #4E3B00 | — |
| punctuation.definition.todo.markdown | #E60000 | — |
| beginning.punctuation.definition.numbered.list.markdown | #4E759D | — |
| punctuation.section.embedded.begin, punctuation.section.embedded.end | #D30102 | — |
| constant.language, meta.preprocessor | #B58900 | — |
| support.function.construct, keyword.other.new | #D30102 | — |
| constant.character, constant.other | #CB4B16 | — |
| entity.other.inherited-class | — | — |
| variable.parameter | — | — |
| entity.name.tag | #2367C7 | — |
| punctuation.definition.tag.begin, punctuation.definition.tag.end, punctuation.definition.tag | #2367C7 | — |
| entity.other.attribute-name | #cb2d01 | — |
| support.function | #268BD2 | — |
| punctuation.separator.continuation | #D30102 | — |
| support.constant | — | — |
| support.type, support.class | #3C7A03 | — |
| support.type.exception | #CB4B16 | — |
| support.other.variable | — | — |
| invalid | — | — |
| meta.diff, meta.diff.header | #E0EDDD | italic |
| markup.deleted | #dc322f | |
| markup.underline.link.markdown | #1564E6 | — |
| markup.changed | #cb4b16 | |
| markup.inserted | #219186 | — |
| markup.quote.markdown | #C05384 | italic |
| markup.list.numbered.markdown | #35485c | — |
| markup.list.unnumbered.markdown | #8d634a | — |
| markup.fenced_code.block.markdown | #325390 | italic|filled |
| text.html.markdown markup.list.numbered.markdown meta.paragraph.markdown markup.bold.markdown, text.html.markdown markup.list.numbered.markdown meta.paragraph.markdown markup.bold.markdown punctuation.definition.bold.markdown | #35485c | bold |
| text.html.markdown meta.paragraph.markdown markup.bold.markdown, text.html.markdown meta.paragraph.markdown markup.bold.markdown punctuation.definition.bold.markdown | #373224 | bold |
| text.html.markdown markup.heading.h1.markdown entity.name.section.markdown markup.bold.markdown, text.html.markdown markup.heading.h1.markdown entity.name.section.markdown markup.bold.markdown punctuation.definition.bold.markdown | #154431 | bold |
| text.html.markdown markup.heading.h2.markdown entity.name.section.markdown markup.bold.markdown, text.html.markdown markup.heading.h2.markdown entity.name.section.markdown markup.bold.markdown punctuation.definition.bold.markdown | #10642c | bold |
| text.html.markdown markup.heading.h3.markdown entity.name.section.markdown markup.bold.markdown, text.html.markdown markup.heading.h3.markdown entity.name.section.markdown markup.bold.markdown punctuation.definition.bold.markdown | #09734f | bold |
| text.html.markdown markup.heading.h4.markdown entity.name.section.markdown markup.bold.markdown, text.html.markdown markup.heading.h4.markdown entity.name.section.markdown markup.bold.markdown punctuation.definition.bold.markdown | #15936d | bold |
| text.html.markdown markup.quote.markdown meta.paragraph.markdown markup.bold.markdown, text.html.markdown markup.quote.markdown meta.paragraph.markdown markup.bold.markdown punctuation.definition.bold.markdown | #C05384 | bold|italic |
| text.html.markdown markup.list.unnumbered.markdown meta.paragraph.markdown markup.bold.markdown, text.html.markdown markup.list.unnumbered.markdown meta.paragraph.markdown markup.bold.markdown punctuation.definition.bold.markdown | #8d634a | bold |
| markup.bold.markdown | — | bold |
| markup.italic.markdown | — | italic |
| markup.dividingline.markdown | #B7AF94 | — |
| markup.commondividingline.markdown | #2B2922 | — |
| markup.inline.raw.string.markdown | #db0eb7 | |
| markup.heading.h1.markdown | #154431 | bold |
| markup.heading.h2.markdown | #10642c | bold |
| markup.heading.h3.markdown | #09734f | bold |
| markup.heading.h4.markdown | #15936d | bold |
| markup.heading.setext | #268BD2 |
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}!`;
}