RicoTrevisan
Advanced Tailwind tricks inspired by Shadcn
These tips just solved a big problem for me, figured I would share it here:
I was struggling to make this work:
~H"""
<div class={"ml-[#{@level / 2}rem]"} </div>
"""
But this worked:
~H"""
<div
class="ml-[--left-margin]"
style={"--left-margin: #{@level / 2}rem"}>
</div>
"""
Most Liked
slouchpie
This CSS var solution to dynamic sizing is super helpful. Thanks!
1
Popular in Screencasts
By Tensor Programming, a refresh to his original series:
New
I made follow-up video for getting started with GenServer. This video goes over the syntax of handle_call, handle_cast and handle_info c...
New
Hey everyone, we thought it was about time we had an official streamers thread. Please feel free to add yours in this post (itâs a wiki) ...
New
Posted via Devtalk (see this thread for details).
New
I made an screencast that looks at Sobelow, a project that scans Phoenix applications for security issues. If you havenât used Sobelow be...
New
I got a new video up on doing multi tenancy in phoenix 1.3 using Apartmentex.
Lemme know if any questions. :grinning:
New
I made a screencast on how to use Torch to create beautiful admin pages.
Posted via Devtalk (see this thread for details).
New
Hello everyone :wave:
Officially this is the most intense/demanding video that I ever released :slight_smile:
The video sums up the wor...
New
In this weekâs episode we look at the basics of how clustering Elixir nodes works, and how to automate their creation using libcluster (u...
New
Hello :wave:
This is a follow up for the https://forum.elixirforum.net/t/good-elixir-tdd-resources/17482 thread.
It was my intention t...
New
Other popular topics
Here are few pieces of (common) Linux knowledge that we use for reasonably small one server apps. We use Ubuntu but this should work for ...
New
can someone please explain to me how Enum.reduce works with maps
New
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
If I have a string â1000 cfu/mlâ . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New
Hi,
I'm quite new in Elixir and I'm trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and ...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run âelixirâ comma...
New
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Hi guys, iâm new in the Elixir world, and i have to say, that i love it!
iâm having some problem to understand anonymous functions with ...
New







