Initial commit
This commit is contained in:
45
lib/utils/code_highlight_theme.dart
Normal file
45
lib/utils/code_highlight_theme.dart
Normal file
@@ -0,0 +1,45 @@
|
||||
// SPDX-FileCopyrightText: 2019-Present Christian Kußowski
|
||||
// SPDX-FileCopyrightText: 2019-Present Contributors to FluffyChat
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import 'package:flutter/widgets.dart';
|
||||
|
||||
const hightlightTextColor = Color(0xffabb2bf);
|
||||
const atomOneBackgroundColor = Color(0xff282c34);
|
||||
const atomOneDarkTheme = {
|
||||
'root': TextStyle(color: hightlightTextColor),
|
||||
'comment': TextStyle(color: Color(0xff5c6370), fontStyle: FontStyle.italic),
|
||||
'quote': TextStyle(color: Color(0xff5c6370), fontStyle: FontStyle.italic),
|
||||
'doctag': TextStyle(color: Color(0xffc678dd)),
|
||||
'keyword': TextStyle(color: Color(0xffc678dd)),
|
||||
'formula': TextStyle(color: Color(0xffc678dd)),
|
||||
'section': TextStyle(color: Color(0xffe06c75)),
|
||||
'name': TextStyle(color: Color(0xffe06c75)),
|
||||
'selector-tag': TextStyle(color: Color(0xffe06c75)),
|
||||
'deletion': TextStyle(color: Color(0xffe06c75)),
|
||||
'subst': TextStyle(color: Color(0xffe06c75)),
|
||||
'literal': TextStyle(color: Color(0xff56b6c2)),
|
||||
'string': TextStyle(color: Color(0xff98c379)),
|
||||
'regexp': TextStyle(color: Color(0xff98c379)),
|
||||
'addition': TextStyle(color: Color(0xff98c379)),
|
||||
'attribute': TextStyle(color: Color(0xff98c379)),
|
||||
'meta-string': TextStyle(color: Color(0xff98c379)),
|
||||
'built_in': TextStyle(color: Color(0xffe6c07b)),
|
||||
'attr': TextStyle(color: Color(0xffd19a66)),
|
||||
'variable': TextStyle(color: Color(0xffd19a66)),
|
||||
'template-variable': TextStyle(color: Color(0xffd19a66)),
|
||||
'type': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-class': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-attr': TextStyle(color: Color(0xffd19a66)),
|
||||
'selector-pseudo': TextStyle(color: Color(0xffd19a66)),
|
||||
'number': TextStyle(color: Color(0xffd19a66)),
|
||||
'symbol': TextStyle(color: Color(0xff61aeee)),
|
||||
'bullet': TextStyle(color: Color(0xff61aeee)),
|
||||
'link': TextStyle(color: Color(0xff61aeee)),
|
||||
'meta': TextStyle(color: Color(0xff61aeee)),
|
||||
'selector-id': TextStyle(color: Color(0xff61aeee)),
|
||||
'title': TextStyle(color: Color(0xff61aeee)),
|
||||
'emphasis': TextStyle(fontStyle: FontStyle.italic),
|
||||
'strong': TextStyle(fontWeight: FontWeight.bold),
|
||||
};
|
||||
Reference in New Issue
Block a user