SQL Theme Fresh
Publisher: Zachary WolfeThemes in package: 1
Modern dark theme for SQL with intelligent syntax highlighting and action-based colors
Modern dark theme for SQL with intelligent syntax highlighting and action-based colors
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.line.sql, comment.block.sql | #3fb950 | |
| keyword.other.sql.create-table | #58a6ff | bold |
| keyword.other.sql.if-not-exists | #ffa657 | bold |
| keyword.other.sql.default | #58a6ff | bold |
| entity.name.type.sql | #79c0ff | |
| keyword.other.sql.cascade-warning | #f85149 | bold |
| keyword.other.sql.not-null | #ff69b4 | bold |
| keyword.control.sql.select | #3fb950 | bold |
| keyword.control.sql.insert | #58a6ff | bold |
| keyword.control.sql.update | #d29922 | bold |
| keyword.control.sql.delete | #f85149 | bold |
| keyword.control.sql.ddl | #a371f7 | |
| keyword.control.sql.dml | #a371f7 | |
| keyword.control.sql.on | #a371f7 | |
| keyword.control.sql.table | #a371f7 | |
| keyword.control.sql.constraint | #d2a8ff | |
| keyword.control.sql.transaction | #d29922 | |
| keyword.control.sql.conditional | #a371f7 | |
| storage.type.sql | #79c0ff | |
| constant.language.sql.aggregate | #d2a8ff | |
| entity.name.function.sql | #d2a8ff | |
| constant.language.sql.value | #79c0ff | |
| constant.numeric.sql | #79c0ff | — |
| string.quoted.single.sql, string.quoted.double.sql | #a5d6ff | — |
| variable.parameter.sql | #ffa657 | |
| keyword.operator.sql | #ff7b72 | — |
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}!`;
}