refactor: migrate CC dark theme feature to the new architecture
Bug: twpowertools:176
Change-Id: Iaea1015a788038a8a31acbdd33b267b551e0b6a1
diff --git a/src/features/ccDarkTheme/core/styles/abstracts/_variables.scss b/src/features/ccDarkTheme/core/styles/abstracts/_variables.scss
new file mode 100644
index 0000000..bcb922d
--- /dev/null
+++ b/src/features/ccDarkTheme/core/styles/abstracts/_variables.scss
@@ -0,0 +1,48 @@
+@use '../../../../../md3/theme' as md3-theme;
+
+:root {
+ --TWPT-primary-text: #e8eaed;
+ --TWPT-primary-text-alt: var(--TWPT-primary-text);
+ --TWPT-secondary-text: #bfbfbf;
+ --TWPT-primary-background: #202124;
+ --TWPT-secondary-background: #28292c;
+ --TWPT-active-background: #3c4043;
+ --TWPT-card-border: #5f6368;
+ --TWPT-subtle-border: #383735;
+ --TWPT-link: #8ab4f8;
+ --TWPT-icon-color: rgba(255, 255, 255, .87);
+ --TWPT-highlighted-item-background: rgba(255, 255, 255, .08);
+ --TWPT-thread-read-background: var(--TWPT-highlighted-item-background);
+ --TWPT-drawer-background: #2d2e30;
+ --TWPT-drawer-text: #d2cecb;
+ --TWPT-button-background: #3c3e42;
+ --TWPT-subtle-button-background: rgba(255, 255, 255, .54);
+ --TWPT-input-underline: rgba(255, 255, 255, .28);
+ --TWPT-starred: #fbbc04;
+ --TWPT-blue-100: #BBDEFB;
+ --TWPT-blue-A100: #82B1FF;
+ --TWPT-bad-text: #f6aea9;
+ --TWPT-bad-text-lightbg: #ffc4c0;
+ --TWPT-good-text: #34a853;
+ --TWPT-good-text-lightbg: #3cc160;
+ --TWPT-interop-primary-text: var(--TWPT-primary-text);
+ --TWPT-interop-secondary-text: #c4c7c5;
+ --TWPT-interop-subtle-border: #474747;
+ --TWPT-interop-success: #37be5f;
+ --TWPT-interop-blue: #7cacf8;
+
+ @include md3-theme.dark-theme('TWPT-');
+
+ /* Overrides for variables used by the Community Console styles */
+ --gm-outlinedtextfield-outline-color: var(--TWPT-card-border);
+ --gm-outlinedtextfield-label-color: var(--TWPT-subtle-button-background);
+ --gm-outlinedtextfield-caret-color: var(--TWPT-blue-A100);
+ --gm-outlinedtextfield-outline-color--stateful: var(--TWPT-blue-A100);
+ --gm-outlinedtextfield-label-color--stateful: var(--TWPT-blue-A100);
+ --gm-outlinedtextfield-outline-color--error: var(--TWPT-bad-text);
+ --gm-outlinedtextfield-label-color--error: var(--TWPT-bad-text);
+ --gm-outlinedtextfield-helper-text-color--error: var(--TWPT-bad-text);
+
+ /* TWPT features variables */
+ --TWPT-dark-flatten-replies-more-bg: rgba(89, 89, 89, 0.9);
+}