-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Joy] theme setup #29846
[Joy] theme setup #29846
Conversation
…joy/marketing-mockup
…joy/marketing-mockup
0efd14a
to
a3806f2
Compare
a3806f2
to
c0597f0
Compare
…joy/theme-implementation
…joy/theme-implementation
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.
A few questions and some changes. Great work with the setup, Jun!
| 'info' | ||
| 'success' | ||
| 'warning' | ||
| 'context'; |
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.
What's context
?
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.
Components can change the color to context
to enable the contextual override feature. This is added after chatting with @oliviertassinari because it makes the variables easier to reason. More detail https://www.notion.so/mui-org/RFC-Theme-implementation-e15bc2ef11ba4f6f804434af27141afe#cdcb3ea92fcc44d798d7de6a77971537
secondary: 'var(--joy-palette-neutral-600)', | ||
tertiary: 'var(--joy-palette-neutral-500)', |
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.
secondary: 'var(--joy-palette-neutral-600)', | |
tertiary: 'var(--joy-palette-neutral-500)', | |
secondary: 'var(--joy-palette-neutral-700)', | |
tertiary: 'var(--joy-palette-neutral-600)', |
A little bump on these.
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.
Are you sure? I still think the tertiary
should be 500
because the contrast still works with neutral.100
changing secondary
to 700
is too close to the primary
in my opinion.
I think we should go with the existing one and try it out first, if you think this does not work we can change it before the first release.
sans: '"Public Sans", Roboto', | ||
mono: 'Consolas', | ||
default: '"Public Sans", var(--joy-fontFamily-fallback)', | ||
display: '"PlusJakartaSans-ExtraBold", var(--joy-fontFamily-fallback)', |
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.
Should we keep Public Sans as the typeface for the display typography on the default theme? JakartaSans is only meant for Joy marketing materials, so we could override the default theme to use it.
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.
Sure, no problem.
Co-authored-by: danilo leal <67129314+danilo-leal@users.noreply.github.com>
…joy/theme-implementation
Demo: https://codesandbox.io/s/joy-cra-typescript-forked-2jzli?file=/src/App.js
Summary
breakpoints
&spacing
is provided from the system packagesx
prop.Note
defaultTheme.ts
and the test cases.