๐Ÿ“ฆ toeverything / design

Design System for AFFiNE and BlockSuite

โ˜… 49 stars โ‘‚ 23 forks ๐Ÿ‘ 49 watching โš–๏ธ Mozilla Public License 2.0
๐Ÿ“ฅ Clone https://github.com/toeverything/design.git
HTTPS git clone https://github.com/toeverything/design.git
SSH git clone git@github.com:toeverything/design.git
CLI gh repo clone toeverything/design
Cats Juice Cats Juice feat(theme): update v2 theme variables(2025-3-14 17:20) (#155) acfb547 10 months ago ๐Ÿ“ History
๐Ÿ“‚ acfb547f1696228fd3fbfadeef121ca9ccdd2366 View all commits โ†’
๐Ÿ“ .github
๐Ÿ“ packages
๐Ÿ“ scripts
๐Ÿ“„ .eslintignore
๐Ÿ“„ .eslintrc.cjs
๐Ÿ“„ .gitignore
๐Ÿ“„ .npmrc
๐Ÿ“„ .nvmrc
๐Ÿ“„ .prettierignore
๐Ÿ“„ .prettierrc
๐Ÿ“„ LICENSE
๐Ÿ“„ package.json
๐Ÿ“„ pnpm-lock.yaml
๐Ÿ“„ README.md
๐Ÿ“„ tsconfig.json
๐Ÿ“„ README.md

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