Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.13 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.13 KB

Design

Design System for the BlockSuite/AFFiNE.

Modules

Components doc

https://toeverything.github.io/design/

Theme usage

Import

import css in top level

  • In css
    @import '@toeverything/theme/style.css';
  • In js
    import '@toeverything/theme/style.css';

Use variable in TypeScript

import { cssVar } from '@toeverything/theme';
import { cssVarV2 } from '@toeverything/theme/v2';

Presets

  • Preset Typography: Styles are included in @toeverything/theme/style.css.

    import { style } from '@vanilla-extract/css';
    import { headlineRegular } from '@toeverything/theme/typography';
    
    const myStyle = style([
      headlineRegular,
      {
        // ...others
      },
    ]);

License

MPL-2.0