Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore[DST-29]: headline styles b2b theme #3149

Merged
merged 3 commits into from
Jul 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions packages/components/src/Headline/Headline.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,5 @@ export default meta;
type Story = StoryObj<typeof meta>;

export const Basic: Story = {
render: args => (
<Headline color="red-300" {...args}>
This is a Headline!!
</Headline>
),
render: args => <Headline {...args}>This is a Headline!!</Headline>,
};
12 changes: 6 additions & 6 deletions themes/theme-b2b/src/components/Headline.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import { ThemeComponent, cva } from '@marigold/system';
export const Headline: ThemeComponent<'Headline'> = cva('', {
variants: {
size: {
'level-1': 'text-2xl',
'level-2': 'text-base',
'level-3': 'text-sm',
'level-4': 'text-[1.125rem]',
'level-5': 'text-xs',
'level-6': 'text-xs uppercase',
'level-1': 'mb-6 text-5xl font-black',
'level-2': 'mb-2 mt-8 text-2xl font-black',
'level-3': 'mb-2 mt-4 text-2xl font-black',
'level-4': 'text-lg font-black',
'level-5': 'text-base font-black',
'level-6': 'text-base font-normal uppercase',
},
},
});