0
0
Fork 0

Separate methods for theme style and meta color tags (#29802)

This commit is contained in:
Matt Jankowski 2024-04-05 05:52:43 -04:00 committed by GitHub
parent 52ab8a59c6
commit b61ae28f8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 123 additions and 14 deletions

View file

@ -6,8 +6,10 @@ require 'yaml'
class Themes
include Singleton
MASTODON_DARK_THEME_COLOR = '#191b22'
MASTODON_LIGHT_THEME_COLOR = '#f3f5f7'
THEME_COLORS = {
dark: '#191b22',
light: '#f3f5f7',
}.freeze
def initialize
@conf = YAML.load_file(Rails.root.join('config', 'themes.yml'))