forked from StaticJsCMS/static-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.base.config.js
74 lines (69 loc) · 2.09 KB
/
tailwind.base.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
module.exports = {
darkMode: "class",
theme: {
extend: {
height: {
main: "calc(100vh - 64px)",
"main-mobile": "calc(100vh - 128px)",
"media-library-dialog": "80vh",
"media-card": "240px",
"media-preview-image": "104px",
"media-card-image": "196px",
"image-card": "120px",
input: "24px",
"table-full": "calc(100% - 40px)",
},
minHeight: {
8: "2rem",
"markdown-toolbar": "40px",
},
width: {
main: "calc(100% - 256px)",
preview: "calc(100% - 450px)",
"sidebar-expanded": "256px",
"sidebar-collapsed": "68px",
"editor-only": "640px",
"media-library-dialog": "80vw",
"media-card": "240px",
"media-preview-image": "126px",
"image-card": "120px",
"card-grid": "calc(100% + 8px)",
"breadcrumb-title-small": "calc(100vw - 126px)",
"breadcrumb-title": "calc(100vw * .4)",
"collection-header": "calc(100% - 32px)",
"date-widget": "calc(100% - 58px)",
"relation-widget-label": "calc(100% - 32px)",
"select-widget-label": "calc(100% - 12px)",
},
maxWidth: {
"media-search": "400px",
},
boxShadow: {
sidebar: "0 10px 15px 18px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
"bottom-navigation": "0 -10px 10px -5px rgb(0 0 0 / 0.15)",
},
gridTemplateColumns: {
editor: "450px auto",
"media-preview": "126px auto",
images: "repeat(auto-fit, 120px)",
},
fontFamily: {
sans: ["Inter var", "Inter", "ui-sans-serif", "system-ui", "sans-serif"],
},
},
screens: {
xs: "480px",
// => @media (min-width: 480px) { ... }
sm: "640px",
// => @media (min-width: 640px) { ... }
md: "768px",
// => @media (min-width: 768px) { ... }
lg: "1024px",
// => @media (min-width: 1024px) { ... }
xl: "1280px",
// => @media (min-width: 1280px) { ... }
"2xl": "1536px",
// => @media (min-width: 1536px) { ... }
},
},
};