🏠

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 59 59 6
item-1 64 91 17
item-2 83 45 17
item-3 92 3 8
item-4 98 34 4
item-5 74 36 8
item-6 94 56 11
item-7 12 80 7
item-8 85 1 14
item-9 22 89 5
item-10 4 5 7
item-11 60 98 3
item-12 16 83 18
item-13 51 50 17
item-14 61 88 21
item-15 1 2 1
item-16 14 30 9
item-17 56 55 15
item-18 84 9 2
item-19 22 7 12
index value
0 21
1 28
2 89
3 36
4 22
5 41
6 90
7 17
8 16
9 43
10 79
11 16
12 74
13 80
14 99

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…