2022-10-14 01:16:22 +00:00
|
|
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
2021-12-12 22:37:59 +00:00
|
|
|
const defaultTheme = require('tailwindcss/defaultTheme')
|
2022-07-19 23:22:55 +00:00
|
|
|
const plugin = require('tailwindcss/plugin')
|
2021-12-12 22:37:59 +00:00
|
|
|
|
2021-12-01 19:58:00 +00:00
|
|
|
module.exports = {
|
2022-04-20 02:41:24 +00:00
|
|
|
content: [
|
|
|
|
'./pages/**/*.{js,ts,jsx,tsx}',
|
|
|
|
'./components/**/*.{js,ts,jsx,tsx}',
|
|
|
|
],
|
2021-12-01 19:58:00 +00:00
|
|
|
theme: {
|
2021-12-12 22:37:59 +00:00
|
|
|
fontFamily: Object.assign(
|
|
|
|
{ ...defaultTheme.fontFamily },
|
|
|
|
{
|
2021-12-21 06:29:01 +00:00
|
|
|
'major-mono': ['Major Mono Display', 'monospace'],
|
2021-12-12 22:37:59 +00:00
|
|
|
'readex-pro': ['Readex Pro', 'sans-serif'],
|
|
|
|
}
|
|
|
|
),
|
2021-12-01 23:23:48 +00:00
|
|
|
extend: {
|
2022-10-14 06:47:51 +00:00
|
|
|
keyframes: {
|
|
|
|
progress: {
|
|
|
|
'0%': { width: '0%' },
|
|
|
|
'100%': { width: '100%' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
animation: {
|
|
|
|
'progress-loading': 'progress 2s linear',
|
|
|
|
},
|
2022-07-30 07:50:03 +00:00
|
|
|
colors: {
|
2022-10-13 18:23:42 +00:00
|
|
|
primary: '#11b981',
|
|
|
|
'primary-focus': '#069668',
|
|
|
|
warning: '#F59E0B', // amber-500 TODO: change color
|
|
|
|
error: '#ff5724', // TODO: change color
|
2022-09-27 00:28:54 +00:00
|
|
|
'red-25': '#FDF7F6',
|
2022-07-30 07:50:03 +00:00
|
|
|
'greyscale-1': '#FBFBFF',
|
2022-10-04 22:36:03 +00:00
|
|
|
'greyscale-1.5': '#F4F4FB',
|
2022-07-30 07:50:03 +00:00
|
|
|
'greyscale-2': '#E7E7F4',
|
|
|
|
'greyscale-3': '#D8D8EB',
|
|
|
|
'greyscale-4': '#B1B1C7',
|
|
|
|
'greyscale-5': '#9191A7',
|
|
|
|
'greyscale-6': '#66667C',
|
|
|
|
'greyscale-7': '#111140',
|
2022-09-16 00:41:25 +00:00
|
|
|
'highlight-blue': '#5BCEFF',
|
|
|
|
'hover-blue': '#90DEFF',
|
2022-07-30 07:50:03 +00:00
|
|
|
},
|
2022-07-16 16:30:23 +00:00
|
|
|
typography: {
|
|
|
|
quoteless: {
|
|
|
|
css: {
|
|
|
|
'blockquote p:first-of-type::before': { content: 'none' },
|
|
|
|
'blockquote p:first-of-type::after': { content: 'none' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-12-01 23:23:48 +00:00
|
|
|
},
|
2021-12-01 19:58:00 +00:00
|
|
|
},
|
2022-02-06 08:35:58 +00:00
|
|
|
plugins: [
|
|
|
|
require('@tailwindcss/forms'),
|
|
|
|
require('@tailwindcss/typography'),
|
2022-04-29 23:35:56 +00:00
|
|
|
require('@tailwindcss/line-clamp'),
|
2022-07-19 23:22:55 +00:00
|
|
|
plugin(function ({ addUtilities }) {
|
|
|
|
addUtilities({
|
|
|
|
'.scrollbar-hide': {
|
|
|
|
/* IE and Edge */
|
|
|
|
'-ms-overflow-style': 'none',
|
|
|
|
|
|
|
|
/* Firefox */
|
|
|
|
'scrollbar-width': 'none',
|
|
|
|
|
|
|
|
/* Safari and Chrome */
|
|
|
|
'&::-webkit-scrollbar': {
|
|
|
|
display: 'none',
|
|
|
|
},
|
|
|
|
},
|
2022-08-26 21:23:06 +00:00
|
|
|
'.break-anywhere': {
|
|
|
|
'overflow-wrap': 'anywhere',
|
|
|
|
'word-break': 'break-word', // for Safari
|
|
|
|
},
|
2022-07-19 23:22:55 +00:00
|
|
|
})
|
|
|
|
}),
|
2022-02-06 08:35:58 +00:00
|
|
|
],
|
2021-12-02 23:49:46 +00:00
|
|
|
}
|