How to specify colors from a colormap to use in a theme in makie?

Some things to fix in your MWE:

1.- commas. Inside the parenthesis after palette and lines, so that you are passing a tuple. Also you need a comma between those two lines.

2.-The way of constructing a list of colors from a name is with the function cgrad (maybe it should be an example?). This seems to work:

julia> function makie_theme_test()

           with_theme(
               Theme(
                   palette=(color = cgrad(:Dark2_8,10),),
                   Lines = (cycle = [:color],)
               )
           ) do

               n = 100
               x = LinRange(0, 1, n)
               f = x .^ 2
               g = sin.(2π .* x)

               fig = Figure()
               ax = Axis(fig[1, 1], xlabel="x", ylabel="y")
               lines!(x, f)
               lines!(x, g)
               display(fig)
           end

       end