summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-31 15:37:45 -0500
committerAdam <[email protected]>2025-10-31 15:37:50 -0500
commit342aa27e03dd0db02b60a15a1779254bce395e19 (patch)
treeb735062a9fe1c673be733aa861876cfbc94b212d /packages/ui/src
parente1aed0cd01d23e433519621f8d21c0a8ffa3977d (diff)
downloadopencode-342aa27e03dd0db02b60a15a1779254bce395e19.tar.gz
opencode-342aa27e03dd0db02b60a15a1779254bce395e19.zip
wip: desktop work
Diffstat (limited to 'packages/ui/src')
-rw-r--r--packages/ui/src/components/markdown.css6
-rw-r--r--packages/ui/src/styles/animations.css107
-rw-r--r--packages/ui/src/styles/tailwind/index.css2
-rw-r--r--packages/ui/src/styles/tailwind/utilities.css96
4 files changed, 207 insertions, 4 deletions
diff --git a/packages/ui/src/components/markdown.css b/packages/ui/src/components/markdown.css
index 6af0f550e..945c27648 100644
--- a/packages/ui/src/components/markdown.css
+++ b/packages/ui/src/components/markdown.css
@@ -6,12 +6,12 @@
color: var(--text-base);
text-wrap: pretty;
- /* text-14-regular */
+ /* text-12-regular */
font-family: var(--font-family-sans);
- font-size: var(--font-size-base);
+ font-size: var(--font-size-small);
font-style: normal;
font-weight: var(--font-weight-regular);
- line-height: var(--line-height-large); /* 142.857% */
+ line-height: var(--line-height-large); /* 166.667% */
letter-spacing: var(--letter-spacing-normal);
&::-webkit-scrollbar {
diff --git a/packages/ui/src/styles/animations.css b/packages/ui/src/styles/animations.css
index ba93e65e4..5fcebb93f 100644
--- a/packages/ui/src/styles/animations.css
+++ b/packages/ui/src/styles/animations.css
@@ -11,3 +11,110 @@
opacity: 1;
}
}
+
+@keyframes fadeUp {
+ from {
+ opacity: 0;
+ transform: translateY(5px);
+ }
+ to {
+ opacity: 1;
+ transform: translateY(0);
+ }
+}
+
+.fade-up-text {
+ animation: fadeUp 0.4s ease-out forwards;
+ opacity: 0;
+
+ &:nth-child(1) {
+ animation-delay: 0.1s;
+ }
+ &:nth-child(2) {
+ animation-delay: 0.2s;
+ }
+ &:nth-child(3) {
+ animation-delay: 0.3s;
+ }
+ &:nth-child(4) {
+ animation-delay: 0.4s;
+ }
+ &:nth-child(5) {
+ animation-delay: 0.5s;
+ }
+ &:nth-child(6) {
+ animation-delay: 0.6s;
+ }
+ &:nth-child(7) {
+ animation-delay: 0.7s;
+ }
+ &:nth-child(8) {
+ animation-delay: 0.8s;
+ }
+ &:nth-child(9) {
+ animation-delay: 0.9s;
+ }
+ &:nth-child(10) {
+ animation-delay: 1s;
+ }
+ &:nth-child(11) {
+ animation-delay: 1.1s;
+ }
+ &:nth-child(12) {
+ animation-delay: 1.2s;
+ }
+ &:nth-child(13) {
+ animation-delay: 1.3s;
+ }
+ &:nth-child(14) {
+ animation-delay: 1.4s;
+ }
+ &:nth-child(15) {
+ animation-delay: 1.5s;
+ }
+ &:nth-child(16) {
+ animation-delay: 1.6s;
+ }
+ &:nth-child(17) {
+ animation-delay: 1.7s;
+ }
+ &:nth-child(18) {
+ animation-delay: 1.8s;
+ }
+ &:nth-child(19) {
+ animation-delay: 1.9s;
+ }
+ &:nth-child(20) {
+ animation-delay: 2s;
+ }
+ &:nth-child(21) {
+ animation-delay: 2.1s;
+ }
+ &:nth-child(22) {
+ animation-delay: 2.2s;
+ }
+ &:nth-child(23) {
+ animation-delay: 2.3s;
+ }
+ &:nth-child(24) {
+ animation-delay: 2.4s;
+ }
+ &:nth-child(25) {
+ animation-delay: 2.5s;
+ }
+ &:nth-child(26) {
+ animation-delay: 2.6s;
+ }
+ &:nth-child(27) {
+ animation-delay: 2.7s;
+ }
+ &:nth-child(28) {
+ animation-delay: 2.8s;
+ }
+ &:nth-child(29) {
+ animation-delay: 2.9s;
+ }
+ &:nth-child(30) {
+ animation-delay: 3s;
+ }
+}
diff --git a/packages/ui/src/styles/tailwind/index.css b/packages/ui/src/styles/tailwind/index.css
index 658809df4..d96240e78 100644
--- a/packages/ui/src/styles/tailwind/index.css
+++ b/packages/ui/src/styles/tailwind/index.css
@@ -63,7 +63,7 @@
--shadow-xs: var(--shadow-xs);
--shadow-md: var(--shadow-md);
- --shadow-xs-border-selected: var(--shadow-xs-border-selected);
+ --shadow-xs-border-select: var(--shadow-xs-border-select);
--animate-pulse: var(--animate-pulse);
}
diff --git a/packages/ui/src/styles/tailwind/utilities.css b/packages/ui/src/styles/tailwind/utilities.css
index fbb407b1d..8194aeffb 100644
--- a/packages/ui/src/styles/tailwind/utilities.css
+++ b/packages/ui/src/styles/tailwind/utilities.css
@@ -15,3 +15,99 @@
direction: rtl;
text-align: left;
}
+
+@utility fade-up-text {
+ animation: fadeUp 0.4s ease-out forwards;
+ opacity: 0;
+
+ &:nth-child(1) {
+ animation-delay: 0.1s;
+ }
+ &:nth-child(2) {
+ animation-delay: 0.2s;
+ }
+ &:nth-child(3) {
+ animation-delay: 0.3s;
+ }
+ &:nth-child(4) {
+ animation-delay: 0.4s;
+ }
+ &:nth-child(5) {
+ animation-delay: 0.5s;
+ }
+ &:nth-child(6) {
+ animation-delay: 0.6s;
+ }
+ &:nth-child(7) {
+ animation-delay: 0.7s;
+ }
+ &:nth-child(8) {
+ animation-delay: 0.8s;
+ }
+ &:nth-child(9) {
+ animation-delay: 0.9s;
+ }
+ &:nth-child(10) {
+ animation-delay: 1s;
+ }
+ &:nth-child(11) {
+ animation-delay: 1.1s;
+ }
+ &:nth-child(12) {
+ animation-delay: 1.2s;
+ }
+ &:nth-child(13) {
+ animation-delay: 1.3s;
+ }
+ &:nth-child(14) {
+ animation-delay: 1.4s;
+ }
+ &:nth-child(15) {
+ animation-delay: 1.5s;
+ }
+ &:nth-child(16) {
+ animation-delay: 1.6s;
+ }
+ &:nth-child(17) {
+ animation-delay: 1.7s;
+ }
+ &:nth-child(18) {
+ animation-delay: 1.8s;
+ }
+ &:nth-child(19) {
+ animation-delay: 1.9s;
+ }
+ &:nth-child(20) {
+ animation-delay: 2s;
+ }
+ &:nth-child(21) {
+ animation-delay: 2.1s;
+ }
+ &:nth-child(22) {
+ animation-delay: 2.2s;
+ }
+ &:nth-child(23) {
+ animation-delay: 2.3s;
+ }
+ &:nth-child(24) {
+ animation-delay: 2.4s;
+ }
+ &:nth-child(25) {
+ animation-delay: 2.5s;
+ }
+ &:nth-child(26) {
+ animation-delay: 2.6s;
+ }
+ &:nth-child(27) {
+ animation-delay: 2.7s;
+ }
+ &:nth-child(28) {
+ animation-delay: 2.8s;
+ }
+ &:nth-child(29) {
+ animation-delay: 2.9s;
+ }
+ &:nth-child(30) {
+ animation-delay: 3s;
+ }
+}