{"id":27880850,"url":"https://github.com/atomicgo/color","last_synced_at":"2026-02-11T18:06:23.181Z","repository":{"id":248257964,"uuid":"828210584","full_name":"atomicgo/color","owner":"atomicgo","description":"🎨 Simple colors for your terminal in Go","archived":false,"fork":false,"pushed_at":"2025-02-01T13:22:19.000Z","size":59,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-05T04:45:05.314Z","etag":null,"topics":["atomicgo","go","golang","golang-library","hacktoberfest"],"latest_commit_sha":null,"homepage":"https://atomicgo.dev","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atomicgo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["MarvinJWendt"]}},"created_at":"2024-07-13T12:51:45.000Z","updated_at":"2025-02-01T13:22:20.000Z","dependencies_parsed_at":"2024-07-20T00:34:36.747Z","dependency_job_id":"f53c9bcd-d2ec-401f-8b5f-fc81fbbd109f","html_url":"https://github.com/atomicgo/color","commit_stats":null,"previous_names":["atomicgo/color"],"tags_count":1,"template":false,"template_full_name":"atomicgo/template","purl":"pkg:github/atomicgo/color","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicgo%2Fcolor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicgo%2Fcolor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicgo%2Fcolor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicgo%2Fcolor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomicgo","download_url":"https://codeload.github.com/atomicgo/color/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicgo%2Fcolor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29340425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-11T16:14:43.024Z","status":"ssl_error","status_checked_at":"2026-02-11T16:14:15.258Z","response_time":97,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["atomicgo","go","golang","golang-library","hacktoberfest"],"created_at":"2025-05-05T04:38:39.414Z","updated_at":"2026-02-11T18:06:23.159Z","avatar_url":"https://github.com/atomicgo.png","language":"Go","funding_links":["https://github.com/sponsors/MarvinJWendt"],"categories":[],"sub_categories":[],"readme":"\u003c!--\n\n\n\n┌───────────────────────────────────────────────────────────────────┐\n│                                                                   │\n│                          IMPORTANT NOTE                           │\n│                                                                   │\n│               This file is automatically generated                │\n│           All manual modifications will be overwritten            │\n│                                                                   │\n└───────────────────────────────────────────────────────────────────┘\n\n\n\n--\u003e\n\n\u003ch1 align=\"center\"\u003eAtomicGo | color\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://img.shields.io/endpoint?url=https%3A%2F%2Fatomicgo.dev%2Fapi%2Fshields%2Fcolor\u0026style=flat-square\" alt=\"Downloads\"\u003e\n\n\u003ca href=\"https://github.com/atomicgo/color/releases\"\u003e\n\u003cimg src=\"https://img.shields.io/github/v/release/atomicgo/color?style=flat-square\" alt=\"Latest Release\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://codecov.io/gh/atomicgo/color\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/atomicgo/color/go.yml?style=flat-square\" alt=\"Tests\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://codecov.io/gh/atomicgo/color\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/codecov/c/gh/atomicgo/color?color=magenta\u0026logo=codecov\u0026style=flat-square\" alt=\"Coverage\"\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://codecov.io/gh/atomicgo/color\"\u003e\n\u003c!-- unittestcount:start --\u003e\u003cimg src=\"https://img.shields.io/badge/Unit_Tests-1-magenta?style=flat-square\" alt=\"Unit test count\"\u003e\u003c!-- unittestcount:end --\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg?style=flat-square\" alt=\"License: MIT\"\u003e\n\u003c/a\u003e\n  \n\u003ca href=\"https://goreportcard.com/report/github.com/atomicgo/color\" target=\"_blank\"\u003e\n\u003cimg src=\"https://goreportcard.com/badge/github.com/atomicgo/color?style=flat-square\" alt=\"Go report\"\u003e\n\u003c/a\u003e   \n\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n\u003cstrong\u003e\u003ca href=\"https://pkg.go.dev/atomicgo.dev/color#section-documentation\" target=\"_blank\"\u003eDocumentation\u003c/a\u003e\u003c/strong\u003e\n|\n\u003cstrong\u003e\u003ca href=\"https://github.com/atomicgo/atomicgo/blob/main/CONTRIBUTING.md\" target=\"_blank\"\u003eContributing\u003c/a\u003e\u003c/strong\u003e\n|\n\u003cstrong\u003e\u003ca href=\"https://github.com/atomicgo/atomicgo/blob/main/CODE_OF_CONDUCT.md\" target=\"_blank\"\u003eCode of Conduct\u003c/a\u003e\u003c/strong\u003e\n\u003c/p\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/atomicgo/atomicgo/main/assets/header.png\" alt=\"AtomicGo\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/p\u003e\n\u003ch3  align=\"center\"\u003e\u003cpre\u003ego get atomicgo.dev/color\u003c/pre\u003e\u003c/h3\u003e\n\u003cp align=\"center\"\u003e\n\u003ctable\u003e\n\u003ctbody\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/p\u003e\n\n\u003c!-- gomarkdoc:embed:start --\u003e\n\n\u003c!-- Code generated by gomarkdoc. DO NOT EDIT --\u003e\n\n# color\n\n```go\nimport \"atomicgo.dev/color\"\n```\n\nPackage color is a minimalistic package for coloring terminal output.\n\n\n\n\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"atomicgo.dev/color\"\n)\n\nfunc main() {\n\t// Simple coloring\n\tfmt.Println(\"Hello, \" + color.Green(\"World\") + \"!\")\n\n\tfmt.Println() // blank line\n\n\t// Theme colors - can be customized in init() function if needed\n\tfmt.Println(color.Success(\"Success message\"))\n\tfmt.Println(color.Info(\"Info message\"))\n\tfmt.Println(color.Warning(\"Warning message\"))\n\tfmt.Println(color.Error(\"Error message\"))\n\tfmt.Println(color.Fatal(\"Fatal message\"))\n\n\tfmt.Println() // blank line\n\n\t// Supports ANSI colors\n\tansiRed := color.NewStyle(color.ANSIRed, nil).Sprint\n\tfmt.Println(ansiRed(\"This is printed red using an ANSI color code\"))\n\n\t// Supports ANSI256 colors\n\tansi256Red := color.NewStyle(color.ANSI256Color(196), nil).Sprint\n\tfmt.Println(ansi256Red(\"This is printed red using an ANSI256 color code\"))\n\n\t// Supports RGB colors\n\tredRGB := color.NewStyle(color.NewColorFromRGB(255, 0, 0), nil).Sprint\n\tfmt.Println(redRGB(\"This is printed red using a RGB color code\"))\n\n\t// Supports hex colors\n\tredHex := color.NewStyle(color.NewColorFromHex(\"#ff0000\"), nil).Sprint\n\tfmt.Println(redHex(\"This is printed red using a hex color code\"))\n}\n```\n\n\n\n## Index\n\n- [Variables](\u003c#variables\u003e)\n- [type ANSI256Color](\u003c#ANSI256Color\u003e)\n  - [func \\(c ANSI256Color\\) Sequence\\(background bool\\) string](\u003c#ANSI256Color.Sequence\u003e)\n  - [func \\(c ANSI256Color\\) String\\(\\) string](\u003c#ANSI256Color.String\u003e)\n- [type ANSIColor](\u003c#ANSIColor\u003e)\n  - [func \\(c ANSIColor\\) Sequence\\(background bool\\) string](\u003c#ANSIColor.Sequence\u003e)\n- [type Color](\u003c#Color\u003e)\n  - [func NewColorFromHex\\(hex string\\) Color](\u003c#NewColorFromHex\u003e)\n  - [func NewColorFromRGB\\(r, g, b uint8\\) Color](\u003c#NewColorFromRGB\u003e)\n- [type Mode](\u003c#Mode\u003e)\n  - [func \\(m Mode\\) String\\(\\) string](\u003c#Mode.String\u003e)\n- [type Modifier](\u003c#Modifier\u003e)\n  - [func \\(m Modifier\\) Sequence\\(\\) string](\u003c#Modifier.Sequence\u003e)\n- [type RGBColor](\u003c#RGBColor\u003e)\n  - [func \\(c RGBColor\\) Hex\\(\\) string](\u003c#RGBColor.Hex\u003e)\n  - [func \\(c RGBColor\\) Sequence\\(background bool\\) string](\u003c#RGBColor.Sequence\u003e)\n- [type Style](\u003c#Style\u003e)\n  - [func NewStyle\\(foregroundColor, backgroundColor Color, modifiers ...Modifier\\) Style](\u003c#NewStyle\u003e)\n  - [func \\(s \\*Style\\) AddModifier\\(modifier Modifier\\)](\u003c#Style.AddModifier\u003e)\n  - [func \\(s Style\\) Fprint\\(w io.Writer, a ...any\\) \\(n int, err error\\)](\u003c#Style.Fprint\u003e)\n  - [func \\(s Style\\) Fprintf\\(w io.Writer, format string, a ...any\\) \\(n int, err error\\)](\u003c#Style.Fprintf\u003e)\n  - [func \\(s Style\\) Fprintfln\\(w io.Writer, format string, a ...any\\) \\(n int, err error\\)](\u003c#Style.Fprintfln\u003e)\n  - [func \\(s Style\\) Fprintln\\(w io.Writer, a ...any\\) \\(n int, err error\\)](\u003c#Style.Fprintln\u003e)\n  - [func \\(s Style\\) Print\\(a ...any\\)](\u003c#Style.Print\u003e)\n  - [func \\(s Style\\) Printf\\(format string, a ...any\\)](\u003c#Style.Printf\u003e)\n  - [func \\(s Style\\) Printfln\\(format string, a ...any\\)](\u003c#Style.Printfln\u003e)\n  - [func \\(s Style\\) Println\\(a ...any\\)](\u003c#Style.Println\u003e)\n  - [func \\(s Style\\) Sequence\\(\\) string](\u003c#Style.Sequence\u003e)\n  - [func \\(s Style\\) Sprint\\(a ...any\\) string](\u003c#Style.Sprint\u003e)\n  - [func \\(s Style\\) Sprintf\\(format string, a ...any\\) string](\u003c#Style.Sprintf\u003e)\n  - [func \\(s Style\\) WithModifier\\(modifier Modifier\\) Style](\u003c#Style.WithModifier\u003e)\n\n\n## Variables\n\n\u003ca name=\"Black\"\u003e\u003c/a\u003e\n\n```go\nvar (\n    // ANSI colors\n    Black       = NewStyle(ANSIBlack, nil).Sprint\n    BrightBlack = NewStyle(ANSIBrightBlack, nil).Sprint\n\n    Red       = NewStyle(ANSIRed, nil).Sprint\n    BrightRed = NewStyle(ANSIBrightRed, nil).Sprint\n\n    Green       = NewStyle(ANSIGreen, nil).Sprint\n    BrightGreen = NewStyle(ANSIBrightGreen, nil).Sprint\n\n    Yellow       = NewStyle(ANSIYellow, nil).Sprint\n    BrightYellow = NewStyle(ANSIBrightYellow, nil).Sprint\n\n    Blue       = NewStyle(ANSIBlue, nil).Sprint\n    BrigthBlue = NewStyle(ANSIBrightBlue, nil).Sprint\n\n    Magenta       = NewStyle(ANSIMagenta, nil).Sprint\n    BrightMagenta = NewStyle(ANSIBrightMagenta, nil).Sprint\n\n    Cyan       = NewStyle(ANSICyan, nil).Sprint\n    BrightCyan = NewStyle(ANSIBrightCyan, nil).Sprint\n\n    White       = NewStyle(ANSIWhite, nil).Sprint\n    BrightWhite = NewStyle(ANSIBrightWhite, nil).Sprint\n\n    // Special colors\n    Success = NewStyle(ANSIBrightGreen, nil).Sprint\n    Info    = NewStyle(ANSIBrightBlue, nil).Sprint\n    Warning = NewStyle(ANSIBrightYellow, nil).Sprint\n    Error   = NewStyle(ANSIBrightRed, nil).Sprint\n    Fatal   = NewStyle(ANSIBrightRed, nil, Bold).Sprint\n)\n```\n\n\u003ca name=\"Writer\"\u003e\u003c/a\u003eWriter is the writer to write colorized output to.\n\n```go\nvar Writer io.Writer = os.Stdout\n```\n\n\u003ca name=\"ANSI256Color\"\u003e\u003c/a\u003e\n## type [ANSI256Color](\u003chttps://github.com/atomicgo/color/blob/main/color-ansi256.go#L4\u003e)\n\nANSI256Color represents a color in the ANSI256 color palette.\n\n```go\ntype ANSI256Color uint8\n```\n\n\u003ca name=\"ANSI256Color.Sequence\"\u003e\u003c/a\u003e\n### func \\(ANSI256Color\\) [Sequence](\u003chttps://github.com/atomicgo/color/blob/main/color-ansi256.go#L12\u003e)\n\n```go\nfunc (c ANSI256Color) Sequence(background bool) string\n```\n\nSequence returns the ANSI escape sequence for the color.\n\n\u003ca name=\"ANSI256Color.String\"\u003e\u003c/a\u003e\n### func \\(ANSI256Color\\) [String](\u003chttps://github.com/atomicgo/color/blob/main/color-ansi256.go#L7\u003e)\n\n```go\nfunc (c ANSI256Color) String() string\n```\n\nString returns the hex code of the color.\n\n\u003ca name=\"ANSIColor\"\u003e\u003c/a\u003e\n## type [ANSIColor](\u003chttps://github.com/atomicgo/color/blob/main/color-ansi.go#L25\u003e)\n\nANSIColor represents an ANSI color code.\n\n```go\ntype ANSIColor int\n```\n\n\u003ca name=\"ANSIBlack\"\u003e\u003c/a\u003e\n\n```go\nconst (\n    ANSIBlack ANSIColor = iota\n    ANSIRed\n    ANSIGreen\n    ANSIYellow\n    ANSIBlue\n    ANSIMagenta\n    ANSICyan\n    ANSIWhite\n    ANSIBrightBlack\n    ANSIBrightRed\n    ANSIBrightGreen\n    ANSIBrightYellow\n    ANSIBrightBlue\n    ANSIBrightMagenta\n    ANSIBrightCyan\n    ANSIBrightWhite\n)\n```\n\n\u003ca name=\"ANSIColor.Sequence\"\u003e\u003c/a\u003e\n### func \\(ANSIColor\\) [Sequence](\u003chttps://github.com/atomicgo/color/blob/main/color-ansi.go#L28\u003e)\n\n```go\nfunc (c ANSIColor) Sequence(background bool) string\n```\n\nSequence represents the ANSI escape sequence for the color.\n\n\u003ca name=\"Color\"\u003e\u003c/a\u003e\n## type [Color](\u003chttps://github.com/atomicgo/color/blob/main/color.go#L12-L14\u003e)\n\nColor is an interface for colors.\n\n```go\ntype Color interface {\n    Sequence(background bool) string\n}\n```\n\n\u003ca name=\"NoColor\"\u003e\u003c/a\u003e\n\n```go\nvar NoColor Color = noColor{}\n```\n\n\u003ca name=\"NewColorFromHex\"\u003e\u003c/a\u003e\n### func [NewColorFromHex](\u003chttps://github.com/atomicgo/color/blob/main/color-rgb.go#L26\u003e)\n\n```go\nfunc NewColorFromHex(hex string) Color\n```\n\nNewColorFromHex creates a new Color from a hex string. If the hex string is invalid, NoColor is returned.\n\n\u003ca name=\"NewColorFromRGB\"\u003e\u003c/a\u003e\n### func [NewColorFromRGB](\u003chttps://github.com/atomicgo/color/blob/main/color-rgb.go#L20\u003e)\n\n```go\nfunc NewColorFromRGB(r, g, b uint8) Color\n```\n\nNewColorFromRGB creates a new Color from RGB values.\n\n\u003ca name=\"Mode\"\u003e\u003c/a\u003e\n## type [Mode](\u003chttps://github.com/atomicgo/color/blob/main/mode.go#L4\u003e)\n\nMode represents the color mode used by the terminal.\n\n```go\ntype Mode int\n```\n\n\u003ca name=\"TrueColor\"\u003e\u003c/a\u003e\n\n```go\nconst (\n    TrueColor Mode = iota\n    ANSI256\n    ANSI\n\n    Disabled\n)\n```\n\n\u003ca name=\"Mode.String\"\u003e\u003c/a\u003e\n### func \\(Mode\\) [String](\u003chttps://github.com/atomicgo/color/blob/main/mode.go#L14\u003e)\n\n```go\nfunc (m Mode) String() string\n```\n\n\n\n\u003ca name=\"Modifier\"\u003e\u003c/a\u003e\n## type [Modifier](\u003chttps://github.com/atomicgo/color/blob/main/modifier.go#L6\u003e)\n\nModifier type for text modifiers.\n\n```go\ntype Modifier int\n```\n\n\u003ca name=\"Reset\"\u003e\u003c/a\u003eModifiers\n\n```go\nconst (\n    Reset Modifier = iota\n    Bold\n    Faint\n    Italic\n    Underline\n)\n```\n\n\u003ca name=\"Modifier.Sequence\"\u003e\u003c/a\u003e\n### func \\(Modifier\\) [Sequence](\u003chttps://github.com/atomicgo/color/blob/main/modifier.go#L20\u003e)\n\n```go\nfunc (m Modifier) Sequence() string\n```\n\nSequence returns the ANSI escape sequence for the modifier.\n\n\u003ca name=\"RGBColor\"\u003e\u003c/a\u003e\n## type [RGBColor](\u003chttps://github.com/atomicgo/color/blob/main/color-rgb.go#L10-L12\u003e)\n\nRGBColor represents a color in the RGB color space.\n\n```go\ntype RGBColor struct {\n    R, G, B uint8\n}\n```\n\n\u003ca name=\"RGBColor.Hex\"\u003e\u003c/a\u003e\n### func \\(RGBColor\\) [Hex](\u003chttps://github.com/atomicgo/color/blob/main/color-rgb.go#L15\u003e)\n\n```go\nfunc (c RGBColor) Hex() string\n```\n\nHex returns the hex representation of the color.\n\n\u003ca name=\"RGBColor.Sequence\"\u003e\u003c/a\u003e\n### func \\(RGBColor\\) [Sequence](\u003chttps://github.com/atomicgo/color/blob/main/color-rgb.go#L49\u003e)\n\n```go\nfunc (c RGBColor) Sequence(background bool) string\n```\n\nSequence returns the ANSI escape sequence for the color.\n\n\u003ca name=\"Style\"\u003e\u003c/a\u003e\n## type [Style](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L10-L15\u003e)\n\nStyle represents a text style with a foreground and background color and modifiers.\n\n```go\ntype Style struct {\n    Foreground Color\n    Background Color\n\n    Modifiers []Modifier\n}\n```\n\n\u003ca name=\"NewStyle\"\u003e\u003c/a\u003e\n### func [NewStyle](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L18\u003e)\n\n```go\nfunc NewStyle(foregroundColor, backgroundColor Color, modifiers ...Modifier) Style\n```\n\nNewStyle creates a new Style with the given foreground and background colors and modifiers.\n\n\u003ca name=\"Style.AddModifier\"\u003e\u003c/a\u003e\n### func \\(\\*Style\\) [AddModifier](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L35\u003e)\n\n```go\nfunc (s *Style) AddModifier(modifier Modifier)\n```\n\nAddModifier adds a modifier to the style, if it's not already present.\n\n\u003ca name=\"Style.Fprint\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Fprint](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L87\u003e)\n\n```go\nfunc (s Style) Fprint(w io.Writer, a ...any) (n int, err error)\n```\n\nFprint formats using the default formats for its operands and writes to w.\n\n\u003ca name=\"Style.Fprintf\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Fprintf](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L92\u003e)\n\n```go\nfunc (s Style) Fprintf(w io.Writer, format string, a ...any) (n int, err error)\n```\n\nFprintf formats according to a format specifier and writes to w.\n\n\u003ca name=\"Style.Fprintfln\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Fprintfln](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L102\u003e)\n\n```go\nfunc (s Style) Fprintfln(w io.Writer, format string, a ...any) (n int, err error)\n```\n\nFprintfln formats according to a format specifier and writes to w.\n\n\u003ca name=\"Style.Fprintln\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Fprintln](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L97\u003e)\n\n```go\nfunc (s Style) Fprintln(w io.Writer, a ...any) (n int, err error)\n```\n\nFprintln formats using the default formats for its operands and writes to w.\n\n\u003ca name=\"Style.Print\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Print](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L107\u003e)\n\n```go\nfunc (s Style) Print(a ...any)\n```\n\nPrint formats using the default formats for its operands and writes to standard output.\n\n\u003ca name=\"Style.Printf\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Printf](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L112\u003e)\n\n```go\nfunc (s Style) Printf(format string, a ...any)\n```\n\nPrintf formats according to a format specifier and writes to standard output.\n\n\u003ca name=\"Style.Printfln\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Printfln](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L122\u003e)\n\n```go\nfunc (s Style) Printfln(format string, a ...any)\n```\n\nPrintfln formats according to a format specifier and writes to standard output.\n\n\u003ca name=\"Style.Println\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Println](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L117\u003e)\n\n```go\nfunc (s Style) Println(a ...any)\n```\n\nPrintln formats using the default formats for its operands and writes to standard output.\n\n\u003ca name=\"Style.Sequence\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Sequence](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L52\u003e)\n\n```go\nfunc (s Style) Sequence() string\n```\n\nSequence returns the ANSI escape sequence for the style.\n\n\u003ca name=\"Style.Sprint\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Sprint](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L71\u003e)\n\n```go\nfunc (s Style) Sprint(a ...any) string\n```\n\nSprint formats using the default formats for its operands and returns the resulting string.\n\n\u003ca name=\"Style.Sprintf\"\u003e\u003c/a\u003e\n### func \\(Style\\) [Sprintf](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L82\u003e)\n\n```go\nfunc (s Style) Sprintf(format string, a ...any) string\n```\n\nSprintf formats according to a format specifier and returns the resulting string.\n\n\u003ca name=\"Style.WithModifier\"\u003e\u003c/a\u003e\n### func \\(Style\\) [WithModifier](\u003chttps://github.com/atomicgo/color/blob/main/style.go#L46\u003e)\n\n```go\nfunc (s Style) WithModifier(modifier Modifier) Style\n```\n\nWithModifier returns a new Style with the given modifier added, if it's not already present.\n\nGenerated by [gomarkdoc](\u003chttps://github.com/princjef/gomarkdoc\u003e)\n\n\n\u003c!-- gomarkdoc:embed:end --\u003e\n\n---\n\n\u003e [AtomicGo.dev](https://atomicgo.dev) \u0026nbsp;\u0026middot;\u0026nbsp;\n\u003e with ❤️ by [@MarvinJWendt](https://github.com/MarvinJWendt) |\n\u003e [MarvinJWendt.com](https://marvinjwendt.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicgo%2Fcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomicgo%2Fcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicgo%2Fcolor/lists"}