🏠

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 95 51 15
item-1 67 53 18
item-2 0 84 17
item-3 90 43 1
item-4 55 65 11
item-5 40 7 12
item-6 47 4 0
item-7 65 59 0
item-8 49 26 18
item-9 49 84 19
item-10 64 33 9
item-11 97 59 19
item-12 40 96 21
item-13 18 4 9
item-14 29 6 18
item-15 18 3 11
item-16 96 21 7
item-17 20 21 7
item-18 80 13 22
item-19 95 87 10
index value
0 20
1 36
2 44
3 0
4 74
5 28
6 57
7 64
8 7
9 27
10 58
11 51
12 62
13 61
14 67

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…