Storybook: add hardcoded color variables, fix missing import

This commit is contained in:
Alex Gleason 2023-02-02 21:24:58 -06:00
parent f02a035911
commit deb1920c03
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 6 additions and 4 deletions

View file

@ -1,4 +1,5 @@
import '../app/styles/tailwind.css';
import '../stories/theme.css';
export const parameters = {
actions: { argTypesRegex: "^on[A-Z].*" },

View file

@ -1,6 +1,7 @@
import React from 'react';
import { Button } from './Button';
import Button from '../app/soapbox/components/ui/button/button';
import './header.css';
type User = {
@ -42,12 +43,12 @@ export const Header = ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps
<span className='welcome'>
Welcome, <b>{user.name}</b>!
</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 primary size='small' onClick={onCreateAccount} label='Sign up' />
<Button size='sm' onClick={onLogin} text='Log in' />
<Button theme='primary' size='sm' onClick={onCreateAccount} text='Sign up' />
</>
)}
</div>

BIN
stories/theme.css Normal file

Binary file not shown.