Skip to content
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

[docs] Improve the default theme viewer design #39049

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typography and color polish
  • Loading branch information
danilo-leal committed Sep 19, 2023
commit 8ed06d5faf28873f93da68059283b53e250eabd6
Original file line number Diff line number Diff line change
@@ -66,8 +66,10 @@ function DefaultTheme() {
m: 0,
flexDirection: 'row-reverse',
gap: 1,
fontFamily: 'IBM Plex Sans',
color: 'text.secondary',
'&.MuiFormControlLabel-root': {
fontFamily: 'IBM Plex Sans',
color: 'text.secondary',
},
}}
control={
<Switch
6 changes: 3 additions & 3 deletions docs/src/modules/components/ThemeViewer.tsx
Original file line number Diff line number Diff line change
@@ -99,14 +99,14 @@ function ObjectEntryLabel(props: { objectKey: string; objectValue: any }) {

const TreeItem = styled(MuiTreeItem)({
[`&:focus > .${treeItemClasses.content}`]: {
backgroundColor: lighten('#333', 0.08),
outline: `2px dashed ${lighten('#333', 0.3)}`,
backgroundColor: lighten('#003A75', 0.05), // primary[900]
outline: `2px dashed ${lighten('#003A75', 0.3)}`, // primary[900]
},
[`& .${treeItemClasses.content}`]: {
padding: 4,
borderRadius: '12px',
'&:hover': {
backgroundColor: '#101418', // primaryDark[900]
backgroundColor: lighten('#101418', 0.1), // primaryDark[900]
},
[`& .${treeItemClasses.label}`]: {
fontFamily: 'Menlo',