-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: apply theme * feat: add theme configuration for layout container * feat: add configuration for screen breakpoints * fix: remove redundant config * chore: remove plugin test file --------- Co-authored-by: Nguyen Dinh Nam <[email protected]>
- Loading branch information
1 parent
4640f50
commit 0a2642f
Showing
9 changed files
with
377 additions
and
175 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -36,7 +36,8 @@ | |
"@mochi-ui/theme": "workspace:*", | ||
"next": "^14.0.3", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
"react-dom": "^18.2.0", | ||
"storybook-dark-mode": "^3.0.3" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
|
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,62 @@ | ||
type ColorsVariant = { | ||
solid: { | ||
DEFAULT: string | ||
fg: string | ||
hover: string | ||
active: string | ||
disable: string | ||
focus: string | ||
} | ||
outline: { | ||
DEFAULT: string | ||
fg: string | ||
border: string | ||
hover: string | ||
active: string | ||
'disable-fg': string | ||
} | ||
plain: { | ||
fg: string | ||
hover: string | ||
active: string | ||
'disable-fg': string | ||
'hover-fg': string | ||
} | ||
} | ||
|
||
type RecursivePartial<T> = { | ||
[P in keyof T]?: RecursivePartial<T[P]> | ||
} | ||
|
||
export type ThemeColors = { | ||
primary: RecursivePartial<ColorsVariant> | ||
secondary: RecursivePartial<ColorsVariant> | ||
white: RecursivePartial<ColorsVariant> | ||
success: RecursivePartial<ColorsVariant> | ||
warning: RecursivePartial<ColorsVariant> | ||
danger: RecursivePartial<ColorsVariant> | ||
neutral: RecursivePartial<ColorsVariant> | ||
text: { | ||
primary: string | ||
secondary: string | ||
disabled: string | ||
icon: string | ||
contrast: string | ||
} | ||
background: { | ||
body: string | ||
level1: string | ||
level2: string | ||
level3: string | ||
surface: string | ||
popup: string | ||
tooltip: string | ||
backdrop: string | ||
} | ||
divider: string | ||
} | ||
|
||
export type SemanticBaseColors = { | ||
light: ThemeColors | ||
dark: ThemeColors | ||
} |
Oops, something went wrong.