Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
y047aka committed Feb 11, 2024
1 parent 119e933 commit bf5271e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions example/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ playground { isDarkMode, preview, controlSections } =
, flexDirection column
, rowGap (Css.em 0.5)
, borderRadius (Css.em 1)
, palette (Palette.propsPanel isDarkMode)
, palette (Palette.controlPanel isDarkMode)
]
]
(List.map
Expand All @@ -679,7 +679,7 @@ playground { isDarkMode, preview, controlSections } =
, flexDirection column
, rowGap (Css.em 1)
, borderRadius (Css.em 0.5)
, palette (Palette.propsField isDarkMode)
, palette (Palette.controlSection isDarkMode)
]
]
)
Expand Down
12 changes: 6 additions & 6 deletions package/src/DesignToken/Palette.elm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module DesignToken.Palette exposing
( light, dark
, textOptional
, navigation, navItem, navItemSelected
, playground, propsPanel, propsField, formField
, playground, controlPanel, controlSection, formField
)

{-|
Expand All @@ -11,7 +11,7 @@ module DesignToken.Palette exposing
@docs textOptional
@docs navigation, navItem, navItemSelected
@docs playground, propsPanel, propsField, formField
@docs playground, controlPanel, controlSection, formField
-}

Expand Down Expand Up @@ -114,16 +114,16 @@ playground isDarkMode =
}


propsPanel : Bool -> Palette Hsl360
propsPanel isDarkMode =
controlPanel : Bool -> Palette Hsl360
controlPanel isDarkMode =
light_dark isDarkMode
{ light = { init | background = dark.background |> Maybe.map (setAlpha_fixme 0.1) }
, dark = { init | background = light.background |> Maybe.map (setAlpha_fixme 0.1) }
}


propsField : Bool -> Palette Hsl360
propsField isDarkMode =
controlSection : Bool -> Palette Hsl360
controlSection isDarkMode =
light_dark isDarkMode
{ light = { init | background = light.background |> Maybe.map (setAlpha_fixme 0.7) }
, dark = { init | background = light.background |> Maybe.map (setAlpha_fixme 0.1) }
Expand Down

0 comments on commit bf5271e

Please sign in to comment.