mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-16 09:36:17 +08:00
init: the first public commit for AFFiNE
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { styled } from '../styled';
|
||||
import type { ThemeOptions } from '../theme/theme';
|
||||
|
||||
type TypographyType = keyof ThemeOptions['typography'];
|
||||
|
||||
interface TypographyProps {
|
||||
/**
|
||||
* Binding with typography in theme.
|
||||
* Default: sm
|
||||
*/
|
||||
type?: TypographyType;
|
||||
}
|
||||
|
||||
export const Typography = styled('span')<TypographyProps>(({ theme, type }) => {
|
||||
const config = theme.affine.typography[type] || theme.affine.typography.sm;
|
||||
return config;
|
||||
});
|
||||
@@ -0,0 +1 @@
|
||||
export { Typography } from './Typo';
|
||||
Reference in New Issue
Block a user