Skip to content

Commit

Permalink
fix: font
Browse files Browse the repository at this point in the history
Signed-off-by: Homing So <[email protected]>
  • Loading branch information
hominsu committed Jan 1, 2024
1 parent d4859a8 commit 5aecae9
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion web/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
.eslintrc.js
.eslintrc.json
2 changes: 1 addition & 1 deletion web/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"settings": {
"tailwindcss": {
"callees": ["cn", "cva"],
"config": "tailwind.config.ts"
"config": "tailwind.config.cjs"
},
"next": {
"rootDir": ["."]
Expand Down
4 changes: 1 addition & 3 deletions web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ export default function RootLayout({ children }: RootLayoutProps) {
return (
<>
<html lang="en" suppressHydrationWarning>
<body
className={cn('min-h-screen bg-background font-sans antialiased', fontSans.className)}
>
<body className={cn('min-h-screen bg-background font-sans antialiased', fontSans.variable)}>
<ThemeProvider
attribute="class"
defaultTheme="system"
Expand Down
2 changes: 1 addition & 1 deletion web/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.ts",
"config": "tailwind.config.cjs",
"css": "styles/globals.css",
"baseColor": "zinc",
"cssVariables": false
Expand Down
File renamed without changes.
File renamed without changes.
5 changes: 1 addition & 4 deletions web/tailwind.config.ts → web/tailwind.config.cjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import type { Config } from 'tailwindcss'

const { fontFamily } = require('tailwindcss/defaultTheme')

/** @type {import('tailwindcss').Config} */
const config: Config = {
module.exports = {
darkMode: ['class'],
content: ['./app/**/*.{js,ts,jsx,tsx,mdx}', './components/**/*.{js,ts,jsx,tsx,mdx}'],
theme: {
Expand Down Expand Up @@ -77,4 +75,3 @@ const config: Config = {
},
plugins: [require('tailwindcss-animate')],
}
export default config

0 comments on commit 5aecae9

Please sign in to comment.