From c1fcef8535b7648047fef33b5c88fd92183b6f99 Mon Sep 17 00:00:00 2001 From: Matt Cowley Date: Sat, 26 Oct 2024 19:03:36 +0100 Subject: [PATCH] Add highlight + grid auto cols/rows to Tailwind config (#80) * Add highlight color to Tailwind config * Add grid auto cols/rows to Tailwind config * Bump version --- package-lock.json | 4 ++-- package.json | 2 +- src/tailwind.ts | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index ff8daf8..328af0b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@alveusgg/data", - "version": "0.42.0", + "version": "0.43.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@alveusgg/data", - "version": "0.42.0", + "version": "0.43.0", "license": "SEE LICENSE IN LICENSE.md", "devDependencies": { "@typescript-eslint/eslint-plugin": "^6.2.0", diff --git a/package.json b/package.json index 5fd30b5..5da3aef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@alveusgg/data", - "version": "0.42.0", + "version": "0.43.0", "private": true, "license": "SEE LICENSE IN LICENSE.md", "repository": { diff --git a/src/tailwind.ts b/src/tailwind.ts index f08d131..9121184 100644 --- a/src/tailwind.ts +++ b/src/tailwind.ts @@ -119,6 +119,25 @@ const config = { 800: "#28122F", }, twitch: "#6441A5", + highlight: "#FF9F1C", + }, + }, + extend: { + gridTemplateColumns: { + ...Object.fromEntries( + Array.from({ length: 12 }, (_, i) => [ + `${i + 1}-auto`, + `repeat(${i + 1}, auto)`, + ]), + ), + }, + gridTemplateRows: { + ...Object.fromEntries( + Array.from({ length: 12 }, (_, i) => [ + `${i + 1}-auto`, + `repeat(${i + 1}, auto)`, + ]), + ), }, }, } satisfies PresetsConfig;