Skip to content

Commit

Permalink
chore: added the TailwindCSS configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
kurone-kito committed May 25, 2021
1 parent c9ee22a commit 4841b76
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/dantalion-web-playground/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { plugins: { autoprefixer: {}, tailwindcss: {} } };
11 changes: 11 additions & 0 deletions packages/dantalion-web-playground/src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import type { AppProps } from 'next/app';
import type { VFC } from 'react';
import 'tailwindcss/tailwind.css';

const App: VFC<AppProps> = ({ Component, pageProps }) => (
// eslint-disable-next-line react/jsx-props-no-spreading
<Component {...pageProps} />
);
App.displayName = 'App';

export default App;
38 changes: 38 additions & 0 deletions packages/dantalion-web-playground/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
const defaultTheme = require('tailwindcss/defaultTheme');
const neumorphism = require('tailwindcss-neumorphism');

module.exports = {
darkMode: 'media', // false, or 'media' or 'class'
plugins: [neumorphism],
purge: {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx}',
'./src/components/**/*.{js,ts,jsx,tsx}',
],
},
theme: {
extend: {
fontFamily: {
sans: [
...new Set([
'-apple-system',
'BlinkMacSystemFont',
'BIZ UDPGothic',
'system-ui',
'Helvetica Neue',
'Helvetica',
'Ubuntu',
'Droid Sans',
'Hiragino Sans',
'Hiragino Kaku Gothic ProN',
'Arial',
'Yu Gothic',
'Meiryo',
...defaultTheme.fontFamily.sans,
]),
],
},
},
},
variants: { extend: {} },
};

0 comments on commit 4841b76

Please sign in to comment.