RicoTrevisan

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

slouchpie

This CSS var solution to dynamic sizing is super helpful. Thanks!

Where Next?

Popular in Screencasts Top

New
omgneering
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
lawik
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
New
ElixirCasts
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
Corys
I got a new video up on doing multi tenancy in phoenix 1.3 using Apartmentex. Lemme know if any questions. :grinning:
New
ElixirCasts
I made a screencast on how to use Torch to create beautiful admin pages. Posted via Devtalk (see this thread for details).
New
CinderellaMan
Hello everyone :wave: Officially this is the most intense/demanding video that I ever released :slight_smile: The video sums up the wor...
New
aseigo
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
joebew42
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 Top

yurko
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
Tee
can someone please explain to me how Enum.reduce works with maps
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
script
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
vac
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
freewebwithme
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
chensan
I have a User schema with a :from_id field set to type :string: defmodule TweetBot.Repo.Migrations.CreateUsers do use Ecto.Migration ...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 42633 214
New
ovidiubadita
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
baxterw3b
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

We're in Beta

About us Mission Statement