
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@gladeye/tailwind-fluid-plugin
Advanced tools
A Tailwind CSS plugin for fluid scaling based on screen or container sizes.
A Tailwind CSS plugin that enables fluid scaling using CSS clamp(). This plugin creates smooth transitions between different viewport sizes for properties like spacing, typography, and dimensions.
https://gladeye-tailwind-fluid-plugin.vercel.app/
Use the -fluid-[]
modifier with supported properties to create smooth scaling between breakpoints:
<div class="pt-fluid-[sm=1,md=2,lg=4,xl=8]">
<!-- Padding-top scales smoothly between breakpoints -->
</div>
The plugin also supports container queries using the @
prefix to specify container sizes:
<!-- Define a container (named or not) -->
<div class="@container/main">
<!-- Element that scales based on container size -->
<div class="h-fluid-[@container/main,@3xs=100px,@3xl=400px]">
<!-- Height scales smoothly between container sizes -->
</div>
</div>
The plugin provides fluid scaling utilities in the format: {property}-fluid-[breakpoints]
{property}-fluid-[breakpoint1=value1,breakpoint2=value2,...]
{property}-fluid-[value1,value2]
{property}-fluid-[@containerName,breakpoint1=value1,breakpoint2=value2,...]
{property}-fluid-[@containerName,value1,value2]
Where:
property
is the CSS property to scale (see supported properties below)containerName
is the name of the container to scale the property for. This is required for container query scaling.breakpoints
are your defined screen/container sizes (sm, md, lg, etc.) if the breakpoint is omitted, the plugin will use the min/max breakpoints defined in the @theme sectionvalues
can be Tailwind theme spacing values, explicit dimensions(px or rem)/* Using Tailwind spacing units */
<div className="mb-fluid-[4,6]"/>
/* Using pixel units */
<div className="mb-fluid-[10px,23px]"/>
/* Using rem units */
<div className="mb-fluid-[3rem,6rem]"/>
/*Using container query*/
<div className="@container">
<div className="h-fluid-[@container,100px,300px]"/>
</div>
/* Using named container query */
<div className="@container/foo">
<div className="h-fluid-[@container/foo,100px,300px]"/>
</div>
https://gladeye-tailwind-fluid-plugin.vercel.app/
In your globals.css add the following
@import "tailwindcss";
@plugin "@gladeye/tailwind-fluid-plugin";
@theme {
/* the Figma design for the smallest screen size */
--breakpoint-design-min: 320px;
/* the Figma design for the largest screen size */
--breakpoint-design-max: 1320px;
/* the Figma design for the smallest container size */
--breakpoint-c-min: 2rem;
/* the Figma design for the largest container size */
--breakpoint-c-max: 10rem;
}
You can define custom fluid scaling variables in your @theme
section that will be automatically calculated and available throughout your application. This is useful for values that need to scale fluidly but are used in multiple places.
@theme {
/* Define the breakpoints for your fluid variable */
--fluid-site-gutter-breakpoint-design-min: 320px;
--fluid-site-gutter-breakpoint-design-max: 1320px;
/* Define the values for your fluid variable */
--fluid-site-gutter-value-min: 16px;
--fluid-site-gutter-value-max: 24px;
/* Adding them to the "spacing" namespace makes "sgs" available for utility classes, e.g "ml-sgs */
--spacing-sgs: var(--fluid-site-gutter);
}
The plugin will automatically:
--fluid-{name}
that you can referenceThe naming convention for the theme variables is:
--fluid-{name}-breakpoint-design-min
: The minimum breakpoint--fluid-{name}-breakpoint-design-max
: The maximum breakpoint--fluid-{name}-value-min
: The minimum value--fluid-{name}-value-max
: The maximum valueThe resulting fluid variable will be available as --fluid-{name}
.
inset
top
right
bottom
left
w
h
max-w
max-h
text
tracking
space-x
space-y
opacity
bg
p
pt
pr
pb
pl
px
py
m
mt
mr
mb
ml
mx
my
gap
gap-x
gap-y
The plugin calculates fluid values using CSS clamp()
to create smooth transitions between breakpoints. For example, if you use:
<div class="mt-fluid-[sm=1,lg=4]"></div>
The plugin will:
This plugin uses CSS clamp()
which is supported in all modern browsers. For browser compatibility details, check Can I Use.
FAQs
A Tailwind CSS plugin for fluid scaling based on screen or container sizes.
We found that @gladeye/tailwind-fluid-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.