-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.js
86 lines (80 loc) · 5.85 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/** @type {import('tailwindcss').Config} */
const SVG = require('mini-svg-data-uri');
const twColors = require('tailwindcss/colors');
const cursorMove = `url("${SVG(`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="#fffc" d="M16.54 22.8a.49.49 0 0 1-.35-.15l-2.49-2.47c-.14-.14-.19-.36-.11-.55s.26-.31.46-.31h1.72v-2.44h-2.43v1.73c0 .2-.12.39-.31.46a.51.51 0 0 1-.55-.11l-2.47-2.49a.5.5 0 0 1 0-.7l2.47-2.49a.5.5 0 0 1 .55-.11.5.5 0 0 1 .31.46v1.72h2.43v-2.43h-1.72c-.2 0-.39-.12-.46-.31s-.03-.4.11-.55l2.49-2.47a.5.5 0 0 1 .7 0l2.49 2.47c.14.14.19.36.11.55s-.26.31-.46.31H17.3v2.43h2.44v-1.72c0-.2.12-.39.31-.46.19-.08.4-.03.55.11l2.47 2.49a.5.5 0 0 1 0 .7l-2.47 2.49a.5.5 0 0 1-.55.11.5.5 0 0 1-.31-.46v-1.73H17.3v2.44h1.73c.2 0 .39.12.46.31s.03.4-.11.55l-2.49 2.47c-.1.1-.22.15-.35.15Z"/>
<path d="M20.24 18.62v-2.23H16.8v3.44h2.23l-2.49 2.47-2.49-2.47h2.22v-3.44h-3.43v2.23l-2.47-2.49 2.47-2.49v2.22h3.43v-3.43h-2.22l2.49-2.47 2.49 2.47H16.8v3.43h3.44v-2.22l2.47 2.49-2.47 2.49z"/>
<path fill="#fffc" d="M.5 17.03a.4.4 0 0 1-.19-.04.5.5 0 0 1-.31-.46V.5C0 .3.12.12.31.04a.5.5 0 0 1 .55.11l10.67 10.57a.5.5 0 0 1-.3.85l-5.61.64-4.77 4.68a.5.5 0 0 1-.35.14Z"/>
<path d="M.5.5v16.03l4.89-4.8 5.79-.65L.5.5z"/>
</svg>
`)}") 0 0, auto`;
const cursorPen = `url("${SVG(`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="m9.65 13.48-4.81 2.28s-.07.03-.11.03c-.1 0-.2-.06-.25-.16l-1.52-3.2-.01-.03L.06 9.12S0 9.02 0 8.96V1.13C0 1.03.05.95.14.9L.81.57a.23.23 0 0 1 .2-.01c.06.02.11.07.14.14l2.26 5.39c.04.1.02.21-.06.28l.2.3.5-.26-.11-.32h-.05c-.12.05-.24-.02-.29-.13L1.36.63a.34.34 0 0 1 0-.2.23.23 0 0 1 .15-.14l.8-.26c.09-.03.19 0 .26.07L8.2 6.03s.07.11.07.17v3.75l1.5 3.17c.07.13.01.3-.12.36Z" fill="#fffc"/>
<path d="M.5 8.86 3.27 12l4.5-2.13V6.29L2.32.56l-.39.13 2.05 4.87h.06c.13-.05.25.02.3.14l.26.74c.04.12 0 .25-.12.3l-.89.47a.25.25 0 0 1-.32-.08l-.46-.69a.25.25 0 0 1 .06-.34L.79 1.13l-.29.15v7.58Z"/>
<path d="m3.56 12.44 4.31-2.05 1.29 2.71-4.31 2.05z"/>
</svg>
`)}") 0 0, auto`;
const cursorPenP = `url("${SVG(`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path fill="#fffc" d="M14.88 18.51h-1.91a.25.25 0 0 1-.25-.25V16.5h-1.76a.25.25 0 0 1-.25-.25v-1.91c0-.14.11-.25.25-.25h1.76v-1.76c0-.14.11-.25.25-.25h1.91c.14 0 .25.11.25.25v1.76h1.76c.14 0 .25.11.25.25v1.91c0 .14-.11.25-.25.25h-1.76v1.76c0 .14-.11.25-.25.25Z"/>
<path d="M13.22 18.01h1.41v-1.76c0-.14.11-.25.25-.25h1.76v-1.41h-1.76a.25.25 0 0 1-.25-.25v-1.76h-1.41v1.76c0 .14-.11.25-.25.25h-1.76V16h1.76c.14 0 .25.11.25.25v1.76Z"/>
<path fill="#fffc" d="m9.65 13.46-4.81 2.28s-.07.03-.11.03c-.1 0-.2-.06-.25-.16l-1.52-3.2-.01-.03L.06 9.1S0 9 0 8.94V1.11c0-.1.05-.18.14-.23L.81.55a.23.23 0 0 1 .2-.01c.06.02.11.07.14.14l2.26 5.39c.04.1.02.21-.06.28l.2.3.5-.26-.11-.32h-.05c-.12.05-.24-.02-.29-.13L1.36.61a.34.34 0 0 1 0-.2.23.23 0 0 1 .15-.14l.8-.26c.09-.03.19 0 .26.07L8.2 6.01s.07.11.07.17v3.75l1.5 3.17c.07.13.01.3-.12.36Z"/>
<path d="m.5 8.85 2.77 3.14 4.5-2.13V6.28L2.32.54l-.39.13 2.05 4.88h.06c.13-.05.25.02.3.14l.26.74c.04.12 0 .25-.12.3l-.89.47a.25.25 0 0 1-.32-.08l-.46-.69a.25.25 0 0 1 .06-.34L.79 1.12l-.29.15v7.58Z"/>
<path transform="rotate(-25.42 6.37 12.76)" d="M3.98 11.25h4.77v3H3.98z"/>
</svg>
`)}") 0 0, auto`;
const cursorPenM = `url("${SVG(`
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<rect fill="#fffc" x="10.71" y="14.09" width="6.43" height="2.41" rx=".25" ry=".25"/>
<path d="M11.21 14.59h5.43V16h-5.43z"/>
<path fill="#fffc" d="m9.65 13.46-4.81 2.28s-.07.03-.11.03c-.1 0-.2-.06-.25-.16l-1.52-3.2-.01-.03L.06 9.1S0 9 0 8.94V1.11c0-.1.05-.18.14-.23L.81.55a.23.23 0 0 1 .2-.01c.06.02.11.07.14.14l2.26 5.39c.04.1.02.21-.06.28l.2.3.5-.26-.11-.32h-.05c-.12.05-.24-.02-.29-.13L1.36.61a.34.34 0 0 1 0-.2.23.23 0 0 1 .15-.14l.8-.26c.09-.03.19 0 .26.07L8.2 6.01s.07.11.07.17v3.75l1.5 3.17c.07.13.01.3-.12.36Z"/>
<path d="m.5 8.85 2.77 3.14 4.5-2.13V6.28L2.32.54l-.39.13 2.05 4.88h.06c.13-.05.25.02.3.14l.26.74c.04.12 0 .25-.12.3l-.89.47a.25.25 0 0 1-.32-.08l-.46-.69a.25.25 0 0 1 .06-.34L.79 1.12l-.29.15v7.58Z"/>
<path transform="rotate(-25.42 6.37 12.76)" d="M3.98 11.25h4.77v3H3.98z"/>
</svg>
`)}") 0 0, auto`;
module.exports = {
content: ['./index.html', './public/**/*.html', './src/**/*.{js,jsx,ts,tsx,html}'],
//darkMode: false, // or 'media' or 'class'
theme: {
extend: {
colors: {
primary: twColors.slate,
},
keyframes: {
'slide-down': {
'0%': { opacity: 0, transform: 'translateY(-10px)' },
'100%': { opacity: 1, transform: 'translateY(0)' },
},
'fade-in': {
'0%': { opacity: 0 },
'100%': { opacity: 1 },
},
},
animation: {
'slide-down': 'slide-down 0.6s cubic-bezier(0.16, 1, 0.3, 1)',
'fade-in-slow': 'fade-in 0.7s cubic-bezier(0.73, 0, 0.36, 0)',
'fade-in': 'fade-in 0.15s cubic-bezier(0.73, 0, 0.36, 0)',
},
cursor: {
'tm-move': cursorMove,
'tm-pen': cursorPen,
'tm-pen-p': cursorPenP,
'tm-pen-m': cursorPenM,
},
},
},
variants: {
extend: {},
},
plugins: [
require('./tailwind/tailwind-plugin-data-state'),
require('./tailwind/tailwind-plugin-colors-bridge')({ prefix: '--tm-', groupName: 'primary' }),
require('./tailwind/tailwind-plugin-range'),
require('./tailwind/tailwind-plugin-overflow-overlay'),
require('./tailwind/tailwnid-plugin-debug-styles'),
require('./tailwind/tailwind-plugin-debug-screens'),
require('@tailwindcss/forms')({ strategy: 'class' }),
],
};