Skip to content

Commit

Permalink
Solara
Browse files Browse the repository at this point in the history
  • Loading branch information
ideyaa committed Sep 17, 2024
1 parent 02751b6 commit 72fdbba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solara/lib/core/scripts/theme_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def generate_kotlin
kotlin_code = "import androidx.compose.ui.graphics.Color\n"
kotlin_code += "import androidx.compose.ui.unit.dp\n"
kotlin_code += "import androidx.compose.ui.unit.sp\n\n"
kotlin_code += "object #{@theme['name']} {\n"
kotlin_code += "object BrandTheme {\n"
kotlin_code += generate_kotlin_colors
kotlin_code += generate_kotlin_typography
kotlin_code += generate_kotlin_spacing
Expand All @@ -35,7 +35,7 @@ def generate_kotlin

def generate_swift
swift_code = "import SwiftUI\n\n"
swift_code += "struct #{@theme['name']} {\n"
swift_code += "struct BrandTheme {\n"
swift_code += generate_swift_colors
swift_code += generate_swift_typography
swift_code += generate_swift_spacing
Expand Down

0 comments on commit 72fdbba

Please sign in to comment.