Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(spindle-tokens): create font tokens #1205

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

herablog
Copy link
Member

@herablog herablog commented Jan 28, 2025

Spindleサイトで更新した font-family のデザイントークンを反映しました。

ref: https://tr.designtokens.org/format/#font-family

CSSは以下のように書き出されます。

spindle-tokens-font.css
/**
 * Do not edit directly, this file was auto-generated.
 */

:root {
  --font-font-family-blog-body: -apple-system, BlinkMacSystemFont, sans-serif;
  --font-font-family-basic-version-2: 'Helvetica Neue', Helvetica, Arial, 'Segoe UI', 'Hiragino Sans', 'ヒラギノ角ゴ ProN', 'Hiragino Kaku Gothic ProN', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, 'Yu Gothic Medium', sans-seri;
  --font-font-family-basic-version-1: Meiryo, 'Yu Gothic Medium', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

Chromeで確認したところ、指定されているようでした。

Screenshot 2025-01-28 at 5 58 21 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant