Skip to content

Instantly share code, notes, and snippets.

View rafaelrinaldi's full-sized avatar

Rafael Rinaldi rafaelrinaldi

View GitHub Profile
rafaelrinaldi /
Created April 27, 2023 16:06
Easily switch between Alacritty themes



Create a themes/ folder under ~/.config/alacritty.

❯ ls -h
alacritty.yml theme.yml     themes
#!/usr/bin/env bash
# BASH fuzzyclock
# by Corey Mwamba
export TEXTDOMAINDIR="/usr/share/locale"
export TEXTDOMAIN=bash-fuzzy-clock
hr=($(date '+%_H'))
min=10#$(date '+%M')
const assert = require("assert");
class Doc {
constructor(layers) {
this.layers = layers.reduce((accumulator, current) => {
const { id, properties } = current;
return {
[id]: properties,
import { H1, Text, View } from '@doppio/core';
import { Alert, Button, Checkbox, Radio, Spacer, TextArea } from '@doppio/elements';
import { RadioGroup } from '@doppio/patterns';
import * as React from 'react';
type DrinkSize = '12' | '16';
type DrinkType = 'Espresso' | 'Doppio' | 'Cappuccino';
const modifiers = ['Mocha', 'Vanilla', 'Caramel'];
Asana token naming proposal
1. Sentiment: default/neutrals, success, warning, danger, upsell, selected, beta, information
2. Usage: background, text, icon, border
3. Prominence: default, weak, medium, strong
4. Interaction: default, hover, active, disabled
- Stored as Figma color styles
Number of users impacted
Number of users impacted Tenant
1530 Better
155 Ally

Make sure you add the design-systems label to your pull request

foo 🙅‍♂️

~/work/mortgage master
❯ make db-nuke db-start
cd /Users/rrinaldi/work/mortgage/mortgage && /Library/Developer/CommandLineTools/usr/bin/make mono-db-nuke
Makefile:33: warning: overriding commands for target `secrets-prod'
../Makefile:462: warning: ignoring old commands for target `secrets-prod'
docker-compose down --rmi local --volumes --remove-orphans
WARNING: The DB_SCHEMA_USER_PASSWORD variable is not set. Defaulting to a blank string.
Removing network mortgage_default
Removing image mortgage_postgres
rm -rf ~/data/postgres_data
import * as React from 'react';
import cssVars from 'css-vars-ponyfill';
import Color from 'color';
import {CMSThemeMap} from 'thing/src/models/cms/Theme';
import {deriveSchemeFromBackground} from 'thing/src/utils/ColorUtils';
import {getPrimaryColorsFromCMSTheme} from 'thing/src/utils/ThemeProductPageUtils';
interface AccentColors {
customAccentColor?: string;
customAccentHover?: string;