-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1950c9
commit b41797e
Showing
20 changed files
with
620 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export * from './customThemeColors.ts' | ||
export * from './typography.ts' |
56 changes: 56 additions & 0 deletions
56
packages/theme/src/product-theme/ThemeExtensions/typography.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import '@mui/material/styles' | ||
|
||
declare module '@mui/material/styles' { | ||
interface Typography { | ||
display1: React.CSSProperties | ||
display2: React.CSSProperties | ||
stylize1: React.CSSProperties | ||
stylize2: React.CSSProperties | ||
} | ||
|
||
interface TypographyOptions { | ||
display1?: React.CSSProperties | ||
display2?: React.CSSProperties | ||
stylize1?: React.CSSProperties | ||
stylize2?: React.CSSProperties | ||
} | ||
} | ||
|
||
export const display1 = { fontSize: '4rem' } | ||
|
||
export const display2 = { | ||
fontSize: '3.5rem', | ||
fontWeight: 400, | ||
} | ||
|
||
export const stylize1 = { | ||
fontSize: '1.25rem', | ||
fontWeight: 300, | ||
letterSpacing: '0.15em', | ||
} | ||
|
||
export const stylize2 = { | ||
fontSize: '1rem', | ||
fontWeight: 700, | ||
letterSpacing: '0.1em', | ||
} | ||
|
||
export const typographyFragmentDisplay1 = { | ||
fontSize: '4rem', | ||
fontWeight: 400, | ||
} | ||
|
||
export const typographyFragmentDisplay2 = { | ||
fontSize: '4rem', | ||
fontWeight: 400, | ||
} | ||
|
||
export const typographyFragmentStylize1 = { | ||
fontSize: '4rem', | ||
fontWeight: 400, | ||
} | ||
|
||
export const typographyFragmentStylize2 = { | ||
fontSize: '4rem', | ||
fontWeight: 400, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export * from './dataism/index.ts' | ||
export * from './ThemeExtensions/index.ts' | ||
export * from './xylabs/index.ts' | ||
export * from './xyo-website/index.ts' | ||
export * from './xyo/index.ts' | ||
export * from './xyos/index.ts' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
84 changes: 84 additions & 0 deletions
84
packages/theme/src/product-theme/xyos/darkThemeOptions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
import { | ||
alpha, lighten, type ThemeOptions, | ||
} from '@mui/material' | ||
|
||
import { neutralButtonStylesContained, neutralButtonStylesOutlined } from '../ThemeExtensions/index.ts' | ||
|
||
export const darkThemeOptions: ThemeOptions = { | ||
palette: { | ||
background: { | ||
default: '#020223', | ||
paper: '#19193F', | ||
}, | ||
error: { main: '#f6594e' }, | ||
success: { | ||
main: '#7efc81', | ||
contrastText: '#011e01', | ||
}, | ||
primary: { main: '#5658F3', light: '#7c72ff' }, | ||
secondary: { | ||
main: '#66caf7', | ||
contrastText: '#020223', | ||
}, | ||
warning: { main: '#f7d866' }, | ||
text: { | ||
disabled: '#a5acdb', | ||
primary: '#E3E4EB', | ||
secondary: '#e3e4eba3', | ||
}, | ||
}, | ||
typography: { | ||
body1: { color: '#ffffffa3' }, | ||
body2: { color: '#B3B3BD' }, | ||
caption: { color: '#B3B3BD' }, | ||
}, | ||
components: { | ||
MuiButton: { | ||
defaultProps: { color: 'neutral' }, | ||
variants: [ | ||
{ | ||
props: { variant: 'contained', color: 'neutral' }, | ||
style: neutralButtonStylesContained, | ||
}, | ||
{ | ||
props: { variant: 'outlined', color: 'neutral' }, | ||
style: neutralButtonStylesOutlined, | ||
}, | ||
{ | ||
props: { variant: 'text' }, | ||
style: { | ||
'&:hover': { | ||
textDecoration: 'underline 1.5px #66caf7', | ||
textUnderlineOffset: '5px', | ||
backgroundColor: 'transparent', | ||
}, | ||
}, | ||
}, | ||
], | ||
}, | ||
MuiChip: { | ||
styleOverrides: { | ||
colorError: { backgroundColor: alpha('#f6594e', 0.2), color: lighten('#f6594e', 0.2) }, | ||
colorInfo: { backgroundColor: alpha('#72b4f4', 0.2), color: lighten('#72b4f4', 0.2) }, | ||
colorPrimary: { backgroundColor: alpha('#5658F3', 0.2), color: lighten('#5658F3', 0.2) }, | ||
colorSecondary: { backgroundColor: alpha('#66caf7', 0.2), color: lighten('#66caf7', 0.2) }, | ||
colorSuccess: { backgroundColor: alpha('#7efc81', 0.2), color: lighten('#7efc81', 0.2) }, | ||
colorWarning: { backgroundColor: alpha('#f7d866', 0.2), color: lighten('#f7d866', 0.2) }, | ||
}, | ||
}, | ||
MuiDialog: { | ||
styleOverrides: { | ||
root: { | ||
'& .MuiDialog-paper': { | ||
backgroundColor: '#16163D', | ||
backgroundImage: 'none', | ||
paddingLeft: 2, | ||
paddingRight: 2, | ||
border: `1px solid ${lighten('#16163D', 0.05)}`, | ||
}, | ||
}, | ||
}, | ||
}, | ||
MuiTable: { styleOverrides: { root: { background: '#20205A' } } }, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './theme.ts' |
28 changes: 28 additions & 0 deletions
28
packages/theme/src/product-theme/xyos/lightThemeOptions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { ThemeOptions } from '@mui/material' | ||
|
||
export const lightThemeOptions: ThemeOptions = { | ||
palette: { | ||
background: { | ||
default: '#F4F4F4', | ||
paper: '#FFFFFF', | ||
}, | ||
error: { | ||
dark: '#AA0E0E', | ||
light: '#F15555', | ||
main: '#D81111', | ||
}, | ||
primary: { main: '#463dc6', light: '#b2adfb' }, | ||
secondary: { main: '#186ecc' }, | ||
success: { | ||
dark: '#347f21', | ||
light: '#94dd80', | ||
main: '#62bc50', | ||
}, | ||
text: { | ||
disabled: '#49454D', | ||
primary: '#0d0d47', | ||
secondary: '#49454D', | ||
}, | ||
warning: { main: '#ffc805' }, | ||
}, | ||
} |
Oops, something went wrong.