185185 .chat-prose blockquote {
186186 @apply border-l-2 border-primary/50 pl-3 italic my-2;
187187 }
188+ }
188189
189- /* TipTap Editor prose styling */
190- .ProseMirror {
191- line-height : 1.7 ;
192- letter-spacing : -0.01em ;
193- }
194- .ProseMirror > * + * {
195- margin-top : 0.75em ;
196- }
197- .ProseMirror p {
198- margin : 0.5em 0 ;
199- }
200- .ProseMirror h1 {
201- font-family : 'Goudy Bookletter 1911' , Georgia, serif;
202- font-size : 1.875rem ;
203- font-weight : 600 ;
204- margin : 1.5rem 0 0.75rem ;
205- line-height : 1.3 ;
206- }
207- .ProseMirror h2 {
208- font-size : 1.5rem ;
209- font-weight : 600 ;
210- margin : 1.25rem 0 0.5rem ;
211- line-height : 1.35 ;
212- }
213- .ProseMirror h3 {
214- font-size : 1.25rem ;
215- font-weight : 600 ;
216- margin : 1rem 0 0.5rem ;
217- line-height : 1.4 ;
218- }
219- .ProseMirror ul {
220- list-style-type : disc;
221- padding-left : 1.5em ;
222- margin : 0.5em 0 ;
223- }
224- .ProseMirror ol {
225- list-style-type : decimal;
226- padding-left : 1.5em ;
227- margin : 0.5em 0 ;
228- }
229- .ProseMirror li {
230- margin : 0.25em 0 ;
231- }
232- .ProseMirror li > p {
233- margin : 0 ;
234- }
235- .ProseMirror blockquote {
236- border-left : 3px solid hsl (var (--primary ));
237- padding-left : 1rem ;
238- margin : 1rem 0 ;
239- color : hsl (var (--muted-foreground ));
240- font-style : italic;
241- }
242- .ProseMirror code {
243- @apply bg-black/10 dark:bg-white/10 px-1.5 py-0.5 rounded text-[0.9em ];
244- font-family : ui-monospace, SFMono-Regular, 'SF Mono' , Menlo, monospace;
245- }
246- .ProseMirror pre {
247- @apply bg-black/10 dark:bg-white/10 p-3 rounded-lg overflow-x-auto my-2;
248- }
249- .ProseMirror pre code {
250- @apply bg-transparent p-0;
251- font-size : 0.875rem ;
252- line-height : 1.6 ;
253- }
254- .ProseMirror a {
255- @apply text-primary underline;
256- }
257- .ProseMirror strong {
258- font-weight : 600 ;
259- }
260- .ProseMirror hr {
261- border : none;
262- border-top : 1px solid hsl (var (--border ));
263- margin : 1.5rem 0 ;
264- }
190+ /* TipTap Editor prose styling - OUTSIDE @layer to prevent Tailwind purging */
191+ .ProseMirror {
192+ line-height : 1.7 ;
193+ letter-spacing : -0.01em ;
194+ }
195+ .ProseMirror > * + * {
196+ margin-top : 0.75em ;
197+ }
198+ .ProseMirror p {
199+ margin : 0.5em 0 ;
200+ }
201+ .ProseMirror h1 {
202+ font-family : 'Goudy Bookletter 1911' , Georgia, serif;
203+ font-size : 1.875rem ;
204+ font-weight : 600 ;
205+ margin : 1.5rem 0 0.75rem ;
206+ line-height : 1.3 ;
207+ }
208+ .ProseMirror h2 {
209+ font-size : 1.5rem ;
210+ font-weight : 600 ;
211+ margin : 1.25rem 0 0.5rem ;
212+ line-height : 1.35 ;
213+ }
214+ .ProseMirror h3 {
215+ font-size : 1.125rem !important ;
216+ font-weight : 500 !important ;
217+ margin : 1rem 0 0.5rem ;
218+ line-height : 1.4 ;
219+ }
220+ .ProseMirror ul {
221+ list-style-type : disc !important ;
222+ padding-left : 1.5em !important ;
223+ margin : 0.5em 0 ;
224+ }
225+ .ProseMirror ol {
226+ list-style-type : decimal !important ;
227+ padding-left : 1.5em !important ;
228+ margin : 0.5em 0 ;
229+ }
230+ .ProseMirror li {
231+ margin : 0.25em 0 ;
232+ display : list-item !important ;
233+ }
234+ .ProseMirror li > p {
235+ margin : 0 ;
236+ }
237+ .ProseMirror blockquote {
238+ border-left : 3px solid hsl (var (--primary ));
239+ padding-left : 1rem ;
240+ margin : 1rem 0 ;
241+ color : hsl (var (--muted-foreground ));
242+ font-style : italic;
243+ }
244+ .ProseMirror code {
245+ background-color : rgba (0 , 0 , 0 , 0.1 );
246+ padding : 0.125rem 0.375rem ;
247+ border-radius : 0.25rem ;
248+ font-size : 0.9em ;
249+ font-family : ui-monospace, SFMono-Regular, 'SF Mono' , Menlo, monospace;
250+ }
251+ .ProseMirror pre {
252+ background-color : rgba (0 , 0 , 0 , 0.1 );
253+ padding : 0.75rem ;
254+ border-radius : 0.5rem ;
255+ overflow-x : auto;
256+ margin : 0.5rem 0 ;
257+ }
258+ .ProseMirror pre code {
259+ background-color : transparent;
260+ padding : 0 ;
261+ font-size : 0.875rem ;
262+ line-height : 1.6 ;
263+ }
264+ .ProseMirror a {
265+ color : hsl (var (--primary ));
266+ text-decoration : underline;
267+ }
268+ .ProseMirror strong {
269+ font-weight : 600 ;
270+ }
271+ .ProseMirror hr {
272+ border : none;
273+ border-top : 1px solid hsl (var (--border ));
274+ margin : 1.5rem 0 ;
265275}
0 commit comments