-
Notifications
You must be signed in to change notification settings - Fork 944
feat: implement Premium features page using shadcn/ui and Tailwind #15094
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
Changes from 1 commit
459a028
169c4f5
24c97dc
4134d90
15eded8
9dba1c8
579ced7
ae3bd9d
f977408
71826a8
093d947
58fbeb3
4e6daaf
287a67a
1310637
281ec8a
25cbb87
42e82b6
4ae065d
fd045a6
e015d20
3eba3af
162ad19
fcb4c2a
962045c
09c5844
ef4b261
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,16 @@ | |
--content-secondary: #52525b; | ||
--content-link: #2563eb; | ||
--content-invert: #fafafa; | ||
--content-disabled: #A1A1AA; | ||
--content-disabled: #a1a1aa; | ||
--content-success: #15803d; | ||
--content-danger: #ef4444; | ||
--surface-primary: #fafafa; | ||
--surface-secondary: #f4f4f5; | ||
--surface-tertiary: #e4e4e7; | ||
--surface-invert-primary: #27272a; | ||
--surface-invert-secondary: #3f3f46; | ||
--surface-error: #450A0A; | ||
--border-default :#E4E4E7; | ||
--surface-error: #450a0a; | ||
--border-default: #e4e4e7; | ||
--border-error: #ef4444; | ||
--radius: 0.5rem; | ||
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. Making sure I'm understanding this correctly: does this bind the border radius value to the root em for the browser? If so, do we want to do that? If the user ever increases or decreases their default font size, that would cause the borders to increase/decrease roundness and potentially look wonky, right? 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.
by default Tailwind uses border-radius: 0.5rem; for rounded-lg so nothing is changing there. Changing the zoom level in the browser should by fine as well. These were both added by the shadcn installation. I was keeping this for now until we know exactly why shadcn is adding this override to Tailwind for md and sm. |
||
} | ||
|
@@ -26,16 +26,16 @@ | |
--content-secondary: #a1a1aa; | ||
--content-link: #60a5fa; | ||
--content-invert: #09090b; | ||
--content-disabled: #3F3F46; | ||
--content-disabled: #3f3f46; | ||
--content-success: #16a34a; | ||
--content-danger: #f87171; | ||
--surface-primary: #09090b; | ||
--surface-secondary: #18181b; | ||
--surface-tertiary: #27272a; | ||
--surface-invert-primary: #e4e4e7; | ||
--surface-invert-secondary: #a1a1aa; | ||
--surface-error: #450A0A; | ||
--border-default: #27272A; | ||
--surface-error: #450a0a; | ||
--border-default: #27272a; | ||
--border-error: #f87171; | ||
} | ||
} |
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.
Could we add a comment on why we're defining a custom cache override? I'm guessing this is to make Emotion and Tailwind play nicely with each other, but I'm not 100% sure
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.
This is to allow using Tailwind on MUI components as described here: https://mui.com/material-ui/integrations/interoperability/#tailwind-css
This is actually not needed if never use Tailwind on MUI components and only use Tailwind with new components. I was adding it here just in case it is useful but actually maybe its better we don't add this. Any opinions either way?