Skip to content

Commit

Permalink
chore: more core style (Card/Button/Link) (#2604)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahgm committed Oct 28, 2022
1 parent 26e2989 commit 0e923cc
Show file tree
Hide file tree
Showing 9 changed files with 21 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-jokes-hope.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@marigold/theme-core": patch
---

chore: more core style (Card/Button/Link)
7 changes: 7 additions & 0 deletions themes/theme-core/src/components/Body.style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import type { Theme } from '@marigold/components';

export const Body: Theme['components']['Body'] = {
base: {
m: 'none',
},
};
2 changes: 1 addition & 1 deletion themes/theme-core/src/components/Button.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const Button: Theme['components']['Button'] = {
},
},
link: {
color: 'text',
color: '#990000',
border: 'none',
bg: 'none',
'&:hover': {
Expand Down
1 change: 1 addition & 0 deletions themes/theme-core/src/components/Card.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { Theme } from '@marigold/components';

export const Card: Theme['components']['Card'] = {
base: {
position: 'relative',
bg: '#fafaf8',
borderRadius: '5px',
p: 'xsmall',
Expand Down
1 change: 1 addition & 0 deletions themes/theme-core/src/components/Headline.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const Headline: Theme['components']['Headline'] = {
},
'level-2': {
fontSize: 'large',
mb: 'medium',
},
'level-3': {
fontSize: 'medium',
Expand Down
2 changes: 1 addition & 1 deletion themes/theme-core/src/components/Link.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const Link: Theme['components']['Link'] = {
base: {
color: '#900',
'&:hover, &:visited': {
textDecoration: 'underline',
textDecoration: 'none',
cursor: 'pointer',
},
'&:disabled': {
Expand Down
3 changes: 3 additions & 0 deletions themes/theme-core/src/components/Text.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ export const Text: Theme['components']['Text'] = {
bold: {
fontWeight: 'bold',
},
muted: {
color: 'gray40',
},
},
};
1 change: 1 addition & 0 deletions themes/theme-core/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './Badge.style';
export * from './Body.style';
export * from './Button.style';
export * from './Card.style';
export * from './Checkbox.style';
Expand Down
1 change: 1 addition & 0 deletions themes/theme-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const theme: Theme = {
},
colors: {
...colors,
none: 'transparent',
text: '#511e04',
background: colors.gray10,
primary: colors.orange60,
Expand Down

0 comments on commit 0e923cc

Please sign in to comment.