Skip to content

Commit

Permalink
feat(card): more m3 styles
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Aug 11, 2022
1 parent 1165339 commit 6587619
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/shared/classes/CardClasses.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ export const CardClasses = (props, colors, darkClasses) => {
const { margin } = props;
return {
base: {
common: cls(margin, colors.bg, `overflow-hidden`),
ios: 'rounded',
material: 'rounded-xl',
common: cls(margin, `overflow-hidden`),
ios: cls('rounded', colors.bgIos),
material: cls('rounded-xl', colors.bgMaterial),
shadow: 'shadow',
outline: cls(
`border border-black border-opacity-10`,
Expand Down
3 changes: 2 additions & 1 deletion src/shared/colors/CardColors.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import { cls } from '../cls.js';

export const CardColors = (colorsProp = {}, dark) => {
return {
bg: cls(`bg-block-strong-light`, dark('dark:bg-block-strong-dark')),
bgIos: cls(`bg-block-strong-light`, dark('dark:bg-block-strong-dark')),
bgMaterial: cls('bg-md-light-surface-1', dark('dark:bg-md-dark-surface-1')),
footerText: cls(`text-black`, dark('dark:text-white')),
...colorsProp,
};
Expand Down

0 comments on commit 6587619

Please sign in to comment.