From a4e2c99a8fef981865540d75122ecd29225ce6fd Mon Sep 17 00:00:00 2001 From: dnvt Date: Sun, 9 Mar 2025 16:10:14 -0400 Subject: [PATCH] Update README and bump version to 3.0.1 --- CHANGELOG.md | 6 +++ README.md | 112 +++++++++++++-------------------------------------- package.json | 2 +- 3 files changed, 35 insertions(+), 85 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec300bca..6184eccc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # baseline-kit +## 3.0.1 + +### Patch Changes + +- Update README + ## 3.0.0 ### Major Changes diff --git a/README.md b/README.md index f658548c..6faf3f27 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,30 @@ # Baseline Kit -Baseline Kit is a lightweight development tool for visualizing and debugging grid systems and spacing in React 19 -applications. It provides configurable overlays for both column-based and baseline grids, flexible layout components, -and theme-aware configuration—all optimized for performance and built with TypeScript. +![Build Status](https://img.shields.io/github/actions/workflow/status/dnvt/baseline-kit/test.yml) +![npm version](https://img.shields.io/npm/v/baseline-kit) +![License](https://img.shields.io/github/license/dnvt/baseline-kit) + +Baseline Kit is a lightweight development tool for visualizing and debugging grid systems and spacing in React 19 applications. It provides configurable overlays for both column-based and baseline grids, flexible layout components, and theme-aware configuration—all optimized for performance and built with TypeScript. ![Demo visual](kit.png) +## Table of Contents + - [Base Unit](#base-unit) + - [Spacing Values](#spacing-values) + - [Grid Snapping](#grid-snapping) + - [Debugging Modes](#debugging-modes) + - [Component Hierarchy](#component-hierarchy) + - [Key Components](#key-components) + - [Config](#config) + - [Baseline](#baseline) + - [Guide](#guide) + - [Box](#box) + - [CSS Import Options](#css-import-options) + - [Theme Options](#theme-options) + - [Theme Variables Reference](#theme-variables-reference) + - [SSR-Friendly Design](#ssr-friendly-design) + - [SSR Mode Prop](#ssr-mode-prop) + ## Features - 📏 **Baseline Grid:** Core system for maintaining vertical rhythm and consistent spacing across your layouts @@ -119,7 +138,7 @@ The base unit is the foundation of Baseline Kit's spacing system. All measuremen unit: ```tsx - // Sets 8px as the base unit + // Sets 8px as the base unit [ - // Option 1: Use the combined CSS file (simplest approach) - { rel: 'stylesheet', href: 'npm:baseline-kit/dist/baseline-kit.css' }, - - // Option 2: Or use core styles and theme separately - // { rel: 'stylesheet', href: 'npm:baseline-kit/dist/styles.css' }, - // { rel: 'stylesheet', href: 'npm:baseline-kit/dist/theme.css' }, -]; - -export default function App() { - return ( - - - - - - - - - - - - - - ); -} -``` - -Note the use of `npm:` prefix which is the recommended way to reference CSS from node_modules in Remix. - -### Troubleshooting CSS in Remix - -If you're experiencing styling issues with components not showing properly: - -1. **Copy to public directory**: For a completely reliable solution, copy the CSS files to your public directory: - ```shell - mkdir -p public/css - cp node_modules/baseline-kit/dist/*.css public/css/ - ``` - - Then reference these local files: - ```tsx - export const links: LinksFunction = () => [ - { rel: 'stylesheet', href: '/css/baseline-kit.css' } - ]; - ``` - -2. **Check CSS specificity**: Make sure your application's CSS isn't overriding Baseline Kit styles. You may need to adjust specificity or load order of your stylesheets. - -### Custom Theme Integration - -For custom theming: - -```tsx -export const links: LinksFunction = () => [ - // Core styles (required) - { rel: 'stylesheet', href: 'npm:baseline-kit/dist/styles.css' }, - // Choose one of these theme options: - { rel: 'stylesheet', href: 'npm:baseline-kit/dist/theme/default.css' }, // Light theme only - { rel: 'stylesheet', href: 'npm:baseline-kit/dist/theme/dark.css' }, // Dark theme only - { rel: 'stylesheet', href: '/css/custom-theme.css' }, // Your custom theme -]; -``` \ No newline at end of file diff --git a/package.json b/package.json index 6c5d15de..877f7204 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "vitest": "3.0.8" }, "name": "baseline-kit", - "version": "3.0.0", + "version": "3.0.1", "type": "module", "homepage": "https://github.com/dnvt/baseline-kit#readme", "types": "dist/index.d.ts",