🏠

Dynamic CSS Live Code!

Miriam Suzanne | @mirisuzanne | @oddbird

OddBird

Dynamic CSS Live Code!

Design 4 Drupal — June 27, 2019

Just a series of links and images and ideas…

OddBird Faces

OddBird Full-Stack Agency

Custom Applications | Design Systems | Refactors

Client Day Planner

Screenshot of schedule grid

Intrinsic Design

truly fluid, meaningful, mixed-approach

Dynamic CSS

styles based on dynamic parameters

Please Don’t Use It

2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
1
2
3
4
5
6
7
8
9
10

This one is for Maria [permalink / source]

putting it all together… [permalink / source]

name x value y value size == z value
item-0 11 62 3
item-1 93 23 11
item-2 19 10 6
item-3 47 57 3
item-4 79 36 1
item-5 3 59 21
item-6 92 37 13
item-7 95 8 0
item-8 64 72 10
item-9 56 83 9
item-10 97 97 16
item-11 57 14 11
item-12 91 82 23
item-13 50 67 21
item-14 97 48 19
item-15 52 21 9
item-16 78 41 20
item-17 52 37 0
item-18 25 91 3
item-19 11 28 14
index value
0 29
1 32
2 45
3 23
4 73
5 22
6 26
7 92
8 51
9 50
10 58
11 2
12 95
13 35
14 71

Hue is Radial

* {
  --complement: calc(var(--h) - 180);
  background: hsl(var(--complement), var(--s), var(--l));
}

Lightness is “Clamped

* {
  --threshold: 55;
  --contrast: calc((var(--l) - var(--threshold)) * -100%);
  color: hsl(var(--h), var(--s), var(--contrast));
}

Complement

Levitated Toy Factory at Beyond Tellerand

Animated sprites from Monster Slayer by Krystal Campioni [permalink / source]

Rachel Andrew | @rachelandrew

gridbyexample.com

examples, templates, and fallbacks

CSS is Awesome (overflow meme)

¯\_(ツ)_/¯ what were you hoping for?

Declarative Syntax

!=

Static Results

CSS is Awesome

Inspired by Stacy Kvernmo [permalink / source]

Stay in touch…