-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Clean up theme #16166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up theme #16166
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -92,19 +92,25 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||
| #000000 69.77% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| --card-gradient: linear-gradient(123deg, rgba(255, 255, 255, 0.20) 58.99%, rgba(174, 110, 203, 0.13) 104.04%); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --card-gradient-secondary: linear-gradient(95deg, rgba(211, 145, 242, 0.12) 0%, rgba(159, 43, 212, 0.12) 102.78%); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --card-gradient-secondary-hover: linear-gradient(95deg, rgba(211, 145, 242, 0.2) 0%, rgba(159, 43, 212, 0.2) 102.78%); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --ten-year-gradient: linear-gradient(100deg, #F6C9EA 55.38%, #C7A9F1 110.54%); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Rainbow gradients */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --rainbow-gradient: conic-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| from 0deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--primary)), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--accent-b)), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--accent-a)), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--accent-c)), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--primary)) | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --card-gradient: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 123deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(255, 255, 255, 0.2) 58.99%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(174, 110, 203, 0.13) 104.04% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --card-gradient-secondary: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 95deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(211, 145, 242, 0.12) 0%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(159, 43, 212, 0.12) 102.78% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --card-gradient-secondary-hover: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 95deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(211, 145, 242, 0.2) 0%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(159, 43, 212, 0.2) 102.78% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --ten-year-gradient: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 100deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #f6c9ea 55.38%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| #c7a9f1 110.54% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+95
to
114
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm actually, these aren't within a custom class, so that may not work right... but:
@pettinarip Just some thoughts on how to iterate on this, but for the sake of not over-complicating, going to accept and pull in what we have here. |
||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Shadows */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -134,10 +140,14 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-5-opacity: 0.08; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-1: 0px 2px 12px 1px | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--purple-800), var(--shadow-window-box-1-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-2: 0px 16px 12px -3px hsla(var(--purple-800), var(--shadow-window-box-2-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-3: 0px 32px 24px -6px hsla(var(--purple-800), var(--shadow-window-box-3-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-4: 0px 40px 40px -12px hsla(var(--purple-700), var(--shadow-window-box-4-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-5: 0px -64px 120px 80px hsla(var(--purple-100), var(--shadow-window-box-5-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-2: 0px 16px 12px -3px | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--purple-800), var(--shadow-window-box-2-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-3: 0px 32px 24px -6px | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--purple-800), var(--shadow-window-box-3-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-4: 0px 40px 40px -12px | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--purple-700), var(--shadow-window-box-4-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-window-box-5: 0px -64px 120px 80px | ||||||||||||||||||||||||||||||||||||||||||||||||||
| hsla(var(--purple-100), var(--shadow-window-box-5-opacity)); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Staking */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --staking-gold: 43, 84%, 40%; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -149,7 +159,11 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||
| --staking-red: 4, 36%, 46%; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --staking-red-fill: 140, 27%, 98%; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-widget: 2px 2px 12px 1px rgba(52, 43, 64, 0.02), -16px 16px 12px -3px rgba(52, 43, 64, 0.02), -32px 32px 24px -6px rgba(52, 43, 64, 0.02), -40px 40px 40px -12px rgba(88, 55, 131, 0.04); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-widget: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 2px 2px 12px 1px rgba(52, 43, 64, 0.02), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -16px 16px 12px -3px rgba(52, 43, 64, 0.02), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -32px 32px 24px -6px rgba(52, 43, 64, 0.02), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -40px 40px 40px -12px rgba(88, 55, 131, 0.04); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Dark mode token declarations */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -220,8 +234,12 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||
| #8db4ff 69.77% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| --roadmap-card-gradient: linear-gradient(123deg, rgba(34, 34, 34, 0.20) 40.53%, rgba(174, 110, 203, 0.13) 104.05%); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --ten-year-gradient: linear-gradient(100deg, #1E151B 55.38%, #000 110.54%); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --roadmap-card-gradient: linear-gradient( | ||||||||||||||||||||||||||||||||||||||||||||||||||
| 123deg, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(34, 34, 34, 0.2) 40.53%, | ||||||||||||||||||||||||||||||||||||||||||||||||||
| rgba(174, 110, 203, 0.13) 104.05% | ||||||||||||||||||||||||||||||||||||||||||||||||||
| ); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --ten-year-gradient: linear-gradient(100deg, #1e151b 55.38%, #000 110.54%); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| /* Shadows (dark mode adjustments) */ | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-color: hsla(var(--white), 0.04); | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -252,6 +270,10 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||
| --staking-red: 6, 24%, 78%; | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --staking-red-fill: 140, 3%, 19%; | ||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-widget: -2px 2px 12px 1px rgba(255, 255, 255, 0.04), -6px 6px 12px -3px rgba(255, 255, 255, 0.04), -12px 12px 24px -6px rgba(255, 255, 255, 0.04), -20px 20px 40px -12px rgba(255, 255, 255, 0.04); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| --shadow-widget: | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -2px 2px 12px 1px rgba(255, 255, 255, 0.04), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -6px 6px 12px -3px rgba(255, 255, 255, 0.04), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -12px 12px 24px -6px rgba(255, 255, 255, 0.04), | ||||||||||||||||||||||||||||||||||||||||||||||||||
| -20px 20px 40px -12px rgba(255, 255, 255, 0.04); | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per in-file comment:
Noting that these could be simple tailwind classes instead, though if we want to nit-pick on non-standard angles (123deg, 95deg, 100deg), that would have to wait for tailwind v4, where we could do
bg-linear-123as an example.Otherwise we could standardize the angles with something like:
bg-gradient-to-br from-white/20 from-[59%] to-[rgb(174,110,203)]/[0.13] to-[104%]in situor
@pettinarip Not sure if you have a preference... not a huge deal, but given we're using tailwind I try to stick to classes where possible