-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtailwind.config.js
More file actions
175 lines (171 loc) · 6.79 KB
/
tailwind.config.js
File metadata and controls
175 lines (171 loc) · 6.79 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/** @type {import('tailwindcss').Config} */
const defaultTheme = require('tailwindcss/defaultTheme');
module.exports = {
content: [
"templates/**/*.html",
"markout/**/index.html",
"static/index.html",
],
safelist: [
],
plugins: [require("@tailwindcss/typography")],
theme: {
extend: {
colors: {
// Twilight Cove Palette
'primary-dark': '#262B34', // Dark, cool slate gray (Main page background)
'primary-light': '#343D46', // Slightly lighter gray (Cards/elements)
'text-main': '#A7B5C5', // Soft, light gray (Main body text)
'text-heading': '#EAE0C8', // Pale, sandy color (Headings)
'text-subtle': '#6A7C8E', // Muted, darker gray (Subtle/secondary text)
'border-color': '#434E5A', // Border color slightly lighter than background
'accent-warm': '#D37C5F', // Muted, dusky orange (Primary call to action, warm links)
'accent-cool': '#608A9F', // Desaturated sea blue (Secondary accent, cool links)
'accent-green': '#6A8A82', // Dark, muted seafoam green (Success, positive feedback)
'accent-red': '#B86A6A', // Dusky, muted red (Error, danger)
'accent-yellow': '#EADDAF', // Soft, pale moonlight yellow (Warnings, highlights)
'accent-purple': '#8A799C', // Deep, dusky purple (Special highlights)
// Code Block Specifics
'code-background': '#21252B', // Slightly deeper dark gray (Code block background)
'code-text': '#A7B5C5', // Soft, light gray (Default code text)
'code-keyword': '#D37C5F', // Muted, dusky orange (Keywords)
'code-function': '#EADDAF', // Pale moonlight yellow (Function names)
'code-string': '#6A8A82', // Muted seafoam green (Strings)
'code-comment': '#6A7C8E', // Muted, darker gray (Comments)
'code-variable': '#608A9F', // Desaturated sea blue (Variables)
'code-operator': '#A7B5C5', // Soft, light gray (Operators)
// --- Mapping to your existing theme names (used by typography plugin) ---
'link': '#D37C5F', // accent-warm (Muted, dusky orange)
'link-hover': '#EAE0C8', // text-heading (Pale, sandy color for hover)
'keyword': '#D37C5F', // code-keyword
'function': '#EADDAF', // code-function
'string': '#6A8A82', // code-string
'comment': '#6A7C8E', // code-comment
'variable': '#608A9F', // code-variable
'operator': '#A7B5C5', // code-operator
'error': '#B86A6A', // accent-red
'warning': '#EADDAF', // accent-yellow
'info': '#608A9F', // accent-cool
'success': '#6A8A82', // accent-green
},
fontFamily: {
sans: ['Inter', ...defaultTheme.fontFamily.sans],
},
saturate: {
25: ".25",
75: ".75",
},
screens: {
print: { raw: "print" },
},
width: {
128: "32rem",
},
boxShadow: {
xlc: "0 0 60px 15px rgba(0, 0, 0, 0.3)",
lgc: "0 0 20px 0px rgba(0, 0, 0, 0.3)",
},
typography: (theme) => ({
DEFAULT: {
css: {
color: theme('colors.text-main'),
a: {
color: theme('colors.link'),
'&:hover': {
color: theme('colors.link-hover'),
},
},
h1: {
color: theme('colors.text-heading'),
},
h2: {
color: theme('colors.text-heading'),
},
h3: {
color: theme('colors.text-heading'),
},
h4: {
color: theme('colors.text-heading'),
},
pre: {
backgroundColor: theme('colors.code-background'),
color: theme('colors.code-text'),
padding: theme('padding.4'),
borderRadius: theme('borderRadius.lg'),
fontSize: '0.9rem',
overflowX: 'auto', // Add this for sensible horizontal scrolling if content is still too wide
},
'code::before': {
content: '""',
},
'code::after': {
content: '""',
},
blockquote: {
color: theme('colors.text-subtle'),
borderLeftColor: theme('colors.accent-cool'), // Desaturated sea blue for border
borderLeftWidth: '0.25rem',
backgroundColor: theme('colors.primary-light'), // Lighter gray for background
paddingTop: theme('spacing.2'),
paddingBottom: theme('spacing.2'),
paddingLeft: theme('spacing.4'),
paddingRight: theme('spacing.4'),
fontStyle: 'italic',
marginTop: theme('spacing.6'),
marginBottom: theme('spacing.6'),
},
img: {
borderRadius: theme('borderRadius.lg'),
boxShadow: theme('boxShadow.lgc'), // Make sure 'lgc' is defined in your boxShadow theme
borderWidth: '2px',
borderColor: theme('colors.primary-light'), // Changed from white
marginTop: theme('spacing.6'),
marginBottom: theme('spacing.6'),
maxWidth: '80%', // Increased from 3xl to make content images larger
marginLeft: 'auto', // Added to center images
marginRight: 'auto', // Added to center images
},
code: {
// Inline code with Twilight Cove style
color: theme('colors.accent-green'), // Muted seafoam green for text
fontWeight: '500',
padding: '0.2em 0.4em',
margin: '0',
fontSize: '85%',
backgroundColor: theme('colors.primary-light'), // Lighter gray for background
borderRadius: '0.3em',
},
hr: {
borderColor: theme('colors.border-color'), // Using the defined border-color (Desaturated Aqua/Teal)
borderTopWidth: '1px',
marginTop: theme('spacing.8'),
marginBottom: theme('spacing.8'),
},
ul: {
listStyleType: 'disc',
paddingLeft: '1.5rem',
},
ol: {
listStyleType: 'decimal',
paddingLeft: '1.5rem',
},
li: {
marginTop: '0.25rem',
marginBottom: '0.25rem',
},
'li > p': {
marginTop: '0.25rem',
marginBottom: '0.25rem',
},
'li > ul': {
marginTop: '0.5rem',
},
'li > ol': {
marginTop: '0.5rem',
},
},
},
}),
},
},
};