Mangane/tailwind.config.js

82 lines
2.3 KiB
JavaScript
Raw Normal View History

const { parseColorMatrix } = require('./tailwind/colors');
2022-03-07 23:54:45 +01:00
2022-03-19 19:20:00 +01:00
module.exports = {
2022-08-22 23:28:17 +02:00
content: ['./app/**/*.{html,js,ts,tsx}', './custom/instance/**/*.html'],
2022-03-19 19:20:00 +01:00
darkMode: 'class',
theme: {
screens: {
sm: '581px',
md: '768px',
lg: '976px',
xl: '1280px',
2022-03-19 19:20:00 +01:00
},
extend: {
2022-07-28 15:38:05 +02:00
boxShadow: {
'3xl': '0 25px 75px -15px rgba(0, 0, 0, 0.25)',
},
2022-03-19 19:20:00 +01: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',
],
},
colors: parseColorMatrix({
2022-03-23 22:27:35 +01: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],
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],
'gradient-start': true,
'gradient-end': true,
'sea-blue': true,
2022-03-07 23:54:45 +01:00
}),
2022-04-25 18:39:33 +02:00
animation: {
2022-04-25 18:48:13 +02: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 18:39:33 +02:00
},
keyframes: {
2022-04-25 18:48:13 +02:00
'sonar-scale-4': {
2022-04-25 18:39:33 +02:00
from: { opacity: '0.4' },
to: { opacity: 0, transform: 'scale(4)' },
},
2022-04-25 18:48:13 +02:00
'sonar-scale-3': {
2022-04-25 18:39:33 +02:00
from: { opacity: '0.4' },
to: { opacity: 0, transform: 'scale(3.5)' },
},
2022-04-25 18:48:13 +02:00
'sonar-scale-2': {
2022-04-25 18:39:33 +02:00
from: { opacity: '0.4' },
to: { opacity: 0, transform: 'scale(3)' },
},
2022-04-25 18:48:13 +02:00
'sonar-scale-1': {
2022-04-25 18:39:33 +02:00
from: { opacity: '0.4' },
to: { opacity: 0, transform: 'scale(2.5)' },
},
},
2022-03-19 19:20:00 +01:00
},
},
plugins: [
require('@tailwindcss/forms'),
require('@tailwindcss/typography'),
],
};