Skip to content

Distinct color highlighting for SQL table.column notation #634

Description

@guilhermenakayama

Currently, Catppuccin does not apply distinct colors to the two parts of the table.column syntax in SQL files. Both the table name and the column name are rendered in the same color, making it harder to visually distinguish them at a glance.

Other themes like "Monokai", "Monokai Dimmed", do differentiate these tokens, typically by coloring the table name and the column name differently — for example, one color for the qualifier (table) and another for the property (column).

This is one of the reasons I currently cannot use Catppuccin as my daily driver, even though I love the overall color palette.

Expected Behavior

In a SQL snippet like:

SELECT
    orders.id,
    orders.customer_id,
    customers.name
FROM orders
JOIN customers ON orders.customer_id = customers.id

The table qualifier (orders, customers) and the column name (id, name) should have visually distinct colors, making it easy to scan which column belongs to which table.

Current Behavior

Both parts of table.column are rendered in the same color, providing no visual distinction between the object qualifier and the property.

Why This Matters

When writing complex SQL queries with multiple joins, being able to quickly tell which part is the table and which is the column significantly improves readability and reduces mistakes. This is especially valuable for developers who work with SQL daily.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions