aboutsummaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorlonkaars <l.leblansch@gmail.com>2021-04-21 22:02:08 +0200
committerlonkaars <l.leblansch@gmail.com>2021-04-21 22:02:08 +0200
commitb0d6721ba9c3cb0a74c376791d41e446a2f57d14 (patch)
treebd985debde0542f576ba0746e3d628624cf30ebe /public
parentda2fba59ddaee800eceee984198da0228fcb5b80 (diff)
move colors from styles/global.css to themes folder
Diffstat (limited to 'public')
-rw-r--r--public/themes/classic.css87
-rw-r--r--public/themes/default.css54
2 files changed, 141 insertions, 0 deletions
diff --git a/public/themes/classic.css b/public/themes/classic.css
new file mode 100644
index 0000000..ff699bb
--- /dev/null
+++ b/public/themes/classic.css
@@ -0,0 +1,87 @@
+:root {
+ --background: var(--gray-900);
+ --foreground: var(--gray-900);
+
+ --accent: var(--error);
+
+ --error: #E16D82;
+ --disk-b-alt: #FDC0C4;
+
+ --confirm: #71D9CC;
+ --disk-a-alt: #C0FDEB;
+
+ /* shade */
+ --gray-100: #11171a;
+ --gray-200: #222d33;
+ --gray-300: #344047;
+ --gray-400: #11171a88;
+
+ --gray-600: #fcfffdaa;
+ --gray-700: #81949E;
+ --gray-800: #5d737e;
+
+ --gray-900: #fcfffd;
+
+ /* box-shadow */
+ --drop-level-2: 0px 8px 32px 0px rgba(0, 0, 0, 0.3);
+ --drop-level-1: 0px 8px 12px -4px rgba(0, 0, 0, 0.15);
+
+ /* border-radius */
+ --tight-corner: 8px;
+ --loose-corner: 8px;
+
+ /* margin/padding */
+ --spacing-small: 6px;
+ --spacing-medium: 12px;
+ --spacing-large: 24px;
+}
+
+html:not(.dark) .pageTitle,
+html:not(.dark) .footer {
+ color: var(--gray-800) !important;
+}
+
+html:not(.dark) .footer svg circle.circle { stroke: var(--gray-800); }
+
+html:not(.dark) .searchBar .input {
+ background-color: var(--gray-900) !important;
+ color: var(--gray-800);
+}
+
+html:not(.dark) .searchBar .input::placeholder { color: var(--gray-400); }
+
+.newGameDialog .inviteButton {
+ background-color: var(--gray-900) !important;
+ color: var(--gray-800);
+}
+
+.newGameDialog .inviteButton.random .icon { color: var(--confirm); }
+.newGameDialog .inviteButton.link .icon { color: var(--error); }
+
+table.voerBord .cell.inner {
+ border-color: var(--gray-700);
+ opacity: .5;
+}
+
+html:not(.dark) *[contenteditable="true"] {
+ color: var(--gray-800) !important;
+}
+
+html.dark {
+ --background: var(--gray-100) !important;
+ --foreground: var(--gray-900) !important;
+
+ --gray-800: #222d33 !important;
+ --gray-700: #344047 !important;
+}
+
+html.dark .newGameDialog .inviteButton,
+html.dark .searchBar .input
+{ background-color: var(--gray-100) !important; }
+
+html.dark .dialogbox { background-color: var(--gray-800) !important; }
+
+html.dark .newGameDialog .inviteFromFriendsList .inviteableFriend,
+html.dark .gameRuleEdit .editableRulesSection
+{ background-color: var(--gray-700) !important; }
+
diff --git a/public/themes/default.css b/public/themes/default.css
new file mode 100644
index 0000000..882c0af
--- /dev/null
+++ b/public/themes/default.css
@@ -0,0 +1,54 @@
+:root {
+ --background: var(--gray-900);
+ --foreground: var(--gray-100);
+
+ --accent: #7E3AA6;
+
+ --error: #A63A4D;
+ --disk-b-alt: #582D35;
+
+ --confirm: #3AA699;
+ --disk-a-alt: #244743;
+
+ /* shade */
+ --gray-100: #141619;
+ --gray-200: #1F242D;
+ --gray-300: #293140;
+ --gray-600: #757D92;
+ --gray-700: #A9AFC0;
+ --gray-800: #CED2DC;
+ --gray-900: #E3E6EE;
+
+ /* box-shadow */
+ --drop-level-2: 0px 8px 32px 0px rgba(0, 0, 0, 0.3);
+ --drop-level-1: 0px 8px 12px -4px rgba(0, 0, 0, 0.15);
+
+ /* border-radius */
+ --tight-corner: 6px;
+ --loose-corner: 8px;
+
+ /* margin/padding */
+ --spacing-small: 6px;
+ --spacing-medium: 12px;
+ --spacing-large: 24px;
+}
+
+html.dark {
+ --background: var(--gray-900);
+ --foreground: #FFFFF3;
+
+ --accent: #AD34F3;
+
+ --error: #FF4365;
+ --disk-b-alt: #F49BA1;
+
+ --confirm: #00D9C0;
+ --disk-a-alt: #86F3F3;
+
+ --gray-100: #CED2DC;
+ --gray-200: #A9AFC0;
+ --gray-300: #757D92;
+ --gray-700: #293140;
+ --gray-800: #1F242D;
+ --gray-900: #141619;
+}