@als-computing/colors
v1.0.4
Published
Custom color theme preset for Tailwind CSS
Readme
ALS Computing Colors
Shared color palette published to both npm and PyPI.
Install
npm (Tailwind preset)
npm install @als-computing/colorsPyPI (Python package)
pip install als-computing-colorsUsage
Tailwind CSS
// tailwind.config.js
const alsColors = require('@als-computing/colors')
module.exports = {
presets: [alsColors],
}Then use classes like:
<div class="bg-sky-base text-finch-white">Hello</div>
<button class="bg-finch-navy hover:bg-finch-navy-hover">Click</button>Python
from als_computing_colors import colors, sky, slate, finch
print(colors["sky"]["base"]) # '#095B87'
print(sky["light"]) # '#0886CA'
print(slate["mid"]) # '#334256'
print(finch["navy_hover"]) # '#0E3B55'Palette
sky
darkest:#073048dark:#004C70base:#095B87light:#0886CA
slate
dark:#464B53mid:#334256base:#64768Dlight:#C1D3E3
finch
navy:#004B71white:#F0F5F9cyan:#52BEE2slate-blue(JS) /slate_blue(Python):#7DA9CDsky_hover:#9ACFFCcharcoal:#47484Amist_hover:#CED7DCnavy_hover:#0E3B55
License
MIT
