-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat(components): Export ThemeProvider #434
Conversation
fix #368 Signed-off-by: Antonette Caldwell <[email protected]>
4c6864b
to
b0e3dc6
Compare
add the rest of the components for theme Signed-off-by: Antonette Caldwell <[email protected]>
b0e3dc6
to
cf39047
Compare
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Ignore the merge conflict, this is only because I release an alpha at |
hover: darkTeal.dark | ||
}; | ||
|
||
export const tabeMenu = { |
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.
I wonder if this is an erroneous "e".
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.
Good eye, Ill make changes
src: | ||
local('QanelasSoftRegular'), | ||
local('Quanelas Soft Regular'), | ||
url('/assets/fonts/QanelasSoftRegular.woff2') format('woff2'); |
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.
It's nice to see that we're preferring woff2.
function SistentThemeProvider({ | ||
children, | ||
emotionCache, | ||
initialMode = 'light' |
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.
initialMode = 'light' | |
initialMode = 'dark' |
return { | ||
fontFamily: ['Qanelas Soft Regular', 'Roboto', 'Helvectica', 'Arial', 'sans-serif'].join(','), | ||
body1: { | ||
fontFamily: ['Open Sans', 'Roboto', 'Helvectica', 'Arial', 'sans-serif'].join(','), |
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.
@Rexford74 look! 👀 🙂
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.
Hmm.. nice. Seems the font pairing is being incorporated 🙂
fontFamily: ['Qanelas Soft Regular', 'Roboto', 'Helvectica', 'Arial', 'sans-serif'].join(','), | ||
body1: { | ||
fontFamily: ['Open Sans', 'Roboto', 'Helvectica', 'Arial', 'sans-serif'].join(','), | ||
fontSize: '16px' |
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.
@Rexford74 do we have our fonts defined in rem
? If so, could you update the list here? If not, could we?
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.
It's supposed to be rem. I have different theme palettes, so I forgot to add change px
to rem
here
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.
Yes, @leecalcote. They are defined in both rem and px. Not only font sizes though.. even line heights are defined in rem and px as well. The font weight for the different sizes was also specified, but I think it is still subject to review.
The idea is not to have too many options to choose from and ensure efficiency in application of the fonts.
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.
rem
and only rem
is needed.
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.
Well, actually, including px was for designers using Sistent since rem is not a unit for designing in Figma. I included the rem units specifically because of the engineering end of things to make for seamless handoff.
If I misunderstand your point, please kindly clarify. However, this is the reasoning behind having both units available on Sistent.
@nebula-aac when you get time can you quickly toss a doc/readme, i was testing with inline styling but i was getting confused |
Signed-off-by: Antonette Caldwell <[email protected]>
@sudhanshutech What issues were you having? |
…nto 368-themeprovider Signed-off-by: Antonette Caldwell <[email protected]>
Signed-off-by: Antonette Caldwell <[email protected]>
Yay! |
UPDATE: I have released an alpha version to test, and the theme provider works as intended in a new app. Using this in Meshery UI will require refactoring, which is what I'm working on.
fix #368
Notes for Reviewers
This PR fixes #
Signed commits