Skip to content

Commit

Permalink
feat: remove default font family to allow easy/uncomplicated override
Browse files Browse the repository at this point in the history
  • Loading branch information
maxholman committed Dec 2, 2022
1 parent 24d2c51 commit 1f8e3c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 2 additions & 6 deletions lib/design-system.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createTheme, createThemeContract, style } from '@vanilla-extract/css';
import { createTheme, createThemeContract } from '@vanilla-extract/css';

export const genericVars = createThemeContract({
text: {
Expand All @@ -16,8 +16,8 @@ export const genericVars = createThemeContract({
light: 'text-weight-light',
normal: 'text-weight-normal',
medium: 'text-weight-medium',
bold: 'text-weight-bold',
semiBold: 'text-weight-semi-bold',
bold: 'text-weight-bold',
heavy: 'text-weight-heavy',
},
lineHeight: {
Expand Down Expand Up @@ -103,7 +103,3 @@ export const genericThemeClass = createTheme(genericVars, {
huge: '2rem',
},
});

export const sansSerifFontStyle = style({
fontFamily: 'sans-serif',
});
3 changes: 1 addition & 2 deletions lib/design-system.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FC, PropsWithChildren } from 'react';
import { Box } from './core.js';
import { genericThemeClass, sansSerifFontStyle } from './design-system.css.js';
import { genericThemeClass } from './design-system.css.js';
import { resetClass } from './reset.css.js';
import {
ColorScheme,
Expand Down Expand Up @@ -39,7 +39,6 @@ export const DesignSystem: FC<
component="div"
className={[
resetClass,
sansSerifFontStyle,
genericThemeClass,

// color theme
Expand Down

0 comments on commit 1f8e3c3

Please sign in to comment.