Tech is political: The people under attack in Palestine 🇵🇸, Iran 🇮🇷, and Lebanon 🇱🇧 are people like us. They’re our brothers and sisters, too. Read up on their history, scrutinize what you’re told, and demand respect and accountability. Hide

Frontend Dogma

“functions” News Archive

Definition, related topics, and tag feed

Definition · Supertopics: programming, css (non-exhaustive) · “functions” RSS feed (per email)

Entry (Sources) and Additional TopicsDate#
The Importance of Native Randomness in CSS (alv/css)241
css, randomness
More Easy Light-Dark Mode Switching: “light-dark()” Is About to Support Images (bra)240
css, images, dark-mode
“contrast-color()” Beyond Black and White (una)239
css, colors, contrast
Automated Accessible Text With “contrast-color()” (una)238
css, colors, contrast, accessibility
Abusing Customizable Selects (pat/css)237
forms, html, css
The Odometer Effect (Without JavaScript) (pre/fro)236
css, effects
Native Random Values in CSS (alv)235
css, randomness
Potentially Coming to a Browser “:near()” You (dxn/css)234
css
Weird Issues With CSS Calculations in Safari 26.2 (cit)233
css, safari, apple, browsers
Spiral Scrollytelling in CSS With “sibling-index()” (css)232
css, scrolling, gsap
Building Typographic Scales in CSS With “:heading()”, “sibling-index()”, and “pow()” (stu)231
css, math, typography
How to Use the “Auto” Value With “clamp()” (css)230
how-tos, css
Responsive Hexagon Grid Using Modern CSS (css/css)229
css, math, responsive-design
CSS in 2026: The New Features Reshaping Frontend Development (log)228
css
Focus Rings With Nested “contrast-color()”? (dav)227
css, selectors, focus, contrast
4 CSS Features Every Front-End Developer Should Know in 2026 (arg)226
css, scrolling
Directional CSS With “scroll-state(scrolled)” (una)225
css, scrolling
The New “clamp()” Function in PHP 8.6 (ami)224
php
Creating Scroll-Based Animations in Full view() (pre/css)223
css, animations, scrolling
How to Unit Test a Vue Composable With TypeScript (joh)222
how-tos, testing, vuejs, typescript
Introduction to CSS “if” Statements and Conditional Logic (mar)221
introductions, css, conditionals
“light-dark()” Isn’t Always the Same as “prefers-color-scheme” (ste)220
css, dark-mode, colors
More CSS “random()” Learning Through Experiments (chr/fro)219
css, randomness, experiments
The “Most Hated” CSS Feature: “asin()”, “acos()”, “atan()”, and “atan2()” (mon/css)218
css, math
Building a Multi-Stage Timetable With Modern CSS Using Grid, Subgrid, “round()”, and “mod()” (nil)217
css, grids, layout
Staggered Animation With CSS “sibling-*” Functions (pre/fro)216
animations, css
The “Most Hated” CSS Feature: “tan()” (mon/css)215
css, math
Springs and Bounces in Native CSS (jos)214
css, animations, transitions, effects
CSS Finally Gets Inline Conditional Logic With New “if()” Function (the)213
css, conditionals
Making Context-Aware Components: How CSS “inherit()” Could Simplify Design Systems (stu)212
components, css, custom-properties
Sequential “linear()” Animation With n Elements (css/css)211
css, animations
25 New and Rad Features of CSS (arg/cas)210
videos, css, transitions, animations, cascade, selectors, colors, scrolling
The Thing About “contrast-color” (geo/css)209
css, colors, contrast
The New “progress()” Function in CSS (ami)208
css, examples
CSS Typed Arithmetic (ami/css)207
css, math
The Best CSS Unit Might Be a Combination (mia/odd)206
css, units
What You Need to Know About Modern CSS (2025 Edition) (chr/fro)205
css, animations, pop-overs, forms, shapes, source-order, link-lists
The “Most Hated” CSS Feature: “cos()” and “sin()” (mon/css)204
css, math
Styling Siblings With CSS Has Never Been Easier: Experimenting With “sibling-count” and “sibling-index” (uti)203
css, selectors
Breakpoint Columns, Five Ways—Which Do You Like? (chr/fro)202
css, layout, breakpoints, media-queries, grids
One List to Rule Them All (arg)201
css, selectors, units, learning, link-lists
The CSS “if()” Function (san)200
css, conditionals
What You Need to Know About CSS Color Interpolation (sun/css)199
css, colors, oklch
The CSS “random()” Function (san)198
css, randomness
Should the CSS “light-dark()” Function Support More Than Light and Dark Values? (sun/css)197
css, dark-mode
Learning Web Development: Asynchronous JavaScript—Promises and “async” Functions (rau)196
javascript, asynchronicity, promises
Visualizing Responsive Typography (mia/odd)195
css, typography, responsive-design
Very Early Playing With “random()” in CSS (chr/fro)194
css, randomness
Rolling the Dice With CSS “random()” (jon+/web)193
css, randomness, examples
Obsessing Over Smooth “radial-gradient()” Disc Edges (ana/fro)192
css, gradients
Learning Web Development: Numbers, Variables, Functions in JavaScript (rau)191
javascript, variables
5 Useful CSS Functions Using the New “@function” Rule (una)190
css, examples
The CSS “if()” Function: Conditional Styling Will Never Be the Same (log)189
css, conditionals
Designing for User Font-Size and Zoom (mia/odd)188
design, typography, zooming, css, units
Unconditional Love for Conditional CSS (geo)187
css, conditionals, mixins, container-queries, transitions
Dynamic “nth-child()” Using “sibling-index()” and “if()” (css)186
css, conditionals
Get the Index of an Element Within Its Parent (css)185
css
CSS Conditionals With the New “if()” Function (una)184
css, conditionals
What’s the Difference Between Ordinary Functions and Arrow Functions in JavaScript? (jrs)183
javascript, comparisons
Lightly Poking at the CSS “if()” Function in Chrome 137 (sun/css)182
css, conditionals, chrome, google, browsers
“calc-size()” (kev)181
css
Color Everything in CSS (mon/css)180
css, colors
CSS Color Functions (css)179
guides, css, colors
Exploring the CSS “contrast-color()” Function… a Second Time (dxn/css)178
css, colors, contrast, accessibility
Functional Capturing (kiz)177
css
The New “if()” Function in CSS Has Landed in the Latest Chrome (ami)176
css, conditionals, chrome, google, browsers
CSS “if()” Functions and “reading-flow” (in Chrome 137) (una)175
videos, css, conditionals
Better CSS Shapes Using “shape()” (css/css)174
css, shapes
Move Modal in on a… “shape()” (chr/fro)173
modals, css
How to Have the Browser Pick a Contrasting Color in CSS (jen/web)172
how-tos, browsers, css, colors, contrast
I Think the Ergonomics of Generators Is Growing on Me (mac)171
javascript
Guitar Chords in CSS (sto)170
css, examples
“shape()”: A New Powerful Drawing Syntax in CSS (chr/fro)169
css, shapes, clipping
Why Is Nobody Using the “hwb()” Color Function? (css)168
css, colors
CSS “shape()” Commands (geo/css)167
css, shapes, clipping
“oklch()” (ada)166
css, colors, oklch
Custom Progress Element Using the “attr()” Function (css/fro)165
css, progress-indicators, gradients
The “min()” and “max()” Functions (kev)164
css
To “light-dark()” or Not to “light-dark()” (web)163
videos, css, dark-mode
Use “shape()” for Responsive Clipping (nom)162
css, shapes, clipping, responsive-design
First Look at the Modern “attr()” (sha)161
css, attributes, feature-detection
Relative Colors (sha)160
css, colors, contrast
10 Hidden Gems in Angular That You Should Use159
angular
Functions in CSS?! (mon/css)158
css
How to Use “attr()” in CSS for Columns, Colors, and Font-Size (chr/fro)157
how-tos, css, layout, colors, typography
Intent to Experiment for Longer (kiz)156
chrome, google, browsers, css, conditionals
Clean Code in JavaScript: A Comprehensive Guide155
guides, javascript, principles, conventions, variables, objects, comments, testing, quality
Breakpoint-Free CSS Grid Layouts (kev)154
videos, css, grids, layout
CSS “@function” + CSS “if()” = 🤯 (bra)153
css, conditionals, custom-properties, dark-mode
The “attr()” Function in CSS Now Supports Types (ami)152
css, attributes, types
The Problem With Indirections (dan)151
programming, variables, presentational-html, state-management
Live CSS Colors: What You Can Safely Use (jar/van)150
css, colors
Typecasting and Viewport Transitions in CSS With “tan(atan2())” (mon/css)149
css, transitions, animations, math
Scroll State Queries Are on the Way (and a Bunch More) (kev)148
videos, css, selectors, container-queries, scrolling
New Capabilities for “attr()” (una)147
css
6 CSS Snippets Every Front-End Developer Should Know in 2025 (arg)146
css, custom-properties, transitions, animations, gradients, effects
Generating Test Values Using JavaScript Generators145
typescript, javascript, testing
Opacify HEX Color in CSS (osv)144
css, colors
How to Structure Functions (cfe)143
how-tos, programming
What Is a Callback Function? (cfe)142
javascript, callbacks
CSS “attr()” Gets an Upgrade (bra)141
css
How to Wait for the “sibling-count()” and “sibling-index()” Functions (mon/css)140
how-tos, css, selectors
CSS “light-dark()” (may/5t3)139
css, dark-mode
The Future of CSS: Construct “<custom-ident>” and “<dashed-ident>” Values With “ident()” (bra)138
css, transitions
“calc-size()” and Interpolate Size (kev/5t3)137
css, animations
How to Clamp the Lightness of a Relative Color in CSS (ang)136
how-tos, css, colors
Let’s Learn Generators in JavaScript135
javascript
Color in CSS or How I Learned to Disrespect Tennis (mat/btc)134
videos, css, colors
Possible Future CSS: Tree-Counting Functions and Random Values (kiz)133
css, randomness
CSS “min()” All the Things (sma)132
css
I Didn’t Know You Could Use Sibling Parameters as Default Values in Functions (mac)131
javascript
New Values and Functions in CSS (alv)130
css
Replacing Sass’ “darken()” and “lighten()” Functions With Pure CSS (sjo)129
css, sass
JavaScript Generators Explained, but on a Senior-Level (jan)128
javascript
Relative Color Syntax—Basic Use Cases (chr/fro)127
css, colors, browsers, support
“stripes()”: The Border Function You Never Knew You Needed (jos)126
css, borders
Garbage Collection and Closures (jaf)125
javascript, closures, garbage-collection
Better Ways to Use Async Functions in JavaScript124
javascript, asynchronicity, promises
CSS Stuff I’m Excited After the Last CSSWG Meeting (mon/css)123
css, transitions, anchor-positioning
Deploy AWS Lambda Functions With Serverless Framework and Node.js122
deploying, aws, serverless, lambda, nodejs
A Text-Reveal Effect Using “conic-gradient()” in CSS (pre/fro)121
css, gradients, effects
Mastering JavaScript Generators120
javascript
Lesser-Known CSS Features That You Should Learn Now119
css
One of the Boss Battles of CSS Is Almost Won! Transitioning to “auto” (chr/fro)118
css, transitions, animations
How to Compose JavaScript Functions That Take Multiple Parameters (The Epic Guide) (jrs)117
guides, how-tos, javascript
No More Pixel Rounding Issues (css)116
css, tips-and-tricks
“contrast-color()” Is a Good Thing, but Also Solving the Problem at the Wrong Layer (eri)115
accessibility, colors, contrast, css
On Compliance vs. Readability: Generating Text Colors With CSS (lea)114
css, colors, compliance, readability, comparisons
The CSS Stepped Value Math Functions Are Now in Baseline 2024 (rac)113
css, math, browsers, support, web-platform
Shades of Grey With “color-mix()” (mic)112
css, colors
Creating Fluid Typography With the CSS “clamp()” Function111
css, typography, liquid-design
JavaScript Features That Most Developers Don’t Know110
javascript
What’s Going On in Dark Theme / Light Theme Land (chr/fro)109
css, dark-mode
CSS Color-Scheme-Dependent Colors With “light-dark()” (bra)108
css, colors, dark-mode
How to Use jQuery’s “ajax()” Function for Asynchronous HTTP Requests107
how-tos, jquery, ajax, asynchronicity
New CSS That Can Actually Be Used in 2024 (tho)106
css, logical-properties, container-queries, selectors, nesting, cascade, grids
Make Your Functions More Reusable With Generics (mat)105
typescript, generics, maintainability
Creating Color Palettes With the CSS “color-mix()” Function (mic)104
css, colors, color-palettes
Future of CSS: Functions and Mixins103
css, mixins
The New CSS Math: “pow()”, “sqrt()”, and Exponential Friends (dan)102
css, math
CSS Mixins and Functions Explainer (mia/odd)101
css, mixins
When to Use the “min()” or “max()” Function (css)100
css, tips-and-tricks
The New CSS Color Format You Didn’t Know You Needed; “oklch()”99
css, colors, oklch, tailwind
A Practical Introduction to Scroll-Driven Animations With CSS “scroll()” and “view()” (arg/cod)98
introductions, scrolling, animations, css
Dynamically Darken or Lighten a Color in CSS (bpu)97
css, colors
“oklch()” Retains Perceived Lightness for Different Hue Angles (ste)96
css, colors, oklch
Cascade Layers, CSS Functions, and More CSS With Miriam Suzanne (mia+/sho)95
podcasts, interviews, css, cascade
The New CSS Math: “rem()” and “mod()” (dan)94
css, math
The New “light-dark()” Function to Switch Theme Color in CSS (ami)93
css, dark-mode
A Couple of New CSS Functions I’d Never Heard Of (chr)92
css
CSS Relative Color Syntax (arg)91
css, colors
The Future of CSS: Easy Light-Dark Mode Color Switching With “light-dark()” (bra)90
css, dark-mode
Deploy and Test AWS Step Functions With Node.js (app)89
nodejs, aws, deploying, testing
The Path to Awesome CSS Easing With the “linear()” Function (jhe/sma)88
css, animations
Arrow Functions vs. Traditional Functions in JavaScript (cfe)87
videos, javascript, comparisons
Realistic CSS Animations and the “linear()” Timing Function86
css, animations, time
How to Use Headless Chrome in Serverless Functions With a 50 MB Limit (ste)85
how-tos, headless, serverless, browsers, google, chrome
How to Use the CSS Grid “repeat()” Function84
how-tos, css, grids, layout
Creating Custom Easing Effects in CSS Animations Using the “linear()” Function (mic/mdn)83
css, animations
Fluid vs. Responsive Typography With CSS Clamp (its/log)82
css, typography, responsive-design
Useful Functions for [an] HTTP Server81
deno, servers, http
New CSS Color Spaces and Functions in All Major Engines (rac)80
css, colors, browsers, support
How to Draw Any Regular Shape With Just One JavaScript Function (mdn)79
how-tos, javascript
A Comprehensive Guide to Using Langchain.js and Google Cloud Functions for AI Applications78
guides, langchain, google, gcp, ai
Write Better CSS by Borrowing Ideas From JavaScript Functions (sma)77
css, javascript, quality
Clojure Transducers: Your Composable Data Pipelines (jan)76
clojure
Improving CSS Shapes With Trigonometric Functions (dan)75
css, shapes
TypeScript Function Types: A Beginner’s Guide74
guides, typescript
Function Overloading in TypeScript73
typescript
Creating a Clock With the New CSS “sin()” and “cos()” Trigonometry Functions (sto/css)72
css
10 Helpful JavaScript Utility Functions71
javascript
CSS Color Functions and Custom Properties (mat)70
css, colors, custom-properties
Why Would Anyone Need JavaScript Generator Functions?69
javascript
Easy Fluid Typography With “clamp()” Using Sass Functions (uti/sma)68
liquid-design, typography, css, sass
How to Return Multiple Values From a Function in JavaScript (ami)67
how-tos, javascript
Useful JavaScript Math Functions and How to Use Them66
javascript, math
Use Cases for CSS Comparison Functions (sha)65
css
The Seventh Way to Call a JavaScript Function Without Parentheses64
javascript
A Simple “clamp()” Function in PHP (ami)63
php
Checking if a JavaScript Native Function Is Monkey Patched62
javascript
Intro to Serverless Functions (net)61
introductions, serverless, netlify
Master Higher-Order Functions in JavaScript60
javascript
Misusing TypeScript Assertion Functions for Fun and Profit (chr)59
typescript
Debugging Node Serverless Functions on AWS Lambda58
nodejs, debugging, aws, serverless, lambda
JavaScript Function Composition: What’s the Big Deal?57
javascript
When to Use a Function Expression vs. Function Declaration56
javascript, comparisons
How to Use CSS Math Functions: “calc”, “min”, “max”, “clamp” (sta)55
how-tos, css, math
Giving New Meanings to the Color Functions in CSS (alv)54
css, colors
Arrow Functions in JavaScript: How to Use Fat and Concise Syntax53
how-tos, javascript
An Introduction to AWS CloudFront Functions (hon)52
introductions, aws, cloudfront, content-delivery
How to Use Higher-Order Functions in JavaScript51
how-tos, javascript
State of the Web: Serverless Functions50
serverless, edge-computing
Functional Programming in PHP: Higher-Order Functions49
php, programming
“min()”, “max()”, and “clamp()”: Three Logical CSS Functions to Use Today (una)48
css
4 Important Differences Between Regular and Arrow Functions47
javascript, comparisons
Practical Uses of CSS Math Functions: “calc”, “clamp”, “min”, “max” (5t3)46
css, math
10 Utility Functions for Working With Objects in JavaScript45
javascript, objects
5 Different Ways to Declare Functions in jQuery (cra)44
jquery, javascript
Things You Can Do With CSS Today (bel/sma)43
css, masonry, layout, selectors, units
CSS “min()”, “max()”, and “clamp()” (una)42
css, typography
The Expanding Gamut of Color on the Web (oll/css)41
colors, css, oklch
CSS Functions Guide (eri/css)40
guides, css, selectors
Recursive Functions in TypeScript39
typescript
Creating Color Themes With Custom Properties, HSL, and a Little “calc()” (css)38
theming, colors, css, custom-properties
The CSS Calculating Function Guide (chr/css)37
guides, css, math, examples
The Best Color Functions in CSS? (chr/css)36
css, colors
Dynamically Darken a Color in CSS (jim)35
css, filters, colors
Intrinsically Responsive CSS Grid With “minmax()” and “min()” (vam)34
intrinsic-design, responsive-design, css, grids, layout
A Quick Intro to Higher-Order Functions in JavaScript33
introductions, javascript
Keep Math in the CSS (chr/css)32
css, math
Fun Tip: Use “calc()” to Change the Height of a Hero Component (css)31
css
New Syntax for JS “Function Stuff” (tab)30
javascript, operators
ES6 Didn’t Introduce Default Parameters (Attention to Detail)29
ecmascript, javascript
Using Default Parameters in ES6 (lou/css)28
ecmascript, javascript
How JavaScript Rest Parameters Actually Work27
javascript
Exploring Data With Serverless and Vue: Automatically Update GitHub Files With Serverless Functions (sar/css)26
vuejs, serverless, github
JavaScript Functions That Define and Rewrite Themselves25
javascript
Using ES2017 Async Functions (css)24
ecmascript, javascript, asynchronicity
What’s a Transducer? (rag)23
programming, javascript, concepts
JavaScript Operators, Conditionals, and Functions22
javascript, operators, conditionals
How to Write Your Own Custom Sass Functions21
how-tos, sass, examples
Working With Colors Guide (sar/css)20
guides, colors, units, preprocessors, sass, less, stylus, blend-modes, css
Let’s Learn ES2015 (css)19
ecmascript, javascript, variables, operators, examples
Understanding Transducers in JavaScript (rom)18
javascript
Getting Started With CSS “calc()” (ana/sma)17
introductions, css
Understanding Transducers16
programming, examples
A Closer Look at Functions in Go15
go
Learning to Love the Boring Bits of CSS (sto/ali)14
css, units, selectors
The “color()” Function (tab)13
css
Dynamic Function Names in JavaScript (mar)12
naming, javascript
Defining and Using Functions in PHP11
php
Array Handling Functions10
php, arrays
15 JavaScript String Functions9
javascript, strings
The CSS3 “matrix()” Transform for the Mathematically Challenged (zol)8
css, transforms, math
The Document Ready Function7
jquery
On “attr()” and “calc()” (lea)6
css
Simple JavaScript Function to Include CSS5
javascript, css
Will JavaScript Function Without the “function” Statement? (cra)4
javascript
Firefox 4: CSS3 “calc()” (moz)3
css, firefox, mozilla, browsers
Scope in JavaScript (mik/dig)2
javascript, scope
Variable Scope for New Programmers (jus/dig)1
javascript, variables, scope