Dull Sun (Dun)
Publisher: Dull SunThemes in package: 3
A shineless theme
A shineless 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 |
|---|---|---|
| — | #cccac2 | — |
| comment | #b8cfe680 | italic |
| string, constant.other.symbol | #d5ff80 | — |
| string.regexp, constant.character, constant.other | #95e6cb | — |
| constant.numeric | #dfbfff | — |
| constant.language | #dfbfff | — |
| variable, variable.parameter.function-call | #cccac2 | — |
| variable.member | #f28779 | — |
| variable.language | #5ccfe6 | italic |
| storage | #ffad66 | — |
| keyword | #ffad66 | — |
| keyword.operator | #f29e74 | — |
| punctuation.separator, punctuation.terminator | #cccac2b3 | — |
| punctuation.section | #cccac2 | — |
| punctuation.accessor | #f29e74 | — |
| punctuation.definition.template-expression | #ffad66 | — |
| punctuation.section.embedded | #ffad66 | — |
| meta.embedded | #cccac2 | — |
| source.java storage.type, source.haskell storage.type, source.c storage.type | #569cd6 | — |
| entity.other.inherited-class | #5ccfe6 | — |
| storage.type.function | #ffad66 | — |
| source.java storage.type.primitive | #5ccfe6 | — |
| entity.name.function | #ffd173 | — |
| variable.parameter, meta.parameter | #dfbfff | — |
| variable.function, variable.annotation, meta.function-call.generic, support.function.go | #ffd173 | — |
| support.function, support.macro | #f28779 | — |
| entity.name.import, entity.name.package | #d5ff80 | — |
| entity.name | #569cd6 | — |
| entity.name.tag, meta.tag.sgml | #00ffff | — |
| support.class.component | #4488ce | — |
| punctuation.definition.tag.end, punctuation.definition.tag.begin, punctuation.definition.tag | #5ccfe680 | — |
| entity.other.attribute-name | #ffd173 | — |
| support.constant | #f29e74 | italic |
| support.type, support.class, source.go storage.type | #5ccfe6 | — |
| meta.decorator variable.other, meta.decorator punctuation.decorator, storage.type.annotation | #ffdfb3 | — |
| invalid | #ff6666 | — |
| meta.diff, meta.diff.header | #c594c5 | — |
| source.ruby variable.other.readwrite | #ffd173 | — |
| source.css entity.name.tag, source.sass entity.name.tag, source.scss entity.name.tag, source.less entity.name.tag, source.stylus entity.name.tag | #569cd6 | — |
| source.css support.type, source.sass support.type, source.scss support.type, source.less support.type, source.stylus support.type | #b8cfe680 | — |
| support.type.property-name | #5ccfe6 | normal |
| constant.numeric.line-number.find-in-files - match | #b8cfe680 | — |
| constant.numeric.line-number.match | #ffad66 | — |
| entity.name.filename.find-in-files | #d5ff80 | — |
| message.error | #ff6666 | — |
| markup.heading, markup.heading entity.name | #d5ff80 | bold |
| markup.underline.link, string.other.link | #5ccfe6 | — |
| markup.italic | #f28779 | italic |
| markup.bold | #f28779 | bold |
| markup.italic markup.bold, markup.bold markup.italic | — | bold italic |
| markup.raw | — | — |
| markup.raw.inline | — | — |
| meta.separator | #b8cfe680 | bold |
| markup.quote | #95e6cb | italic |
| markup.list punctuation.definition.list.begin | #ffd173 | — |
| markup.inserted | #87d96c | — |
| markup.changed | #80bfff | — |
| markup.deleted | #f27983 | — |
| markup.strike | #ffdfb3 | — |
| markup.table | #5ccfe6 | — |
| text.html.markdown markup.inline.raw | #f29e74 | — |
| text.html.markdown meta.dummy.line-break | #b8cfe680 | — |
| punctuation.definition.markdown | #b8cfe680 | — |
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}!`;
}