Skip to content

Commit 8c841dd

Browse files
authored
Merge pull request #73 from primer/ansi
Split ANSI colors
2 parents b472c14 + 4c7021d commit 8c841dd

File tree

3 files changed

+65
-18
lines changed

3 files changed

+65
-18
lines changed

.changeset/wild-shirts-reply.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/primitives": patch
3+
---
4+
5+
Split ANSI colors

data/colors/mixins/dark_mode.scss

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,27 @@ $export: (
890890
logline-warning-bg: var(--color-bg-warning),
891891
logline-command-text: $blue-3,
892892
logline-section-text: var(--color-text-success),
893+
894+
// used in the Actions logs
895+
ansi: (
896+
black: $gray-9,
897+
black-bright: $gray-8,
898+
white: $gray-2,
899+
white-bright: $gray-2,
900+
gray: $gray-4,
901+
red: $red-3,
902+
red-bright: $red-2,
903+
green: $green-3,
904+
green-bright: $green-2,
905+
yellow: $yellow-3,
906+
yellow-bright: $yellow-2,
907+
blue: $blue-3,
908+
blue-bright: $blue-2,
909+
magenta: $purple-3,
910+
magenta-bright: $purple-2,
911+
cyan: #76e3ea, // custom
912+
cyan-bright: #b3f0ff, // custom
913+
),
893914
),
894915

895916
intro-shelf: (
@@ -969,7 +990,7 @@ $export: (
969990
),
970991
),
971992

972-
// used in the Actions logs
993+
// used for terminal-like enviroments
973994
ansi: (
974995
black: $gray-9,
975996
black-bright: $gray-8,

data/colors/mixins/light_mode.scss

Lines changed: 38 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,27 @@ $export: (
890890
logline-warning-bg: rgba($yellow-6, 0.15),
891891
logline-command-text: $blue-3,
892892
logline-section-text: $green-3,
893+
894+
// used in the Actions logs
895+
ansi: (
896+
black: $gray-9,
897+
black-bright: $gray-8,
898+
white: $gray-2,
899+
white-bright: $gray-2,
900+
gray: $gray-4,
901+
red: $red-3,
902+
red-bright: $red-2,
903+
green: $green-3,
904+
green-bright: $green-2,
905+
yellow: $yellow-3,
906+
yellow-bright: $yellow-2,
907+
blue: $blue-3,
908+
blue-bright: $blue-2,
909+
magenta: $purple-3,
910+
magenta-bright: $purple-2,
911+
cyan: #76e3ea, // custom
912+
cyan-bright: #b3f0ff, // custom
913+
),
893914
),
894915

895916
intro-shelf: (
@@ -969,24 +990,24 @@ $export: (
969990
),
970991
),
971992

972-
// used in the Actions logs
993+
// used for terminal-like enviroments
973994
ansi: (
974995
black: $gray-9,
975-
black-bright: $gray-8,
976-
white: $gray-2,
977-
white-bright: $gray-2,
978-
gray: $gray-4,
979-
red: $red-3,
980-
red-bright: $red-2,
981-
green: $green-3,
982-
green-bright: $green-2,
983-
yellow: $yellow-3,
984-
yellow-bright: $yellow-2,
985-
blue: $blue-3,
986-
blue-bright: $blue-2,
987-
magenta: $purple-3,
988-
magenta-bright: $purple-2,
989-
cyan: #76e3ea, // custom
990-
cyan-bright: #b3f0ff, // custom
996+
black-bright: $gray-7,
997+
white: $gray-0,
998+
white-bright: $white,
999+
gray: $gray-5,
1000+
red: $red-5,
1001+
red-bright: $red-6,
1002+
green: $green-6,
1003+
green-bright: $green-5,
1004+
yellow: $yellow-8,
1005+
yellow-bright: $yellow-7,
1006+
blue: $blue-5,
1007+
blue-bright: $blue-7,
1008+
magenta: $purple-5,
1009+
magenta-bright: $purple-4,
1010+
cyan: #1b7c83, // custom
1011+
cyan-bright: #3192aa, // custom
9911012
),
9921013
);

0 commit comments

Comments
 (0)