2022-03-23 21:51:42 +00:00
|
|
|
const { parseColorMatrix } = require('./tailwind/colors');
|
2022-03-07 22:54:45 +00:00
|
|
|
|
2022-03-19 18:20:00 +00:00
|
|
|
module.exports = {
|
2022-07-22 17:30:16 +00:00
|
|
|
content: ['./app/**/*.{html,js,ts,tsx}', './custom/instance/**/*.html', './app/index.ejs'],
|
2022-03-19 18:20:00 +00:00
|
|
|
darkMode: 'class',
|
|
|
|
theme: {
|
|
|
|
screens: {
|
|
|
|
sm: '581px',
|
|
|
|
md: '768px',
|
|
|
|
lg: '976px',
|
2022-07-04 19:57:27 +00:00
|
|
|
xl: '1280px',
|
2022-03-19 18:20:00 +00:00
|
|
|
},
|
|
|
|
extend: {
|
2022-07-28 13:38:05 +00:00
|
|
|
boxShadow: {
|
|
|
|
'3xl': '0 25px 75px -15px rgba(0, 0, 0, 0.25)',
|
|
|
|
},
|
2022-03-19 18:20:00 +00:00
|
|
|
fontSize: {
|
|
|
|
base: '0.9375rem',
|
|
|
|
},
|
|
|
|
fontFamily: {
|
|
|
|
'sans': [
|
|
|
|
'Inter',
|
|
|
|
'ui-sans-serif',
|
|
|
|
'system-ui',
|
|
|
|
'-apple-system',
|
|
|
|
'BlinkMacSystemFont',
|
|
|
|
'Segoe UI',
|
|
|
|
'Roboto',
|
|
|
|
'Helvetica Neue',
|
|
|
|
'Arial',
|
|
|
|
'Noto Sans',
|
|
|
|
'sans-serif',
|
|
|
|
'Apple Color Emoji',
|
|
|
|
'Segoe UI Emoji',
|
|
|
|
'Segoe UI Symbol',
|
|
|
|
'Noto Color Emoji',
|
|
|
|
],
|
|
|
|
},
|
2022-03-23 21:51:42 +00:00
|
|
|
colors: parseColorMatrix({
|
2022-03-23 21:27:35 +00:00
|
|
|
// Define color matrix (of available colors)
|
|
|
|
// Colors are configured at runtime with CSS variables in soapbox.json
|
|
|
|
gray: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
|
|
|
|
primary: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
|
2022-07-22 17:30:16 +00:00
|
|
|
secondary: [100, 200, 300, 400, 500, 600],
|
2022-03-23 21:27:35 +00:00
|
|
|
success: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
|
|
|
|
danger: [50, 100, 200, 300, 400, 500, 600, 700, 800, 900],
|
|
|
|
accent: [300, 500],
|
2022-07-22 17:30:16 +00:00
|
|
|
'accent-blue': true,
|
2022-05-07 20:23:43 +00:00
|
|
|
'gradient-start': true,
|
|
|
|
'gradient-end': true,
|
2022-03-23 21:51:42 +00:00
|
|
|
'sea-blue': true,
|
2022-03-07 22:54:45 +00:00
|
|
|
}),
|
2022-04-25 16:39:33 +00:00
|
|
|
animation: {
|
2022-04-25 16:48:13 +00:00
|
|
|
'sonar-scale-4': 'sonar-scale-4 3s linear infinite',
|
|
|
|
'sonar-scale-3': 'sonar-scale-3 3s 0.5s linear infinite',
|
|
|
|
'sonar-scale-2': 'sonar-scale-2 3s 1s linear infinite',
|
|
|
|
'sonar-scale-1': 'sonar-scale-1 3s 1.5s linear infinite',
|
2022-04-25 16:39:33 +00:00
|
|
|
},
|
|
|
|
keyframes: {
|
2022-04-25 16:48:13 +00:00
|
|
|
'sonar-scale-4': {
|
2022-04-25 16:39:33 +00:00
|
|
|
from: { opacity: '0.4' },
|
|
|
|
to: { opacity: 0, transform: 'scale(4)' },
|
|
|
|
},
|
2022-04-25 16:48:13 +00:00
|
|
|
'sonar-scale-3': {
|
2022-04-25 16:39:33 +00:00
|
|
|
from: { opacity: '0.4' },
|
|
|
|
to: { opacity: 0, transform: 'scale(3.5)' },
|
|
|
|
},
|
2022-04-25 16:48:13 +00:00
|
|
|
'sonar-scale-2': {
|
2022-04-25 16:39:33 +00:00
|
|
|
from: { opacity: '0.4' },
|
|
|
|
to: { opacity: 0, transform: 'scale(3)' },
|
|
|
|
},
|
2022-04-25 16:48:13 +00:00
|
|
|
'sonar-scale-1': {
|
2022-04-25 16:39:33 +00:00
|
|
|
from: { opacity: '0.4' },
|
|
|
|
to: { opacity: 0, transform: 'scale(2.5)' },
|
|
|
|
},
|
|
|
|
},
|
2022-03-19 18:20:00 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
require('@tailwindcss/forms'),
|
|
|
|
require('@tailwindcss/typography'),
|
|
|
|
],
|
|
|
|
};
|