Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,7 @@ internal object PolkadotColorsPrimitives {
val AdvancedAmethystAmethyst100 = Color(0xFFEDE9FE)
val AdvancedAmethystAmethyst500 = Color(0xFF7C3AED)
val AdvancedEmeraldEmerald100 = Color(0xFFD1FAE5)
val AdvancedEmeraldEmerald200 = Color(0xFFA7F3D0)
val AdvancedEmeraldEmerald300 = Color(0xFF6EE7B7)
val AdvancedEmeraldEmerald400 = Color(0xFF34D399)
val AdvancedEmeraldEmerald50 = Color(0xFFECFDF5)
val AdvancedEmeraldEmerald500 = Color(0xFF10B981)
val AdvancedEmeraldEmerald600 = Color(0xFF059669)
val AdvancedEmeraldEmerald700 = Color(0xFF065F46)
val AdvancedEmeraldEmerald800 = Color(0xFF064E3B)
val AdvancedEmeraldEmerald900 = Color(0xFF022C22)
val AdvancedEmeraldEmerald950 = Color(0xFF011B15)
val AdvancedGarnetGarnet100 = Color(0xFFFEE2E2)
val AdvancedGarnetGarnet800 = Color(0xFF7F1D1D)
val AdvancedOnyxOnyx100 = Color(0xFFE5E7EB)
Expand All @@ -38,16 +29,7 @@ internal object PolkadotColorsPrimitives {
val AdvancedSapphireSapphire100 = Color(0xFFDBEAFE)
val AdvancedSapphireSapphire800 = Color(0xFF1E3A8A)
val AdvancedTopazTopaz100 = Color(0xFFFFEDD5)
val AdvancedTopazTopaz200 = Color(0xFFFED7AA)
val AdvancedTopazTopaz300 = Color(0xFFFDBA74)
val AdvancedTopazTopaz400 = Color(0xFFFB923C)
val AdvancedTopazTopaz50 = Color(0xFFFFF7ED)
val AdvancedTopazTopaz500 = Color(0xFFF97316)
val AdvancedTopazTopaz600 = Color(0xFFC2410C)
val AdvancedTopazTopaz700 = Color(0xFF9A3412)
val AdvancedTopazTopaz800 = Color(0xFF7C2D12)
val AdvancedTopazTopaz900 = Color(0xFF431407)
val AdvancedTopazTopaz950 = Color(0xFF240A02)
val AdvancedTurquoiseTurquoise100 = Color(0xFFCFFAFE)
val AdvancedTurquoiseTurquoise600 = Color(0xFF0891B2)
val AlphaBlackBlackAlpha0 = Color(0x00000000)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,19 @@ class TokyoPalette : PolkadotColorsPalette() {
accent = PolkadotColorsPrimitives.BlueBlue500,
action = Bg.Action(
active = PolkadotColorsPrimitives.ZincZinc200,
disabled = PolkadotColorsPrimitives.AdvancedRubyRuby200,
disabled = PolkadotColorsPrimitives.ZincZinc200,
error = PolkadotColorsPrimitives.RedRed200,
primary = PolkadotColorsPrimitives.AdvancedRubyRuby700,
primaryHover = PolkadotColorsPrimitives.ZincZinc850,
primaryInverted = PolkadotColorsPrimitives.NeutralWhite,
primaryInvertedHover = PolkadotColorsPrimitives.ZincZinc100,
secondary = PolkadotColorsPrimitives.AdvancedRubyRuby300,
secondary = PolkadotColorsPrimitives.ZincZinc200,
secondaryHover = PolkadotColorsPrimitives.ZincZinc150,
secondaryInverted = PolkadotColorsPrimitives.AdvancedRubyRuby900,
secondaryInverted = PolkadotColorsPrimitives.ZincZinc850,
secondaryInvertedHover = PolkadotColorsPrimitives.ZincZinc700,
tertiary = PolkadotColorsPrimitives.AdvancedRubyRuby100,
tertiaryHover = PolkadotColorsPrimitives.ZincZinc300,
tertiaryInverted = PolkadotColorsPrimitives.AdvancedRubyRuby800,
tertiaryInverted = PolkadotColorsPrimitives.ZincZinc700,
tertiaryInvertedHover = PolkadotColorsPrimitives.ZincZinc600
),
illustration = Bg.Illustration(
Expand All @@ -56,10 +56,10 @@ class TokyoPalette : PolkadotColorsPalette() {
lightMuted = PolkadotColorsPrimitives.AdvancedRubyRuby100
),
selection = Bg.Selection(
containerActive = PolkadotColorsPrimitives.AdvancedRubyRuby100,
containerActive = PolkadotColorsPrimitives.ZincZinc100,
containerActiveInverted = PolkadotColorsPrimitives.ZincZinc900,
containerHover = PolkadotColorsPrimitives.AdvancedRubyRuby50,
containerHoverInverted = PolkadotColorsPrimitives.AdvancedRubyRuby900
containerHover = PolkadotColorsPrimitives.ZincZinc50,
containerHoverInverted = PolkadotColorsPrimitives.ZincZinc850
),
status = Bg.Status(
error = PolkadotColorsPrimitives.RedRed600,
Expand All @@ -79,10 +79,10 @@ class TokyoPalette : PolkadotColorsPalette() {
)
)
override val fg = Fg(
disabled = PolkadotColorsPrimitives.AdvancedRubyRuby500,
disabled = PolkadotColorsPrimitives.ZincZinc400,
error = PolkadotColorsPrimitives.RedRed600,
link = PolkadotColorsPrimitives.AdvancedRubyRuby700,
linkHover = PolkadotColorsPrimitives.AdvancedRubyRuby800,
linkHover = PolkadotColorsPrimitives.PinkPink900,
primary = PolkadotColorsPrimitives.AdvancedRubyRuby900,
primaryInverted = PolkadotColorsPrimitives.ZincZinc100,
secondary = PolkadotColorsPrimitives.AdvancedRubyRuby800,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,24 @@ package io.pcf.polkadotapp.designsystem.themes
import io.pcf.polkadotapp.designsystem.colors.PolkadotColorsPalette
import io.pcf.polkadotapp.designsystem.colors.BerlinDayPalette
import io.pcf.polkadotapp.designsystem.colors.BerlinNightPalette
import io.pcf.polkadotapp.designsystem.colors.LisbonPalette
import io.pcf.polkadotapp.designsystem.colors.MaltaPalette
import io.pcf.polkadotapp.designsystem.colors.TokyoPalette
import io.pcf.polkadotapp.designsystem.typography.PolkadotTypography
import io.pcf.polkadotapp.designsystem.typography.PolkadotDefaultTypography

enum class PolkadotAppTheme(val id: String) {
BerlinNight(id = "Berlin Night"),
BerlinDay(id = "Berlin Day"),
Lisbon(id = "Lisbon"),
Malta(id = "Malta"),
Tokyo(id = "Tokyo");

fun colors(): PolkadotColorsPalette = when (this) {
BerlinNight -> BerlinNightPalette()
BerlinDay -> BerlinDayPalette()
Lisbon -> LisbonPalette()
Malta -> MaltaPalette()
Tokyo -> TokyoPalette()
}

fun typography(): PolkadotTypography = when (this) {
BerlinNight -> PolkadotDefaultTypography()
BerlinDay -> PolkadotDefaultTypography()
Lisbon -> PolkadotDefaultTypography()
Malta -> PolkadotDefaultTypography()
Tokyo -> PolkadotDefaultTypography()
}

Expand Down