Skip to content

Design System for AFFiNE and BlockSuite

License

Notifications You must be signed in to change notification settings

toeverything/design

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Automated Version Bump
Mar 14, 2025
0bb4e5f · Mar 14, 2025
Aug 7, 2023
Mar 14, 2025
Dec 4, 2024
Aug 4, 2023
Jul 25, 2023
Jul 24, 2024
May 8, 2023
May 8, 2023
Aug 4, 2023
Jul 25, 2023
May 8, 2023
Nov 4, 2024
Aug 4, 2023
Jan 14, 2025
Dec 4, 2024
Jul 25, 2023
May 8, 2023

Repository files navigation

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