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

Add seaborn color palettes #2

Merged
merged 2 commits into from
Jul 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified doc/main.pdf
Binary file not shown.
103 changes: 102 additions & 1 deletion doc/main.typ
Original file line number Diff line number Diff line change
Expand Up @@ -196,4 +196,105 @@ package his work for ease-of-use in Typst.
title: "Okabe-Ito",
name: "okabe-ito",
palettes.okabe-ito,
)
)

== Seaborn

The following section shows qualitative palettes created by the seaborn project.
`typst-palettes` only package his work for ease-of-use in Typst.
Visit the #link("https://seaborn.pydata.org/tutorial/color_palettes.html")[seaborn documentation] for a discussion of these palettes.
All of these palettes come in a default 10-color and a reduced six color version.

#section(
cols: 4,
title: "Seaborn Bright",
name: "seaborn.bright",
palettes.seaborn.bright,
do-page-break: false,
)

#section(
cols: 3,
title: "Seaborn Bright 6",
name: "seaborn.bright6",
palettes.seaborn.bright6,
do-page-break: false,
)

#section(
cols: 4,
title: "Seaborn Colorblind",
name: "seaborn.colorblind",
palettes.seaborn.colorblind,
do-page-break: false,
)

#section(
cols: 3,
title: "Seaborn Colorblind 6",
name: "seaborn.colorblind6",
palettes.seaborn.colorblind6,
)

#section(
cols: 4,
title: "Seaborn Dark",
name: "seaborn.dark",
palettes.seaborn.dark,
do-page-break: false,
)

#section(
cols: 3,
title: "Seaborn Dark 6",
name: "seaborn.dark6",
palettes.seaborn.dark6,
do-page-break: false,
)

#section(
cols: 4,
title: "Seaborn Deep",
name: "seaborn.deep",
palettes.seaborn.deep,
do-page-break: false,
)

#section(
cols: 3,
title: "Seaborn Deep 6",
name: "seaborn.deep6",
palettes.seaborn.deep6,
)

#section(
cols: 4,
title: "Seaborn Muted",
name: "seaborn.muted",
palettes.seaborn.muted,
do-page-break: false,
)

#section(
cols: 3,
title: "Seaborn Muted 6",
name: "seaborn.muted6",
palettes.seaborn.muted6,
do-page-break: false,
)

#section(
cols: 4,
title: "Seaborn Pastel",
name: "seaborn.pastel",
palettes.seaborn.pastel,
do-page-break: false,
)

#section(
cols: 3,
title: "Seaborn Pastel 6",
name: "seaborn.pastel6",
palettes.seaborn.pastel6,
do-page-break: false,
)
1 change: 1 addition & 0 deletions src/palettes.typ
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#import "palettes/google-workspace.typ": *
#import "palettes/kth.typ": *
#import "palettes/misc.typ": *
#import "palettes/seaborn.typ" as seaborn
#import "palettes/tailwind-css.typ": *
#import "palettes/tol.typ": *
#import "palettes/typst-highlighting.typ": *
Expand Down
131 changes: 131 additions & 0 deletions src/palettes/seaborn.typ
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
#let bright = (
blue: rgb("#023EFF"),
orange: rgb("#FF7C00"),
green: rgb("#1AC938"),
red: rgb("#E8000B"),
purple: rgb("#8B2BE2"),
brown: rgb("#9F4800"),
magenta: rgb("#F14CC1"),
gray: rgb("#A3A3A3"),
yellow: rgb("#FFC400"),
cyan: rgb("#00D7FF"),
)

#let bright6 = (
blue: rgb("#023EFF"),
green: rgb("#1AC938"),
red: rgb("#E8000B"),
purple: rgb("#8B2BE2"),
yellow: rgb("#FFC400"),
cyan: rgb("#00D7FF"),
)

#let colorblind = (
blue: rgb("#0173B2"),
orange: rgb("#DE8F05"),
green: rgb("#029E73"),
red: rgb("#D55E00"),
purple: rgb("#CC78BC"),
brown: rgb("#CA9161"),
magenta: rgb("#FBAFE4"),
gray: rgb("#949494"),
yellow: rgb("#ECE133"),
cyan: rgb("#56B4E9"),
)

#let colorblind6 = (
blue: rgb("#0173B2"),
green: rgb("#029E73"),
red: rgb("#D55E00"),
purple: rgb("#CC78BC"),
yellow: rgb("#ECE133"),
cyan: rgb("#56B4E9"),
)

#let dark = (
blue: rgb("#001C7F"),
orange: rgb("#B1400D"),
green: rgb("#12711C"),
red: rgb("#8C0800"),
purple: rgb("#591E71"),
brown: rgb("#592F0D"),
magenta: rgb("#A23582"),
gray: rgb("#3C3C3C"),
yellow: rgb("#B8850A"),
cyan: rgb("#006374"),
)

#let dark6 = (
blue: rgb("#001C7F"),
green: rgb("#12711C"),
red: rgb("#8C0800"),
purple: rgb("#591E71"),
yellow: rgb("#B8850A"),
cyan: rgb("#006374"),
)

#let deep = (
blue: rgb("#4C72B0"),
orange: rgb("#DD8452"),
green: rgb("#55A868"),
red: rgb("#C44E52"),
purple: rgb("#8172B3"),
brown: rgb("#937860"),
magenta: rgb("#DA8BC3"),
gray: rgb("#8C8C8C"),
yellow: rgb("#CCB974"),
cyan: rgb("#64B5CD"),
)

#let deep6 = (
blue: rgb("#4C72B0"),
green: rgb("#55A868"),
red: rgb("#C44E52"),
purple: rgb("#8172B3"),
yellow: rgb("#CCB974"),
cyan: rgb("#64B5CD"),
)

#let muted = (
blue: rgb("#4878D0"),
orange: rgb("#EE854A"),
green: rgb("#6ACC64"),
red: rgb("#D65F5F"),
purple: rgb("#956CB4"),
brown: rgb("#8C613C"),
magenta: rgb("#DC7EC0"),
gray: rgb("#797979"),
yellow: rgb("#D5BB67"),
cyan: rgb("#82C6E2"),
)

#let muted6 = (
blue: rgb("#4878D0"),
green: rgb("#6ACC64"),
red: rgb("#D65F5F"),
purple: rgb("#956CB4"),
yellow: rgb("#D5BB67"),
cyan: rgb("#82C6E2"),
)

#let pastel = (
blue: rgb("#A1C9F4"),
orange: rgb("#FFB482"),
green: rgb("#8DE5A1"),
red: rgb("#FF9F9B"),
purple: rgb("#D0BBFF"),
brown: rgb("#DEBB9B"),
magenta: rgb("#FAB0E4"),
gray: rgb("#CFCFCF"),
yellow: rgb("#FFFEA3"),
cyan: rgb("#B9F2F0"),
)

#let pastel6 = (
blue: rgb("#A1C9F4"),
green: rgb("#8DE5A1"),
red: rgb("#FF9F9B"),
purple: rgb("#D0BBFF"),
yellow: rgb("#FFFEA3"),
cyan: rgb("#B9F2F0"),
)