From 5955819eeaaa1f0ac05abb89c2e90bd2df371cd3 Mon Sep 17 00:00:00 2001 From: Gabriel Grubba Date: Mon, 12 Dec 2022 15:54:54 -0300 Subject: [PATCH 1/4] wip: updating styles in tinytest --- packages/test-in-browser/driver.css | 35 ++++++++++++++++++++-------- packages/test-in-browser/driver.html | 7 ++++++ 2 files changed, 32 insertions(+), 10 deletions(-) diff --git a/packages/test-in-browser/driver.css b/packages/test-in-browser/driver.css index f58f42fea1..ad59df151d 100644 --- a/packages/test-in-browser/driver.css +++ b/packages/test-in-browser/driver.css @@ -1,8 +1,23 @@ + +* { + font-family: 'Space Grotesk', 'VT323', monospace; + /* Variables */ + --bg-black : #18181b; + --primary-white : #F9FAFB; + + --red-200 : #fecaca; + --red-500 : #dc2626; + --red-900 : #7f1d1d; + + --gray-300: #d6d3d1; +} + body { height: 100vh; width: 100vw; - background-color: black !important; - color: white !important; + background-color: var(--bg-black) !important; + color: var(--primary-white) !important; + } .test-in-browser { @@ -125,8 +140,8 @@ body { .test_table .running .teststatus { color: #ccc; } .test_table .event .expected_fail { color: #600; } -.test_table .event .fail { color: #d00; } -.test_table .event .exception { color: #d00; } +.test_table .event .fail { color: #dc2626; } +.test_table .event .exception { color: #dc2626; } .test_table .event .nodata { color: #ccc; font-style: italic; } .test_table .event .xtimes, .test_table .event .failkey { font-weight: bold; } @@ -137,7 +152,7 @@ body { .test_table .event:hover .debug { display: inline; - color: gray; + color: #737373; /* neutral 500 */ text-decoration: underline; cursor: pointer; } @@ -156,18 +171,18 @@ body { text-decoration: none; } .string_equal_expected ins { - background: #ed0; + background: #facc15; /* yellow 400 */ } .string_equal_actual ins { - color: #d00; - background: #fcc; + color: #dc2626; /* red 600 */ + background: #fecaca; /* red 200 */ } #current-client-test { - color: #ccc; + color: #d6d3d1; /* gray 300 */ margin-right: 15px; } .failedTests { - color: #900; /* red */ + color: #7f1d1d; /* red 900 */ } diff --git a/packages/test-in-browser/driver.html b/packages/test-in-browser/driver.html index 52bd3b8aad..0d86cdb6b4 100644 --- a/packages/test-in-browser/driver.html +++ b/packages/test-in-browser/driver.html @@ -1,5 +1,12 @@