generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #546 from sudhanshutech/theme/refactor
[Theme] Refactor theme in components and list all tokens
- Loading branch information
Showing
33 changed files
with
954 additions
and
389 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Collapse as MuiCollapse, CollapseProps as MuiCollapseProps } from '@mui/material'; | ||
|
||
export function Collapse(props: MuiCollapseProps): JSX.Element { | ||
return <MuiCollapse {...props} />; | ||
} |
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,5 @@ | ||
import { CollapseProps } from '@mui/material'; | ||
import { Collapse } from './Collapse'; | ||
|
||
export { Collapse }; | ||
export type { CollapseProps }; |
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,8 @@ | ||
import { | ||
CssBaseline as MuiCssBaseline, | ||
CssBaselineProps as MuiCssBaselineProps | ||
} from '@mui/material'; | ||
|
||
export function CssBaseline(props: MuiCssBaselineProps): JSX.Element { | ||
return <MuiCssBaseline {...props} />; | ||
} |
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,5 @@ | ||
import { CssBaselineProps } from '@mui/material'; | ||
import { CssBaseline } from './CssBaseLine'; | ||
|
||
export { CssBaseline }; | ||
export type { CssBaselineProps }; |
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,8 @@ | ||
import { | ||
ListItemText as MuiListItemText, | ||
ListItemTextProps as MuiListItemTextProps | ||
} from '@mui/material'; | ||
|
||
export function ListItemText(props: MuiListItemTextProps): JSX.Element { | ||
return <MuiListItemText {...props} />; | ||
} |
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,5 @@ | ||
import { ListItemTextProps } from '@mui/material'; | ||
import { ListItemText } from './ListItemText'; | ||
|
||
export { ListItemText }; | ||
export type { ListItemTextProps }; |
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,8 @@ | ||
import { | ||
OutlinedInput as MuiOutlinedInput, | ||
OutlinedInputProps as MuiOutlinedInputProps | ||
} from '@mui/material'; | ||
|
||
export function OutlinedInput(props: MuiOutlinedInputProps): JSX.Element { | ||
return <MuiOutlinedInput {...props} />; | ||
} |
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,5 @@ | ||
import { OutlinedInputProps } from '@mui/material'; | ||
import { OutlinedInput } from './OutlinedInput'; | ||
|
||
export { OutlinedInput }; | ||
export type { OutlinedInputProps }; |
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
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
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Sistent Theme Palette | ||
|
||
This document provides an overview of the custom palette used for theme components. | ||
|
||
## Palette Options | ||
|
||
### Interactiveness | ||
|
||
Defines the interaction color options used in the palette. | ||
|
||
- `default`: Default interaction color. | ||
- `hover`: Color on hover. | ||
- `disabled`: Color when disabled (optional). | ||
- `pressed`: Color when pressed. | ||
- `secondary`: Secondary interaction color. | ||
- `tertiary`: Tertiary interaction color. | ||
|
||
### TypeBackground | ||
|
||
Defines the extended background color options used in the palette. | ||
|
||
- `secondary`: Secondary background color. | ||
- `graphics`: Graphics background color. | ||
- `tertiary`: Tertiary background color. | ||
- `hover`: Hover background color. | ||
- `blur`: Blur effect colors (heavy and light). | ||
- `brand`: Brand interaction colors. | ||
- `cta`: Call to action interaction colors. | ||
- `info`: Information interaction colors. | ||
- `success`: Success interaction colors. | ||
- `warning`: Warning interaction colors. | ||
- `error`: Error interaction colors. | ||
- `code`: Code background color. | ||
|
||
To add a new background color, add a new key to the `TypeBackground` type and update the `background` property in the `PaletteColor` type. | ||
|
||
### TypeText | ||
|
||
Defines the extended text color options used in the palette. | ||
|
||
- `default`: Default text color. | ||
- `secondary`: Secondary text color. | ||
- `tertiary`: Tertiary text color. | ||
- `inverse`: Inverse text color. | ||
- `brand`: Brand text color. | ||
- `info`: Information text color. | ||
- `success`: Success text color. | ||
- `warning`: Warning text color. | ||
- `error`: Error text color. | ||
|
||
To add a new text color, add a new key to the `TypeText` type and update the `text` property in the `PaletteColor` type. | ||
|
||
### PaletteColor | ||
|
||
Defines the color options for the palette. | ||
|
||
### SimplePaletteColorOptions | ||
|
||
Defines the simple palette color options. | ||
|
||
## Palette Configuration | ||
|
||
The palette configuration includes the following sections: | ||
|
||
### lightModePalette | ||
|
||
Defines the palette options for the light mode. | ||
|
||
### darkModePalette | ||
|
||
Defines the palette options for the dark mode. | ||
|
||
## Color Definitions | ||
|
||
The color definitions are imported from the `./colors` module and include various shades and hues used throughout the palette. |
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
Oops, something went wrong.