-
Notifications
You must be signed in to change notification settings - Fork 14
/
tailwind.config.js
50 lines (48 loc) · 1.42 KB
/
tailwind.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import tailwindConfig from '@hypothesis/frontend-shared/lib/tailwind.preset.js';
const successGreen =
tailwindConfig.theme?.extend?.colors?.green?.success ?? '#00a36d';
export default /** @type {Partial<import('tailwindcss').Config>} */ ({
presets: [tailwindConfig],
content: [
'./lms/static/scripts/frontend_apps/**/*.{js,ts,tsx}',
'./lms/static/scripts/ui-playground/**/*.{js,ts,tsx}',
// This script adds a DOM element with the `.browser-check-warning` class
'./lms/static/scripts/browser_check/index.ts',
'./node_modules/@hypothesis/frontend-shared/lib/**/*.js',
],
theme: {
extend: {
animation: {
gradeSubmitSuccess: 'gradeSubmitSuccess 2s ease-out forwards',
},
colors: {
grade: {
success: '#005c3d',
'success-light': '#dfebe7',
error: '#891b1d',
'error-light': '#f0e2e3',
warning: '#774903',
'warning-light': '#fef7ec',
},
},
fontFamily: {
sans: [
'"Helvetica Neue"',
'Helvetica',
'Arial',
'"Lucida Grande"',
'sans-serif',
],
},
fontSize: {
tiny: ['13px', { lineHeight: '15px' }], // Legacy body font size for LMS
},
keyframes: {
gradeSubmitSuccess: {
from: { backgroundColor: successGreen },
to: { backgroundColor: 'transparent' },
},
},
},
},
});