Skip to content

Instantly share code, notes, and snippets.

View benjatron's full-sized avatar

Ben Davidson benjatron

View GitHub Profile

Hi 👋 My name is Ben Davidson

Front End Developer

I've been writing code since the 20th century, taking a decade hiatus for design and performance. My focus has primarily been on front-end technologies like HTML, S(CSS), JS(X), and PHP but with dalliances in mobile application development.

<img src="https://img.shields.io/github/followers/benjatron?logo=github&amp;style=for-the-badge&amp;color=0891b2&amp;labelColor=1c1917" />

@benjatron
benjatron / function-brace.scss
Last active February 3, 2023 02:20
Shorthand calculator for clamped values
/// Shorthand calculator for clamped values
///
/// Synonym-ish with clamp(). Uses pixel values for inputs, but
/// compiles to rem and vw values. Assumes a default minimum and
/// maximum value that can be overridden.
///
/// @author Ben Davidson (@benjatron)
///
/// @link https://utopia.fyi/type/calculator
/// @link https://chrisburnell.com/clamp-calculator/