Storybook: add hardcoded color variables, fix missing import
This commit is contained in:
parent
f02a035911
commit
deb1920c03
3 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
import '../app/styles/tailwind.css';
|
import '../app/styles/tailwind.css';
|
||||||
|
import '../stories/theme.css';
|
||||||
|
|
||||||
export const parameters = {
|
export const parameters = {
|
||||||
actions: { argTypesRegex: "^on[A-Z].*" },
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { Button } from './Button';
|
import Button from '../app/soapbox/components/ui/button/button';
|
||||||
|
|
||||||
import './header.css';
|
import './header.css';
|
||||||
|
|
||||||
type User = {
|
type User = {
|
||||||
|
@ -42,12 +43,12 @@ export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps
|
||||||
<span className='welcome'>
|
<span className='welcome'>
|
||||||
Welcome, <b>{user.name}</b>!
|
Welcome, <b>{user.name}</b>!
|
||||||
</span>
|
</span>
|
||||||
<Button size='small' onClick={onLogout} label='Log out' />
|
<Button size='sm' onClick={onLogout} text='Log out' />
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
<Button size='small' onClick={onLogin} label='Log in' />
|
<Button size='sm' onClick={onLogin} text='Log in' />
|
||||||
<Button primary size='small' onClick={onCreateAccount} label='Sign up' />
|
<Button theme='primary' size='sm' onClick={onCreateAccount} text='Sign up' />
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
BIN
stories/theme.css
Normal file
BIN
stories/theme.css
Normal file
Binary file not shown.
Loading…
Reference in a new issue