92 lines
4 KiB
Dart
92 lines
4 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
const TextTheme nightText = TextTheme(
|
|
titleLarge: TextStyle(color: Color(0xffc5c8c6)),
|
|
bodyLarge: TextStyle(color: Color(0xffc5c8c6)),
|
|
bodyMedium: TextStyle(color: Color(0xffc5c8c6)),
|
|
bodySmall: TextStyle(color: Color(0xffc5c8c6)),
|
|
displayLarge: TextStyle(color: Color(0xffc5c8c6)),
|
|
displayMedium: TextStyle(color: Color(0xffc5c8c6)),
|
|
displaySmall: TextStyle(color: Color(0xffc5c8c6)),
|
|
headlineLarge: TextStyle(color: Color(0xffc5c8c6)),
|
|
headlineMedium: TextStyle(color: Color(0xffc5c8c6)),
|
|
headlineSmall: TextStyle(color: Color(0xffc5c8c6)),
|
|
labelLarge: TextStyle(color: Color(0xffc5c8c6)),
|
|
labelMedium: TextStyle(color: Color(0xffc5c8c6)),
|
|
labelSmall: TextStyle(color: Color(0xffc5c8c6)),
|
|
titleMedium: TextStyle(color: Color(0xffc5c8c6)),
|
|
titleSmall: TextStyle(color: Color(0xffc5c8c6)),
|
|
);
|
|
|
|
const nightTheme = {
|
|
// General text
|
|
'root': TextStyle(backgroundColor: Color(0xFF121212), color: Color(0xffc5c8c6)),
|
|
|
|
// Headers
|
|
'header-h1': TextStyle(color: Color(0xff81a2be)), // Blue for H1
|
|
'header-h2': TextStyle(color: Color(0xff81a2be), fontWeight: FontWeight.w600, fontSize: 22), // Blue for H2
|
|
'header-h3': TextStyle(color: Color(0xff81a2be), fontWeight: FontWeight.w600, fontSize: 20), // Blue for H3
|
|
'header-h4': TextStyle(color: Color(0xff81a2be), fontWeight: FontWeight.w600, fontSize: 18), // Blue for H4
|
|
'header-h5': TextStyle(color: Color(0xff81a2be), fontWeight: FontWeight.w600, fontSize: 16), // Blue for H5
|
|
'header-h6': TextStyle(color: Color(0xff81a2be), fontWeight: FontWeight.w600, fontSize: 14), // Blue for H6
|
|
'header-underline': TextStyle(color: Color(0xff81a2be)), // Blue for underlined headers
|
|
|
|
// Lists
|
|
'list': TextStyle(color: Color(0xffb5bd68)), // Green for lists
|
|
|
|
// Bold text
|
|
'bold': TextStyle(fontWeight: FontWeight.bold, color: Color(0xffb5bd68)), // White for bold text
|
|
|
|
// Italic text
|
|
'italic': TextStyle(fontStyle: FontStyle.italic, color: Color(0xffb5bd68)), // White for italic text
|
|
|
|
// Blockquotes
|
|
'blockquote': TextStyle(color: Color(0xff969896)), // Gray for blockquotes
|
|
|
|
// Code blocks and inline code
|
|
'code': TextStyle(color: Color(0xffde935f), backgroundColor: Color(0xff1d1f21)), // Orange for code
|
|
|
|
// Horizontal rules
|
|
'horizontal-rule': TextStyle(color: Color(0xffcc6666)), // Red for horizontal rules
|
|
|
|
// Horizontal rules
|
|
'command': TextStyle(fontStyle: FontStyle.italic, color: Color(0xffcc6666)), // Red for horizontal rules
|
|
|
|
// Links and images
|
|
'link-text': TextStyle(color: Color(0xff81a2be)), // Blue for link text
|
|
'link-url': TextStyle(color: Color(0xffde935f)), // Orange for link URLs
|
|
'link-reference': TextStyle(color: Color(0xffb5bd68)), // Green for link references
|
|
|
|
// Strikethrough text
|
|
'strikethrough': TextStyle(color: Color(0xffcc6666), decoration: TextDecoration.lineThrough), // Red for strikethrough
|
|
|
|
// Tables
|
|
'table': TextStyle(color: Color(0xffc5c8c6)), // White for tables
|
|
'table-header': TextStyle(color: Color(0xff81a2be), fontWeight: FontWeight.w600), // Blue for table headers
|
|
'table-row': TextStyle(color: Color(0xffc5c8c6)), // White for table rows
|
|
'table-cell': TextStyle(color: Color(0xffc5c8c6)), // White for table cells
|
|
|
|
// Task lists
|
|
'task-list': TextStyle(color: Color(0xffb5bd68)), // Green for task lists
|
|
|
|
// Emphasis and strong
|
|
'emphasis': TextStyle(fontStyle: FontStyle.italic, color: Color(0xffc5c8c6)), // White for emphasis
|
|
'strong': TextStyle(fontWeight: FontWeight.bold, color: Color(0xffc5c8c6)), // White for strong
|
|
|
|
// Comments and quotes
|
|
'comment': TextStyle(color: Color(0xff969896)), // Gray for comments
|
|
'quote': TextStyle(color: Color(0xff969896)), // Gray for quotes
|
|
|
|
'tag-hash': TextStyle(
|
|
color: Colors.pinkAccent,
|
|
fontStyle: FontStyle.italic,
|
|
fontWeight: FontWeight.bold),
|
|
'tag-plus': TextStyle(
|
|
color: Colors.cyan,
|
|
fontStyle: FontStyle.italic,
|
|
fontWeight: FontWeight.bold),
|
|
'tag-at': TextStyle(
|
|
color: Colors.orange,
|
|
fontStyle: FontStyle.italic,
|
|
fontWeight: FontWeight.bold),
|
|
};
|