Skip to content

Instantly share code, notes, and snippets.

View alanbsmith's full-sized avatar
👋

Alan B Smith alanbsmith

👋
View GitHub Profile
@alanbsmith
alanbsmith / us-cities.json
Created February 22, 2024 21:23
Mock US CIty Data
This file has been truncated, but you can view the full file.
[
{
"city": "New York",
"cityAscii": "New York",
"stateId": "NY",
"stateName": "New York",
"countyFips": "36081",
"countyName": "Queens",
"lat": "40.6943",
"lng": "-73.9249",
@alanbsmith
alanbsmith / structuring-our-styled-components-example-file-structure-2
Last active August 21, 2023 06:29
structuring-our-styled-components-example-file-structure-2
├ src/
├── blocks/
| ├── Card/
| | ├── Header.js // <- Element
| | ├── Image.js // <- Element
| | ├── Text.js // <- Element
| | ├── Title.js // <- Element
| | └── index.js // <- Block
├── elements/
| ├── A.js // <- Element
@alanbsmith
alanbsmith / Data Visualization Resources.md
Last active March 4, 2023 18:33
A WIP of helpful data go resources as I find them
Date V8 V7 V6 V5 V4
2022-05-24 0 3 71 12 25
2022-07-12 0 25 44 10 23
2022-07-25 0 31 41 9 21
2022-08-25 0 50 30 9 19
2022-10-19 0 65 17 6 15
2022-11-01 0 68 15 6 16
2022-12-15 18 59 8 5 13
2023-01-10 22 51 7 5 12
@alanbsmith
alanbsmith / styling-thoughts.md
Created October 19, 2022 23:14
Some brief styling thoughts

On CSS-in-JS

Overview

This is not an argument for or against any particular library or solution for styling UI. Instead I’d like to bring a bit of context and nuance to the conversation in a way that doesn’t add to the ongoing flame war.

First-Gen CSS-in-JS Wins

There are some things Emotion and Styled Components do very well, especially considering the styling landscape when they was created.

@alanbsmith
alanbsmith / Design Systems Resources.md
Last active October 13, 2022 19:11
Design Systems Resources | A Primer

Design Systems Resources | A Primer

Design Systems

  • [Design Systems][1] by Alla Kholmatova - the canonical design systems book, in my opinion
  • [Expressive Design Systems][2] by Yesenia Perez-Cruz - a great follow-up to Kholmatova's book
  • [Atomic Design][3] by Brad Frost - written before we were using the term 'design system' for web interfaces, but many popular ideas extend from these ideas

Systems Thinking

Cupcakes 🧁

Yield

24 cupcakes

Ingredients

Batter

@alanbsmith
alanbsmith / structuring-our-styled-components-an-example-block.js
Last active March 30, 2022 13:46
structuring-our-styled-components-an-example-block
// src/blocks/Card/index.js
import styled from 'styled-components';
import Header from './Header';
import Image from './Image';
import Text from './Text';
import Title from './Title';
const Card = styled.div`
@alanbsmith
alanbsmith / uncheck-twitter-interests.md
Created March 25, 2022 16:55
Uncheck all Twitter interests