Skip to content

Commit

Permalink
feat(page): m3 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Aug 11, 2022
1 parent 0886b5a commit b6ed24e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/config/extend-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ const extendTheme = () => {

// COLORS
const colors = {
'page-ios-light': '#efeff4',
'page-ios-dark': '#000',
'ios-light-page': '#efeff4',
'ios-dark-page': '#000',
'page-material-light': '#fff',
'page-material-dark': '#121212',
'block-strong-light': '#fff',
Expand Down
7 changes: 2 additions & 5 deletions src/shared/colors/PageColors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ import { cls } from '../cls.js';

export const PageColors = (colorsProp = {}, dark) => {
return {
bgIos: cls('bg-page-ios-light', dark('dark:bg-page-ios-dark')),
bgMaterial: cls(
'bg-page-material-light',
dark('dark:bg-page-material-dark')
),
bgIos: cls('bg-ios-light-page', dark('dark:bg-ios-dark-page')),
bgMaterial: cls('bg-md-light-surface', dark('dark:bg-md-dark-surface')),
...colorsProp,
};
};
2 changes: 1 addition & 1 deletion src/types/Page.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface Props {
/**
* Page bg color in iOS theme
*
* @default 'bg-page-ios-light dark:bg-page-ios-dark'
* @default 'bg-ios-light-page dark:bg-ios-dark-page'
*/
bgIos?: string;
/**
Expand Down

0 comments on commit b6ed24e

Please sign in to comment.