Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v2) feat: add adaptive color package #359

Merged
merged 2 commits into from
Oct 18, 2024
Merged

(v2) feat: add adaptive color package #359

merged 2 commits into from
Oct 18, 2024

Commits on Aug 30, 2024

  1. feat: add adaptive color package

    This introduces a helper type `LightDark` that takes a boolean to
    determine which `Color(light, dark)` to choose from. The `adaptive`
    package is a helper package that uses the `lipgloss.LightDark` along
    with querying the terminal when the module is imported to choose the
    appropriate light-dark color.
    
    Example:
    
    ```go
    var (
      light = "#0000ff"
      dark = "#ff0000"
    )
    
    colorToUse := adaptive.Color(light, dark) // the terminal is queried before choosing the color
    fmt.Println(colorToUse)
    ```
    aymanbagabas committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    3014273 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    dbc5538 View commit details
    Browse the repository at this point in the history