Blog

This is where I post technical ramblings

10th

Mar

2022

A Simple way to keep Styled Components Clean

If you're using styled-components and like me you're a fan of keeping the css blocks clean and concise, you may want to add in some helpers to grab parts of your theme you'll use over and over again. Things like colours, spacing, zIndexes or even props that you want to use. Here's a small example of a theme file: ```typescript // theme.ts const …

styled components

css in js

lodash

partial application

clean code

2nd

Feb

2022

Coding like it's 2008

I've been working on rebuilding my site using the latest and greatest framework of the moment Remix and have to say it's taking me back to my old days as a PHP developer. Making database calls in the same file as the view has vibes from my early days as a developer when PHP development was either cowboy style or massively …

remix

php

old-school

#usetheplatform