summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/styles
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-27 15:35:47 -0500
committerAdam <[email protected]>2025-10-27 15:37:07 -0500
commitfc115ea367dd034c7b989819d4f547c5d7519253 (patch)
tree653401ef94212e161334108449a11f60ba54dc86 /packages/ui/src/styles
parentd03b79e61eef0be1cca669e5e6a13df78cc4be85 (diff)
downloadopencode-fc115ea367dd034c7b989819d4f547c5d7519253.tar.gz
opencode-fc115ea367dd034c7b989819d4f547c5d7519253.zip
wip: desktop work
Diffstat (limited to 'packages/ui/src/styles')
-rw-r--r--packages/ui/src/styles/tailwind/colors.css16
-rw-r--r--packages/ui/src/styles/theme.css50
2 files changed, 48 insertions, 18 deletions
diff --git a/packages/ui/src/styles/tailwind/colors.css b/packages/ui/src/styles/tailwind/colors.css
index 2bf3fd772..e2f6788ab 100644
--- a/packages/ui/src/styles/tailwind/colors.css
+++ b/packages/ui/src/styles/tailwind/colors.css
@@ -9,6 +9,9 @@
--color-background-stronger: var(--background-stronger);
--color-base: var(--base);
--color-surface-base: var(--surface-base);
+ --color-surface-base-hover: var(--surface-base-hover);
+ --color-surface-base-active: var(--surface-base-active);
+ --color-surface-base-interactive-active: var(--surface-base-interactive-active);
--color-base2: var(--base2);
--color-base3: var(--base3);
--color-surface-inset-base: var(--surface-inset-base);
@@ -45,9 +48,9 @@
--color-surface-info-base: var(--surface-info-base);
--color-surface-info-weak: var(--surface-info-weak);
--color-surface-info-strong: var(--surface-info-strong);
+ --color-surface-diff-hidden-base: var(--surface-diff-hidden-base);
--color-surface-diff-skip-base: var(--surface-diff-skip-base);
--color-surface-diff-unchanged-base: var(--surface-diff-unchanged-base);
- --color-surface-diff-hidden-base: var(--surface-diff-hidden-base);
--color-surface-diff-hidden-weak: var(--surface-diff-hidden-weak);
--color-surface-diff-hidden-weaker: var(--surface-diff-hidden-weaker);
--color-surface-diff-hidden-strong: var(--surface-diff-hidden-strong);
@@ -72,8 +75,10 @@
--color-text-weak: var(--text-weak);
--color-text-weaker: var(--text-weaker);
--color-text-strong: var(--text-strong);
+ --color-text-interactive-base: var(--text-interactive-base);
--color-text-on-brand-base: var(--text-on-brand-base);
--color-text-on-interactive-base: var(--text-on-interactive-base);
+ --color-text-on-interactive-weak: var(--text-on-interactive-weak);
--color-text-on-success-base: var(--text-on-success-base);
--color-text-on-warning-base: var(--text-on-warning-base);
--color-text-on-info-base: var(--text-on-info-base);
@@ -91,6 +96,7 @@
--color-text-on-brand-weaker: var(--text-on-brand-weaker);
--color-text-on-brand-strong: var(--text-on-brand-strong);
--color-button-secondary-base: var(--button-secondary-base);
+ --color-button-secondary-base-hover: var(--button-secondary-base-hover);
--color-border-base: var(--border-base);
--color-border-hover: var(--border-hover);
--color-border-active: var(--border-active);
@@ -164,8 +170,6 @@
--color-icon-on-brand-hover: var(--icon-on-brand-hover);
--color-icon-on-brand-selected: var(--icon-on-brand-selected);
--color-icon-on-interactive-base: var(--icon-on-interactive-base);
- --color-icon-on-interactive-hover: var(--icon-on-interactive-hover);
- --color-icon-on-interactive-selected: var(--icon-on-interactive-selected);
--color-icon-agent-plan-base: var(--icon-agent-plan-base);
--color-icon-agent-docs-base: var(--icon-agent-docs-base);
--color-icon-agent-ask-base: var(--icon-agent-ask-base);
@@ -217,4 +221,10 @@
--color-markdown-image-text: var(--markdown-image-text);
--color-markdown-code-block: var(--markdown-code-block);
--color-border-color: var(--border-color);
+ --color-border-weaker-base: var(--border-weaker-base);
+ --color-border-weaker-hover: var(--border-weaker-hover);
+ --color-border-weaker-active: var(--border-weaker-active);
+ --color-border-weaker-selected: var(--border-weaker-selected);
+ --color-border-weaker-disabled: var(--border-weaker-disabled);
+ --color-border-weaker-focus: var(--border-weaker-focus);
} \ No newline at end of file
diff --git a/packages/ui/src/styles/theme.css b/packages/ui/src/styles/theme.css
index 5358f380d..0c22bae5a 100644
--- a/packages/ui/src/styles/theme.css
+++ b/packages/ui/src/styles/theme.css
@@ -66,11 +66,14 @@
--background-weak: var(--smoke-light-3);
--background-strong: var(--smoke-light-1);
--background-stronger: #fcfcfc;
- --surface-base: var(--smoke-light-alpha-2);
--base: var(--smoke-light-alpha-2);
+ --surface-base: var(--smoke-light-alpha-2);
+ --surface-base-hover: #0500000f;
+ --surface-base-active: var(--smoke-light-alpha-3);
+ --surface-base-interactive-active: var(--cobalt-light-alpha-3);
--base2: var(--smoke-light-alpha-2);
--base3: var(--smoke-light-alpha-2);
- --surface-inset-base: var(--smoke-light-alpha-3);
+ --surface-inset-base: var(--smoke-light-alpha-2);
--surface-inset-base-hover: var(--smoke-light-alpha-3);
--surface-inset-strong: #1f000017;
--surface-inset-strong-hover: #1f000017;
@@ -105,7 +108,7 @@
--surface-info-weak: var(--lilac-light-2);
--surface-info-strong: var(--lilac-light-9);
--surface-diff-hidden-base: var(--blue-light-3);
- --surface-diff-skip-base: var(--smoke-light-3);
+ --surface-diff-skip-base: var(--smoke-light-2);
--surface-diff-unchanged-base: #ffffff00;
--surface-diff-hidden-weak: var(--blue-light-2);
--surface-diff-hidden-weaker: var(--blue-light-1);
@@ -131,6 +134,7 @@
--text-weak: var(--smoke-light-9);
--text-weaker: var(--smoke-light-8);
--text-strong: var(--smoke-light-12);
+ --text-interactive-base: var(--cobalt-light-9);
--text-on-brand-base: var(--smoke-light-alpha-11);
--text-on-interactive-base: var(--smoke-light-1);
--text-on-interactive-weak: var(--smoke-dark-alpha-11);
@@ -151,7 +155,7 @@
--text-on-brand-weaker: var(--smoke-light-alpha-8);
--text-on-brand-strong: var(--smoke-light-alpha-12);
--button-secondary-base: #fdfcfc;
- --button-secondary-base-hover: var(--smoke-light-2);
+ --button-secondary-base-hover: #faf9f9;
--border-base: var(--smoke-light-alpha-7);
--border-hover: var(--smoke-light-alpha-8);
--border-active: var(--smoke-light-alpha-9);
@@ -167,7 +171,7 @@
--border-strong-focus: var(--smoke-light-alpha-7);
--border-weak-hover: var(--smoke-light-alpha-6);
--border-weak-active: var(--smoke-light-alpha-7);
- --border-weak-selected: var(--cobalt-light-alpha-4);
+ --border-weak-selected: var(--cobalt-light-alpha-5);
--border-weak-disabled: var(--smoke-light-alpha-6);
--border-weak-focus: var(--smoke-light-alpha-7);
--border-interactive-base: var(--cobalt-light-7);
@@ -228,7 +232,7 @@
--icon-agent-plan-base: var(--purple-light-9);
--icon-agent-docs-base: var(--amber-light-9);
--icon-agent-ask-base: var(--cyan-light-9);
- --icon-agent-build-base: var(--blue-light-9);
+ --icon-agent-build-base: var(--cobalt-light-9);
--icon-on-success-base: var(--apple-light-alpha-9);
--icon-on-success-hover: var(--apple-light-alpha-10);
--icon-on-success-selected: var(--apple-light-alpha-11);
@@ -276,6 +280,12 @@
--markdown-image-text: #318795;
--markdown-code-block: #1a1a1a;
--border-color: #ffffff;
+ --border-weaker-base: var(--smoke-light-alpha-3);
+ --border-weaker-hover: var(--smoke-light-alpha-4);
+ --border-weaker-active: var(--smoke-light-alpha-6);
+ --border-weaker-selected: var(--cobalt-light-alpha-4);
+ --border-weaker-disabled: var(--smoke-light-alpha-2);
+ --border-weaker-focus: var(--smoke-light-alpha-6);
@media (prefers-color-scheme: dark) {
/* OC-1-Dark */
@@ -284,8 +294,11 @@
--background-weak: #201d1d;
--background-strong: #151313;
--background-stronger: #201c1c;
- --surface-base: var(--smoke-dark-alpha-3);
--base: var(--smoke-dark-alpha-2);
+ --surface-base: var(--smoke-dark-alpha-2);
+ --surface-base-hover: #e0b7b716;
+ --surface-base-active: var(--smoke-dark-alpha-3);
+ --surface-base-interactive-active: var(--cobalt-dark-alpha-2);
--base2: var(--smoke-dark-alpha-2);
--base3: var(--smoke-dark-alpha-2);
--surface-inset-base: #0e0b0b7f;
@@ -300,8 +313,8 @@
--surface-raised-strong-hover: var(--smoke-dark-alpha-6);
--surface-raised-stronger: var(--smoke-dark-alpha-6);
--surface-raised-stronger-hover: var(--smoke-dark-alpha-7);
- --surface-weak: var(--smoke-dark-alpha-5);
- --surface-weaker: var(--smoke-dark-alpha-6);
+ --surface-weak: var(--smoke-dark-alpha-4);
+ --surface-weaker: var(--smoke-dark-alpha-5);
--surface-strong: var(--smoke-dark-alpha-7);
--surface-raised-stronger-non-alpha: var(--smoke-dark-4);
--surface-brand-base: var(--yuzu-light-9);
@@ -323,7 +336,7 @@
--surface-info-weak: var(--lilac-light-2);
--surface-info-strong: var(--lilac-light-9);
--surface-diff-hidden-base: var(--blue-dark-2);
- --surface-diff-skip-base: var(--smoke-dark-alpha-2);
+ --surface-diff-skip-base: var(--smoke-dark-alpha-1);
--surface-diff-unchanged-base: var(--smoke-dark-1);
--surface-diff-hidden-weak: var(--blue-dark-1);
--surface-diff-hidden-weaker: var(--blue-dark-3);
@@ -349,6 +362,7 @@
--text-weak: var(--smoke-dark-alpha-9);
--text-weaker: var(--smoke-dark-alpha-8);
--text-strong: var(--smoke-dark-alpha-12);
+ --text-interactive-base: var(--cobalt-dark-11);
--text-on-brand-base: var(--smoke-dark-alpha-11);
--text-on-interactive-base: var(--smoke-dark-12);
--text-on-interactive-weak: var(--smoke-dark-alpha-11);
@@ -368,12 +382,12 @@
--text-on-brand-weak: var(--smoke-dark-alpha-9);
--text-on-brand-weaker: var(--smoke-dark-alpha-8);
--text-on-brand-strong: var(--smoke-dark-alpha-12);
- --button-secondary-base: var(--smoke-dark-6);
- --button-secondary-base-hover: var(--smoke-dark-5);
+ --button-secondary-base: var(--smoke-dark-4);
+ --button-secondary-base-hover: #2a2727;
--border-base: var(--smoke-dark-alpha-7);
--border-hover: var(--smoke-dark-alpha-8);
--border-active: var(--smoke-dark-alpha-9);
- --border-selected: var(--cobalt-dark-alpha-9);
+ --border-selected: var(--cobalt-dark-alpha-11);
--border-disabled: var(--smoke-dark-alpha-8);
--border-focus: var(--smoke-dark-alpha-9);
--border-weak-base: var(--smoke-dark-alpha-6);
@@ -385,7 +399,7 @@
--border-strong-focus: var(--smoke-dark-alpha-8);
--border-weak-hover: var(--smoke-dark-alpha-7);
--border-weak-active: var(--smoke-dark-alpha-8);
- --border-weak-selected: var(--cobalt-dark-alpha-3);
+ --border-weak-selected: var(--cobalt-dark-alpha-6);
--border-weak-disabled: var(--smoke-dark-alpha-6);
--border-weak-focus: var(--smoke-dark-alpha-8);
--border-interactive-base: var(--cobalt-light-7);
@@ -446,7 +460,7 @@
--icon-agent-plan-base: var(--purple-dark-9);
--icon-agent-docs-base: var(--amber-dark-9);
--icon-agent-ask-base: var(--cyan-dark-9);
- --icon-agent-build-base: var(--blue-dark-9);
+ --icon-agent-build-base: var(--cobalt-dark-11);
--icon-on-success-base: var(--apple-dark-alpha-9);
--icon-on-success-hover: var(--apple-dark-alpha-10);
--icon-on-success-selected: var(--apple-dark-alpha-11);
@@ -494,5 +508,11 @@
--markdown-image-text: #56b6c2;
--markdown-code-block: #eeeeee;
--border-color: #ffffff;
+ --border-weaker-base: var(--smoke-dark-alpha-3);
+ --border-weaker-hover: var(--smoke-dark-alpha-4);
+ --border-weaker-active: var(--smoke-dark-alpha-6);
+ --border-weaker-selected: var(--cobalt-dark-alpha-3);
+ --border-weaker-disabled: var(--smoke-dark-alpha-2);
+ --border-weaker-focus: var(--smoke-dark-alpha-6);
}
}