This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://tailwindcss.com/docs/customizing-colors#default-color-palette | |
const colors = { | |
slate: { | |
50: '#f8fafc', | |
100: '#f1f5f9', | |
200: '#e2e8f0', | |
300: '#cbd5e1', | |
400: '#94a3b8', | |
500: '#64748b', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lit = { | |
on: { | |
BREAK: 'broken', | |
TOGGLE: 'unlit', | |
CHNAGE_COLOR: { | |
actions: ['changeColor'] | |
} | |
} | |
} | |
const unlit = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const lit = { | |
on: { | |
BREAK: { | |
target: 'broken', | |
actions: () => console.warn('transition to onBreak') | |
}, | |
TOGGLE: 'unlit', | |
}, | |
exit: () => console.warn("it's dark and cold") |